Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Free Torrent Source (http://www.bvlist.com/forumdisplay.php?f=25)
-   -   Menu Text 2 Images (http://www.bvlist.com/showthread.php?t=800)

Subzero 8th August 2008 21:30

Menu Text 2 Images
 
Hello there i want to change my menu text to clicable images

Code:

/**
 * menu()
 *
 * @param string $selected
 * @return
 */
function menu($selected = "home")
{
    global $BASEURL;
    $script_name = $_SERVER["SCRIPT_FILENAME"];
    if (preg_match("/index/i", $script_name)) {
        $selected = "home";
    } elseif (preg_match("/browse/i", $script_name)) {
        $selected = "browse";
    } elseif (preg_match("/viewrequests/i", $script_name) or preg_match("/viewoffers/i",
    $script_name) or preg_match("/offcomment/i", $script_name) or preg_match("/reqcomment/i",
        $script_name)) {
        $selected = "requests";
    } elseif (preg_match("/upload/i", $script_name)) {
        $selected = "upload";
    } elseif (preg_match("/usercp/i", $script_name)) {
        $selected = "usercp";
    } elseif (preg_match("/forums/i", $script_name)) {
        $selected = "forums";
    } elseif (preg_match("/topten/i", $script_name)) {
        $selected = "topten";
    } elseif (preg_match("/rules/i", $script_name)) {
        $selected = "rules";
    } elseif (preg_match("/faq/i", $script_name)) {
        $selected = "faq";
    } elseif (preg_match("/links/i", $script_name)) {
        $selected = "links";
    } elseif (preg_match("/staff/i", $script_name)) {
        $selected = "staff";
    } else
        $selected = "";
    print ("
thanks

Dragan3591 8th October 2008 05:14

Make me images and I'll do it for you. I'm not the best friend with any of image editing programs. My buddy does that for me.

Subzero 8th October 2008 11:18

figged this one oit 2 lol


All times are GMT +2. The time now is 17:04.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.