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)

ragtek 06-23-2010 11:22 AM

Quote:

Originally Posted by jdrakopo (Post 2058045)
I'm having trouble getting this working.
Am getting the following errors (below).

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

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

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


The last part of my custom php file (named adhub1.php) is as follows (see just below):
(and I do have a template named 'adhub1'.)

Any ideas ?
I must be missing something simple.
Thanks.

// ############ START MAIN SCRIPT ################
$navbits = array();
$navbits[$parent] = 'adhub1';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('adhub1') . '");');

?>

You haven't seen the posts before your, or?*g*
This is for vB3 and not vB4

jdrakopo 06-23-2010 11:46 AM

I see.
Thanks.

I was led to this thread by another one (https://vborg.vbsupport.ru/showthread.php?t=228112)... but see that this is for vb3 and that one appears to have tailored the work for vb4.

jimjam 07-03-2010 10:32 AM

Hi I am using VB 3.84, I have followed the instructions but getting this error when i go to the page, any ideas, thanks

Quote:

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

jimjam 07-05-2010 09:50 AM

If I turn Gzip off in VBadmin then the custom page shows up, but then I have no compression and a slow site, how can i get the custom page to show up with th egzip enabled? Thanks

Quote:

Originally Posted by jimjam (Post 2063759)
Hi I am using VB 3.84, I have followed the instructions but getting this error when i go to the page, any ideas, thanks


AndrewRich 08-26-2010 08:43 PM

Quote:

Originally Posted by Lynne (Post 1760379)
You can try adding the base url tag to your <head>:

HTML Code:

<base href="http://www.yoursite.com/forums/" />

Thank you for this tip! It helped me in a somewhat different context but was exactly what I needed.

m2006 08-29-2010 01:28 AM

Hi my friends

I want to see members use online. Create a new page on the outside, but more of how to root forum.

Sample
web.com/forum/index.php << root forum
web.com/new/index.php << my add new sub folder

ludachris 09-09-2010 02:37 PM

Can anyone explain how to use this approach to get an OScommerce installation (that lives outside the forums directory) to use vBulletin header/footer/navbar templates and usergroup permissions?

I have an OScommerce installation that I'd like to wrap with my vb header, navbar and footer template and have the user permissions tied in so that the header navigation that is displayed differs from usergroup to usergroup. I just can't figure out where to plug in some of the php code in the OScommerce files.

genxstan 09-13-2010 10:11 AM

I didn't get a thing . Is there some good tutorial ,step by step i mean.

BigJohnny 09-15-2010 11:42 PM

Quote:

Originally Posted by genxstan (Post 2097505)
I didn't get a thing . Is there some good tutorial ,step by step i mean.

you probably named something wrong. I had the same problem and realized that I had missed a TEST that I needed to rename, and that my template name needed to match the template call exactly, including case.

look very closely and make sure all the names match up to what they need to be. I just got this working nicely on 3.8.3

BigJohnny 09-18-2010 05:05 PM

ok so if i want to make this work outside of the forums directory, how do you change the navbits so it doesn't link back to the forum?


All times are GMT. The time now is 10:36 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.02040 seconds
  • Memory Usage 1,747KB
  • 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_html_printable
  • (5)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