Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-03-2012, 02:16 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats because you've posted as though asking for help with vb3 and that postbit is from vb4!
Here's the line you want
HTML Code:
<dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd>
and wrap it like this
HTML Code:
<vb:if condition="$post['userid'] == '6'"><dt>{vb:rawphrase posts}</dt><dd>??</dd><vb:else /><dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd><vb:/if>
Reply With Quote
2 благодарности(ей) от:
dlewisr, Max Taxable
  #12  
Old 06-03-2012, 03:26 PM
dlewisr dlewisr is offline
 
Join Date: Mar 2011
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops I didn't notice that bloomer! I just found this in my search and didn't realise it was a different version. Thanks for that Simon.

Back to business now. I don't know what you mean by wrap. I've tried changing

<dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd>

to

<vb:if condition="$post['userid'] == '6'"><dt>{vb:rawphrase posts}</dt><dd>??</dd><vb:else /><dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd><vb:/if>

but obviously that's wrong as it doesn't work. I don't do many edit templates.... which may be a good thing. Could you please tell me in a little more detail? Cheers for your help.

(I envy you coders!)
Reply With Quote
  #13  
Old 06-03-2012, 03:37 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In what respect didn't it work, what were ther results?

--------------- Added [DATE]1338741664[/DATE] at [TIME]1338741664[/TIME] ---------------

Errrrm, sorry my bad, it's a typo with the </vb:if>, it should look like this
HTML Code:
<vb:if condition="$post['userid'] == '6'"><dt>{vb:rawphrase posts}</dt><dd>??</dd><vb:else /><dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd></vb:if>
 
Reply With Quote
Благодарность от:
dlewisr
  #14  
Old 06-03-2012, 04:17 PM
dlewisr dlewisr is offline
 
Join Date: Mar 2011
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It said there was an error with no closing tag with the original changes.

I've changed that now to the code you posted above and it's worked............. but it now says 'Posts ??' and I wanted that line out all together no posts or ??. Is that possible.

Not a major problem if that isn't possible and thanks for your help, I've been trying to do this for months now!
Reply With Quote
  #15  
Old 06-03-2012, 04:38 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, just remove the ?? from the code, you can put whatever text you want there
Reply With Quote
  #16  
Old 06-03-2012, 04:42 PM
dlewisr dlewisr is offline
 
Join Date: Mar 2011
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How dumb am I? (rolls eyes). That solution is so obvious haha.

Thank you very much.

I've just removed them, perfect.
Reply With Quote
  #17  
Old 06-05-2012, 01:45 PM
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got some useful information, thanks
Reply With Quote
Благодарность от:
dlewisr
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 08:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04662 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (4)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete