Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Easier editing of the forum rules upon registration Details »»
Easier editing of the forum rules upon registration
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-06-2003 Last Update: Never Installs: 17
 
No support by the author.

<font size="3">
Easier editing of the forum rules upon registration</font>

Now this isn't much of a hack but what always annoyed me about the forum rules is that they were in a template. Being lazy it was just a pain navigating through the ACP to the signupadult template. So i wanted a way of editing it via the vbulletin options section of the ACP. This hack basically gives you a new option in the ACP to edit the forum rules. It is compatible with all your html and by default uses the standard forum rules set in the signupadult template. However one advantage is that you only edit the text. There is no html tables or anything to muck up if your a html newbie.

Attachment:

Show Your Support

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

Comments
  #12  
Old 04-08-2003, 07:48 AM
ZenithRS ZenithRS is offline
 
Join Date: Jul 2002
Location: Canberra, Australia
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, same for me... and same solution. Just changed it manually
Reply With Quote
  #13  
Old 04-08-2003, 07:55 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Darn forgot to match the query's up

I've updated the text file. If any one could englighten me as to why $bbtitle which is a global var is not being parsed correctly i'd be most interested?

- miSt
Reply With Quote
  #14  
Old 04-08-2003, 05:43 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is exactly what i was looking for!!!

Thanks Dean

[high]* Kars10 licks install![/high]
Reply With Quote
  #15  
Old 04-09-2003, 08:26 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your Welcome Karsten !

- miSt
Reply With Quote
  #16  
Old 04-14-2003, 07:33 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do I go to edit the forum rules now? There is not a link in the ACP that refers to rules. There is nothing in the instructions that refers to making the link or how to edit the rules.
Reply With Quote
  #17  
Old 04-15-2003, 02:07 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You go into the 'vbulletin options' section of the Admin CP and its right down the bottom of the page

- miSt
Reply With Quote
  #18  
Old 04-15-2003, 02:21 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I see the section, but I do not have a field to type into. It just says "Forum Rules".

What did I miss?
Reply With Quote
  #19  
Old 04-15-2003, 03:32 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like you didn't run all the queries
Reply With Quote
  #20  
Old 04-15-2003, 04:23 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

According to the instructions, I had to run the following queries.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES (NULL,'Forum Rules','78');

and

INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorde r) VALUES (NULL,42,'Rules','forumrules',' <p><normalfont>Registration to this forum is free!
We do insist that you abide by the rules and policies detailed below.
If you agree to the terms, please press the Agree button at the end of the page.
Note: By pressing the button you declare that you are over the age of 13.
If you are 13 or under, please use
<a href="register.php?s=$session[sessionhash]&action=signup&who=coppa&url=$url">this registration form</a>.</normalfont></p>

<p><normalfont>Although the administrators and moderators of $bbtitle will attempt to keep all objectionable messages off this forum,
it is impossible for us to review all messages. All messages express the views of the author,
and neither the owners of $bbtitle or Jelsoft Enterprises Limited (developers of vBulletin)
will be held responsible for the content of any message.</normalfont></p>

<p><normalfont>By clicking the Agree button, you warrant that you will not post any messages that are obscene,
vulgar, sexually-orientated, hateful, threatening, or otherwise violative of any laws.</normalfont></p>

<p><normalfont>The owners of $bbtitle have the right to remove, edit, move or close any thread for any reason.</normalfont></p>','Here is what the guests on your forum will see upon registration. They have to read this page and agree to the terms before registering.','textarea','1');
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I did not get any errors. Was there a query I missed?
Reply With Quote
  #21  
Old 04-15-2003, 04:25 PM
Areku Areku is offline
 
Join Date: Feb 2002
Posts: 540
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You probably missed the incorrect field number... Instead of 42 it might be 41, like in my case.
Reply With Quote
Reply

Thread Tools

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 03:20 PM.


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.04273 seconds
  • Memory Usage 2,296KB
  • 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
  • (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
  • (3)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