Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Invalid forum post links (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Invalid forum post links
#27308
Invalid forum post links 1 Year ago  
In joomla 1.5 legacy mode with sef enabled, a few forum post lists have invalid post-links.

Example 1: recentposts.php

$link = sefRelToAbs("index.php?option=com_fireboard&func=view&id=$row->fbid" . "&catid=$row->catid#$row->fbid";

generates a wrong link. The problem is fixed by moving the anchor out of the sefRelToAbs function:

$link = sefRelToAbs("index.php?option=com_fireboard&func=view&catid=$row->catid" . "&id=$row->fbid"."#$row->fbid";


Example 2: forummsg.php

$fbURL = sefRelToAbs("index.php?option=com_fireboard&func=view".FB_FB_ITEMID_SUFFIX."&catid=" . $item->catid . "&id=" . $item->id . "#" . $item->id);

does not work, but

$fbURL = sefRelToAbs("index.php?option=com_fireboard&func=view".FB_FB_ITEMID_SUFFIX."&catid=" . $item->catid . "&id=" . $item->id) . "#" . $item->id;

does.
webstudent (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
#50452
Re:Invalid forum post links 5 Months ago  
In recentposts.php the correct line is:
Code:

$link = sefRelToAbs("index.php?option=com_fireboard&func=view&catid=$row->catid" . "&id=$row->fbid")."#$row->fbid";
rrhode (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
The administrator has disabled public write access.  
Go to top