vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   [How to] Add custompages to your forum (https://vborg.vbsupport.ru/showthread.php?t=124749)

harmor19 09-03-2006 08:01 AM

If you would like to have dynamic content on custom pages follow these steps.

Add a new plugin under the hook "misc_start".
You can make the title whatever you wish.

Plugin PHP Code
PHP Code:

$getmembers $db->query_read("SELECT * FROM " TABLE_PREFIX "user WHERE usergroupid='2' ");
    while(
$member $db->fetch_array($getmembers))
{
  
$members .= $member['username'] ."<br />";


In your custom template add the variable $members
Now when yoursite.com/forums/misc.php?do=page&template=your_template It'll run the PHP code mentioned above.

If you know PHP then you'll know that all the data is being stored in the variable $members.
Since your custom template contains that variable it'll parse the contents onto the page.

dougeetx 09-08-2006 03:00 AM

Can someone please check this link out in FIREFOX to see if the page is all brown for you, too? It seems to work fine in IE. Darn Mozilla!

http://www.realitytvfriends.com/foru...ate=googlemail

utw-Mephisto 09-08-2006 03:13 AM

Quote:

Originally Posted by dougeetx
Can someone please check this link out in FIREFOX to see if the page is all brown for you, too? It seems to work fine in IE. Darn Mozilla!

http://www.realitytvfriends.com/foru...ate=googlemail

This is a problem with FF and iframes .. google a bit aboud FF iframes backgrounds ..(don't have the time in the moment)

Kirk Y 09-08-2006 05:21 PM

IE 7 has the same deal.

FSFwebmaster 09-29-2006 08:07 AM

THANKS very easy instructions helped me right through it

Raw Sugar 12-13-2006 09:38 PM

I was wondering if anyone here knows how I can make this other page a pop-up window? And how to make it display info sort of like the profile page, but for an RPG character? If there is a hack that explains this, please point me in the right direction.

Mr Pink 12-18-2006 12:40 PM

With this simple tutorial, I have maded this page. ^_^

chick 12-21-2006 11:41 PM

Quote:

Originally Posted by Mr Pink (Post 1140950)
With this simple tutorial, I have maded this page. ^_^

Yes but you did not put it in an Iframe so what is it set into???

Mr Pink 12-23-2006 05:28 PM

Quote:

Originally Posted by chick (Post 1143166)
Yes but you did not put it in an Iframe so what is it set into???

It's a simple table. :)

Kadi 12-24-2006 06:37 AM

Hi,

Thanks utw for the step by step directions.

I have a question. I have the page set up and I'd like to add a link to it on the forum home ...what would the code for the custom temp be?


All times are GMT. The time now is 09:28 PM.

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.01242 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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