Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2016, 02:35 PM
AmandaM AmandaM is offline
 
Join Date: Aug 2016
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Image Name and Properties

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/uploa...isc/CaseIH.jpg

The two images I know how to change because of their name is this URL:
http://cnhitechnicianforum.net/uploa...OR_Version.jpg
http://cnhitechnicianforum.net/uploa.../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
Reply With Quote
  #2  
Old 11-10-2016, 05:28 PM
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Jul 2013
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 11-10-2016, 05:35 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 11-10-2016, 06:13 PM
AmandaM AmandaM is offline
 
Join Date: Aug 2016
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 11-10-2016, 06:41 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AmandaM View Post
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.
Reply With Quote
  #6  
Old 11-10-2016, 06:54 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
.page140 .site-logo{
content: url("/imagedir/combine.jpg")
}
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:31 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.15025 seconds
  • Memory Usage 2,217KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (6)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_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
  • 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