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)

Silver89 11-16-2009 03:24 PM

Should this work with the VB 4 beta?

ragtek 11-16-2009 05:05 PM

no.

cybergas 11-16-2009 05:12 PM

Thanks I'm using this :D

CypherSTL 11-21-2009 09:32 AM

Alright. I've searched and search and cannot find the solution to my problem.

I'm basically trying to create a wrapper.

PHP Code:

eval('print_output("' fetch_template('clanRoster_start_page') . '");');

echo 
"test.";

eval(
'print_output("' fetch_template('clanRoster_end_page') . '");'); 

Basically, 'clanRoster_start_page', displays the vBulletin header, navigation bar, and opens a table.

'clanRoster_end_page', closes the table, and displays the footer, etc.

----
It seems that the script is stopping after it displays the 'clanRoster_start_page' template. Anyone have any idea?

ARadarDetector 11-29-2009 06:14 AM

Not working for me at all. I created a new template named "TEST" then in my forum root /forums/test.php

I created the file test.php above. Then when I go to the page I get this error message:

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796

Parse error: syntax error, unexpected T_STRING in /home/speed/public_html/forums/test.php(42) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796
= 'Test Text Here!! ';

--------------- Added [DATE]1259482783[/DATE] at [TIME]1259482783[/TIME] ---------------

I got it fixed a little more but still have error messages on my page showing this now:

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796

Parse error: syntax error, unexpected T_STRING in /home/speed/public_html/forums/test.php(42) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796

HMBeaty 11-29-2009 02:00 PM

Quote:

Originally Posted by ARadarDetector (Post 1922361)
Not working for me at all. I created a new template named "TEST" then in my forum root /forums/test.php

I created the file test.php above. Then when I go to the page I get this error message:

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796

Parse error: syntax error, unexpected T_STRING in /home/speed/public_html/forums/test.php(42) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796
= 'Test Text Here!! ';

--------------- Added [DATE]1259482783[/DATE] at [TIME]1259482783[/TIME] ---------------

I got it fixed a little more but still have error messages on my page showing this now:

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796

Parse error: syntax error, unexpected T_STRING in /home/speed/public_html/forums/test.php(42) : eval()'d code on line 1

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]/includes/functions.php on line 3796

You're getting that error because you're using vBulletin 4 right? This article is for vBulletin 3 versions. See the article here for vBulletin 4

Kingdombuilder 12-05-2009 03:57 PM

I installed the mod and it works great, but I could not get the viewing online members part to work.

Code:

    case 'bugs.php':
        $userinfo['activity'] = 'bugs';
        break;

This does not exist in my functions_online.php file

Is there something else I can searc for to make sure i get it in the right spot?

I'm using 3.8.4 VB

Thank you for the mod, and thank you in advance for the help...

HMBeaty 12-05-2009 04:13 PM

Quote:

Originally Posted by Kingdombuilder (Post 1925756)
I installed the mod and it works great, but I could not get the viewing online members part to work.

Code:

    case 'bugs.php':
        $userinfo['activity'] = 'bugs';
        break;

This does not exist in my functions_online.php file

Is there something else I can searc for to make sure i get it in the right spot?

I'm using 3.8.4 VB

Thank you for the mod, and thank you in advance for the help...

You could create an online location by using plugins (which I prefer over editing php files) by having a look at the article here as well.

Hope that helps you :)

Lynne 12-06-2009 03:37 AM

See this [HowTo] Add Custom Pages to WOL

Lynne 12-08-2009 03:40 PM

Try this:
PHP Code:

$tabaux .= '<tr><td class="alt1">'.$col1.'</td><td class="alt1">'.$col2.'</td></tr>'



All times are GMT. The time now is 05:18 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.02472 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (2)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