» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 70
0 members and 70 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on Download and Weblinks image change with theme within the FAQ/Fixes forums, part of the Nukemods category; This will enable your custom Download and Weblink graphics for your Matching themes to change with the theme selection. If ...


Go Back   Nukemods Forum » Nukemods » FAQ/Fixes

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


All times are GMT -5. The time now is 03:21 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.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