![]() |
Extra page driven by forum templates
This is a really simple hack. This is for adding other pages to your site all driven by the forums templates. This also has instructions for adding it to whos online!
Example: http://www.yaxay.com/yack/privacy.php?s= This page is driven via the normal forum templates. Sshot of admin area for this page: https://vborg.vbsupport.ru/ Sshot of whos online if the person is on the page: https://vborg.vbsupport.ru/ The instructions are for installing a page for a privacy statement. But just replace all instances of privacy, and privacy.php with the page you are creating. Very easy. Instructions attached. :classic: |
Great hack c-pr0mpt, I'll be installing this right away!
|
AWSOME! THANX DUDE!!
|
That hack's GREEEEAT!!!
|
Nice!
|
nice thanx
|
what about vbportal?
|
Very useful. Thanks for sharing ^__^
|
Just tried it out, works great!
|
Couldn't you post this 12 hours earlier? haha :) I just figured this out myself, since I was lacking a privacy statement and wanted it to integrate with vB :) Great hack :P Using your additions so it will show up online and stuff. Fnx for sharing.
|
w00t corey you did it again ^_^
thx alot biggi help for those privacey statements etc |
I was planning on making more then one statement, like a mission statement, privacy policy and piracy policy + index to click through ..
Anyway, this is the ONE file I use for all those statements!! (+4 templates) Maybe you get the idea and alter your hack with it for upcomming version :) example: http://www.creations.nl/ bottom box > forum statements which will display a page, with click throughs to the other statements. Ofcourse, this is very fun to use for any kind of new addition to the web site !! :) And so we will :p By the way: I can NOT support this, this is more a personal post to cprompt. But feel free to try yourself :) Anyway: |
Thanks for the idea xiphoid, but for me I use the normal stuff at the bottom in my footer. Privacy, copyright, etc. And in each one I have a small navigation back. =)
Glad everyone likes it so far! |
great hack corey :)
look's good! |
Quote:
I also use the different options in the bottom menu.. < contact | statements | chat | url > You ofcourse, can expand this to whatever one would please, just make sure to &action=<whatever> in the a href link. < contact | privacy statement | mission statement | sponsors | etc > Where it all can be managed from 1 file, instead of having to make several files with several templates. Every template holds their own navigation back in the top, just like anything else on a forum, so you can even use $nav bits. and just add your own page to the end of that. More dynamic, less file, and expandable, by just adding another if statement + template. |
I wasn't saying the users might not like it, what I meant was I didn't need it.
|
okidoki
|
hmm ill try it.. .seems a bit like vbhome
|
Quote:
|
the hack works i think, but when i click on to view my privacy statement, it shows up, but up top it doesnt have those navigational links like you do:
like: site -> privacy statement it doesnt have that, what did i do wrong??? |
|
Quote:
What am I doing wrong? Satan |
Quote:
|
Quote:
|
Quote:
Code:
<smallfont><b>? <a href="index.php?s=$session[sessionhash]">Forum Index</a> ? Page You Created</b> |
it has a black background, mabey i should re look my code :P
$backcolor doesnt work :alien: |
Nice hack, what if I want to have some PHP code where
<!-- YOUR CONTENT GOES HERE --> is? The code I have is a SQL driven audio database table. Help! |
You need to add the php code to the file you upload, the only template that can have php in it is the phpinclude template.
|
Quote:
I have put it in the main file that calls the templates, but how do I get the template to place my code between the vB header and footer? It just appears below the footer at the moment :( |
I'm interested in using this, but I'm using WebTemplates. Is there a difference in the two? :$
|
Quote:
Quote:
The easiest was is to assign the output to a variable and place that variable in the template where your content goes. |
Quote:
Webtemplates is similar to this but allows you to add queries via the AdminCP, and has a kind of permissions system built into it. vBindex also allows you to create extra pages by adding templates that also fit your sites design. It really depends what features you need and what works best with your setup ;) |
Quote:
I have attached the output from when I was using PHPBB2, its basically a top 10 played audio clips, and the archive itself. They are output in a table format. Any ideas? How do I put the whole file inside a variable that will use the style sheets of vB? |
If the output is just a sperate section of HTML just with PHP variables in and not any PHP code itself then just place that into the template instead.
|
Quote:
I am still stuck :/ |
[high]* GamerForums wonders if this will make any sense...
[/high] I'd known how to do this, but didn't realise I knew, until I read this thread. LOL, cheers mate, working well on 2.2.7. :) |
Hi, great hack.
But I want to put this in <? include ("vbforums/newstransfer.php"); ?> It calls a news script I am using, however when I put it in the Templates it ignores it. Any ideas? Tar. |
Interesting... similar to my "HTML/ JAVA integrator hack" - didn't know that this one existed when I wrote mine. :)
|
Quote:
|
Quote:
To be more specific, if you want a page with your site's header (on the top) and footer (on the bottom) and you want to include another (external) page right in the middle then your solution doesn't work. At least not for me! :| Same happens if you place the include statment in the phpinclude template. The only differense is that the included page gets displayed to EVERY VB file. What would really be helpful in this is to define something like $newpage = include("http://the_included_page"); And then everywhere (in the templates) you place $newpage the included page should appear. Is this possible? Any ideas?? |
All times are GMT. The time now is 08:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|