Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Programming Articles
How To Switch Post Icons in Each Styleset
Michael Morris's Avatar
Michael Morris
Join Date: Nov 2003
Posts: 774

Employee of Digital Media Graphix of Knoxville TN, currently developing a new framework / CMS

Knoxville TN
Show Printable Version Email this Page Subscription
Michael Morris Michael Morris is offline 07-12-2004, 10:00 PM

One of the oddest things about vbulletin 3.0.x is that it allows you to change the directory of all your icons except the post icons within each styleset. I and a few others have requested hacks around this but none have came

Well, I found a work around - the replacement variables editor.

Code:
Find: images/icons/
Replace with: images/icons/directory

the directory should contain the post icons for that particular style. Of course you can name the directory whatever you like.
Reply With Quote
  #2  
Old 07-13-2004, 10:53 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Little but usefull

You can do so with smilies as well.
Reply With Quote
  #3  
Old 07-13-2004, 11:07 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for sharing the little tip
Reply With Quote
  #4  
Old 08-25-2004, 10:21 PM
notorious notorious is offline
 
Join Date: Mar 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i was looking at this and it says you can change the smilies path but i can't seem to find it, i'm running 3.0.1. do i change the .xml or is it in the admin panel? as i looked and the smiles in the admin panel shows the default folder and i can't change it for any of the skins because i want my members to choose
Reply With Quote
  #5  
Old 08-26-2004, 06:29 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have to set up a replacement in the acp.

it won't change the smilielisting in the acp, but it will display different (just different looking of course, no different shortcuts) smilies in different styles
Reply With Quote
  #6  
Old 05-12-2005, 05:18 PM
HeloHi's Avatar
HeloHi HeloHi is offline
 
Join Date: Feb 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michael Morris
One of the oddest things about vbulletin 3.0.x is that it allows you to change the directory of all your icons except the post icons within each styleset. I and a few others have requested hacks around this but none have came

Well, I found a work around - the replacement variables editor.

Code:
Find: images/icons/
Replace with: images/icons/directory

the directory should contain the post icons for that particular style. Of course you can name the directory whatever you like.
I tried this but couldn't get it to work. I get broken links where the icons should be, and all default icons are trying to load anyway. My seperate forums are child forums though, do I need to create completely different styles rather than child styles for this to work?

Also, do I still need to load the icons into via the icon manager? When I do this it just adds the icons into the orginal choices.

I have also installed the Filter threads by post icon hack. Could this be messing something up? Two templates in that hack were altered, forumsdisplay and threadbit, and also one file; forumsdisplay.php

Any ideas?
Reply With Quote
Reply

Thread Tools

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 01:35 AM.


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.07187 seconds
  • Memory Usage 2,236KB
  • Queries Executed 19 (?)
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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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