
Originally Posted by
big123
Yeah Patiek, that would work for one forum, but the problem is I want to fetch multiple forums.
There is no easy method of polling each forum script (i.e. vBulletin, Invision, phpBB, etc) for how the URL to the forum should be displayed. The URL definition is therefore predefined in the class for the forum.
If you are accessing multiple forum installations, one or more of which use your different SEO links, I would recommend duplicating the forum class itself and modifying the forum's class to reflect the new forum URLs. Then you can still use the standard !!AUTHOR_URL!!, etc:
Look under classes/sources/Forum/ for your specific class. For example, lets suppose you are using vBulletin 3.x. You need to create a copy of the file vBulletin_3.php.
1. Name the copy of class vBulletin_3_SEO.php
2. Open vBulletin_3_SEO.php in your text editor:
a) Find all instances of "EP_Dev_Forum_News_vBulletin_3_Access" and replace the text with:
"EP_Dev_Forum_News_vBulletin_3_SEO_Access"
b) Edit the following lines:
PHP Code:
$this->LINKS['author'] = $this->CONF['url'] . "member.php?u=";
$this->LINKS['thread'] = $this->CONF['url'] . "showthread.php?t=";
You want to modify the "member.php?u=" to instead be, for example, "author/". The id of the author or the thread will be appended to the end of it. So if your SEO URL for authors is forum/author/AUTHORID you would modify if to be "author/".
3. Save the file & upload.
4. Visit the admin panel, you will see the new vBulletin 3.x SEO available. Select it for the forum you need the SEO links for.
That is a much better approach to this problem if you are combining the news of multiple forum scripts / installations (something I was not aware of in my original response).