PDA

View Full Version : Image Name and Properties


AmandaM
11-10-2016, 02:35 PM
Hello Vbulletin Community,

I am running an old version of VBulletin (it's bad, there are security risks, I am aware). I have the forum backed up daily with GoDaddy at the moment.

I am running 5.1.7 and I am still fairly new to this. Inherited this forum from a co-worker who has moved on. We are in agriculture (no where near software developing) to give you an idea of my understanding of this.

My question is, I have a standard image that appears on the top of all of my pages except for 2. I have FileZilla and I do use that. The two images that I can change have different file names and I have figured out how to change the image by saving it as the same file name.

For the remaining pages, I want to change the image depending on what page you are on. For example, one of my threads is Combines. I want a picture of a combine at the top of that page. Or another thread is Headers and I want a picture of a Header. What my problem is, is that the image that appears on all of these pages is named the same file name.

How do I associate what page the image shows up on through FileZilla? I right clicked the picture (the one that shows up on all pages besides the 2) and went under properties. They all have this as their URL: http://cnhitechnicianforum.net/upload/images/misc/CaseIH.jpg

The two images I know how to change because of their name is this URL:
http://cnhitechnicianforum.net/upload/images/misc/CNHI_Positive_COLOR_Version.jpg
http://cnhitechnicianforum.net/upload/images/misc/NHAg.jpg

What am I missing?! Were these pages all created off of each other so putting a different image is impossible?

Any basic help that anyone can help direct me in the right direction is greatly appreciated!

Thank you,

Amanda

noypiscripter
11-10-2016, 05:28 PM
The challenge is each thread posted by users has a different topic. How would the system know a thread is about Headers or Combines? The system has to dynamically know what the thread is about and link that specific topic to a particular image to show.

In Omnibus
11-10-2016, 05:35 PM
There is a way to workaround this issue but it's a bit of a hassle.

You can duplicate the theme once for each different image, give each a unique name which corresponds to the image, and then set each as the default theme for each page.

You have to manually set the image path for each logo in the stylevars.

I did this with all 120 major league sports teams once so I know it's possible but it takes a good deal of patience.

AmandaM
11-10-2016, 06:13 PM
Thank you so much for replying and for your help!

noypiscripter, I have the threads already set up and then forum users create replies. I can keep the image what it is on those pages, I just want to change the main image when they get into a topic. Then the user creates a sub-topic of something to do with a Combine.

ProSportsForum, I see what you are getting at and it is making more sense. I feel terrible for asking, but how do I manually set the image path and I am assuming stylevars is my Style Manager. I did find that when I go into my style variable editor and I scroll down to ImagePaths and I click on titleimage, that is where one of my editable images is located.

My choices under ImagePath are:
favicon
imgdir_attach
imgdir_button
imgdir_misc
imgdir_statusicon
titleimage

I don't know if it helps, but in my filezilla all of my photos to the forum are stored in a folder named misc.

In Omnibus
11-10-2016, 06:41 PM
Thank you so much for replying and for your help!

noypiscripter, I have the threads already set up and then forum users create replies. I can keep the image what it is on those pages, I just want to change the main image when they get into a topic. Then the user creates a sub-topic of something to do with a Combine.

ProSportsForum, I see what you are getting at and it is making more sense. I feel terrible for asking, but how do I manually set the image path and I am assuming stylevars is my Style Manager. I did find that when I go into my style variable editor and I scroll down to ImagePaths and I click on titleimage, that is where one of my editable images is located.

My choices under ImagePath are:
favicon
imgdir_attach
imgdir_button
imgdir_misc
imgdir_statusicon
titleimage

I don't know if it helps, but in my filezilla all of my photos to the forum are stored in a folder named misc.

The default image is located under the titleimage stylevar and the default path is images/misc/vbulletin5_logo.png

In order to accomplish what you want each image would have to have a unique name and you would have to change the path for each to match the corresponding image, i.e. images/misc/harvesters.png, images/misc/combines.png, images/misc/headers.png, etc.

All of the images can be placed (or remain) in the misc folder for ease of setting the paths.

The hassle is in duplicating the theme for each unique header and then setting the default theme for each page.

If you're confused (and I'd be shocked if you weren't) I'd be happy to set them up for you.

PM me if you need help or run into problems.

Otherwise, I'll assume you understood me or figured it out.

Replicant
11-10-2016, 06:54 PM
Just an idea here. All the threads in a forum are opened with the same page id and is different on every forum (If I remember correctly). Set the default site logo to core/clear.gif (1px x 1px) or other small lightweight logo, then reset the site logo per page using CSS with something like

.page140 .site-logo{
content: url("/imagedir/combine.jpg")
}