vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Extra page driven by forum templates (https://vborg.vbsupport.ru/showthread.php?t=36600)

Talisman 01-04-2003 04:54 AM

Quote:

Originally posted by Erwin
Interesting... similar to my "HTML/ JAVA integrator hack" - didn't know that this one existed when I wrote mine. :)
This is really great. Thank you c-prOmpt.

And I'm glad I found your html/txt/java integrator and flash hacks, Erwin, before I came across this one. Will plan to use them all for our site.

We have a number of Admins supporting our site, with all different areas of expertise. I can use the approach in this hack for our fairly static, text-based pages of reference material and our Admins can easily update the appropriate template(s), as needed.

Will then use Erwin's hack for the more dynamic pages we want to integrate that our web-guys can use with more complex html coding, flash movies, java applets, etc.

It's truly a pleasure to browse through the many threads here. And it really helps me understand how to better maintain and develop our site.

Thanks, again.

Zombie-F 01-28-2003 12:15 AM

This is exactly what I was just looking for! Thanks for the nifty little hack. I'm sure I'll use it for more than just the Privacy Statement. :D

Red Blaze 03-10-2003 01:38 PM

I wanted to make something like this, is there a way to keep guests from entering certain pages I'd make? Lets say I'm making an MP3 section and I only want members to access that page. Do you know what I mean?

Also, I wanted to move the files else where besides the forums directory. For example I want all the pages on my main directory. www.mysite.com. Not on the /forums directory. I tried moving the new php files I made and I got this error.

Quote:

Warning: main(./admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/thesonic/public_html/forums/global.php on line 129
I'm guessing the problem lies with in global.php. Can someone help me out?

Triality159 06-20-2003 07:54 PM

i am also having a problem..I get this error

Warning: Cannot modify header information - headers already sent by (output started at /home/advanced/public_html/advertising.php:7) in /home/advanced/public_html/admin/functions.php on line 1652

someone please help

thanks

Triality159 06-21-2003 02:54 AM

nvm i got this fixed.....

dotagious 06-30-2003 01:33 AM

Would this work with a small cgi based script?

Slybone 11-10-2003 07:54 PM

GReat Job, Just what I needed
/me clicks install

gmarik 11-11-2003 02:07 PM

Quote:

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:
http://www.yaxay.com/sshotadmin.gif

Sshot of whos online if the person is on the page:
http://www.yaxay.com/online11.gif


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?

glo 03-25-2004 09:07 AM

Quote:

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?

Mythlander 04-11-2004 05:10 PM

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.

TheMusicMan 04-11-2004 05:35 PM

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

Mythlander 04-11-2004 05:51 PM

"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.

TheMusicMan 04-11-2004 06:00 PM

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...?

Mythlander 04-11-2004 06:03 PM

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! :D

[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.

Mythlander 04-11-2004 06:10 PM

Yup, this hack won't work on vB3. :) Use the link I provided in my previous message for the same (apparent) functionality.

TheMusicMan 04-11-2004 06:26 PM

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... :)


All times are GMT. The time now is 09:13 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
  • Page Generation 0.03948 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete