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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2015, 11:54 PM
CarpCharacin's Avatar
CarpCharacin CarpCharacin is offline
 
Join Date: Dec 2014
Location: Utah
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default username strikethrough

I made it so it would strike through banned users usernames. How do i do this with their user title also?
Reply With Quote
  #2  
Old 01-07-2015, 12:07 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your postbit or postbit_legacy template find:

Code:
                {vb:raw post.usertitle}
And change it to this.

Code:
                <vb:if condition="is_member_of($post, X)">
                    <span style="text-decoration: line-through;">{vb:raw post.usertitle}</span></vb:if>
                <vb:else />
                    {vb:raw post.usertitle}
                </vb:if>
Where X is your banned usergroup id number.
Reply With Quote
Благодарность от:
puertoblack2003
  #3  
Old 01-07-2015, 12:37 AM
CarpCharacin's Avatar
CarpCharacin CarpCharacin is offline
 
Join Date: Dec 2014
Location: Utah
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where do i find the postbit and postbit legacy templates?
Reply With Quote
  #4  
Old 01-07-2015, 12:39 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ACP --> Styles & Templates --> Style Manager
Reply With Quote
  #5  
Old 01-07-2015, 12:41 AM
CarpCharacin's Avatar
CarpCharacin CarpCharacin is offline
 
Join Date: Dec 2014
Location: Utah
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok i went into the style manager. How do i find the templates? Do i have to edit them on each individual style?

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

should i use find and replace in templates?
Reply With Quote
  #6  
Old 01-07-2015, 12:44 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes each style. Unless of course you have it set up as parent and child styles, then you only have to change the parent.

In the dropdown next to each style, open it and select Edit Templates. From there scroll through the list until you find Postbit Templates. Click on that and then find either postbit, or postbit_legacy ( which ever one you are using ), then double click on that.
Reply With Quote
  #7  
Old 01-07-2015, 12:48 AM
CarpCharacin's Avatar
CarpCharacin CarpCharacin is offline
 
Join Date: Dec 2014
Location: Utah
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i clicked on it, how do i find the postbit and postbit_legacy templates?

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

ok i found it, now how do i edit it?

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

UPDATE: i figured it out
Reply With Quote
  #8  
Old 01-07-2015, 12:50 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find what I told you to, and change it to what I said to change it to, then click on save.
Reply With Quote
  #9  
Old 01-07-2015, 12:53 AM
CarpCharacin's Avatar
CarpCharacin CarpCharacin is offline
 
Join Date: Dec 2014
Location: Utah
Posts: 292
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did that, and it still does not show up striked through.
Reply With Quote
  #10  
Old 01-07-2015, 12:54 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pm me a full admin account, and I can look into it for you.
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 10:14 AM.


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.08751 seconds
  • Memory Usage 2,257KB
  • 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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete