» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 76
0 members and 76 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 problems with removing left block on forum within the Purged Topics forums, part of the NM Staff category; refering to : http://www.nukemods.com/modules.php?...f4defd4c281379 i checked the theme.php and changed the second part of ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2003, 09:19 AM
Junior Member
 
Join Date: Mar 2003
Posts: 15
problems with removing left block on forum
refering to : http://www.nukemods.com/modules.php?...f4defd4c281379

i checked the theme.php and changed the second part of the script to remove the left blocks when on the forum, but the first part that needs to be changed is'nt in theme.php.

My Nuke is: 6.0,
Theme:NuketechV2
Forum is: phpBB-2.0.6-Port-Beta
Site: www.ripsquad.com/index.php

Please advise.


thx guys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-27-2003, 09:39 AM
Moderator
 
Join Date: Jan 2003
Posts: 338
So what you are saying is that the NuketechV2 theme does not have a function themeheader() in its theme.php file? that sure is odd.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-27-2003, 10:42 AM
Junior Member
 
Join Date: Mar 2003
Posts: 15
heres the script:

Quote:
function OpenTable() {
global $tableStatus;
if ($tableStatus != "open"){
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"9\"><img src=\"themes/NuketechV2/images/tabletl.gif\" width=\"9\" height=\"29\" border=\"0\"></td><td width=\"100%\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"6\"><img src=\"themes/NuketechV2/images/tab2.gif\" width=\"100\" height=\"29\" border=\"0\"></td><td background=\"themes/NuketechV2/images/tabletopbg.gif\"><img src=\"themes/NuketechV2/images/tab1.gif\" width=\"100\" height=\"29\" border=\"0\"></td><td width=\"9\"><img src=\"themes/NuketechV2/images/tabletr2.gif\" width=\"100\" height=\"29\" border=\"0\"></td></tr></table></td><td width=\"9\"><img src=\"themes/NuketechV2/images/tabletr.gif\" width=\"9\" height=\"29\" border=\"0\"></td></tr><tr><td colspan=\"3\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td background=\"themes/NuketechV2/images/leftside.gif\" width=\"15\"><img src=\"themes/NuketechV2/images/leftside.gif\" width=\"15\" height=\"4\" border=\"0\"></td><td background=\"themes/NuketechV2/images/boxbg.gif\" width=\"100%\">\n";

$tableStatus = "open";
}
else {}
}

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

function CloseTable() {
global $tableStatus;
if ($tableStatus == "open"){
echo "</td><td width=\"15\" background=\"themes/NuketechV2/images/rightside.gif\"><img src=\"themes/NuketechV2/images/rightside.gif\" width=\"15\" height=\"4\" border=\"0\"></td></tr></table></td></tr><tr height=\"45\"><td width=\"9\" height=\"27\"><img src=\"themes/NuketechV2/images/tablebotl.gif\" width=\"9\" height=\"27\" border=\"0\"></td><td width=\"100%\" height=\"27\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"9\"><img src=\"themes/NuketechV2/images/tablebotl2.gif\" width=\"9\" height=\"27\" border=\"0\"></td><td background=\"themes/NuketechV2/images/tablebotbg.gif\" width=\"100%\"></td><td width=\"9\"><img src=\"themes/NuketechV2/images/tablebotr2.gif\" width=\"9\" height=\"27\" border=\"0\"></td></tr></table></td><td width=\"9\" height=\"27\"><img src=\"themes/NuketechV2/images/tablebotr.gif\" width=\"9\" height=\"27\" border=\"0\"></td></tr></table>\n";

$tableStatus = "closed";
}
else {}
}

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

/************************************************** **********/
/* FormatStory */
/************************************************** **********/

function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "

"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&u name=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." \"$thetext\"$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}

/************************************************** **********/
/* Function themeheader() */
/************************************************** **********/
function themeheader() {
global $user, $banners, $sitename, $cookie, $prefix, $dbi;
/************************************************** **********/
/* Header Menu config 1= flash menu on 0= flash menu off */
/************************************************** **********/
$flash = 1;
/************************************************** **********/
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
if ($banners == 1) {
OpenTable();
include("banners.php");
CloseTable();
}
$public_msg = public_message();
echo "$public_msg";
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><font size=\"1\" face=\"verdana\">&User:<input type=\"text\" name=\"username\" value style=\"width:90;height:16;FONT-SIZE: 9px;\">&Pass:<input type=\"password\" name=\"user_password\" value style=\"width:90;height:16;FONT-SIZE: 9px;\"></TD><TD valign=\"baseline\" background=\"themes/NuketechV2/flash/nuketech2_log.gif\" WIDTH=30 HEIGHT=22><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"image\" value=\"login\" src=\"themes/NuketechV2/images/login.gif\" border=\"0\"></TD></form>\n";
} else {
$theuser = "<font face=\"arial\" color=\"#000000\" size=\"2\">&$username!</font><TD valign=\"baseline\" background=\"themes/NuketechV2/flash/nuketech2_log.gif\" WIDTH=30 HEIGHT=22><a href=\"modules.php?name=Your_Account&op=logout\">< img src=\"themes/NuketechV2/images/logout.gif\" border=\"0\"></a></TD>\n";
}
if ($flash == 1) {
$flash = "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
include("themes/NuketechV2/headerflash.php");
} else {
$flash = "<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
include("themes/NuketechV2/header.php");
}
blocks(left);
$tmpl_file = "themes/NuketechV2/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}


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

function themefooter() {
global $index, $user, $cookie, $prefix, $dbi, $foot1, $foot2, $foot3, $foot4, $total_time, $start_time;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = "".substr($total_time,0,5)." "._SECONDS."";
if ($index == 1) {
$tmpl_file = "themes/NuketechV2/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$footer_message = "$foot1
$foot2
$foot3
$foot4";
include("themes/NuketechV2/footer.php");

}

/************************************************** **********/
/* Function themeindex() */
/* This function format the stories on the Homepage */
/************************************************** **********/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "

"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&u name=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time ";
//End Code Change
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
$tmpl_file = "themes/NuketechV2/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themeindex() */
/************************************************** **********/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
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 = "

"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&u name=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$tmpl_file = "themes/NuketechV2/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) {
$tmpl_file = "themes/NuketechV2/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-27-2003, 10:50 AM
Moderator
 
Join Date: Jan 2003
Posts: 338
So? i see it right there, don't you?
Code:
/************************************************************/ 
/* Function themeheader() */ 
/************************************************************/ 
function themeheader() { 
global $user, $banners, $sitename, $cookie, $prefix, $dbi; 
/************************************************************/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-27-2003, 10:56 AM
Junior Member
 
Join Date: Mar 2003
Posts: 15
srry DW MX could'nt find it.

I do apologise ops:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-27-2003, 11:58 AM
Moderator
 
Join Date: Jan 2003
Posts: 338
I strongly suggest avoiding the use of things like DreamWeaver, NotePad, WordPad, FrontPage, etc... to edit Nuke's files, instead get editors like ultraedit, editpad or phpedit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-27-2003, 09:13 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
Originally Posted by chatserv
I strongly suggest avoiding the use of things like DreamWeaver, NotePad, WordPad, FrontPage, etc... to edit Nuke's files, instead get editors like ultraedit, editpad or phpedit.
kudos and ditto on that!

hey Sirus. I want to say thank you very much for possibly posting one of the best, most descriptive posts ever posted here at nukemods
and believe me when I say, that ain't sarchasm..hehe

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-27-2003, 09:15 PM
coldblooded's Avatar
Super Moderator
 
Join Date: Jan 2002
Location: USA
Posts: 618
Originally Posted by chatserv
I strongly suggest avoiding the use of things like DreamWeaver, NotePad, WordPad, FrontPage, etc... to edit Nuke's files, instead get editors like ultraedit, editpad or phpedit.
Agreed, editplus is another good one.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-28-2003, 06:41 PM
Junior Member
 
Join Date: Mar 2003
Posts: 15
Originally Posted by mikem
Originally Posted by chatserv
I strongly suggest avoiding the use of things like DreamWeaver, NotePad, WordPad, FrontPage, etc... to edit Nuke's files, instead get editors like ultraedit, editpad or phpedit.
kudos and ditto on that!

hey Sirus. I want to say thank you very much for possibly posting one of the best, most descriptive posts ever posted here at nukemods
and believe me when I say, that ain't sarchasm..hehe

mikem
lol thx.

Are these progs freeware by any chance?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-28-2003, 06:47 PM
Junior Member
 
Join Date: Mar 2003
Posts: 15
Another problem i have found that only seems to be affecting myself.

I am Admin on the site and forum, and super user also for the Nuke.

When i go to post a "reply" on the forum, i get this error code:

Ran into problems sending Mail. Response: 553 5.1.2 ... Invalid host name

but it "does" actually post the message i wrote, but does'nt show that i posted it in the numbers of replys or last posted by.

but when i create a "new thread" it works perfectly with no errors.
lol srry, it's kinda hard to explain.

The forum is : http://www.ripsquad.com/modules.php?name=Forums
my username is: R][P Sirus

Thx for ur help again guys

PS: BTW the left block removal worked sweetly, looks darn fine :mrgreen:
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
Removing Left blocks ActusReus Nuke 7.x - Modules 1 01-07-2006 04:57 PM
Removing Recent Topic Block & Login Page rickstorm Nuke 7.x - General 8 01-05-2006 07:35 PM
Help please on removing left blocks from forums shark1e Nuke 7.x - Blocks 39 01-01-2006 11:55 AM
Removing Login from Site Visitor Block Yuffer Nuke 6.5 to 6.9 - Blocks 11 06-02-2003 02:34 AM
Removing Forum Logo from Forum Template Cyberclark Purged Topics 2 03-10-2003 10:28 PM


All times are GMT -5. The time now is 08:29 AM.


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