[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - REMOVE PAGE FOOTER

Cheshire Cat Computing

Software support and information
It is currently Wed Nov 12, 2025 10:04 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: REMOVE PAGE FOOTER
PostPosted: Tue Apr 26, 2005 2:22 am 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11
Hi steve or anyone who can help me

I've got a question about routers2.cgi
I'm a trainee at a company
I sort of connected your frontend to my own modified webpage
because the company wanted it modified

now i don't use the "bookmark""Refresh""CVS""and zoom options anymore

but they still are under my page
After a lot of browsing
I found this

# Page foot
print $config{'routers.cgi-pagefoot'},"\n"
if( defined $config{'routers.cgi-pagefoot'} );
#if( $gstyle !~ /p/ ) {
# my( $ngti, $ngto ) = ("","");
# print $q->hr;
# print "\n",$q->a({href=>"javascript:location.reload(true)"},
# $q->img({src=>"${config{'routers.cgi-iconurl'}}refresh.gif",
# alt=>"Refresh",border=>"0",width=>100,height=>20}))," \n"
if(!$archdate);
print $q->a({href=>"javascript:parent.makebookmark('"
.$q->escape($router)."','__compact','$gtype','$gstyle','$gopts','$baropts','".$q->escape($extra)."')"},
$q->img({src=>"${config{'routers.cgi-iconurl'}}bookmark.gif",
alt=>"Bookmark",border=>"0",width=>100,height=>20}))," \n";
print $q->a({href=>"$meurl?".optionstring({page=>"", xmtype=>"",
if=>"__compact", xgstyle=>""}), target=>"_top" },
$q->img({src=>"${config{'routers.cgi-iconurl'}}bookmark.gif",
alt=>"Bookmark",border=>"0",width=>100,height=>20}))," \n";
if( $gtype eq "6" ) { $ngto = "d"; }
elsif( $gtype eq "d" ) { $ngto = "w"; $ngti = "6" if($usesixhour); }
elsif( $gtype eq "w" ) { $ngti = "d"; $ngto = "m"; }
elsif( $gtype eq "m" ) { $ngti = "w"; $ngto = "y"; }
elsif( $gtype eq "y" ) { $ngti = "m"; }
if( $ngti ) {
print $q->a({href=>"$meurl?".optionstring({xgtype=>"$ngti"}), target=>"graph"},
$q->img({src=>"${config{'routers.cgi-iconurl'}}zoomin.gif",
alt=>"Zoom In",border=>"0",width=>100,height=>20}))," \n";
}
if( $ngto ) {
print $q->a({href=>"$meurl?".optionstring({xgtype=>"$ngto"}), target=>"graph"},
$q->img({src=>"${config{'routers.cgi-iconurl'}}zoomout.gif",
alt=>"Zoom Out",border=>"0",width=>100,height=>20}))," \n";
}
print $q->br,"\n";
}

print "<!-- CAMPIO=[$c][$a][$m][$p][$io] gtype=$gtype baropts=$baropts -->\n";

do_footer();
}

But
I can't figure out how to disable or exclude this part of the script so the page foot is not getting loaded anymore

plzz help me


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 12:00 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
This is one of the sections which

(a) hooks in the pagefoot HTML if you have defined any,
(b) puts all the buttons at the bottom of the central frame,
(c) calls the standard page footer (the copyright message etc)

You can comment out some or all of this, if you want to disable these parts. Note that you'll have to do it in the make_graph and the make_summary, and also the make_compact functions (they all do this in slightly different ways so have separate code)

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 7:33 pm 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11
oke

I'd like to exclude the B thing from the script
but when I uncomment lines
It gives me an internal configuration error on my server when I open the page

I don't know which lines I can or can not uncomment
b.t.w uncomment is # right

The copyright thing is out already and the rrdlogo also but these buttons on the foot just stay


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 3:20 am 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11
for my webpage
I excluded the summary page
so i probably only need to change the make_graph thing

do you know which lines i should uncommend

I don't have a clue to be honest

not much perl program experience


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 10:46 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
In Perl, # is the comment character.

routers2 is a very complex piece of code, and so it's a bit of a monster to be edited by a Perl novice. You could end up breaking an awful lot of things by accident.

If you aren't sure what to comment out, then don't do it, as you could end up with things not working as expected, and then you come back here and ask for more support on your modified system. Your employer is asking you to do something you have not got the knowledge or experience for.

After saying that: the sections you need to commment out are the ones involving the IMG tags, and are all grouped between the pagetop check and the call to do_footer. In your code above, you have half-commented out part of this. Make sure you understand Perl structural syntax so that you dont half comment out a construct like in this example.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Wed Apr 27, 2005 7:29 pm 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11
Actually i haven't uncommented anything yet
but should uncommenting the img tag be enough??


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 1:28 am 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11
The reason I wanted this to be removed actually was
because when I use one of these buttons they open in a new window
and not in the frame where the link was

If you know of a way to make it open in the same frame that should work for me..

Thnks in advantage

B.t.w routers2 is a awesome tool good job.


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 11:44 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 8:00 pm 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Thu Apr 28, 2005 10:46 pm 
Offline
Silver User

Joined: Tue Apr 26, 2005 2:08 am
Posts: 11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ]  Go to page 1, 2  Next

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group