» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 42
0 members and 42 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
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on i can't get rid of right block with BlackDog&Charcoal th within the Purged Topics forums, part of the NM Staff category; i know that right blocks can be disabled for ie.mymodule editing /modules/mymodule/index.php by changing $index = 1; ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2003, 04:45 PM
Junior Member
 
Join Date: Jan 2003
Posts: 83
i can't get rid of right block with BlackDog&Charcoal th
i know that right blocks can be disabled for ie.mymodule editing /modules/mymodule/index.php by changing $index = 1; to 0.

I went to modules/forum/index.php and it wasn't any $index ..i added after
Code:
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
but still didn't worked.

i using BlackDog theme modified ONLY on graphics and Charcoal (i think i got it from this site) for phpbb2.

Thank you in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-10-2003, 03:46 AM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
I think the right blocks are hardcoded into that theme
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-10-2003, 08:52 AM
Junior Member
 
Join Date: Jan 2003
Posts: 83
Originally Posted by Mighty_Y
I think the right blocks are hardcoded into that theme
Any suggestion will be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-10-2003, 11:23 AM
Junior Member
 
Join Date: Jan 2003
Posts: 83
here is my code from /modules/Forums/index.php
http://web.sysrq.no/appolyon/21pzr/m...rums/index.txt

Thank you in advanced
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-10-2003, 12:20 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
I said, it will be hardcoded in your theme because if I look at your txt there is no index variable so the blocks shouldn't show up, but they do so I think it is hardcoded in your theme
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-10-2003, 12:39 PM
Junior Member
 
Join Date: Jan 2003
Posts: 83
Originally Posted by Mighty_Y
I said, it will be hardcoded in your theme because if I look at your txt there is no index variable so the blocks shouldn't show up, but they do so I think it is hardcoded in your theme
ok...your are not anymore "Mighty" Y for me...your are only "y" ... a faded one .... jocking...

maybe the others guru's will pay some attention and will try to fix it for me. cause i desperatly need it ...

also i was thinking to follow http://www.nukemods.com/modules.php?...iewtopic&t=376 but this too might not work cause is only for left blocks..right? ....

ty anyways
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-10-2003, 12:44 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
I can't help you because I don't have the theme files, but you can post some code and then I can help you.
Open theme.php and look for this
Code:
function themefooter()
And from then on I need all the code untill you come to this piece of code
Code:
function themeindex
That's what I need
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-10-2003, 01:02 PM
Junior Member
 
Join Date: Jan 2003
Posts: 83
i think will be better to give u URLs with those files in txt format to see by yourself the whole code, to avoid missunderstandings, and not to spam this great forum.

u said theme.php ...
this is my nuke theme (BlackDog)/ theme.php :
http://web.sysrq.no/appolyon/21pzr/t...kDog/theme.txt

and for avoiding other missing info here u have the theme.php from my phpbb theme (charcoal)
http://web.sysrq.no/appolyon/21pzr/t...coal/theme.txt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-10-2003, 05:55 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
In the blackdog one find
Code:
function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4;
    
	$tmpl_file = "themes/BlackDog/center_right.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";
    $tmpl_file = "themes/BlackDog/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
and change it to
Code:
function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4;
    if ($index == 1) {
	$tmpl_file = "themes/BlackDog/center_right.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";
    $tmpl_file = "themes/BlackDog/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"".$thefile."\";";
    eval($thefile);
    print $r_file;
}
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-10-2003, 07:54 PM
Junior Member
 
Join Date: Jan 2003
Posts: 83
That's my Mighty_Y
Great fix man ... also not only for forum but for all modules which i want it to be without right blocks

Many thanks and keep up good work.
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
JS in themes/BlackDog/header.html Kelu Purged Topics 13 05-30-2003 11:30 PM
copyright to BlackDog Kelu Purged Topics 1 05-07-2003 12:33 PM
[Fixed]BlackDog errors Kelu Purged Topics 0 05-03-2003 12:26 AM
BlackDog theme Colin_da_Killer Theme packs 0 04-19-2003 02:35 PM
Charcoal Theme sshhyguy Theme packs 4 11-23-2002 08:29 AM


All times are GMT -5. The time now is 08:14 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