Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra page driven by forum templates Details »»
Extra page driven by forum templates
Version: 1.00, by c-pr0mpt c-pr0mpt is offline
Developer Last Online: Apr 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-26-2002 Last Update: Never Installs: 42
 
No support by the author.

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:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 04-11-2004, 05:35 PM
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Location: South Wales
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Code:
<?php
error_reporting(7);

require('./global.php');


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

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

Can anyone advice please... thanks
Reply With Quote
  #53  
Old 04-11-2004, 05:51 PM
Mythlander Mythlander is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"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
  #54  
Old 04-11-2004, 06:00 PM
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Location: South Wales
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mythlander,

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

Quote:
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


Quote:
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
  #55  
Old 04-11-2004, 06:03 PM
Mythlander Mythlander is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #56  
Old 04-11-2004, 06:10 PM
Mythlander Mythlander is offline
 
Join Date: Dec 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #57  
Old 04-11-2004, 06:26 PM
TheMusicMan's Avatar
TheMusicMan TheMusicMan is offline
 
Join Date: Oct 2002
Location: South Wales
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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


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

Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08574 seconds
  • Memory Usage 2,265KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete