PDA

View Full Version : Different post icons and smiles for each style. How?


Avensen
02-24-2007, 06:36 PM
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
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
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
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.