Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
Thread Tools
  #1  
Old 11th June 2010, 15:08
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default How to add javascript menu to my site?
I modded the following "affiliates" javascript menu, so that i enter it to my pmbt site.what should i do?


And something more...how can i make stay always at that point ont the screen?
-------------------------------------------------------------------------------------
This is may main.php
-------------------------------------------------------------------------------------
[php]<?php
if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen = false;
$errtableopen = false;
$table2open = false;
$btback1 = "c0c0c0";
$btback2 = "acd2ef";
$btback3 = "3ca22e";


function OpenTable($title = "title", $tablewidth = "") {
global $tableopen, $siteurl;
if ($tableopen) return;
if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\"";
else $stylewidth = '';
echo "<div class=\"mainbox\" ".$stylewidth."> ";
echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">";

$tableopen = true;
}

function CloseTable() {
global $tableopen, $siteurl;
if (!$tableopen) return;
echo "</div></div>";

$tableopen = false;
}

function OpenTable2($title = "") {
global $tableopen2, $siteurl;
if ($tableopen2) return;
echo "<div id=\"messagebox\" > ";
echo "<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";

$tableopen2 = true;
}

function CloseTable2() {
global $tableopen2, $siteurl;
if (!$tableopen2) return;
echo "</div></div>";

$tableopen2 = false;
}

function OpenNewsTable($title = "") {
global $OpenNewsTable, $siteurl;
if ($OpenNewsTable) return;
echo "<div id=\"newsbox\" > ";

$OpenNewsTable = true;
}

function CloseNewsTable() {
global $OpenNewsTable, $siteurl;
if (!OpenNewsTable) return;
echo "</div>";

$OpenNewsTable = false;
}

function OpenMessTable($title = "") {
global $OpenMessTable, $siteurl;
if ($OpenMessTable) return;
echo "<div id=\"messagebox\"> ";
echo "<span class=\"messagebox-title\">".$title."</span>";

$OpenMessTable = true;
}

function CloseMessTable() {
global $OpenMessTable, $siteurl;
if (!$OpenMessTable) return;
echo "</div>";

$OpenMessTable = false;
}

function OpenSuccTable($title = "") {
global $OpenSuccTable, $siteurl;
if ($OpenSuccTable) return;
echo "<div id=\"successbox\" > ";
echo "<span class=\"successbox-title\">".$title."</span>";

$OpenSuccTable = true;
}

function CloseSuccTable() {
global $OpenSuccTable, $siteurl;
if (!$OpenSuccTable) return;
echo "</div>";

$OpenSuccTable = false;
}
function OpenErrTable($title) {
global $OpenErrTable, $siteurl;
if ($OpenErrTable) return;
echo "<div id=\"errorbox\" > ";
echo "<span class=\"errorbox-title\">".$title."</span>";

$OpenErrTable = true;
}

function CloseErrTable() {
global $OpenErrTable, $siteurl;
if (!$OpenErrTable) return;
echo "</div>";

$OpenErrTable = false;
}
function themechange(){
{
global $bttheme;
$themes = Array();
$thememaindir = "themes";
$themehandle = opendir($thememaindir);
while ($themedir = readdir($themehandle)) {
if (is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
$themes[$themedir] = $themedir;
}
closedir($themehandle);
unset($thememaindir,$themedir);
}
$change = '';
foreach ($themes as $key=>$val) {
$change .= "<option ";
if ($bttheme == $key) $change .="selected ";
$change .= "value=\"".$key."\">".$val."</option>\n";
}
unset($themes);
return $change;
}
function languagechange(){
{
global $language;
$languages = Array();
$langdir = "language";
$langhandle = opendir($langdir);
while ($langfile = readdir($langhandle)) {
if (eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
$languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
}
closedir($langhandle);
unset($langdir,$langfile);
}
$change = '';
foreach ($languages as $key=>$val) {
$change .="<option ";
if ($language == $key) $change .="selected";
$change .=" value=\"".$key."\">".$val."</option>\n";
}
unset($languages);
return $change;
}

function themeheader() {
global $db, $db_prefix, $theme, $siteurl, $user, $upload_level, $sitename, $gfx_check, $donations, $INVITEONLY,$onlysearch, $pivate_mode;

if ($user->user) {
//Update online user list
$pagename = substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
$sqlupdate = "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
$sqlinsert = "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
$res = $db->sql_query($sqlupdate);
if (!$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n";
echo "<head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
echo "<meta name=\"generator\" content=\"PMBT 2.0.2\" />\n";
echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />\n";
echo "<meta http-equiv=\"Expires\" content=\"-1\" />\n";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />\n";
echo "<!--[if lt IE 7]>
<script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->";
echo "<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl; ?>";
tag_prompt = "<?php echo _bb_tag_prompt; ?>";
img_prompt = "<?php echo _bb_img_prompt; ?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt; ?>";
link_text_prompt = "<?php echo _bb_link_text_prompt; ?>";
link_url_prompt = "<?php echo _bb_link_url_prompt; ?>";
link_email_prompt = "<?php echo _bb_link_email_prompt; ?>";
list_type_prompt = "<?php echo _bb_list_type_prompt; ?>";
list_item_prompt = "<?php echo _bb_list_item_prompt; ?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate; ?>";
</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
echo "<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!$onlysearch) {
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (is_readable("themes/$theme/style.css")) {
echo "<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}
overlib_init();

echo "</head>\n\n";


$themepage = false;
?>
<?php
if($user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo "<body>";
echo"<noscript>
<center><h1><font class=warntext>Javascript is not available!</font></h1></center>
<center><h1><font class=warntext>This website cannot function correctly without JavaScript!</font></h1></center>
</noscript>\n";
echo "<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo "<div id=\"pmbtwrap\">\n";
echo'<img src="themes/archeCtypo/pics/logo.png" height="270" width="950" ><div id="theme-header">
</div>
<div id="theme-body"><div align="center"><br>';
?>
<script src="../AppData/Local/Temp/java/stuHover.js" type="text/javascript"></script>
<div id="pro_linedrop">
<ul class="select">
<li><a href="index.php"><b>Αρχική Σελίδα</b></a></li>
<li class="line"><a href="torrents.php"><b>Torrents</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="sub">
<li><a href="upload.php">Ανέβασμα</a></li>
<li><a href="mytorrents.php">Τα Torrent μου</a></li>
<li><a href="viewrequests.php">Προβολή Αιτημάτων</a></li>
<li><a href="offers.php">Προσφορές Torrent</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="line"><a href="user.php?op=profile&id="><b>Το Προφίλ μου</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="sub">
<li><a href="user.php?op=logout">Αποσύνδεση</a></li>
<li><a href="memberslist.php">Λίστα Μελών</a></li>
<li><a href="games.php">Παιχνίδια</a></li>
</ul>
<!--[if lte IE 6]></td></tr></table></a><![endif]-->
</li>
<li class="line lrt"><a href="#nogo"><b class="arrow">Κατηγορίες Torrent</b><!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]><table><tr><td><![endif]-->
<ul class="sub rt">
<li><a href="torrents.php?cat=12">Anime [Jap/Gr]</a></li>
<li><a href="torrents.php?cat=13">Anime [Gr]</a></li>
<li><a href="torrents.php?cat=16">(@) Anime</a></li>
<li><a href="torrents.php?cat=14">Anime [Eng/Gr]</a></li>
<li><a href="torrents.php?cat=15">Anime [Other/Gr]</a></li>
<li><a href="torrents.php?cat=17">Cartoon [Speachless]</a></li>
<li><a href="torrents.php?cat=18">Cartoon [Eng/Gr]</a></li>
<li><a href="torrents.php?cat=19">Cartoon [Gr]</a></li>
<li><A HREF="donate.php"><img src="creditcard_paypal.png"></A></li>
</ul>
</li>
</ul>
</div>
<br /><br />
<div id="menuline">
<?
include("./blocks/usercp.php");
if ($user->user AND $INVITEONLY)
{


OpenTable(_btinvites);
echo "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
if ($user->invites > 0 ){
echo "<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
}
echo "</table>";

CloseTable();

}?>
</div>
<?
echo "<table border=\"0\" width=\"60%\" cellpadding=\"0\" cellspacing=\"0\">\n";
function newuserpage($page)
{
if(eregi("faq.php",$page))return true;
if(eregi("rules.php",$page))return true;
if(eregi("user.php",$page))return true;
if(eregi("takeconfirminvite.php",$page))return true;
if(eregi("confirminvite.php",$page))return true;
return false;
}
if($pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
loginrequired("user", false);
include'footer.php';
echo "<table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
echo "<tr>\n";
echo "<td>\n";
}
//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason = "";
if (is_banned($user, $reason)) {
echo "<p> </p>\n";
echo "<p> </p>\n";
echo "<h3 align=\"center\">".str_replace("**reason**",htmlsp ecialchars($reason),_btbannedmsg)."</p>\n";
echo "<p> </p>\n";
echo "<p> </p>\n";
include("footer.php");
die();
}

$has_newpm = false;
$sql = "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res = $db->sql_query($sql) or btsqlerror($sql);
$has_newpm = ($db->sql_numrows($res) > 0) ? true : false;
$db->sql_freeresult($res);
if ($has_newpm)
{
echo "<script type=\"text/javascript\" language=\"JavaScript\">";
echo "sPath = window.location.pathname;";
echo "sPage = sPath.substring(sPath.lastIndexOf('/') + 1);";

echo "if (sPage != \"pm.php\"){ var answer = confirm (\""._jscriptconfirmtext."\");";
echo "if (answer) window.location=\"pm.php?op=inbox\";";
echo "}";
echo "</script>";

}

echo "<table width=\"100%\">\n";
echo "<tr>\n";
echo "<td width=\"2%\" valign=\"top\">\n";
echo "<div >";
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
if ($donations){
include("./blocks/donation_block.php");
}
//include("blocks/shoutbox.php");

}
echo "</div></td>\n";
echo "<td width=\"75%\" valign=\"top\">\n";
echo "<div id=\"rightcolumn\">";
$sql_profile = "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile = $db->sql_query($sql_profile);
$userrow = $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if ($user->downloaded > 0){
include ("./ratiowarn.php");
}
}
if ($userrow["warned"])
{
$warn_kapta = $userrow["warn_kapta"];
$warn_hossz = $userrow["warn_hossz"];
$modcomment = $userrow["modcomment"];

if ($warn_hossz != -1) {
$warn = $warn_kapta + $warn_hossz;
$time_now = strtotime(gmdate("Y-m-d H:i:s", time()));
if ($warn < $time_now)
{
$modcomment = "[ " . gmdate("Y-m-d H:i:s", time()) . " - WARN time expired ]\n" . $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
@$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id. ",'WARNING' '" . $msg ."', NOW())") or die(mysql_error());
$modcomment = $modcomment;
$frissites = $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
//////////////////// Kommentera modd ////////////////////////
$res = $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while($row = $db->sql_fetchrow($res)){
$kom = $db->sql_fetchrow( $db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor = $db->sql_fetchrow( $db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!$kom[0] && $tor[owner] != $user->id){
$komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
/////////////////////////////////////////////////////////////
if ($user->user) {
if ($komment){
print("<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
print("Please leave a comment on:<br>$komment");
print("</td></tr></table></p>\n");
}
}
}

function overlib_init() {
echo "<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
echo "<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
}
function themefooter(){
global $startpagetime;
if(!eregi("phpBB.php",$_SERVER["PHP_SELF"])){
echo"</div></td><td width=\"18%\" valign=top >";
echo"</td>";
echo"</tr>";
}
echo'
<tr>
<td>
<td><p class="footer">
<br>
<br>
<br>
<br>
Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον παρών server.<br>
Δέν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
phpMyBitTorrent
Attached Files
File Type: zip sliding-side-bar.zip (27.6 KB, 9 views)

Last edited by Giorgatzelos; 12th June 2010 at 00:05.
Reply With Quote
  #2  
Old 12th June 2010, 06:12
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
You want this only on index or all pages?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 12th June 2010, 11:39
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
Quote:
Originally Posted by joeroberts View Post
You want this only on index or all pages?

Of course, i want it to be shown on all pages...any ideas?

Last edited by Giorgatzelos; 12th June 2010 at 12:50.
Reply With Quote
  #4  
Old 12th June 2010, 14:03
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
like on here http://guv2.com/pmbt2/index.php on the evo_blue theme?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 12th June 2010, 15:30
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
Quote:
Originally Posted by joeroberts View Post
like on here http://guv2.com/pmbt2/index.php on the evo_blue theme?

Yes! Just like That...but how can it stay at the same point of the screen, no matter how much you scroll down or up?...and the links are smaller than they show at my script...aren't they?

Last edited by Giorgatzelos; 12th June 2010 at 16:08.
Reply With Quote
  #6  
Old 13th June 2010, 09:19
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
In your theme main.php find
PHP Code:
include("./blocks/usercp.php"); 
and add after
PHP Code:
echo '<div id="sideBar">';
echo 
'<a id="sideBarTab"><img src="http://guv2.com/pmbt2/images/slide-button.gif" alt="sideBar" title="sideBar" /></a>';
echo 
'<div id="sideBarContents" style="width:0px;">';
echo 
'<div id="sideBarContentsInner">';
echo 
'<h2 align="center">&nbsp;</h2>';
echo 
'<ul>';
echo 
'<li><a href="http://www.animeclipse.com">AnimeClipse</a></li>';
echo 
'<li><a href="http://www.omega-team.eu">Omega Team</a></li>';
echo 
'<li><a href="http://www.anime-greek.com">Anime-Greek</a></li>';
echo 
'<li><a href="http://animearth.com">Animearth</a></li>';
echo 
'<li><a href="http://seikisubs.blogspot.com">Seiki Subs</a></li>';
echo 
'<li><a href="http://eternallightsubs.niceboard.net/portal.htm">Eternal Light Subs</a></li>';
echo 
'<li><a href="http://www.ss-anime.info">SS-Anime</a></li>';
echo 
'<li><a href="http://www.tzatziki-fansubs.com">TzaTziki Fansub</a></li>';
echo 
'<li><a href="http://www.onepiecegr-rpg.com">OnePieceGr</a></li>';
echo 
'<li><a href="http://www.animefiury.com">AnimeFiury</a></li>';
echo 
'<li><a href="http://taka-greece.blogspot.com">Taka Greece</a></li>';
echo 
'<li><a href="http://www.ookami-fansubs.com">Okami Fansubs</a></li>';
echo 
'</ul>';
echo 
'</div>';
echo 
'</div>';
echo 
'</div>'
Now find
PHP Code:
function overlib_init() {
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n"
and add after
PHP Code:
        echo "<script type=\"text/javascript\" src=\"js/mootools.js\"></script>\n";
        echo 
"<script type=\"text/javascript\" src=\"js/side-bar.js\"></script>\n"
and add to your css file
Code:
 h2{
    color:#666666;
    font-size:90%;
    font-family:arial;
    margin:10px 10px 10px 10px;
    font-weight:bold;
    }
    
    h2 span{
        font-size:105%;
        font-weight:normal;
    }
    
    ul{
        margin:0px 0px 0px 0px;
        padding:0px 0px 0px 0px;
    }
    
    li{
    margin:0px 0px 1px 30px;
    padding:2px;
    list-style-type:none;
    display:block;
    width:102px;
    background-color: #cccccc;
    }
    
    li a{
        width:100%;
    }
    
    li a:link,
    li a:visited{
    color:#2EB4F3;
    font-family:verdana;
    font-size:70%;
    text-decoration:none;
    display:block;
    margin:0px 0px 0px 0px;
    padding:0px;
    width:100%;
    }
    
    li a:hover{
    color:#666666;
    text-decoration:inherit;
    background-color: #CCCCCC;
    }
    
    #sideBar{
    position: absolute;
    width: auto;
    height: 350px;
    top: 200px;
    right:-7px;
    background-image:url(pics/test2.png);
    background-position:top left;
    background-repeat:no-repeat;
    }
    
    #sideBarTab{
    float:left;
    height:0px;
    width:28px;
    }
    
    #sideBarTab img{
    border:0px solid #FFFFFF;
    }
    
    #sideBarContents{
    overflow:hidden !important;
    }
    
    #sideBarContentsInner{
        width:127px;
    }
make sure you add the images to your pics folder of your theme
and Im not sure on the making it stay localized.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
Phogo (13th June 2010)
  #7  
Old 13th June 2010, 15:43
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
Finally i made it by entering what you sai but a little bit modded.

In my theme main.php found

PHP Code:
include("./blocks/usercp.php"); 

and added after
PHP Code:
echo '<div id="sideBar">'
echo 
'<a id="sideBarTab"><img src="themes/archeCtypo/images/slide-button.png" alt="sideBar" title="sideBar" /></a>'
echo 
'<div id="sideBarContents" style="width:0px;">'
echo 
'<div id="sideBarContentsInner">'
echo 
'<h2 align="center">&nbsp;</h2>'
echo 
'<ul>'
echo 
'<li><a href="http://www.animeclipse.com">AnimeClipse</a></li>'
echo 
'<li><a href="http://www.omega-team.eu">Omega Team</a></li>'
echo 
'<li><a href="http://www.anime-greek.com">Anime-Greek</a></li>'
echo 
'<li><a href="http://animearth.com">Animearth</a></li>'
echo 
'<li><a href="http://seikisubs.blogspot.com">Seiki Subs</a></li>'
echo 
'<li><a href="http://eternallightsubs.niceboard.net/portal.htm">Eternal Light Subs</a></li>'
echo 
'<li><a href="http://www.ss-anime.info">SS-Anime</a></li>'
echo 
'<li><a href="http://www.tzatziki-fansubs.com">TzaTziki Fansub</a></li>'
echo 
'<li><a href="http://www.onepiecegr-rpg.com">OnePieceGr</a></li>'
echo 
'<li><a href="http://www.animefiury.com">AnimeFiury</a></li>'
echo 
'<li><a href="http://taka-greece.blogspot.com">Taka Greece</a></li>'
echo 
'<li><a href="http://www.ookami-fansubs.com">Okami Fansubs</a></li>'
echo 
'</ul>'
echo 
'</div>'
echo 
'</div>'
echo 
'</div>'
Found:

PHP Code:
function overlib_init() { 
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n"
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n"

and added after:

PHP Code:
echo "<script type=\"text/javascript\" src=\"themes/archeCtypo/js/mootools.js\"></script>\n";
        echo 
"<script type=\"text/javascript\" src=\"themes/archeCtypo/js/side-bar.js\"></script>\n"
and added to my css file:

PHP Code:
h2{
    
color:#666666;
    
font-size:90%;
    
font-family:arial;
    
margin:10px 10px 10px 10px;
    
font-weight:bold;
    }
    
    
h2 span{
        
font-size:105%;
        
font-weight:normal;
    }
    
    
ul{
        
margin:0px 0px 0px 0px;
        
padding:0px 0px 0px 0px;
    }
    
    
li{
    
margin:0px 0px 1px 15px;
    
padding:2px;
    list-
style-type:none;
    
display:block;
    
width:90px;
    
background-color#cccccc;
    
}
    
    
li a{
        
width:100%;
    }
    
    
li a:link,
    
li a:visited{
    
color:#2EB4F3;
    
font-family:verdana;
    
font-size:70%;
    
text-decoration:none;
    
display:block;
    
margin:0px 0px 0px 0px;
    
padding:0px;
    
width:100%;
    }
    
    
li a:hover{
    
color:#666666;
    
text-decoration:inherit;
    
background-color#CCCCCC;
    
}
    
    
#sideBar{
    
positionfixed;
    
widthauto;
    
height350px;
    
top200px;
    
right:0px;
    
background-image:url(images/test2.png);
    
background-position:top left;
    
background-repeat:no-repeat;
    }
    
    
#sideBarTab{
    
float:left;
    
height:0px;
    
width:28px;
    }
    
    
#sideBarTab img{
    
border:0px solid #FFFFFF;
    
}
    
    
#sideBarContents{
    
overflow:hidden !important;
    }
    
    
#sideBarContentsInner{
        
width:127px;
    } 

But my upper right menu gets missplaced...is there any way to make a sidemenustyle.css associate it somehow with archectypo theme and paste the code in there?

Last edited by Giorgatzelos; 13th June 2010 at 23:56.
Reply With Quote
  #8  
Old 14th June 2010, 15:40
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Not sure I do not have that theme to test it with
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
Giorgatzelos (14th June 2010)
  #9  
Old 14th June 2010, 18:08
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
Joe how can i insert two additional javascript bars one to the upper left and one to the upper right based at this javascript menu but ratated 90 degrees counter clockwise,so that it's dropdown menu?

Bump: Joe how can i insert two additional javascript bars one to the upper left and one to the upper right based at this javascript menu ?

Last edited by Giorgatzelos; 16th June 2010 at 11:05.
Reply With Quote
  #10  
Old 24th October 2010, 14:17
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
please let me see your main.php
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
add , javascript , menu , site


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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Leftside menu? cekosexama TBDev 1 5th May 2010 12:53
Top Menu cosworth Community Cafe 1 9th May 2009 12:39
Menu mo andutzel Template Shares 19 28th April 2009 22:54
[YSE] Theme with Top Menu? ajax Yuna Scatari Edition (YSE) 0 20th April 2009 15:08
Menu problem euphrodil Template Shares 4 18th January 2009 22:16



All times are GMT +2. The time now is 04:47. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.