Author |
Message |
Bravo2zero
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/5225982743f4f16c54668.jpg)
Joined: Nov 28, 2005
Posts: 92
Location: UK
|
Posted:
Sat Jan 07, 2006 7:36 pm |
|
Hi can anyone tell me if it is possible to have a different logo.gif in nuke 7.6 everytime you visit the site or refresh the page etc,
i have seen this done with cpg dragonfly etc,
any help appreciated
B2Z |
_________________ dodging bullets ain't easy but it's a job! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
Sells PC To Pay For Divorce
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined:
Posts: 5661
|
Posted:
Sat Jan 07, 2006 8:32 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Jan 07, 2006 9:38 pm |
|
thanks for the reply, i have tried to have a go but i'm not that good at this,
ok i have removed the logo.gif line etc, and replaced with the script etc from your link you supplied,
now the orignal logo has gone but nothing has been replaced????
i think it may be to do with not knowing where to find the images? and the help file don't explain how to link the images to the folder where they are on the server etc,
can you advise me please what i'm doing wrong.
thanks inadvance
B2Z |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 5:51 am |
|
well you could have tried the sample there..
as far as it looks no paths are realy given..
and the image is in the folder where the script runs.
just try a few... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 7:21 am |
|
this may sound daft but i do have to add the script in the themes header not the html/header.php in the root?
just that our theme header is .html not .php ?
also can it go anywhere in the header or will it have to be on the line i removed for the logo.gif?
thanks in advance
B2Z |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 7:24 am |
|
yes it sure is recommended to place it where your logo was....
and put the code in your custom-header.php after the ?> tag. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 7:36 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 7:51 am |
|
no no no...i said to put the code in includes/custom_files/custom_header.php after the php closing tag.. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 7:54 am |
|
ok i don't have a custom_header.php in that location you have said just an index.php,
sorry to be real lame here but i'm still learning this php lark.
thanks B2Z |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:02 am |
|
ok listen...
go into your includes folder and if its not there create a folder called custom_files
next... in that folder put a file called custom_head.php
next....in that file put the following content....
<?php
if (stristr($_SERVER['SCRIPT_NAME'], "custom_head.php")) {
Header("Location: ../index.php");
die();
}
?>
put here your logo code.. understand? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:13 am |
|
ok lets see if i'm learning or getting worse www.nissan4x4ownersclub.co.uk/addons/custom_header.zip
i have the location custom files etc already as you said, now in there i copied a php file, edited it and removed all coding, then added your one, at the end othe tag>i added the script fom the site.
uploaded it and still nothing so guess i'm not getting the full picture, or was i supposed to have the coding in it as the original header.html ?
and i copied all three logos to the custom files folder
thanks for being patient
B2Z |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:29 am |
|
ok...seems ok...
now the ... printImage(); script part should be in the theme header as it is already?
Ok..now you gotta try to put the images at some places cause i dont know how from what path it will look for it... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:32 am |
|
function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}
just that part? do i add this anywhere if so in the theme header? also do i need to take out the line again for the logo in the theme header or will it overide it? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:34 am |
|
well i think its better you provide someone some login stuff to help you cause this is taking to much time.... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:44 am |
|
if you are to busy i fully understand but as i said i'm learning as i go along here, and everyone needs to learn and start somewhere,
it may seem very simple to some people but those learning need a bit more explainging to,
now the ... printImage(); script part should be in the theme header as it is already?
i don't understand you on this? the header.html i have in my theme is a original version now, except for the line of the logo has been removed, and has none of the new script in there, as i thought you said in needed to go only in the includes/custom files/custom_header.php ???
i have added the three new logo's to theme root, theme images, and also to includeds/custom files folder.
if you can't help please just say and i will try to find a way to get it sorted,
thanks in advance
B2Z |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 8:57 am |
|
again...
this script comes in 2 parts !
The first part is the big that goes in your custom_head.php (as you already did)
The second part...(as the tutorial explains on that website) is where you want the random logo to show !
The were talking about the java script lines with printImage(); in it...
That part takes the place where you had your logo.... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Bravo2zero
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 9:23 am |
|
sorted now, you have to add the logo1.gif/logo2.gif/logo3.gif to the main httpdocs root,
it is now working a treat, thanks a bunch for your help, i'm sorry it took so long but once the penny drops and clicks as to speak, all becomes clearer.
thanks again for your patience
B2Z |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
hitwalker
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 08, 2006 9:40 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|