vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Different post icons and smiles for each style. How? (https://vborg.vbsupport.ru/showthread.php?t=140358)

Avensen 02-24-2007 06:36 PM

Different post icons and smiles for each style. How?
 
I have 3 skins at my vBulletin 3.6.4 forum:

- default vBulletin skin
- customskin1
- customskin2

customskin1 and customskin2 have modified post icons and smiles, however, vBulletin always shows post icons and smiles from /images/icons/ and /images/smiles/ folders, which have default images.

How do I set vBulletin to show custom icons from /customskin1/icons/, /customskin2/icons/ and smiles from /customskin1/smiles/, /customskin2/smiles/ folders when user chooses a non-default skin?

Thanks in advance! :D

Princeton 02-24-2007 10:35 PM

not possible on a default vbulletin installation.. it may be possible with a plugin

Avensen 02-25-2007 10:04 AM

Quote:

Originally Posted by Princeton (Post 1190012)
not possible on a default vbulletin installation.. it may be possible with a plugin

I'd appreciate if someone suggests such a plugin.

fusiongoddess 02-25-2007 11:08 AM

Me too!!

Azhrialilu 02-25-2007 03:51 PM

Of course, this is possible - no plug ins or file mods required.

At the very bottom of your "all style options" page for each style (where you input the css values, etc) you'll see a box titled "Replacements Variables". Click "Add new replacement variable", select the style you want different images to show in. In the Search for Text box type in the original url, eg /images/icons and in the Replace with Text box type in the new url to the images, for example /newstyle/images/icons

You can do this with smilies too. Get stuck, give me a yell. Over on GFXStyles, we do this by default on all our styles.

One more thing, if you're going to do this for smilies, you must ensure that your replacement images are saved with the same file names as the defaults.

Avensen 02-25-2007 05:32 PM

Quote:

Originally Posted by Azhrialilu (Post 1190423)
Of course, this is possible - no plug ins or file mods required.

At the very bottom of your "all style options" page for each style (where you input the css values, etc) you'll see a box titled "Replacements Variables". Click "Add new replacement variable", select the style you want different images to show in. In the Search for Text box type in the original url, eg /images/icons and in the Replace with Text box type in the new url to the images, for example /newstyle/images/icons

You can do this with smilies too. Get stuck, give me a yell. Over on GFXStyles, we do this by default on all our styles.

One more thing, if you're going to do this for smilies, you must ensure that your replacement images are saved with the same file names as the defaults.

Thanks, Azhrialilu. It worked like a charm. :D

Azhrialilu 02-25-2007 05:52 PM

You're more than welcome ;)

lostgirl815 03-15-2007 03:59 AM

I tried this, and now style-specific icons are on styles other than the one I chose. I tried to change them back using the replacement variable on the style where I didn't want them - they're still there. I'm afraid to mess with it anymore. Does anybody have any idea why it would replace words in a different style? The target style was not a child style.

Azhrialilu 03-15-2007 07:17 AM

It shouldn't. Where did you make the changes?

odie3 03-27-2007 12:29 AM

man, I think I want to do this but that replacement thing scares me... I currently have vB theme and a Black/Gold theme and I would like to separate the icons at least [and perhaps the smilies too.

what if I mess up and want to change back? say i mess up?

Well, I tried it and it was easy to revert [delete] my change. Which is good cause it did not work...

lostgirl815 03-27-2007 12:51 AM

Quote:

Originally Posted by Azhrialilu (Post 1203949)
It shouldn't. Where did you make the changes?

Sorry - I didn't get a thread notification for some reason. I made the changes in the style I wanted to change, per instructions. (But it's okay - I'm not going to mess with this anymore; that whole replace-things part scares me.)

Azhrialilu 03-27-2007 06:17 AM

Okay... this thing works perfectly if done correctly :) Firstly, make sure you actually have a folder full of images in the place you're pointing to, secondly are you guys using vba or anything else that requires you to put the full url in to graphics?

lostgirl815 03-27-2007 06:32 AM

I'm not using VBA, whatever that is - my images are hosted by the same place as the forum.

I don't even really understand how I could point to the images in a different folder for one style, and have other styles change on me - styles that pointed to something else and weren't children of anything. I can only guess that when I replaced things, it replaced them in the other styles too for whatever reason.

Maybe because my whole styles section is a rat's nest of emancipated children and absent parents and whatnot. (It took me a really long time to figure out how to create a style. There's a lot of debris.)

But I do thank you for trying to help. :)

Azhrialilu 03-27-2007 07:09 AM

vba = vbadvanced cms :)

If you'd like me to take a look at it for you, I'd be happy to.

lostgirl815 03-27-2007 07:51 AM

Really? That would be great!

Azhrialilu 03-27-2007 08:13 AM

Sure :) pm me with details or you can catch me on various IM packages :D

lostgirl815 03-27-2007 08:17 AM

Great, thanks a million! I've copied down your contact info if you want to delete it. :)

Azhrialilu 03-27-2007 08:22 AM

Alrighty :)

thesportszone 04-05-2007 02:34 AM

I have tried doing what AZhrialilu has suggested and it seems to have worked to a point. The problem I am having is that my site is looking for my other custom "post icons" in the new folder? Its showing red x's . Frustrating.


All times are GMT. The time now is 10:29 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.01173 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete