View Full Version : Please change this vB3 code to work in vB4 and how to use human_verify in newthread
StormBreaker
08-26-2012, 12:27 PM
Hi,
I want this code that works in vB3 to be changed to work in vB4.
<tr> <td class="smallfont" colspan="3"><fieldset class="fieldset" style="width:630px;"><legend> new thread in <strong>$foruminfo[title]</strong></legend><div style="padding:3px"><strong>Description</strong>: $foruminfo[description].<br /><br /></td> </tr>
Also how can I active human verify in new thread.
Thanks.
It would be this:
<tr> <td class="smallfont" colspan="3"><fieldset class="fieldset" style="width:630px;"><legend> new thread in <strong>{vb:raw foruminfo.title}</strong></legend><div style="padding:3px"><strong>Description</strong>: {vb:raw foruminfo.description}.<br /><br /></td> </tr>
You would need a mod to enable HV just for a new thread. You could try this: create a plugin using hook newthread_start and this code:
$vbulletin->options['hvcheck'] &= $vbulletin->bf_misc_hvcheck['post'];
but I haven't tried it at all. (you would need to enable Human Verification in the Human Verification Manager, if it isn't already. You can select which actions you want verification for in the Human Verification Options (in the option, not the manager).
Edit: you might also search for an existing mod - I didn't do that.
StormBreaker
08-26-2012, 05:48 PM
Thanks you, it worked with a lil changes to fit vB4 editor.
<br /><legend> New thread in <b>{vb:raw foruminfo.title}</b></legend><div style="padding:3px"><br /> <b>Description</b>: {vb:raw foruminfo.description}.<br /> <br />
If I want to show forums Sub-Forums if there, what <vb:if> code should I use?
Regarding HV, if theres a mod I will try finding it or maybe ignore it if it gonna edit much in forum code and template for easy update.
Edit: And what about this code "{vb:raw human_verify}" in newthread. Does it has anything to do with HV in new thread.
If I want to show forums Sub-Forums if there, what <vb:if> code should I use?
I'm not sure what you're asking. If you want to display sub forums you probably need to use a plugin to build a string with the html you want to display.
Edit: And what about this code "{vb:raw human_verify}" in newthread. Does it has anything to do with HV in new thread.
Yes, I think that's the part that displays the verification image and text box.
StormBreaker
08-26-2012, 11:25 PM
I got HV working, just needed to active it in Usergroups. No template edit needed.
I`m sure there is a code that shows sub-forums without mod just like "{vb:raw foruminfo.title}" to show forum title. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.