PDA

View Full Version : moving Forum Rules - little problem :)


kurti
01-10-2009, 09:33 PM
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:
<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
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.