Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 83
6 members and 77 guests
besnj8stforesz6, int4qqgensivedr, kriste4ablesrdq, sexwiylry6inger, submjmersibletw, verdw2sicherung
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > Nukemods > FAQ/Fixes

Reply
 
LinkBack Thread Tools Display Modes
Download and Weblinks image change with theme
Old
  (#1 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
Download and Weblinks image change with theme - 02-21-2003, 02:06 PM

This will enable your custom Download and Weblink graphics for your Matching themes to change with the theme selection. If an image for the Downloads or weblinks module is not found in the themes images folder, then those Modules will revert back to their original Images.

You must upload your themes matching web.gif and down-logo.gif to the theme/YourTheme/images folder

Ok If anyone wants to try it..here is the code changes.

For the Downloads module
Open modules/Downloads/index.php

find
Code:
    global $prefix, $dbi, $user_adddownload, $module_name;
change it to
Code:
    global $prefix, $dbi, $user_adddownload, $module_name, $ThemeSel;
then change this
Code:
    echo "
<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/down-logo.gif\" border=\"0\" alt=\"\"></a>

";
to this
Code:
    if (file_exists("themes/$ThemeSel/images/down-logo.gif")) {
    echo "
<center><a href=\"modules.php?name=$module_name\"><img src=\"themes/$ThemeSel/images/down-logo.gif\" border=\"0\" alt=\"Downloads\"></a>

";
    } else {
    echo "
<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/down-logo.gif\" border=\"0\" alt=\"Downloads\"></a>

";
    }
For the Weblinks Module
open modules/WebLinks/index.php

find and change this
Code:
    global $module_name;
to this
Code:
    global $module_name, $ThemeSel;
and then change this
Code:
    echo "
<center><a href=\"modules.php?name=Web_Links\"><img src=\"modules/$module_name/images/web.gif\" border=\"0\" alt=\"\"></a>

";
to this
Code:
    if (file_exists("themes/$ThemeSel/images/web.gif")) {
    echo "
<center><a href=\"modules.php?name=$module_name\"><img src=\"themes/$ThemeSel/images/web.gif\" border=\"0\" alt=\"Weblinks\"></a>

";
    } else {
    echo "
<center><a href=\"modules.php?name=$module_name\"><img src=\"modules/$module_name/images/web.gif\" border=\"0\" alt=\"Weblinks\"></a>

";
    }
mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Problems in download section RMRuler Site design 6 04-04-2006 11:43 PM
How Do I Change Formatting-Download & Web Links Director lkoelbel Site design 0 10-02-2005 12:03 PM
where do i get a random image download block? SureFire Purged Topics 3 08-10-2003 02:37 AM
Change rank images with theme change Dauthus Nuke 6.5 to 6.9 - Themes 4 07-13-2003 04:57 AM
How do I change topic image and make logo fit right? xvertirx Purged Topics 1 01-09-2003 05:02 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31