Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
ominae
Regular
Regular



Joined: Sep 16, 2008
Posts: 62

PostPosted: Sun Jan 11, 2009 10:41 am Reply with quote

Hey guys

firtly thanx for all the prior help i have been given it has been an imence help dispite it seemin trival problems to most Smile

atm i am tryin to finish up the last few pices to my wow guild site Smile and i am finding these last few bits too much for my meegar know how Smile

problem 1.
i just installed a raid planner to my web host to organize my guilds runs no i know it is not poss to have this working as a module unfortunatly no one has done a recent port for this Smile but what i was wondering is if some one could tell me how to change the header link for the Weblinks to my Raid planner i jus carnt seem to find the right parts to edit Smile

Problem 2.
This one is not big thing Smile the should box is appiring all white an you carnt see the txt or nothing iff there is a sujestion that is kewl iff not that is fine to Smile

Many thanx for raven nuke and all the support Smile

Ja Ne

_________________
Click the WWW button for the guild site link Smile 
View user's profile Send private message Visit poster's website
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Sun Jan 11, 2009 11:19 am Reply with quote

1) I think what you are looking for will be in your theme files. Most themes have a theme.php file, so do a search in there and hopefully you will find it. Is it one of the standard RN themes?

2) What do you mean by the "should box"? Do you mean the shout box? If it is, is this the one that came with RN? Try turning on error reporting in the config.php file and see if you get any messages.
 
View user's profile Send private message
ominae







PostPosted: Sun Jan 11, 2009 3:45 pm Reply with quote

the Original template " gs-template057 " released by Stafis of http://www.psd-resources.de
Conversion to phpnuke 8.0 by Mangee as theme MG-gs057


that is thwe one i am using atm Smile not for raven an it shows on the forums but i like it an the buggs i can live with Razz

the code in the Theme.PHP file reads as follows is this where i edit

Code:
<?php


/*=======================================================================
Original template " gs-template057 " released by Stafis of http://www.psd-resources.de
Conversion to phpnuke 8.0 by Mangee as theme MG-gs057
========================================================================*/
global $theme_name;
$ThemeSel = get_theme();
$theme_name =$ThemeSel;
/************************************************************/
/* Theme Colors Definition                                  */
/************************************************************/

$bgcolor1 = "#373737";
$bgcolor2 = "#373737";
$bgcolor3 = "#373737";
$bgcolor4 = "#373737";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";

/************************************************************/
/* OpenTable Functions                                      */
/************************************************************/
function OpenTable() {
global $theme_name;
echo " <br />\n";
echo "   <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "   <tr>\n";
echo "   <td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"themes/$theme_name/images/t-bkg.jpg\">\n";
echo "    <tr>\n";
echo "     <td><img src=\"themes/$theme_name/images/ttl.gif\" width=\"100\" height=\"83\" alt=\"\"></td>\n";
echo "     <td background=\"themes/$theme_name/images/tt.gif\" width=\"100%\" height=\"83\"></td>\n";
echo "     <td><img src=\"themes/$theme_name/images/ttr.gif\" width=\"100\" height=\"83\" alt=\"\"></td>\n";
echo "    </tr>\n";
echo "   </table>\n";
echo "   <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"themes/$theme_name/images/t-bkg.jpg\">\n";
echo "    <tr>\n";
echo "     <td background=\"themes/$theme_name/images/tl.gif\" width=\"15\" height=\"100%\"></td>\n";
echo "     <td background=\"themes/$theme_name/images/spacer.gif\">\n";
}

function CloseTable() {
global $theme_name;
echo "     </td>\n";
echo "     <td background=\"themes/$theme_name/images/tr.gif\" width=\"15\" height=\"100%\"></td>\n";
echo "    </tr>\n";
echo "   </table>\n";
echo "   <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"themes/$theme_name/images/t-bkg.jpg\">\n";
echo "    <tr>\n";
echo "     <td><img src=\"themes/$theme_name/images/tbl-1.gif\" width=\"100\" height=\"90\" alt=\"\"></td>\n";
echo "     <td background=\"themes/$theme_name/images/tb-1.gif\" width=\"100%\" height=\"90\"></td>\n";
echo "     <td><img src=\"themes/$theme_name/images/tbr-1.gif\" width=\"100\" height=\"90\" alt=\"\"></td>\n";
echo "    </tr>\n";
echo "   </table>\n";
echo "   <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "    <tr>\n";
echo "     <td><img src=\"themes/$theme_name/images/tbl-2.gif\" width=\"100\" height=\"30\" alt=\"\"></td>\n";
echo "     <td background=\"themes/$theme_name/images/tb-2.gif\" width=\"100%\" height=\"30\"></td>\n";
echo "     <td><img src=\"themes/$theme_name/images/tbr-2.gif\" width=\"100\" height=\"30\" alt=\"\"></td>\n";
echo "    </tr>\n";
echo "   </table></td>\n";
echo "    </tr>\n";
echo "   </table><br />\n";
}
function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=infort>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* FormatStory                                              */
/************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if (!empty($notes)) {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
   if(!empty($informant)) {
       $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
    }
}
/************************************************************/
/* Function themeheader()                                   */
/************************************************************/

function themeheader() {
    global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous, $ip, $theuser, $flash, $name, $theme_name;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $theuser = "<font class=\"content\">Welcome Guest</font>";
    } else {
   $theuser = "&nbsp;&nbsp;Welcome $username!";
    }
$ip = $_SERVER["REMOTE_ADDR"] ;
include("themes/$theme_name/theme_info.php");

    $public_msg = public_message();
    echo "$public_msg";
//CHOICE HEADER
$choice = $flashlogo;
if ($choice == "yes"){$flash = "1"; }
if ($choice == "no"){$flash = "0"; }
//HEADER MARQUEE
$marquee1 = $hms1;
$marquee1 = " <A name= \"scrollingCodemarquee\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"left\" value style=\"color: #000000\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$hms1</marquee>\n";


 echo "<body>";
 
if ($flash == 1) {
   include("themes/$theme_name/header.php");
   } else {
   include("themes/$theme_name/noflash.php");
   }
 
    echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n";
    echo "<tr valign=\"top\">\n";
    echo "<td width=\"5\" valign=\"top\" background=\"themes/$theme_name/images/spacer.gif\"><img src=\"themes/$theme_name/images/spacer.gif\" width=\"5\" height=\"1\" border=\"0\"></td>\n";
    echo "<td width=\"160\" valign=\"top\">\n";
      global $swapleftright;
      $swapleftright = "1";
   if($name!=Forums AND $name!=Private_Messages AND $name!=Members_List AND $name!=coppermine)
      {
    blocks(left);
     echo "    </td>\n";
     echo " <td style=\"width: 5px;\" valign =\"top\"><img src=\"themes/$theme_name/images/spacer.gif\" alt=\"\" width=\"5\" height=\"1\" border=\"0\" /></td>\n";
     echo " <td width=\"100%\">\n";
    } else {

     echo "    </td>\n";
     echo " <td style=\"width: 1px;\" valign =\"top\"><img src=\"themes/$theme_name/images/spacer.gif\" alt=\"\" width=\"1\" height=\"1\" border=\"0\" /></td>\n";
     echo " <td width=\"100%\">\n";
}
      $swapleftright = "0";


}

/************************************************************/
/* Function themefooter()                                   */
/************************************************************/

function themefooter() {
    global $index, $user, $cookie, $banners, $prefix, $db, $admin, $adminmail, $nukeurl, $total_time, $start_time, $ip, $footad, $theme_name;

//FOOTER MARQUEE
$marquee2 = $hms2;
$marquee2 = " <A name= \"scrollingCodemarquee\"></A><MARQUEE behavior= \"scroll\" align= \"center\" direction= \"left\" value style=\"color: #000000\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$hms1</marquee>\n";

//DOWNLOADS
$maxshow = 10;        // Number of downloads to display in the block.
$a = 1;
$sql = "SELECT lid, title, hits FROM ".$prefix."_downloads_downloads ORDER BY hits DESC LIMIT 0,$maxshow";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$title2 = ereg_replace("_", " ", $row[title]);
$show2 .= "&nbsp;<font color=\"#edac22\">$a: </font><a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\"></a>&nbsp;&nbsp;<a href=\"modules.php?name=Downloads&amp;d_op=viewdownloaddetails&amp;lid=$row[lid]&amp;title=$row[title]\">$title2</a><b><br>&nbsp;$row[hits]</b> times<br>";
$showdls = " <A name= \"scrollingCodedownloads\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" height=\"250\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$show2";
$a++;
}

//WEBLINKS
$maxshow = 10;   // Number of links to display in the block.
$a = 1;
$sql = "select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow";
$result = $db->sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow");
while(list($lid, $title, $hits) = $db->sql_fetchrow($result)) {
$title2 = ereg_replace("_", " ", "$title");
$show .= "&nbsp;<font color=\"#edac22\">$a: </font><a href=\"modules.php?name=Web_Links&amp;l_op=viewlinkdetails&amp;lid=$lid&amp;ttitle=$title\">$title2</a><b><br>&nbsp;$hits</b> times<br>";
$showlinks = " <A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" height=\"250\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
$a++;
}
    if (defined('INDEX_FILE')) {
    echo "    </td>\n";
    echo "    <td style=\"width: 5px;\" valign=\"top\"><img src=\"themes/$theme_name/images/spacer.gif\" alt=\"\" width=\"5\" height=\"1\" /></td>\n";
    echo "    <td style=\"width: 160px;\" valign=\"top\">\n";
        blocks('right');
    echo "    </td>\n";
    echo "    <td width=\"5\" valign=\"top\" background=\"themes/$theme_name/images/spacer.gif\"><img src=\"themes/$theme_name/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>\n";
    echo "    </tr>\n";
    echo "    </table>\n";
    }else{
   echo "    </td>\n";
    echo "    <td width=\"5\" valign=\"top\" background=\"themes/$theme_name/images/spacer.gif\"><img src=\"themes/$theme_name/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>\n";
    echo "    </tr>\n";
    echo "    </table>\n";
    }

 include("themes/$theme_name/footer.php");

}

/************************************************************/
/* Function themeindex()                                    */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath, $theme_name;
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
    }
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
    $morelink = substr($morelink, strlen($datetime) + 2);
    $tmpl_file = "themes/$theme_name/story_home.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themearticle()                                  */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath, $theme_name;
    if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
   $t_image = "themes/$ThemeSel/images/topics/$topicimage";
    } else {
   $t_image = "$tipath$topicimage";
    }
    $posted = ""._POSTEDON." $datetime "._BY." ";
    $posted .= get_author($aid);
    if ($notes != "") {
        $notes = "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        $notes = "";
    }
    if ("$aid" == "$informant") {
        $content = "$thetext$notes\n";
    } else {
        if($informant != "") {
            $content = "<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
        } else {
            $content = "$anonymous ";
        }
        $content .= ""._WRITES." \"$thetext\" $notes\n";
    }
    $tmpl_file = "themes/$theme_name/story_page.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}

/************************************************************/
/* Function themesidebox()                                  */
/************************************************************/

function themesidebox($title, $content) {
   global $swapleftright, $theme_name;

   if ($swapleftright=="0") {
      $tmpl_file = "themes/$theme_name/blocksR.html";
   } else {
      $tmpl_file = "themes/$theme_name/blocksL.html";
   }
   $thefile = implode("", file($tmpl_file));
   $thefile = addslashes($thefile);
   $thefile = "\$r_file=\"".$thefile."\";";
   eval($thefile);
   print $r_file;
}

?>
 
jakec







PostPosted: Sun Jan 11, 2009 4:04 pm Reply with quote

Looks like it might be in header.php.
 
ominae







PostPosted: Sun Jan 11, 2009 4:11 pm Reply with quote

Okay thanx for the help guys i found the file it was the
theme_info.php

all works good now Razz
 
jakec







PostPosted: Sun Jan 11, 2009 4:14 pm Reply with quote

Cool, we got there in the end. Very Happy
 
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Jan 11, 2009 4:15 pm Reply with quote

in themes/MG-gs057/theme_info.php find
Code:
$link3url = 'links.html';

$link3    = 'WEB LINKS';

Change that to you raid location and link name.
 
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Jan 13, 2009 6:21 am Reply with quote

jakec vs. nuken in dueling banjos... Laughing

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
jakec







PostPosted: Tue Jan 13, 2009 12:00 pm Reply with quote

It's always difficult when you haven't got the files in front of you. I was trying to guess the location from the theme.php file posted above. Hopefully I don't offend anyone here, but the theme sounds like it is a bit of a mess.

I think nuken won this battle, now what next. Laughing

Does anyone fancy a beer? Cheers
 
nuken







PostPosted: Tue Jan 13, 2009 3:40 pm Reply with quote

It is... I use that theme on my son's Last Chaos Guild website and it does some crazy stuff....
 
jakec







PostPosted: Tue Jan 13, 2009 4:23 pm Reply with quote

I wasn't going mad then. Laughing
 
nuken







PostPosted: Tue Jan 13, 2009 5:13 pm Reply with quote

Quote:
I wasn't going mad then. Laughing


I didn't say all that now.... Razz
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©