TheEDIGuy
01-24-2004, 10:00 PM
Currently, VB3 RC3 functionality takes you up one forum level when you mark a forum as "read". For those of us with categories, this is not very easy on our users, as it takes you back to the category listing.
This small php code edit will change the functionality to take you all the way back to the Forum Home when you mark a forum as "read" instead. This has only been tested on RC3, and is currently working on my system as advertised. There is 1 file edit, and 0 template edits.
1. Open your forumdisplay.php file.
2. In the "start mark forums read" section, find:
if ($foruminfo['parentid'] == -1)
{
$url = "$vboptions[forumhome].php?$session[sessionurl]";
}
else
{
$url = "forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]";
}
3. Replace that code with:
$url = "$vboptions[forumhome].php?$session[sessionurl]";
4. Save forumdisplay.php and upload it to your server.
You may PM me or post here with questions and comments, although I will not provide code changes for any different functionality than provided here. This is something that my users wanted, and I've provided it here for others, no more and no less.
*01/25/04 - Updated to fix a small mistake.
This small php code edit will change the functionality to take you all the way back to the Forum Home when you mark a forum as "read" instead. This has only been tested on RC3, and is currently working on my system as advertised. There is 1 file edit, and 0 template edits.
1. Open your forumdisplay.php file.
2. In the "start mark forums read" section, find:
if ($foruminfo['parentid'] == -1)
{
$url = "$vboptions[forumhome].php?$session[sessionurl]";
}
else
{
$url = "forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]";
}
3. Replace that code with:
$url = "$vboptions[forumhome].php?$session[sessionurl]";
4. Save forumdisplay.php and upload it to your server.
You may PM me or post here with questions and comments, although I will not provide code changes for any different functionality than provided here. This is something that my users wanted, and I've provided it here for others, no more and no less.
*01/25/04 - Updated to fix a small mistake.