SMF For Free Support Forum
Signup For Free Forum
January 09, 2009, 06:28:31 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: [Request] Logo change per theme  (Read 581 times)
0 Members and 1 Guest are viewing this topic.
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« on: October 13, 2007, 07:49:57 pm »

Forum Url: http://trevixthemes.smfforfree3.com
I was wondering if someone cold make a code so when someone changes themes the logo image changes too.
Logged


Ad Machine - Free advertising and tips on how to promote your board.
...shut the hell up...
SMF For Free Member
*
Offline Offline

Posts: 91



View Profile
« Reply #1 on: October 14, 2007, 02:14:50 am »

dude i got a bad feeling that thats not possible. or maybe i'm wrong
Logged
Omikron 9861
SMF For Free Full Member
*
Offline Offline

Posts: 230


High School Science.........


View Profile
« Reply #2 on: October 14, 2007, 03:37:58 am »

It's possible. The logo image is the first one that appears on the page, right?
Logged


You have no idea what you are missing out on. The best place to discuss Eragon, Eldest and Book 3
 is just a single click away. So click!

Want a spoiler tag on your forum? Click here!
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #3 on: October 14, 2007, 04:06:50 am »

no its not, but all you have to do is like with moose's child board renamer, put a code like that in the style css and have the image be changed to a diff one
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Omikron 9861
SMF For Free Full Member
*
Offline Offline

Posts: 230


High School Science.........


View Profile
« Reply #4 on: October 14, 2007, 04:38:37 am »

You don't put the code in the style css, its put in the headers or footers.
Logged


You have no idea what you are missing out on. The best place to discuss Eragon, Eldest and Book 3
 is just a single click away. So click!

Want a spoiler tag on your forum? Click here!
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #5 on: October 14, 2007, 04:46:41 am »

1 point Omikron 0 points Trevix

you really do deserve that point lol

but the thing about it, the css changes depending on the theme, so i would figure if someone.... oh say moose.... could make a code for the css it would work alot smoother, but of course its gunna be for the header/footer
« Last Edit: October 14, 2007, 05:01:29 am by trevix » Logged


Ad Machine - Free advertising and tips on how to promote your board.
Omikron 9861
SMF For Free Full Member
*
Offline Offline

Posts: 230


High School Science.........


View Profile
« Reply #6 on: October 14, 2007, 05:06:56 am »

Code:
document.images[1].src="xxx.xxx";

That should change the logo image. Now we just need to know which theme the user is viewing.

BTW What do you mean when you say changing a theme? Are you using one of the skin chooser codes? If yes, which one? As far as I know, there is no other way for a regular user to change the theme.
Logged


You have no idea what you are missing out on. The best place to discuss Eragon, Eldest and Book 3
 is just a single click away. So click!

Want a spoiler tag on your forum? Click here!
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #7 on: October 14, 2007, 05:20:34 am »

well i thought i had a working one for my themes, i copied the code form admin to pick a theme.... but it turns out to not work 4 everyone lol, but im gunna make it work some how
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Agent Moose
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« Reply #8 on: October 14, 2007, 03:19:26 pm »

Trevix, this is going to be either, a easy code to make, or hard.  Nothing in between.

You can't put codes into the CSS area because when you view the page source, you notice that the CSS is an accual stylesheet Externally hosted file...and I have tried...

I will work on this code.  Might take awhile, might not.

Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #9 on: October 14, 2007, 03:24:10 pm »

2 points Omikron, -23 points Trevix
ok thx moose
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Agent Moose
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« Reply #10 on: October 14, 2007, 03:47:06 pm »

Here is how I am trying the code, but it doesn't work, I just want you to see how I am trying to do it.  Maybe you could help too:
Code:
<script>
var logo = []
logo[logo.length]=["CSS NAME","LOGO"]
logo[logo.length]=["green","http://i75.photobucket.com/albums/i288/deathwilldie/MHK/affiliate.png"]

for(o=0;o<logo.length;o++){
if($("link[href*='/"+logo[o][0]+".css?fin11']")){
document.write("<center><img src='"+logo[o][1]+"'/></center>")
};};
</script>
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen
R u n e s c a p e
SMF For Free Member
*
Offline Offline

Posts: 92



View Profile WWW
« Reply #11 on: October 14, 2007, 03:54:14 pm »

Here is how I am trying the code, but it doesn't work, I just want you to see how I am trying to do it.  Maybe you could help too:
Code:
<script>
var logo = []
logo[logo.length]=["CSS NAME","LOGO"]
logo[logo.length]=["green","http://i75.photobucket.com/albums/i288/deathwilldie/MHK/affiliate.png"]

for(o=0;o<logo.length;o++){
if($("link[href*='/"+logo[o][0]+".css?fin11']")){
document.write("<center><img src='"+logo[o][1]+"'/></center>")
};};
</script>
Forum Url- Www.moparisthebest3.smfforfree3.com
Thanks for the code! It helped alot!
Logged

Www.runescapeftw.smfforfree3.com
The forums are back!
I need community members and mods etc!
trevix
SMF For Free Sr. Member
*
Offline Offline

Posts: 303



View Profile WWW
« Reply #12 on: October 14, 2007, 04:12:21 pm »

hey also code you make another like that but i displays a random logo
Logged


Ad Machine - Free advertising and tips on how to promote your board.
Agent Moose
Moderator
*****
Offline Offline

Posts: 694


Do not PM me for Code Support or Request


View Profile
« Reply #13 on: October 16, 2007, 08:09:06 pm »

http://www.smfsupport.com/support/smf_for_free_codes/random_banner-t5850.0.html;
Logged



SMC Code Index - The best Code Index for all your Needs!  Includes a bunch of codes not on Support.[/cen


Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.318 seconds with 19 queries.