How to make url sef into mambot
- GabyZ
 - 
		
						Topic Author
					 - Offline
 - New Member
 - 
		
	 
	 Less
	 More
	
		
		- Thank you received: 0
 
			
			17 years 2 months ago		#3192
	by GabyZ
	
		
			
	
			
			 		
													
	
			Hi, I'm using a mambot that creates a topic into my vbulletin forum, that topic will have a link to a Joomla article, however the plugin (Joomla 1.5, it's jvbplugin) does create a non sef link, is there anyway to make the string url sef by using the content id variables, title or something else?
Do you have a piece of code to put into the mambot?
	Do you have a piece of code to put into the mambot?
Please Log in or Create an account to join the conversation.
- Saka
 - 
		
					 - Offline
 - Administrator
 - 
		
	 
			
			17 years 2 months ago		#3199
	by Saka
	
		
			
			
Emir Sakic
www.sakic.net
	
			
			 		
													
	
			Just use:
JRoute::_($non_sef_link);
	JRoute::_($non_sef_link);
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.
- GabyZ
 - 
		
						Topic Author
					 - Offline
 - New Member
 - 
		
	 
	 Less
	 More
	
		
		- Thank you received: 0
 
			
			17 years 2 months ago	 -  17 years 2 months ago	#3220
	by GabyZ
	
		
			
	
			 		
													
	
			This is the line code wich I'd like to modify,
I used instead:
But it gives me...
Can you help a bit? Thanks
				$orgArticle 	= '[URL="'.JURI::base().'index.php?option='.$option.'&view=article&id='.$this->_row->id.$extItemID.'"][B]Leggi il resto...[/B][/URL]';
I used instead:
			$orgArticle 	= '[URL="'.JRoute::'index.php?option='.$option.'&view=article&id='.$this->_row->id.$extItemID.'"][B]Leggi il resto...[/B][/URL]';
But it gives me...
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in /var/www/html/plugins/content/vbcomment.php on line 218
Can you help a bit? Thanks
	Last Edit: 17 years 2 months ago by GabyZ.	
			Please Log in or Create an account to join the conversation.
- Saka
 - 
		
					 - Offline
 - Administrator
 - 
		
	 
			
			17 years 2 months ago	 -  17 years 2 months ago	#3230
	by Saka
	
		
			
			
Emir Sakic
www.sakic.net
	
			 		
													
	
			This doesn't have anything to do with SEF Advance support but you have PHP errors in your line.
Try:		
	Try:
$orgArticle = '[URL=http://"'.JRoute::_('index.php?option='.$option.'&view=article&id='.$this->_row->id.$extItemID).'"][B]Leggi il resto...[/B][/URL]';
Emir Sakic
www.sakic.net
	Last Edit: 17 years 2 months ago by Saka.	
			Please Log in or Create an account to join the conversation.
- GabyZ
 - 
		
						Topic Author
					 - Offline
 - New Member
 - 
		
	 
	 Less
	 More
	
		
		- Thank you received: 0
 
			
			17 years 2 months ago		#3233
	by GabyZ
	
		
			
	
			
			 		
													
	
			Works saka! Thanks for the support.		
	Please Log in or Create an account to join the conversation.