The Arcive of vBulletin Modifications Site. |
|
Adding a new page Details »»
|
|||||||||||||||||||||||||
Hi people
I found this: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD><TITLE>$bbtitle - About</title> $headinclude </head> <body> $header <p>Your code here!!!!!</p> $footer </body> </html> Code:
<?php
error_reporting(7);
require("./global.php");
eval("dooutput(\"".gettemplate('aboutmain')."\");");
?>
Also, I would like to have it read the names of some other templates that are used within, can anyone shed some light please? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Quote:
![]() And try c-prompts extra page driven by forum templates hack to do this if you haven't allready seen it
|
|
#3
|
|||
|
|||
|
Hi NTLDR
Thanks for the reply! Regarding: Quote:
I have searched for the recommened therad in the hacks db but nothing came up (I also tried combinations etc., and have also searched on c-prompts in the members db in the hopes that, like yourself, there would be a libnk in the sig but both searches came up empty. |
|
#4
|
||||
|
||||
|
diades - your code should work, as long as you name the custom template correctly - make sure the name is "aboutmain". Make sure "aboutmain" is in the all your templatesets especially your default templateset.
|
|
#5
|
|||
|
|||
|
Hi Erwin
"Make sure "aboutmain" is in the all your templatesets especially your default templateset." I actually have this: Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD><TITLE>$bbtitle - About</title> $headinclude </head> <body> $header $mainscript $preloads <p>Your code here!!!!!</p> $footer </body> </html> And links.php3: Code:
<?php
error_reporting(7);
require("./global.php");
eval("dooutput(\"".gettemplate('links')."\");");
?>
"{forumlink}/links.php3?s="> where links is the master page template. I am only using it on one template at the moment to get it operational but, yes, I will naturally spread it accross when it is. |
|
#6
|
|||
|
|||
|
Hi Guys
Would it help if I posted the script/markup that I am actually using? |
|
#7
|
||||
|
||||
|
If $mainscript and $preloads are templates being called, you need to define these variables in the php file using dooutput.
|
|
#8
|
|||
|
|||
|
Hi
No luck so far! We found c_prompts hack eventually and, after trying mine to no avail, I decided to use that hack verbatim the only difference being: <p>Privacy Test</p> as content all that I get is: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> We are running 2.2.7 if that makes any difference |
|
#9
|
|||
|
|||
|
We sorted thanks, used a different method
|
![]() |
|
|