Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2012, 12:27 PM
StormBreaker's Avatar
StormBreaker StormBreaker is offline
 
Join Date: Sep 2008
Location: Egypt
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Please change this vB3 code to work in vB4 and how to use human_verify in newthread

Hi,

I want this code that works in vB3 to be changed to work in vB4.
Code:
<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.
Reply With Quote
  #2  
Old 08-26-2012, 01:39 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be this:

Code:
<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:

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.
Reply With Quote
  #3  
Old 08-26-2012, 05:48 PM
StormBreaker's Avatar
StormBreaker StormBreaker is offline
 
Join Date: Sep 2008
Location: Egypt
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks you, it worked with a lil changes to fit vB4 editor.
Code:
 <br /><legend> New thread in  <b>{vb:raw foruminfo.title}</b></legend><div  style="padding:3px"><br />&nbsp;&nbsp;<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.
Reply With Quote
  #4  
Old 08-26-2012, 10:59 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by StormBreaker View Post
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.


Quote:
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.
Reply With Quote
  #5  
Old 08-26-2012, 11:25 PM
StormBreaker's Avatar
StormBreaker StormBreaker is offline
 
Join Date: Sep 2008
Location: Egypt
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


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.03636 seconds
  • Memory Usage 2,197KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete