Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
I would like to turn off the footer on the page that appears just
after you submit a post. I think it is addpost?

The thank you message about your message being posted is lost by the fact
it is dwarfed by the footers, plus this page only stays on the screen for only
a second or so. I think it would leave quicker if it didn't have to load my advertising
stuff. Plus I don't think this page generates much hits for ads anyway since
it is there and gone too quick.

Sponsored Links
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
CSS trick..

<style type="text/css">
.footer {
display: none;
}
</style>

Place the above in the template you do not want the footer to show. Then edit ubbt_footer.tmpl as follows

<span class="footer">
$tbopen
<tr>
<td class="darktable">
<table border="0" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td align="left">
$contactlink
{$template['privacy_statement']}
</td>
<td align="right">
<a href="{$config['homeurl']}">{$config['urltitle']}</a>
</td>
</tr>
</table>
</td>
</tr>
$tbclose
</span>

Viola, it's gonzo.. I remove the menubar on my site this way. Remember NOT to blank out the copyright, that is not permitted.


- Custom Web Development
http://www.JCSWebDev.com
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
That makes sense but....

This is the addpost.php sending the confirmation.

Code
<br /><br />// ------------------------------------<br />// Now we give them a confirmation page<br />if ($Approved == "no") {<br />	if (!$debug) {<br />		include ("$thispath/templates/$tempstyle/addpost_moderated.tmpl");<br />	}<br />}<br />else {<br /><br />	if (!$what) {<br />		$what = $user['U_Display'];<br />		if (!$what) { $what = $theme['postlist']; }<br />		$what = "show$what";<br />	}<br />	if (!$debug) {<br />		include ("$thispath/templates/$tempstyle/addpost_confirm.tmpl");<br />	}<br />}<br /><br />$html -> send_footer();<br /><br /><br /><br /><br />?><br /><br />


there is no addpost.tmpl just the confirmation.
and that doesn't have any "footer stuff.

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
Try adding it to either template mentioned in that code snipet.


- Custom Web Development
http://www.JCSWebDev.com
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
The code is in the script not the template. will it work in the script? Let me try it.

Sponsored Links
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
nope it doesn't work in the script

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Are you wanting to kill the whole footer (will make HTML invalid) or just the footer insert you have (like your ads)?

If so - here's how.

In the ubbt_footer.tmpl file.

Find this:


include("{$config['path']}/includes/$file");


Change to this:

if (!$config['nofooter']) {
include("{$config['path']}/includes/$file");
}



Then on any page you don't want the footer file included - ABOVE the send_footer function - add this:

$config['nofooter'] = 1;


Basically the "if" statment we did says if there's no value for $config['nofooter'] then we print the footer. So by defining a value, only on pages we don't want the footer inserted, we can "switch" it off.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Wow that worked. thanks for the explanation, that makes sense.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369

Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,290
For the record I meant...


// ------------------------------------
// Now we give them a confirmation page
if ($Approved == "no") {
if (!$debug) {
include ("$thispath/templates/$tempstyle/addpost_moderated.tmpl");
}
}
else {

if (!$what) {
$what = $user['U_Display'];
if (!$what) { $what = $theme['postlist']; }
$what = "show$what";
}
if (!$debug) {
include ("$thispath/templates/$tempstyle/addpost_confirm.tmpl");
}
}

$html -> send_footer();


- Custom Web Development
http://www.JCSWebDev.com
Sponsored Links
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Oh I think i see, (Small flame begins to flicker above my head) thanks JC


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)