vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add Custom Pages to a forum ? (https://vborg.vbsupport.ru/showthread.php?t=196905)

fireboxssl 11-21-2008 11:25 PM

How to add Custom Pages to a forum ?
 
How to add Custom Pages to a forum ?

I found this ( http://www.vbulletin.com/forum/showthread.php?t=197563 ) and tried it out but all i get is a blank page.

I don't understand on where am I supposed to place the html code.

Thanks for any info.

Lynne 11-21-2008 11:45 PM

The html code goes into a template that you add yourself. There are two (at least) other articles about adding pages. All the pages do the same thing, but maybe it is explained better in another one - How to create your own vBulletin-powered page! (uses vB templates) or [How-To] vBulletin API Basics: Creating Custom Pages & Misc.

fireboxssl 11-22-2008 12:04 AM

Thanks, so I have to crate a .php file first?

I have created a custom template but don't know where to place the html code in the template.

I am trying to make a status page for the forum. A page where user can click on a button to to say if the product is working or not at the current time.

Lynne 11-22-2008 03:45 AM

Usually if a forum is down, it's because the database is down or apache and/or mysql is not running (or the host or server are down). Using templates will not work if the database is down or mysql is down since they are stored in the database. And, a php page won't work if apache isn't running. So, I'm not sure how it is you plan to do this status page.

But, to answer your question regarding those pages I linked you to, you would need aphp page to spit out the contents of your template.

If all you want is html, then just write a basic html page - no need for the use of templates.

fireboxssl 01-26-2009 07:04 PM

I think we misunderstood each other. :)

I was going to make a status page for electronics devices so that the forum usurers can go on that page and see if there product is working correctly or if it needs updates.

This would be nice to have but I think I need to do more reading.

Thanks for the help :up:

BigJohnny 03-07-2009 02:24 AM

edit:

i posted in the wrong thread sorry....


All times are GMT. The time now is 02:09 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.01037 seconds
  • Memory Usage 1,719KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete