Change logo when refresh       Back to File List | Edit This File

Change logo when refresh - Click to Download
Submitted by Mayestic on 08.30.2007 (606 Downloads)
Thx for CBeTHaX

File rating: 3.00 out of 5.00 (2 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by CBeTHaX on 08.30.2007
i can think of a random logo
open lib.php and find:

=================

   if ($rightnav == true) { $rightnav = gettemplate("rightnav"); } else { $rightnav = "";;}

==================

Before that add:

==================

$ran = rand(1,2);
$userrow["dklogo"] = "images/logo".$ran.".gif";

==================

then save and close

open templates/primary.php and find:

==================

<img src="images/logo.gif" alt="{{dkgamename}}" title="{{dkgamename}}" border="0" />

==================

And replace it with

==================


<img src="{{dklogo}}" alt="{{dkgamename}}" title="{{dkgamename}}" border="0" />
Posted by CBeTHaX on 08.30.2007
and in folder "images" name your logo images: logo1.gif and logo2.gif
as you can see you can set to more random logos
Posted by Mayestic on 08.30.2007
Very thx xD
Posted by Mayestic on 08.30.2007
I update the file and now there is your mod thx CBeTHaX ;)
Posted by CBeTHaX on 08.30.2007
np :)
Posted by masterofollies on 08.30.2007
This is quite useful. If you change rand(1,2) to rand(1,5) you can have 5 images, for those newbies out there. When I make more banners, I will give this mod a try.
Posted by element on 09.01.2007
Nice ;)
Posted by masterofollies on 09.02.2007
I tried putting it just on the login page and it didn't work.
Posted by Mayestic on 09.03.2007
This mod didnt work :(
Posted by CBeTHaX on 09.04.2007
hmm, i tested it and it works in my site
Posted by Mayestic on 09.05.2007
In my site dont show any image but write only game name
Posted by CBeTHaX on 09.06.2007
Try this way:

open lib.php and find:
============

   $finalarray = array(

============

and before that add:

============

$userrow["dklogo"] = "images/logo".$ran.".gif";

============

then save and close lib.php


now it have to work properly
Posted by CBeTHaX on 09.06.2007
edit:

add

========
$ran = rand(1,2);
========

before

========

$userrow["dklogo"] = "images/logo".$ran.".gif";

=========
Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:


Forums Password:


Your Comment:




Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.