The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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> I'm not too much of a php expert... i guess the solution is something simple? ![]() |
#2
|
||||
|
||||
![]()
This is within the same template - the SHOWTHREAD template?
|
#3
|
|||
|
|||
![]()
no, originally its in the template "forumrules"
i want to move it to textfields in "showthread_quickreply" and "newreply" |
#4
|
||||
|
||||
![]()
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. |
#5
|
|||
|
|||
![]()
ok, thanks ill try that.
![]() |
#6
|
|||
|
|||
![]() Quote:
please let me how can i change the variable $imgcodeon value to off , as i need IMG code off in posting permissions. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|