vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Mark Forum Read" hack? (https://vborg.vbsupport.ru/showthread.php?t=41774)

TheEDIGuy 08-01-2002 02:20 PM

"Mark Forum Read" hack?
 
I'm in the process of moving from an ezboard system to vbulletin, and my users have requested something that appears to be a hack.

On ezboard, when you "mark this forum read", it jumps back to the forum list. On vbulletin, it stays where it was at, the thread list for that forum.

Now, it seems to me, if you're making a forum as read, you don't really plan to stick around in it anyway.

Has anyone done a hack to make the "mark forum read" take you back to the forum list automatically? If so, I'd be extremely interested.

Thanks!

John

Logician 08-01-2002 03:56 PM

I didnt test this one but I believe it will work, give it a shot..

edit forumdisplay.php, find:

PHP Code:

if ($url=="") {
        
$url="index.php?s=$session[sessionhash]";
    } 

Replace it as:
PHP Code:

$url="index.php?s=$session[sessionhash]"

Also dont forget to change the relevant template(redirect_markreadforum) which says, "we are taking you where you were" ;)

Enjoy..

TheEDIGuy 08-01-2002 04:21 PM

When I change this, and attempt to enter a forum, I get this error:

Parse error: parse error in forumdisplay.php on line 44

John

Logician 08-01-2002 04:30 PM

Are you using Opera browser? Dont copy/paste from here, type directly in NOTEPAD

TheEDIGuy 08-01-2002 05:32 PM

I've modified the code in Notepad, and re-uploaded it via FTP. It still gives an error, so I had to revert to the original code.

I DO appreciate the help, though :)

John

Logician 08-01-2002 05:47 PM

1 Attachment(s)
Pal it's related to you.. I checked it out, it does not give me any errors and it does the trick and works too..

I'm attaching the instruction to a text file too. Maybe copy/paste from there can help you, but you can be sure nothing is wrong with the code..

TheEDIGuy 08-01-2002 06:18 PM

Well, it must have been me, because I did it again, and now it works.

Thanks a ton! It's exactly what we wanted.

John

cindyd 10-01-2002 09:58 PM

Thanks so much for posting this! I have been trying to figure this out for awhile.

Logician 10-02-2002 07:33 AM

yw..

There are a lot of hidden treasures waiting to be discovered in Request forum for ones who can use their Search buttons. ;)

SloppyGoat 12-31-2002 07:37 PM

Is there any way to modify this code just a bit so it returns you to the parent subdirectory? You know....like if you have several subdirectories, you might want to return to the one it's in, then return to the home page. Did I say that right? LOL I hope you understand what I'm asking.

Thanks so much for this, though! It's been one of my peeves for quite some time! :classic:


All times are GMT. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00993 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete