|
trevix
|
 |
« on: October 13, 2007, 07:49:57 pm » |
|
Forum Url: http://trevixthemes.smfforfree3.comI 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
Posts: 91
|
 |
« 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
Posts: 230
High School Science.........
|
 |
« 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
|
 |
« 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
Posts: 230
High School Science.........
|
 |
« 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
|
 |
« 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
Posts: 230
High School Science.........
|
 |
« Reply #6 on: October 14, 2007, 05:06:56 am » |
|
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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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: <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
|
 |
« 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: <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
|
 |
« 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
|
 |
« Reply #13 on: October 16, 2007, 08:09:06 pm » |
|
|
|
|
|
|
Logged
|
SMC Code Index - The best Code Index for all your Needs! Includes a bunch of codes not on Support.[/cen
|
|
|
|
|
|