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)

N9ne 03-15-2003 10:00 PM

Must Read Page >> Before Posting New Thread In Forum 1.01
 
Must Read Page Before Posting In A Forum
> A hack by N9ne, Copyright 2003+
> Hack created on March 16th 2003

Description: This hack will allow you to specify,
on a per forum basis, if a must read page comes up,
when someone tries to post a new thread in that
forum. You may use HTML code in the message.

After reading the page, the user is presented with two
options.

One: 'Proceed'; This will move them onto the page where
they can create the thread (ie. type up the post, subject,
etc.).

Two: 'Cancel'; This option will take them back to the forum.

Queries to run: 1

Files to modify:
admin/forum.php
newthread.php

Templates to add:
newthread_mustread

For: vB 2.x.x (created on 2.3.0)

ChangeLog
1.01: 2nd April 2003: BugFix: Post Preview now works.

Demo: Try posting a new thread in the full releases forum here, it brings up a must read page, i've re-created the system.

Credit: To DrkFusion for helping me with a HTTP_POST_VAR problem.

Note: Download the attached file and open in a text editor to view installation instructions!

N9ne 03-16-2003 12:47 AM

scrn 1.

N9ne 03-16-2003 12:47 AM

scrn 2.

afterlab 03-16-2003 12:51 AM

Good job on the hack. This will help me with my new thread system I an introducing at my website.

Erwin 03-16-2003 03:29 AM

You may want to edit your first post. It's very hard to read with all the weird symbols. :)

joeboo 03-16-2003 04:11 AM

Nice concept. I may use it in the future. And i agree with Erwin :/

partang2 03-16-2003 05:48 AM

Nice one! Is it possible to get this working when replying to a thread too?

*Clicks Install*

Dean C 03-16-2003 08:46 AM

Yes i agree with Erwin. Why did you want this hack deleted from the db?

- miSt

Boofo 03-16-2003 09:34 AM

Excellent hack, N9ne. I don't have a use for this right now but have installed it anyway. I'm sure I will be using it in the near future. Good job! ;)

Dean C 03-16-2003 10:38 AM

Im definately gon use it but im still curious as to why you didn't want it in the hack db :)?

- miSt

N9ne 03-16-2003 11:38 AM

Quote:

Today at 12:38 PM Mist said this in Post #10
Im definately gon use it but im still curious as to why you didn't want it in the hack db :)?

- miSt


Re-Read my post in the services forum, I accidentally entered it into the DB twice, notice my profile?

I will edit the first post.

Boofo 03-16-2003 11:52 AM

The php file is kind of hard to read with all of that in it, too, by the way. ;)

N9ne 03-16-2003 11:56 AM

Yeah, I noticed that just now too lol, I'll be posting up a modified one with cooler looking stuff on it :p

Arabs Emperor 03-16-2003 08:28 PM

Great HaCk i like it
install done>>>>%

Smoothie 03-17-2003 02:29 AM

This is a damn nice hack. Not only is it easy to install, but it provides a unique usefulness. Is something which should be included in vB as a standard feature.

N9ne 03-17-2003 05:49 AM

Please click install ;).

Smoothie 03-17-2003 05:55 AM

oops! Knew I forgot something..

alkatraz 03-18-2003 07:26 AM

AWESOME!!!!

/Installed

McDohl 03-22-2003 09:08 AM

Great job. Thanks. :)

Smoothie 03-30-2003 04:57 PM

Hey, a little help here please.... installed this hack, it works fine except when I hit preview post, it brings me back to the must read page.

N9ne 03-30-2003 05:20 PM

Quote:

Today at 06:57 PM Smoothie said this in Post #20
Hey, a little help here please.... installed this hack, it works fine except when I hit preview post, it brings me back to the must read page.

If you click proceed after the must read page, after that, does it show you the preview?

Smoothie 03-30-2003 05:44 PM

Quote:

Today at 02:20 PM N9ne said this in Post #21



If you click proceed after the must read page, after that, does it show you the preview?

No, it brings you to newreply.php, preview gone...

N9ne 03-30-2003 06:22 PM

ok I'll look into the code and try and find a solution...

N9ne 03-30-2003 07:06 PM

Quote:

Today at 07:44 PM Smoothie said this in Post #22

No, it brings you to newreply.php, preview gone...


I just re-read your post, newreply.php? This hack only affects newthread.php...:confused:

Smoothie 03-30-2003 08:45 PM

I meant newthread.php, sorry.

Smoothie 03-30-2003 10:49 PM

a definite bug, installed this on an unhacked 2.3. Same problem...preview post don't work

Smoothie 03-31-2003 03:01 AM

Quote:

03-15-03 at 09:46 PM N9ne said this in Post #1
Demo: Try posting a new thread in the full releases forum here, it brings up a must read page, i've re-created the system.

Ok, tried the newthread in the full releases forum, and previewing the post works fine.

N9ne 03-31-2003 01:48 PM

Yes, I know it works here, but I didn't know that it would affect preview post when creating the hack ;). I'm still looking for a solution, haven't found one yet.

Smoothie 03-31-2003 04:18 PM

Maybe the guys from vb.org can share some of their knowledge on the hack they use here...

Smoothie 04-01-2003 12:12 AM

N9ne, I hate to do this, but bumping this thread....

Spitfireisgod 04-01-2003 04:47 AM

just what i was looking for

/me installs

Smoothie 04-01-2003 05:45 PM

^ bump ^

trafix 04-02-2003 08:55 AM

has the preview bug been fixed yet???

Smoothie 04-02-2003 10:22 AM

No..... bump!

Boofo 04-02-2003 10:28 AM

I'm unistalling until the bugs are fixed.

/me hits the uninstall button

Smoothie 04-02-2003 10:32 AM

If it was indeed re-created from the system used here, maybe one of the extra smart vb.org staff could have a look at this hack and give us a fix....

N9ne 04-02-2003 11:28 AM

Sorry guys, I've been really busy, as I've been in preparation for my trip to Italy which I leave for tomorrow.

I'll look into this in more depth now, I have an idea on how to fix it, only way to find out is to try it out ;).

Smoothie 04-02-2003 11:31 AM

cool, hope we can get a fix before you leave.... :)

N9ne 04-02-2003 11:33 AM

Try this, in the instructions, it says to find those 2 lines in newthread.php, and replace them with the code given below, well replace that load of code with this instead, and see if it works:

PHP Code:

// ############################### start new thread ###############################
if ($action=="newthread" and $foruminfo[mustread]=="1") {
        
$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 ($HTTP_POST_VARS['action']=="preview")) { 

Let me know if it works. I haven't got the hack installed on a board at the moment, and I just made this quick possible fix up...

Smoothie 04-02-2003 11:44 AM

No, didn't work. Same as before, brings you back in a loop to the must read page after clicking preview.


All times are GMT. The time now is 10:03 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.01803 seconds
  • Memory Usage 1,789KB
  • 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_php_printable
  • (5)bbcode_quote_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
  • (40)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