Description:
Offsite (external) links using subforums malfunction on the index page.
Suppose a "forum" has subforums "subforum1" and "subforum2", both pointing to external link (redirect to some other forum), the entries for the subforums on the index page point to the same page.
For example, see on my test server here:
http://testsvr.freehostia.com/
Check for the forum "MyBB test forum". I have set up "Subforum1" to link to kde.org and "Subforum2" to open kubuntu.org
On the index page, "Subforum1" and "Subforum2" both point to forum id=9 (?fid=9) and as a result, they both open
http://kubuntu.org. But if you go inside the
MyBB test forum and click on the subforums there, the links work as they should.
Other details:
MyBB: 1.4.4
PHP version: 5.0.5
MySQL version: 4.1.22
Browser: Firefox 3.0.5
Example: Please see
Graphics & Multimedia at forum.kde.org for the two subforums.
Can you post your forums cache here?
That's for my test server:
Array
(
[1] => Array
(
[fid] => 1
[name] => My Category
[description] =>
[linkto] =>
[type] => c
[pid] => 0
[parentlist] => 1
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 0
[lastpostsubject] =>
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[6] => Array
(
[fid] => 6
[name] => MyBB bugs
[description] =>
[linkto] =>
[type] => c
[pid] => 0
[parentlist] => 6
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 0
[lastpostsubject] =>
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[2] => Array
(
[fid] => 2
[name] => Forum
[description] =>
[linkto] =>
[type] => f
[pid] => 1
[parentlist] => 1,2
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 1
[lastpostsubject] => Test Post 1
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[5] => Array
(
[fid] => 5
[name] => Another Forum
[description] =>
[linkto] =>
[type] => f
[pid] => 1
[parentlist] => 1,5
[disporder] => 2
[active] => 1
[open] => 1
[lastposteruid] => 1
[lastpostsubject] => Blank
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[3] => Array
(
[fid] => 3
[name] => Trash Forum
[description] =>
[linkto] =>
[type] => f
[pid] => 1
[parentlist] => 1,3
[disporder] => 3
[active] => 1
[open] => 1
[lastposteruid] => 2
[lastpostsubject] => How Long?
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[4] => Array
(
[fid] => 4
[name] => Subforum
[description] =>
[linkto] =>
[type] => f
[pid] => 2
[parentlist] => 1,2,4
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 2
[lastpostsubject] => post2
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[7] => Array
(
[fid] => 7
[name] => MyBB test forum
[description] => Here are two subforums pointing to kde.org and kubuntu.org respectively. Now see that both of them redirect to the same location (kubuntu.org) -- as both of them point to forum id=9.
But if you click on "MyBB test forum" and click on the subforums from inside the parent forum, it works okay there.
[linkto] =>
[type] => f
[pid] => 6
[parentlist] => 6,7
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 0
[lastpostsubject] =>
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[8] => Array
(
[fid] => 8
[name] => Subforum1
[description] => This points to http://kde.org
[linkto] => http://www.kde.org
[type] => f
[pid] => 7
[parentlist] => 6,7,8
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 0
[lastpostsubject] =>
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
[9] => Array
(
[fid] => 9
[name] => Subforum2
[description] => This points to http://kubuntu.org
[linkto] => http://www.kubuntu.org
[type] => f
[pid] => 7
[parentlist] => 6,7,9
[disporder] => 1
[active] => 1
[open] => 1
[lastposteruid] => 0
[lastpostsubject] =>
[allowhtml] => 0
[allowmycode] => 1
[allowsmilies] => 1
[allowimgcode] => 1
[allowpicons] => 1
[allowtratings] => 1
[status] => 1
[usepostcounts] => 1
[password] =>
[showinjump] => 1
[modposts] => 0
[modthreads] => 0
[mod_edit_posts] => 0
[modattachments] => 0
[style] => 0
[overridestyle] => 0
[rulestype] => 0
[rulestitle] =>
[rules] =>
[defaultdatecut] => 0
[defaultsortby] =>
[defaultsortorder] =>
)
)
Confirmable bug on forum.kde.org
The cache seems to be okay, links are how they should be. though the index page doesn't set it right. Being inside the top forum works like it should.
I found a similar result on my localhost, too.
Hm, I just tried reproducing this on my own localhost without luck. Can you send me FTP details so I can take a proper look at it?
PMed you details.
Thanks
Sayakb
You had custom code modifications.
$forum_list = (function_exists("subforum_bulb_build_forumbits")
? subforum_bulb_build_forumbits()
: build_forumbits());
That's not MyBB code. I commented it out, and put in the normal MyBB code and wala.
This is fixed in the subforum bulb plugin.
Next time you notice something odd, deactivate plugins to get original MyBB behaviour.