|
» Online Users: 102 |
| 16 members and 86 guests |
| ari2tttzonaheal, bro5atwn2sicarp, bus2gqjiness7zi, coo5ewkin4sjcpg, dendhd4tistjo6q, frepm9nnch, hai3rydrtranspl, itc6sqhyskinand, laszxsvegaschib, move39san, pesbxbtcontr3jk, robaaerteqjc6xs, ttdwncras, tucqqa9sonc7dee, ven8qqloeejg3in, watlkerpr |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
tattoo fonts http://www.checkoutmyink.com/category/tattoo-fonts-tattoo
|
|
 |
|
Nukemods Forum
> NM Staff
> Purged Topics
|
problems with removing left block on forumThis 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 the script to remove the left ... |
|
|
 |
|
|
|
|
Junior Member
Status: Offline
Posts: 15
Join Date: Mar 2003
|
problems with removing left block on forum -
03-27-2003, 09:19 AM
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
|
|
|
|
|
|
|
|
Moderator
Status: Offline
Posts: 338
Join Date: Jan 2003
|
03-27-2003, 09:39 AM
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.
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 15
Join Date: Mar 2003
|
03-27-2003, 10:42 AM
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;
}
?
|
|
|
|
|
|
|
|
|
Moderator
Status: Offline
Posts: 338
Join Date: Jan 2003
|
03-27-2003, 10:50 AM
So? i see it right there, don't you?
Code:
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $cookie, $prefix, $dbi;
/************************************************************/
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 15
Join Date: Mar 2003
|
03-27-2003, 10:56 AM
srry DW MX could'nt find it.
I do apologise  ops:
|
|
|
|
|
|
|
|
Moderator
Status: Offline
Posts: 338
Join Date: Jan 2003
|
03-27-2003, 11:58 AM
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.
|
|
|
|
|
|
|
|
Senior Member
Status: Offline
Posts: 2,905
Join Date: Sep 2002
|
03-27-2003, 09:13 PM
Quote:
|
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
|
|
|
|
|
|
|
|
Super Moderator
Status: Offline
Posts: 624
Join Date: Jan 2002
Location: USA
|
03-27-2003, 09:15 PM
Quote:
|
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.
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 15
Join Date: Mar 2003
|
03-28-2003, 06:41 PM
Quote:
|
Originally Posted by mikem
Quote:
|
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?
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 15
Join Date: Mar 2003
|
03-28-2003, 06:47 PM
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:
|
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|