sitemap  |  contact

Sakic.Net Forum
07 January 2009, 21:43 *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Introducing AJAX Scroller - Joomla News Slider Module: http://www.sakic.net/news/introducing_ajax_scroller/
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to make url sef into mambot  (Read 698 times)
GabyZ
Jr. Member
**
Posts: 54


View Profile
« on: 22 August 2008, 23:06 »

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?
Logged

Saka
Administrator
Hero Member
*****
Posts: 1,351


View Profile WWW
« Reply #1 on: 23 August 2008, 11:12 »

Just use:
JRoute::_($non_sef_link);
Logged

GabyZ
Jr. Member
**
Posts: 54


View Profile
« Reply #2 on: 23 August 2008, 19:55 »

This is the line code wich I'd like to modify,

Code:
$orgArticle = '[URL="'.JURI::base().'index.php?option='.$option.'&view=article&id='.$this->_row->id.$extItemID.'"][B]Leggi il resto...[/B][/URL]';


I used instead:
Code:
$orgArticle = '[URL="'.JRoute::'index.php?option='.$option.'&view=article&id='.$this->_row->id.$extItemID.'"][B]Leggi il resto...[/B][/URL]';


But it gives me...
Quote
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: 24 August 2008, 11:35 by Saka » Logged

Saka
Administrator
Hero Member
*****
Posts: 1,351


View Profile WWW
« Reply #3 on: 24 August 2008, 11:38 »

This doesn't have anything to do with SEF Advance support but you have PHP errors in your line.
Try:
Code:
$orgArticle = '[URL=http://"'.JRoute::_('index.php?option='.$option.'&view=article&id='.$this->_row->id.$extItemID).'"][B]Leggi il resto...[/B][/URL]';

« Last Edit: 24 August 2008, 11:42 by Saka » Logged

GabyZ
Jr. Member
**
Posts: 54


View Profile
« Reply #4 on: 24 August 2008, 13:08 »

Works saka! Thanks for the support.
Logged

Pages: [1]
  Print  
 
Jump to: