vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 09-29-2006, 06:56 PM
Dimitrio Dimitrio is offline
Junior Member
 
Join Date: Aug 2006
Posts: 7
Exclamation Image path issues

When I leave the cmps_index.php in the root folder, let's say at /home/ the images don't show up, example: www.veguild.org/main.php not matter if I rename it to index.php, i always get the same error.

If I Leave it in the forums folder, everything is fine, example: http://www.veguild.org/forums/index.php. Anyway I would like to use the indexpage directly from the root, can anyone help me?
Reply With Quote
  #2  
Old 09-30-2006, 01:13 AM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
Default Re: Image path issues

You need to tell vBadvanced where your images are. It is looking in a folder called /images/foldername/imagename.gif when it should be looking for that image folder in the forum. When you move the cmps_index file to the root, which is what I did too, you have to give it more information about your images. I have found the best way to do that is to give it the full url. You can write our the full url (http://www.yoursite.com/forums/images/subfolder/picture.gif) or you can use the vBulletin options, $vboptions[bburl] to shorten the amount of code. It also will be to your advantage if for some reason you ever move your forum. The code would now be like so: $vboptions[bburl]/images/subfolder/picture.gif. I have found it pretty easy to search for the string "/images" and then add $vboptions[bburl] to the beginning of that address where necessary (you may find it's more than just images that need the full URL).

Jim
__________________
If my post was helpful to you, or made you or ,
please take the time to register at my forum and ask
a question you've always wanted to know about floors.
The Floor Pro Community
Reply With Quote
  #3  
Old 09-30-2006, 06:34 PM
Dimitrio Dimitrio is offline
Junior Member
 
Join Date: Aug 2006
Posts: 7
Default Re: Image path issues

Quote:
Originally Posted by eJM View Post
You need to tell vBadvanced where your images are. It is looking in a folder called /images/foldername/imagename.gif when it should be looking for that image folder in the forum. When you move the cmps_index file to the root, which is what I did too, you have to give it more information about your images. I have found the best way to do that is to give it the full url. You can write our the full url (http://www.yoursite.com/forums/images/subfolder/picture.gif) or you can use the vBulletin options, $vboptions[bburl] to shorten the amount of code. It also will be to your advantage if for some reason you ever move your forum. The code would now be like so: $vboptions[bburl]/images/subfolder/picture.gif. I have found it pretty easy to search for the string "/images" and then add $vboptions[bburl] to the beginning of that address where necessary (you may find it's more than just images that need the full URL).

Jim
Ok where I tell Vbadvanced to look for the images, I tried to update the the images path from the install and nothing.... sorry I am a noob with vBadvanced.

Or are you talking aboutchaning $forumpath='home/veguild/forums/' to $forumpath='http://www.veguild.org/forums/' ?

Last edited by Dimitrio; 09-30-2006 at 06:42 PM.
Reply With Quote
  #4  
Old 09-30-2006, 09:53 PM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
Default Re: Image path issues

Answered your PM.
__________________
If my post was helpful to you, or made you or ,
please take the time to register at my forum and ask
a question you've always wanted to know about floors.
The Floor Pro Community
Reply With Quote
  #5  
Old 09-30-2006, 10:28 PM
RobM RobM is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Default Re: Image path issues

Hi eJM,

I'm having the same issue, new install (been working on a phpNuke -> phpBB -> vBulletin migration all day).

I searched all the CMPS files for "/images" and only found one instance in vba_cmps_include_bottom.php. I made the edit but it doesn't seem to work. Any advice would be greatly appreciated!
Reply With Quote
  #6  
Old 09-30-2006, 11:26 PM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
Default Re: Image path issues

vBadvanced uses the same images as the forum. If you use a portal page (cmps_index.php or similar) that is located in the forum folder there is no need to be concerned about the images. However, I prefer to use my cmps_index.php page as my home page at the root of my website, which is higher up the chain than the forum ( http://www.thefloorpro.com/community is my own structure ). In that case, the images may not show, or show broken links on that page and any other page you make with vBa. That is why you should use the full URL for all your images. It's a lot of editing, but it only has to be done once. Some may even argue that for optimum search engine results, you should use full URLs throughout your site, but that's a bit too much for even me.

Edit these areas to show full URLs to your images:

Styles & Templates | Style Manager | All Style Options (complete all URLs)
User Ranks | User Rank Manager (edit all paths if they are to show anywhere on a vBadvanced page)
Post Icons | Post Icon Manager (edit all paths if they are to show in any thread/news module)
Smilies | Smilie Manager (edit all paths if they are used in vBa pages)

That should be all of them. Even if they are unnecessary, the only drawback to using full URLs in your templates is a very slightly larger file size for each page that loads. A full path should look like this:

http://www.yoursite.com/forum/images/finish/path/to/pics.jpg

Naturally, if you don't use WWW., then don't put it in the path.

I hope that helps,

Jim
__________________
If my post was helpful to you, or made you or ,
please take the time to register at my forum and ask
a question you've always wanted to know about floors.
The Floor Pro Community
Reply With Quote
  #7  
Old 09-30-2006, 11:39 PM
RobM RobM is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Default Re: Image path issues

Hi Jim,

Thanks for all that detail, this is quite helpful!
Reply With Quote
  #8  
Old 10-01-2006, 08:23 AM
Dimitrio Dimitrio is offline
Junior Member
 
Join Date: Aug 2006
Posts: 7
Default Re: Image path issues

Yeah, thank you, now it works partially, the gradients are not showing up. Anyone knows how can I make the gradients to show up?

Last edited by Dimitrio; 10-01-2006 at 08:33 AM.
Reply With Quote
  #9  
Old 10-01-2006, 03:01 PM
eJM's Avatar
eJM eJM is offline
Senior Citizen
 
Join Date: Jul 2006
Location: teh Ether
Posts: 321
Default Re: Image path issues

Quote:
Originally Posted by Dimitrio View Post
Yeah, thank you, now it works partially, the gradients are not showing up. Anyone knows how can I make the gradients to show up?
As I suggested before, you should look for your partial image paths here:

Styles & Templates | Style Manager | All Style Options

It is a very detailed section and you must look closely for the image paths. Gradients are usually background images, so look in the boxes for something like #B3DEB2 url(images/stylename/stylename_alt2.gif) repeat and change it to #B3DEB2 url(http://www.yoursite.com/forum/images/stylename/stylename_alt2.gif) repeat

Just be thorough and you will do fine.

Jim
__________________
If my post was helpful to you, or made you or ,
please take the time to register at my forum and ask
a question you've always wanted to know about floors.
The Floor Pro Community
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image path Crazylike Troubleshooting & Problems 11 07-20-2006 07:59 AM
Trying to reupload image path FrankieFive Troubleshooting / "How do I..." Questions 6 02-10-2005 11:57 AM
Image Path cpmike Troubleshooting & Problems 2 01-02-2005 01:30 PM
image path issues stephlb Troubleshooting / "How do I..." Questions 14 09-16-2004 11:13 AM


All times are GMT -4. The time now is 10:26 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.