Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
slick156
New Member
New Member



Joined: Oct 14, 2006
Posts: 11

PostPosted: Mon Jun 04, 2007 11:46 am Reply with quote

Hi everyone I have a site [ Only registered users can see links on this board! Get registered or login! ] and I want to install a flash player just above my banner that grey long box above the banner I have a flash mp3 player that matches it but I don't know how to edit my theme code to get it to work here is my theme code if anyone knows plz tell me where to put the mp3 player

Code:


<?php
$bgcolor1 = "#f0efed";
$bgcolor2 = "#f0efed";
$bgcolor3 = "#f0efed";
$bgcolor4 = "#666666";
$textcolor1 = "#333";
$textcolor2 = "#333";

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($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($informant != "") {
       $boxstuff = "<a href=\"user.php?op=userinfo&amp;uname=$informant\"><b>$informant</a> ";
   } else {
       $boxstuff = "<b>Un anonimo ";
   }
   $boxstuff .= "segnala:</b> \"$thetext\"$notes\n";
   echo "<font class=\"content\">$boxstuff</font>\n";
    }
}


function themeheader() {
    global $banners, $name; 
    echo "<body bgcolor=\"f0efed\" text=\"#333\" link=\"0000ff\" leftmargin=0 rightmargin=0 topmargin=0>\n";
    if ($banners) {
   include("banners.php");
    }

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n"

    ."<tr><td valign=\"middle\" background=\"themes/siteground9/images/top.jpg\" width=\"800\" height=\"38\">\n"
   ."<p style=\"padding:2px 10px 0px 30px\">"
   .date("F j, Y, g:i a")
   ."</p>"
   
   ."</td></tr>"

    ."<tr><td background=\"themes/siteground9/images/header.jpg\" width=\"800\" height=\"217\">"
    ."</td></tr><table>"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"760\" align=\"center\">\n"
   ."<tr><td width=\"100%\" bgcolor=\"f0efed\" align=\"center\">";
    echo "<table width=\"760\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" border=\"0\">\n"
   ."<tr valign=\"top\">\n"
   ."<td width=\"180\"  align=\"left\" valign=\"top\" style=\"margin:0 auto;text-align:left;background:#f0efee url(themes/siteground9/images/bg_left.jpg) top left repeat-y;\">\n";
   if ($name=='Forums') {}
   else if ($name=='Members_List') {}
   else if ($name=='Private_Messages') {}
   else {
    blocks(left);
    $sg = 'banner'; include "templates.php";
   }
    echo "</td><td width=\"100%\" style=\"padding:10px 10px 10px 0px;\">\n";
}


function themefooter() {
    global $index;
    echo "<br>";
    if ($index == 1) {
   echo "</td><td valign=\"top\" width=\"180\" style=\"padding:10px 10px 10px 0px;\">\n";
   blocks(right);
   echo "<td>";
    }
 else {
   echo "</td><td colspan=\"2\" style=\"padding:10px 10px 10px 0px;background:#f0efee url(themes/siteground9/images/bg_right.jpg) top right repeat-y;\">";
    }
    echo "<br><br></td></tr></table>\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#f0efee url(themes/siteground9/images/footer.jpg) bottom left no-repeat;\" width=\"100%\"><tr><td width=\"100%\" valign=\"middle\" align=\"center\" height=\"40\">";
   // DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
   echo "<p style=\"padding:4px 10px 0px 190px;margin:0;\" class=\"sgf\">";
   $sg = ''; include "templates.php";
   echo "</p>";
   echo "</center></table></table></table>";
}


function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#666666\">\n"
   ."<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\"><tr>\n"
   ."<td background=\"themes/siteground9/images/header_news.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$title</b></font></td></tr>\n"
   ."<tr><td background=\"themes/siteground9/images/back1.gif\" colspan=\"2\" bgcolor=\"#333333\">\n"
   ."<table border=\"0\" width=\"100%\" align=\"center\"><tr><td>\n"
   ."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td bgcolor=\"#444444\" align=\"left\">\n"
    ."&nbsp"
   ."<b><font class=\"tiny\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " - $time $timezone <br></font>\n"
   ."<font class=\"content\">$morelink</font></center>\n"
   ."<img src=\"themes/siteground9/images/pixel.gif\" border=\"0\" height=\"0\">"
   ."</td></tr></table>\n"
   ."</td></tr><tr><td background=\"themes/siteground9/images/header_news_down.gif\" width=\"100%\" height=\"15\"></tr>"
   ."<tr><td bgcolor=\"\"><img src=\"themes/siteground9/images/pixel.gif\" width=\"100%\" height=\"4\"></td></tr></table>\n";
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#444444\">\n"
   ."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\">"
   ."<tr><td background=\"themes/siteground9/images/header_news_article.gif\" width=\"100%\" height=\"23\"><font class=\"option\"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$title</b></font></td></tr>\n"
   ."<tr><td colspan=\"2\" background=\"themes/siteground9/images/back1.gif\"><br>\n"
   ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
   ."<a href=\"article-topic-.html$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table>\n"
   ."</td></tr></table><br>\n"
   ."</td></tr>\n"
   ."</table></td></tr>\n"
   ."<tr><td background=\"themes/siteground9/images/header_news_down_article.gif\" width=\"100%\" height=\"15\"></tr>"
   ."<tr><td><br><div align=\"center\"></div></td></tr>\n"
   ."<tr><td bgcolor=\"\"></td></tr></table>\n";
}

function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"160\" cellpadding=\"0\" cellspacing=\"0\">"
   ."<tr><td width=\"160\" height=\"30\">"
   ."&nbsp;&nbsp;&nbsp;<font color=\"#333333\"><b>$title</b></font>"
   ."</td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"160\">\n"
   ."<tr><td width=\"160\" bgcolor=\"\">\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"160\">\n"
   ."<tr><td width=\"160\" style=\"padding:5px 5px 5px 10px;\">\n"
   ."$content"
   ."</td></tr></table></td></tr><td width=\"160\" height=\"13\"></td><tr><td><img src=\"themes/siteground9/images/pixel.gif\" width=\"180\" height=\"4\"></td></tr></table>";
}

?>


Also that box above the banner is called top.jpg i tried to replace that with the mp3 player but it didn't work any ideas?
 
View user's profile Send private message
djmaze
Subject Matter Expert



Joined: May 15, 2004
Posts: 727
Location: http://tinyurl.com/5z8dmv

PostPosted: Mon Jun 04, 2007 5:31 pm Reply with quote

and what has this to do with PHP ?
 
View user's profile Send private message Visit poster's website
montego
Site Admin



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

PostPosted: Tue Jun 05, 2007 5:47 am Reply with quote

I have moved this to the Themes forum.

slick156, try adding it somewhere within the themeheader() function code. Be mindful of your HTML and placement and you should get it to work.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Tue Jun 05, 2007 6:32 am Reply with quote

lol...and i was letting this topic in the hope jaded would honor us with a visit....
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

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 ©