Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Must Read Page >> Before Posting New Thread In Forum 1.01 Details »»
Must Read Page >> Before Posting New Thread In Forum 1.01
Version: 1.00, by N9ne N9ne is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-15-2003 Last Update: Never Installs: 19
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 04-28-2003, 01:26 AM
cinq's Avatar
cinq cinq is offline
 
Join Date: Oct 2002
Posts: 1,398
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering if anyone got it working in 2.2.9 ?
Reply With Quote
  #53  
Old 04-28-2003, 01:31 AM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any way to disable the "proceed" button for a few minutes/seconds? It may be a template mod
Reply With Quote
  #54  
Old 04-28-2003, 03:32 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Yesterday at 10:26 PM cinq said this in Post #51
Just wondering if anyone got it working in 2.2.9 ?
yes, it works fine in 2.2.9
Reply With Quote
  #55  
Old 04-28-2003, 08:33 AM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it would be cool you could add a feature in so they only had to click agree once, unless you made a change to that page then you could reset everyone's info and it would popup the page again for them. Otherwise they might get used to just scrolling and clicking okay without actually reading what is there.

I realize doing that would probably create a lot of extra work thought...

Koutaru - you might be able to disable the button using javascript.

This is a pretty sweet hack, I am planning on adding it in my forum soon.
Reply With Quote
  #56  
Old 05-21-2003, 03:24 AM
DelFDgfd_gT DelFDgfd_gT is offline
 
Join Date: Oct 2001
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a little request. Instead of making this work in a certain forum, how can it be done when visiting the index.php?

Basically, when you visit my site, you get the MUST READ page, you click Proceed, and you can view the forums.

Also, I'd like it so that you only have to click it ONE time...

If the index.php must read is too much for you, can you tell me two things...
1. how to enable it in newreply.php
2. only click proceed once.


==========

BUG REPORT

==========

If you put a ' in your Must Read message in Admin CP, it will come up with an error.

Example:
Quote:
-BETA-<br>
Please make sure you have replied to www.forum.com.<br>
If you haven't, please so now.
Error Message:


Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: UPDATE forum
SET
styleid='1', title='Public Chat', description='',
active='1', displayorder='1', parentid='1', parentlist='2,1,-1',
allowposting='1', cancontainthreads='1', daysprune='30',
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='1', allowbbcode='1',
allowimages='1', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='0', countposts='1',
moderateattach='0', mustread='1',mustreadtext='-BETA-<br>
Please make sure you have replied to [url]www.forum.com.[/url

If you haven'
t, please so now.', security='1', forumpass='', passtimeout='0'
WHERE forumid='2'
mysql error: You have an error in your SQL syntax near 't, please so now.', security='1', forumpass='', passtimeout='0'
' at line 10


mysql error number: 1064



The code works from start of the bold to end of bold then stops.
The code in bold and underline error says invalid syntax for '.

Reporting this bug.
Reply With Quote
  #57  
Old 05-22-2003, 03:17 AM
DelFDgfd_gT DelFDgfd_gT is offline
 
Join Date: Oct 2001
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well there is no help, so Im un-installing.
Reply With Quote
  #58  
Old 05-22-2003, 03:30 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Smoothie, have you run into this problem yet?
Reply With Quote
  #59  
Old 05-22-2003, 07:30 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 12:30 AM Boofo said this in Post #57
Smoothie, have you run into this problem yet?
yes I have.
Reply With Quote
  #60  
Old 05-22-2003, 07:31 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh N9ne-

We need a bug fix please!
Reply With Quote
  #61  
Old 05-22-2003, 08:02 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sure it only needs an addslashes somewhere.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06959 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete