Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2010, 01:27 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.




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.
Reply With Quote
  #2  
Old 01-03-2010, 01:50 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 01-03-2010, 01:56 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheWindows7Site View Post
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 I managed to fix most of the problems with your advise

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.
Reply With Quote
  #4  
Old 01-03-2010, 02:20 PM
IR15H IR15H is offline
 
Join Date: Feb 2007
Location: England
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by davida500 View Post
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.
Reply With Quote
  #5  
Old 01-03-2010, 02:24 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-08-2010, 08:05 PM
davida500 davida500 is offline
 
Join Date: May 2008
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks.

David.
Reply With Quote
  #7  
Old 12-10-2010, 02:43 PM
Karm4 Karm4 is offline
 
Join Date: Jun 2008
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes where do you find it?
Reply With Quote
  #8  
Old 12-10-2010, 06:09 PM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Karm4 View Post
Yes where do you find it?

ADMIN CP > Styles & Templates > use search, enter postbit.css, and mark titles only
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 02:20 AM.


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.04083 seconds
  • Memory Usage 2,280KB
  • Queries Executed 11 (?)
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_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_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