PDA

View Full Version : New page, using header and footer


hpisavagecom
04-22-2003, 11:48 PM
Hi,

I am new to all of this but I would like to add a new page to my forum hpisavageforum.com (http://www.hpisavageforum.com) for displaying rates to advertise etc. I know HTML but I do not know how to incorporate a new page into my forum and to also use my headers and footers. Any help would be appreciated.

Thanks

Logik
04-23-2003, 12:32 AM
If its outside the forums dir, just go

require ('./forums/global.php');

But if its inside the forums dir, then go

$header
Conent here
footer

I believe this is right. I havent made to many outside VB pages.

Dean C
04-23-2003, 10:13 AM
It needs to be a bit more than that. Basically c-prompt made a hack for it ;)

- miSt

drives fast
04-23-2003, 08:18 PM
make a php script with this in it:
<?php
error_reporting(7);

$templatesused='advertise';

require('./global.php');

if ($bbuserinfo[userid]==0) {
show_nopermission();
}

$bbusername = $bbuserinfo[username];

eval("dooutput(\"".gettemplate('advertise')."\");");

?>
upload that to your forum directory
then make a template called "advertise" and put your html in it using the $header and $footer like the other templates of your site

this checks to see if the person is at least registered to view the page

Logik
04-23-2003, 09:01 PM
Oh ok. My bad. thanks for cleaifying it mist. I read the question wrong ;)

Dean C
04-24-2003, 09:20 AM
No problem Logik and drives fast - that will work but there' no need to assign the value of $bbuserinfo[username] to $bbusername really ;)

- miSt

ChurchMedia
04-27-2003, 11:41 PM
I couldn't find the hack from c-prompt. Could you direct me to that? Thanks!

Dean C
04-28-2003, 12:47 PM
I can't seem to find it either - this is very odd O.o

- miSt

ChurchMedia
04-28-2003, 04:35 PM
I figured it out -- it's because he spells it c-pr0mpt :). I found the hack HERE (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36600). I also like Logician's hack. (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36419)

Thanks!

Dean C
04-28-2003, 05:44 PM
hehe I searched for prompt and couldn't find it either :)

Thank for reminding me of his silly username (vb member search shouldn't be case-sensitive) hehe :)

- miSt