vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

Motoscene 08-27-2007 04:56 AM

I have been looking for something like this for awhile. THANKS!!!

Only having one problem with this mod. Don't know if this has been brought up yet though.
Why can you not use VB Code in the mod. I am making a links page and the url=www.link.com/url with brackets of coarse is not working.

I know some of you are having problems making this work at all. And I have found a small mistake in the upload of this to my forum on my part. If you make the text document in wordpad make sure that you use TEXT DOCUMENT not RICH TEXT DOCUMENT.

amnesia623 08-28-2007 11:59 PM

spectacular - just what i've been lookin' for

Thank you to everyone who posted this tutorial.

kjhkjh 09-10-2007 07:30 PM

Quote:

Originally Posted by Gary King (Post 482619)
1) correct
2) replace $bbuserinfo[usergroupid] == 6 with $bbuserinfo[usergroupid] == 7 or $bbuserinfo[usergroupid] == 8 or $bbuserinfo[usergroupid] == 9
3) Replace eval('print_output("' . fetch_template('TEST') . '");'); with your PHP stuff.

I'm looking at doing something similar here but don't understand the advice on some of these pages.

I have the template in place, and the web page showing. I just want to prevent guests from seeing this page (I'd rather that they saw the standard "you must be a member... blah, blah, no privileges..." vb type message)

I don't know if the quoted advice can help me, or where I should be changing stuff.

Does anyone know what code should I add/change?
Also do I change/add this in the template or in the php file?

Thanks in advance

ComputerVitals 09-17-2007 01:19 AM

Works great.

Is there any way of adding an Attachment feature like the threads can have?

ragtek 09-17-2007 05:07 AM

you would have to make a own class/dm abstracted from the attachment dm

Darth` 09-18-2007 04:25 PM

this all works great for me with one exception..
i use this to make a mini-site that only certain usergroups can access and all that works fine, my problem is in having a little navigation menu for the pages within this minisite.
basically as it was i had to have all the links on every page so adding a new one was becoming annoying, and im trying to get it so that the navmenu is a separate page/template, but cant get the nav template/page to display and have no idea why. anyone help please?

Opserty 09-19-2007 06:23 PM

Quote:

Originally Posted by Darth` (Post 1341816)
this all works great for me with one exception..
i use this to make a mini-site that only certain usergroups can access and all that works fine, my problem is in having a little navigation menu for the pages within this minisite.
basically as it was i had to have all the links on every page so adding a new one was becoming annoying, and im trying to get it so that the navmenu is a separate page/template, but cant get the nav template/page to display and have no idea why. anyone help please?

In the PHP file you can use:

PHP Code:

    eval('$mynav = "' fetch_template('mynav') . '";'); 

Then you can use $mynav in your custom template.

VBUsers 09-28-2007 10:36 PM

worked great thanks

XxBuLLeTz 10-01-2007 12:46 AM

say i want to create a page called stats as a vbulletin custom template.

my forums are located at mysite.com/forums, which means my stats page would be mysite.com/forums/stats.php

could i get it into the root directory so i could have the stats page at mysite.com/stats.php?

Tact7626 10-11-2007 06:46 PM

applied this on 3.6.8 (that's the latest version right? i forget sometimes)

worked BEAUTIFLY! thanks a lot. just have one teeny question.

my page shows up as "uknown page" in the "whos online" page when someone is visiting it. anyway to change that or give it a proper title so vbulletin displays it? prolly some title i'm missing somewhere. thanks in advance.


All times are GMT. The time now is 09:42 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.02152 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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