Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Extra page driven by forum templates Details »
Extra page driven by forum templates
Mod Version: 1.00, by c-pr0mpt (Member) c-pr0mpt is offline
Developer Last Online: Apr 2004 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 42
Released: 27 Mar 2002 Last Update: Never Downloads: 45
Not Supported  

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:


Sshot of whos online if the person is on the page:



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:

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #46  
Old 30 Jun 2003, 02:33
dotagious dotagious is offline
 
Join Date: Nov 2001
Would this work with a small cgi based script?
Reply With Quote
  #47  
Old 10 Nov 2003, 20:54
Slybone Slybone is offline
 
Join Date: Sep 2003
GReat Job, Just what I needed
/me clicks install
Reply With Quote
  #48  
Old 11 Nov 2003, 15:07
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
Originally Posted by c-pr0mpt
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:


Sshot of whos online if the person is on the page:



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:
Any live demo?
There are plentu of hacks like this, why is this better than, for example, the one Logician made?
Reply With Quote
  #49  
Old 25 Mar 2004, 10:07
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Originally Posted by gmarik
There are plentu of hacks like this, why is this better than, for example, the one Logician made?
Exactly what i was thinking!

Gmarik, what did you discover?
Reply With Quote
  #50  
Old 11 Apr 2004, 18:10
Mythlander Mythlander is offline
 
Join Date: Dec 2002
Thank you for this hack. Very simple and straightforward. I'm amazed vB doesn't have a mechanism to view the TOS/Privacy Statement after you've registered.
Reply With Quote
  #51  
Old 11 Apr 2004, 18:35
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Real name: John
Can anyone assist please... I get an error reported when I try to load the new page which is:

Fatal error: Call to undefined function: gettemplate() in ......../forums/privacy.php on line 7

... and line 7 is highlighted in red below


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I have created the forumprivacy which appears in the custom templates section in Styles Management>Edit Templates

Can anyone advice please... thanks

Last edited by TheMusicMan; 11 Apr 2004 at 18:39.
Reply With Quote
  #52  
Old 11 Apr 2004, 18:51
Mythlander Mythlander is offline
 
Join Date: Dec 2002
"Undefined function" looks like it can't find global.php.

Is this file (privacy.php) in the same directory as global.php? It needs to be.

Also, make sure your forumprivacy template is part of the default template style. I also copied it to all of my other template styles.
Reply With Quote
  #53  
Old 11 Apr 2004, 19:00
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Real name: John
Hi Mythlander,

Thanks for the reply so promptly... much appreciated...

Originally Posted by Mythlander
"Undefined function" looks like it can't find global.php.

Is this file (privacy.php) in the same directory as global.php? It needs to be.
Yup, nave checked using ftp prog and global.php and privacy.php are in both the forum directoty


Originally Posted by Mythlander
Also, make sure your forumprivacy template is part of the default template style. I also copied it to all of my other template styles.
I ensured that I was in the default template when I created the template. I have checked the names to make sure I have created them correctly.

Can you suggest something else for me to try please...? is it to do with vB3 Gold perhaps...?
Reply With Quote
  #54  
Old 11 Apr 2004, 19:03
Mythlander Mythlander is offline
 
Join Date: Dec 2002
Well this is a vB2 hack. I'm not sure if it works with vB3. Heck, I couldn't tell you if vB3 even has a gettemplate() function!

[Edit] I just checked. It looks like gettemplate() no longer exists in vB3. It's now fetch_template(). Also, I found a thread on doing this for vB3 here.

Last edited by Mythlander; 11 Apr 2004 at 19:07.
Reply With Quote
  #55  
Old 11 Apr 2004, 19:10
Mythlander Mythlander is offline
 
Join Date: Dec 2002
Yup, this hack won't work on vB3. Use the link I provided in my previous message for the same (apparent) functionality.
Reply With Quote
  #56  
Old 11 Apr 2004, 19:26
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Real name: John
Originally Posted by Mythlander
Yup, this hack won't work on vB3. Use the link I provided in my previous message for the same (apparent) functionality.
Excellent Mythlander, thanks for your help...
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:31.

Layout Options | Width: Wide Color: