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)

Indy 03-29-2004 06:11 PM

Quote:

Originally Posted by raynett
I had the same style problem on my page outside of the forum. Copying the clientscript and images folders in the directory the test.php page resides seemed to correct that.

The problem I can't figure out though... the links in the navbar and footer portion of the test page do not link properly if the page is outside of the forum folder. The address is missing the forum portion of the URL. Example: link leads to http://www.yourdomain.com/register.php when it should lead to http://www.yourdomain.com/forum/register.php.

$vboptions[homeurl]/

"also needs to be added to the beginning of all the relative links in the navbar and footer templates."

If I have to copy any script out there, I'm not even going to mess with it. I did have use for it if I could get it to work though. I'm also going to use it within my forum dir for two or three pages that I need too. Will start working on those tonight!

Gary King 03-29-2004 07:09 PM

Quote:

Originally Posted by attroll
I have removed the following code from the PHP file and it still works. Could you tell me what the purpose of this code is and what it does?

Code:

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(

);

// get special data templates from the datastore
$specialtemplates = array(
   
);

// pre-cache templates used by all actions
$globaltemplates = array(
    'TEST',
);

// pre-cache templates used by specific actions
$actiontemplates = array(

);


They save you queries; yes you can remove them, but they are there as 'fillers' so you can put in your own values if you ever need to.

They are for phrasegroups, and also for template-cache; meaning if you put your template names there then you will save 1 extra query.

attroll 03-30-2004 03:53 AM

Quote:

Originally Posted by Gary W
They save you queries; yes you can remove them, but they are there as 'fillers' so you can put in your own values if you ever need to.

They are for phrasegroups, and also for template-cache; meaning if you put your template names there then you will save 1 extra query.

The reason I asked this is because shortly after I install this mod and replaced it with the other version I was using I started getting MYSQL errors. I narrowed down where the errors were coming from. They were coming from to much memory being used. So I removed this mod and put the other version back in and now I have not had any problem any MYSQL errors. I don't know if this was just coindence or not. But I like this version of the mod here and would like to reinstall it. But I am afraid to put it back in because the errors might come back. The other mod that I am using now it pretty much identical to this mod except for the lines I asked about.

Would those lines cause more memory usage?

Gary King 03-30-2004 12:19 PM

Those lines would cause less memory usage.

attroll 03-30-2004 12:50 PM

Quote:

Originally Posted by Gary W
Those lines would cause less memory usage.

I will switch back over and reinstall it again later this week and see if the errors come back. I hope they do not. I like this version of the hack. I will keep you posted.

The Wise One 04-01-2004 12:31 AM

Quote:

Originally Posted by The Wise One
is it possible to get the member age (if specified by the user in in his options) to show on the page...and is it possible to get the contact column from memberlist.php to work on this custom page? if so...how?

anyone have any thoughts on this?

da prez 04-01-2004 03:13 AM

i am wondering if i can use $post[musername] or other varibles in the text.

i have tried every combination i can think of with no luck.

da prez 04-01-2004 05:17 PM

nevermind i got it.

well most of it.

i needed the following : $bbuserinfo[username]

ogden2k 04-04-2004 09:13 PM

Great hack!

SVTBlackLight01 04-04-2004 10:18 PM

Quote:

Originally Posted by The Wise One
is it possible to get the member age (if specified by the user in in his options) to show on the page...and is it possible to get the contact column from memberlist.php to work on this custom page? if so...how?

Is this for the person viewing the page or for making a page about a specific member?

To display the info about whoever is viewing the page (if they're a member) shouldn't be too hard.


All times are GMT. The time now is 11:15 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02046 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (6)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