vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to change an image location? (https://vborg.vbsupport.ru/showthread.php?t=232029)

davida500 01-03-2010 01:27 PM

How to change an image location?
 
Hey guys, i have a quick question.

I have recently made a new forum on the domain www.new.e3-clan.net, i did this becuase i wanted to keep it a secret until it was completed.

Later i changed the location of the forum to www.e3-clan.net.

Everything seems to be working ok, i have changed all the css and image locations from www.new.e3-clan.net to www.e3-clan.net.

There are still a few problems i am having and i dont really know why, the image below shows the word "default" in a red circle, this should be an image. When i right click it and go to properties it says its try to get the image from: http://www.new.e3-clan.net/forums/im...cons/icon1.gif but the new. should not be there. anymore.

http://img694.imageshack.us/img694/652/35422554.png


The second problem i am having is that i have created a forum that is a link. Here is an example of what i have done with the link for the forum.

http://www.e3-clan.net/example

However the forum is trying to take people to the following:

http://www.new.e3-clan.net/example

So again its putting .new where is shouldn't be doing any more, i cannot find anything else to change, please give me some advise.

Thanks :)

David.

LifesGreatestGift 01-03-2010 01:50 PM

Whenever designing a style ALWAYS use relative locations for images :)

for example instead of using
<img src="http://www.mysite.com/images/styles/logos/logo1.png" />
use
<img src="./images/styles/logos/logo1.png" />

That way it will work on any domain and folder you put it in.

as for your second problem, links as well should be relative unless they go to an outside site, then you just put the regular link in :)

davida500 01-03-2010 01:56 PM

Quote:

Originally Posted by TheWindows7Site (Post 1945950)
Whenever designing a style ALWAYS use relative locations for images :)

for example instead of using
<img src="http://www.mysite.com/images/styles/logos/logo1.png" />
use
<img src="./images/styles/logos/logo1.png" />

That way it will work on any domain and folder you put it in.

as for your second problem, links as well should be relative unless they go to an outside site, then you just put the regular link in :)

Thanks :D I managed to fix most of the problems with your advise :D

The only thing that is still not fixed is the little default image, i have no idea where the code is or where i need to go to edit the location of that image :/

Any ideas :)

Thanks.

David.

IR15H 01-03-2010 02:20 PM

Quote:

Originally Posted by davida500 (Post 1945957)
The only thing that is still not fixed is the little default image, i have no idea where the code is or where i need to go to edit the location of that image :/

ADMIN CP > Post Icons > Post Icon Manager > View > Edit each image.

LifesGreatestGift 01-03-2010 02:24 PM

do a search in your templates for

"new.e3-clan.net"

You will find all the current issues, but as to the image, it is calling it from
http://www.new.e3-clan.net/forums/im...cons/icon1.gif

To edit that image open up postbit.css

And everything you need to edit is here or you can use the post icon manager (above post)

PHP Code:

.postbit .posttitle.icon {
    
padding-{vb:stylevar left}:0;
    
background-repeat:no-repeat;
    
background-position:{vb:stylevar paddingcenter;
}


.
postbit .posttitle.icon1  background-image:url({vb:stylevar imgdir_icons}/icon1.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon2  background-image:url({vb:stylevar imgdir_icons}/icon2.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon3  background-image:url({vb:stylevar imgdir_icons}/icon3.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon4  background-image:url({vb:stylevar imgdir_icons}/icon4.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon5  background-image:url({vb:stylevar imgdir_icons}/icon5.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon6  background-image:url({vb:stylevar imgdir_icons}/icon6.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon7  background-image:url({vb:stylevar imgdir_icons}/icon7.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon8  background-image:url({vb:stylevar imgdir_icons}/icon8.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon9  label background-image:url({vb:stylevar imgdir_icons}/icon9.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon10 background-image:url({vb:stylevar imgdir_icons}/icon10.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon11 background-image:url({vb:stylevar imgdir_icons}/icon11.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon12 background-image:url({vb:stylevar imgdir_icons}/icon12.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon13 background-image:url({vb:stylevar imgdir_icons}/icon13.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};}
.
postbit .posttitle.icon14 background-image:url({vb:stylevar imgdir_icons}/icon14.png); padding-{vb:stylevar left}:{vb:math {vb:stylevar padding} + 16px 4px};} 


Unless you manually set the post icon in template postbit_legacy and in that case you will have to go into it and fix it.

davida500 01-08-2010 08:05 PM

This may seem like a stupid question but where do i find the postbit.css ?

Thanks.

David.

Karm4 12-10-2010 02:43 PM

Yes where do you find it?

Frondy 12-10-2010 06:09 PM

Quote:

Originally Posted by Karm4 (Post 2131918)
Yes where do you find it?


ADMIN CP > Styles & Templates > use search, enter postbit.css, and mark titles only


All times are GMT. The time now is 03:13 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.01153 seconds
  • Memory Usage 1,782KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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