| Cheshire Cat Computing http://www.steveshipway.org/forum/ |
|
| REMOVE PAGE FOOTER http://www.steveshipway.org/forum/viewtopic.php?f=15&t=590 |
Page 1 of 2 |
| Author: | nathan [ Tue Apr 26, 2005 2:22 am ] |
| Post subject: | REMOVE PAGE FOOTER |
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 |
|
| Author: | stevesh [ Tue Apr 26, 2005 12:00 pm ] |
| Post subject: | |
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) |
|
| Author: | nathan [ Tue Apr 26, 2005 7:33 pm ] |
| Post subject: | |
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 |
|
| Author: | nathan [ Wed Apr 27, 2005 3:20 am ] |
| Post subject: | |
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 |
|
| Author: | stevesh [ Wed Apr 27, 2005 10:46 am ] |
| Post subject: | |
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. |
|
| Author: | nathan [ Wed Apr 27, 2005 7:29 pm ] |
| Post subject: | |
Actually i haven't uncommented anything yet but should uncommenting the img tag be enough?? |
|
| Author: | nathan [ Thu Apr 28, 2005 1:28 am ] |
| Post subject: | |
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. |
|
| Author: | stevesh [ Thu Apr 28, 2005 11:44 am ] |
| Post subject: | |
| Author: | nathan [ Thu Apr 28, 2005 8:00 pm ] |
| Post subject: | |
| Author: | nathan [ Thu Apr 28, 2005 10:46 pm ] |
| Post subject: | |
| Page 1 of 2 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|