vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Creating a new 'page' with my own db driven info on it (https://vborg.vbsupport.ru/showthread.php?t=149365)

KingAdora 06-10-2007 01:14 PM

Creating a new 'page' with my own db driven info on it
 
Hi,

I don't know if there's a mod for this already, my searches don't show much... but this is what I need:


1. A new page on my forum, such as /info.php

2. This page should have the same layout as the forum, with just one big block in the middle for my text (generated from php).

3. Should also for url such as info.php?find=tree


So some sort of quick php page that outputs all the standard vB template (so it looks the same) and then allow me to put some php code in the middle to connect to my DB table and use a select statement to pull information down, depending on the querystring, i.e. .php?name=tree etc, etc.

This seems like it shouldn't be too hard (the php I need to put in the middle is already done) so I just need to know how to copy the outer template stuff. I hope a mod already exists too!

Thank you for any information :)

Lynne 06-10-2007 03:44 PM

You may want to look at this article: https://vborg.vbsupport.ru/showthread.php?t=62164

Antivirus 06-10-2007 04:46 PM

You might also find vbadvanced CMPS to be useful. www.vbadvanced.com


All times are GMT. The time now is 01:11 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.01045 seconds
  • Memory Usage 1,711KB
  • 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
  • (3)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