vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Must Read Page >> Before Posting New Thread In Forum 1.01 (https://vborg.vbsupport.ru/showthread.php?t=50238)

Smoothie 05-25-2003 03:40 PM

I'm a bit confused. Change this
PHP Code:

mustreadtext='$mustreadtext' 

To this in forum.php
PHP Code:

mustreadtext='".addslashes($mustreadtext)."' 

Now where does this code go
PHP Code:

$mustreadtext $foruminfo[mustreadtext]; 


Boofo 05-25-2003 03:47 PM

This is the code you need to change the last part in:

PHP Code:

// ############################### start new thread ###############################
if ($action=="newthread" and $foruminfo[mustread]=="1" and !$previewpost and !$preview) {
        
$mustreadtext addslashes($foruminfo[mustreadtext]);
        eval(
"dooutput(\"".gettemplate("newthread_mustread")."\");");
        exit;
} elseif ((
$HTTP_POST_VARS['action']=="postnewthread" and $foruminfo[mustread]=="1") or ($action=="newthread" and $foruminfo[mustread]=="0") or ($previewpost)) { 


Smoothie 05-25-2003 06:13 PM

yes! Will test more, but it looks like that fixed it.

Boofo 05-25-2003 06:38 PM

Ok, test it out and post the changes in here for anyone else who has run into this problem. ;)

cinq 08-03-2003 09:12 AM

Was this eventually fixed ?
:)

The Realist 08-25-2003 01:08 PM

tried it, getting a parse error.

Quote:

05-25-03 at 09:17 AM Boofo said this in Post #69
Smoothie, did this work for you?

The Realist 08-25-2003 01:26 PM

Sorted out my parse error. when peeps click on new thread the proceed and cancel shows up ok, but no text. Also if they click reply it does not show at all and they can post without seeing the must read screen?

How can this hack be done so it shows up when they enter a section and not post a thread or reply?

Thanks.

Quote:

Today at 03:08 PM The Realist said this in Post #76
tried it, getting a parse error.

corsacrazy 09-16-2003 03:24 PM

wont allow the use of html all i get is
Code:


      <img border=\"0\" src=\"http://www.XXX.com/yyyl.jpg\" alt=\"text\" width=\"142\" height=\"149\">


and vb code is [*img] doesnt work either :(

gunn0r 01-31-2007 03:19 PM

Hi there,

does anyone know if this works with vBulletin 3.6.3?

Thanks for any info!


All times are GMT. The time now is 06:00 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.01269 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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