vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   moving Forum Rules - little problem :) (https://vborg.vbsupport.ru/showthread.php?t=201358)

kurti 01-10-2009 09:33 PM

moving Forum Rules - little problem :)
 
hi,
i've tried moving
"vB code is On, Smilies are On, [IMG] code is On, HTML code is Off"

from the default position in the Forum Rules box
to under the Message text field ...just like it has been done in this forum.

I moved the div's that include those phrases:
Code:

<div><phrase 1="misc.php?$session[sessionurl]do=bbcode" 2="$bbcodeon">$vbphrase[bb_code_is_x]</phrase></div>
<div><phrase 1="misc.php?$session[sessionurl]do=showsmilies" 2="$smilieson">$vbphrase[smilies_are_x]</phrase></div>
<div><phrase 1="misc.php?$session[sessionurl]do=bbcode#imgcode" 2="$imgcodeon">$vbphrase[img_code_is_x]</phrase></div>
<div><phrase 1="$htmlcodeon">$vbphrase[html_code_is_x]</phrase></div>

but now it doesnt show the On's and Off's...

I'm not too much of a php expert...
i guess the solution is something simple? :o

Lynne 01-10-2009 09:41 PM

This is within the same template - the SHOWTHREAD template?

kurti 01-10-2009 09:58 PM

no, originally its in the template "forumrules"
i want to move it to textfields in "showthread_quickreply" and "newreply"

Lynne 01-10-2009 10:11 PM

Ah... I'd guess that the variables aren't available yet in that template.

The variables ($bbcodeon, $imgcodeon, etc.) are defined in the function construct_forum_rules in functions_bigthree.php. You can probably write a plugin using a hook location just prior to the showthread_quickreply and newreply templates being evaled that calls that function.

kurti 01-11-2009 03:00 PM

ok, thanks ill try that. :)

neetusn 03-19-2010 09:55 AM

Quote:

Originally Posted by Lynne (Post 1707850)
Ah... I'd guess that the variables aren't available yet in that template.

The variables ($bbcodeon, $imgcodeon, etc.) are defined in the function construct_forum_rules in functions_bigthree.php. You can probably write a plugin using a hook location just prior to the showthread_quickreply and newreply templates being evaled that calls that function.



please let me how can i change the variable $imgcodeon value to off , as i need IMG code off in posting permissions.


All times are GMT. The time now is 12:45 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.08934 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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