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 Read in v2.20 Hack Needed (https://vborg.vbsupport.ru/showthread.php?t=32057)

Zeoran 11-03-2001 04:32 AM

I would like to know how to hack it so that when you click the "Mark Forum Read", it takes you back to the main forum page instead of the forum you just read.

~Z

Scott MacVicar 11-03-2001 08:09 AM

open forumdisplay.php

look for the following on line 35-37.

PHP Code:

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

replace with

PHP Code:

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


Zeoran 11-03-2001 02:21 PM

Thank you... that seems to have worked and is a much better option. Why would you return to the same forum that you just got through reading? :)

Is it easy to change the text message to reflect this too? It still tells people that they are being returned to where they were. Is this in one of the .php files that I can easily vi and change?

TIA

SWFans.net 11-03-2001 02:59 PM

Check the redirect templates. If I were using 2.2, I could tell you which one, but I am still using 2.0.3 and don't have the same ones.

apfeifer 11-03-2001 03:12 PM

Go to edit the templates in your CP and expand "Redirection Message Templates" and find "redirect_markreadforum" and change it in there, hope that works!

Whoops, should have refreshed this page before I posted the reply, oh well, at least I specified which one:p

:cool:

SWFans.net 11-03-2001 04:55 PM

Thanks for the tip. I was able to modify Ethank's database version of Mark Forum Read to have this behavior, with the information provided. :) Doesn't work perfectly with Subforums, but it does work well enough for me.

FWC 11-03-2001 05:19 PM

Thanks, PPN. It works perfectly! :D

Barret 02-25-2002 05:43 PM

But how can you give people the option themselves like we did in Vbb 2.03?

SloppyGoat 04-15-2003 11:15 AM

How can this be modified to direct you to the parent subforum?

filburt1 04-15-2003 01:10 PM

Hello and welcome to last year...I don't think the original poster even remembers this thread. :)


All times are GMT. The time now is 12:32 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.01055 seconds
  • Memory Usage 1,726KB
  • 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