vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Rules on registration page (https://vborg.vbsupport.ru/showthread.php?t=292682)

chefy 12-05-2012 04:14 PM

Rules on registration page
 
When you click the register link the first page you get are the forum rules (content provided by forum_rules_description phrase). If you want to replicate the contents of your own forum rules (usually a thread) to that registration page, you must copy the contents of your rules to a HTML editor and then format it to properly display them on that registration page because bbcodes don't work on phrases. And each time you change your forum rules you must also apply the changes on the forum_rules_description which is a headache.

A much better approach to solve this will be that instead of filling that text box with the contents of the forum_rules_description phrase you read and display the contents of your forum rules directly from showthread.php?t=X or showpost.php?p=X&postcount=Y

Is this easily doable?

Lynne 12-05-2012 06:14 PM

So, when you go to register and see the Forum Rules, you want them to somehow be taken from the thread instead of the phrase? You would need to write a query to get the post content, and then throw it through the function to parse the bbcode and then spit it out. Why not instead just have your thread point to the rules at misc.php?do=showrules ?

ForceHSS 12-05-2012 07:29 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=236069" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=236069</a>


All times are GMT. The time now is 10:10 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.01013 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete