vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex (https://vborg.vbsupport.ru/showthread.php?t=37021)

el3m3nt 05-05-2002 09:12 AM

Quote:

Originally posted by nakkid
element, you have 57queries on your page. that means your server on the red line. everything over 40 is bad.
nakkid, visit this link: http://partylife.ch/index.php?action...&numthreads=30
you get 106 queries without any problems. the server is located in the us. so you should have the faster connection then i have :).

TECK 05-05-2002 09:56 AM

this is incredible... i hope you know that your server is exploding only with 20-30users... at 108queries.
if i would be you, i would reduce those queries. if your site is getting busy, i guarantee you that your current host will cancel your account. you could fry their server every day at this rate. just a friendly advice.
just for fun, what is the server load you get in average? 5, 6, 7? what value? i'm curious... let me know please.

el3m3nt 05-05-2002 02:50 PM

ehm.. about 3.5!

well.. i know nakkid.. thanks for your advice :). the point is.. that i dont expect that the site is getting busy :).
hmm.. i dont think my host would cancel my account.. first he would kill me ;). no i hope not :D. well i get this server for free.. and i'm very happy with it.. even if its not the fastest i could get :).

FlyingDutchman 05-05-2002 02:59 PM

Quote:

Originally posted by FlyingDutchman
I finnaly got it to work... I just did a plain install of Vb and VbIndex and now it works great!
anyway, can anyone help me please with this:

I want: To show up the left-menu on the forums page
What I did: I put this line:
PHP Code:

eval("\$left = \"".gettemplate('home_left')."\";"); 

just at the end of index.php and added home_left to the '$templatesused-list'

I thought that it would show up now when I would include $left somewhere in the header... but it doesn't?!? what am I doing wrong? (did I edit the wrong file or something?!?)

thanks in advance for your help,

nobody can help me with this?
I don't know where to go else to get some help? :(

el3m3nt 05-05-2002 05:00 PM

ehm.. flyingdutchman..

$templateused list.. just reads the templates in a cache memory.
the home_left is already loaded in the original vbindex file. you just have to put the $left where ever you want in the 'home' template. (sorry for my english.. i just don't know to translate this correctly :()

hope this helped you. if not... just ask :).

NTLDR 05-05-2002 05:53 PM

Quote:

Originally posted by FlyingDutchman


nobody can help me with this?
I don't know where to go else to get some help? :(

I had a look, but I couldn't get this to work I'm afraid. It is either, the forums index.php or global.php that needs to be editied, take a look at the vbportal code, that may help you as it has a left menu in the forums option.

FlyingDutchman 05-06-2002 04:42 AM

Quote:

Originally posted by NTLDR


I had a look, but I couldn't get this to work I'm afraid. It is either, the forums index.php or global.php that needs to be editied, take a look at the vbportal code, that may help you as it has a left menu in the forums option.

Ok, I'll look at that then :)

Quote:

Originally posted by el3m3nt


ehm.. flyingdutchman..

$templateused list.. just reads the templates in a cache memory.
the home_left is already loaded in the original vbindex file. you just have to put the $left where ever you want in the 'home' template. (sorry for my english.. i just don't know to translate this correctly )

hope this helped you. if not... just ask .

hmm, I think you don't understand me... I want it to show up on the index.php page from vB, next to my forums...

FlyingDutchman 05-06-2002 05:15 AM

I found it out... It needs to be in global.php instead of index.php :)
now it works... :D
thx anyway for your help guys...

FlyingDutchman 05-06-2002 05:31 AM

it's working well, except I don't know where to put the other variables and vb code... like this:

PHP Code:

// pm
// -------------------------
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0");

if (
$bbuserinfo['userid']!=0) {
  
$username=$bbuserinfo['username'];
  eval(
"\$logincode = \"".gettemplate('home_logout')."\";");
  eval(
"\$buddy = \"".gettemplate('home_buddy1')."\";");

} else {
  eval(
"\$logincode = \"".gettemplate('home_login')."\";");
  
$buddy "";


i tried putting it in index.php and global.php but it doesn't work :(
I'll try to find some code in index.php where I can just insert some lines of this code... I think that should work, but I don't like searching :(

boiboi 05-06-2002 08:59 AM

i did everything per instruction but i get a blank screen. my forums is installed in root and so is the new index.php and the old was renamed to home.php. home.php works just fine. is it the templates not showing up?


All times are GMT. The time now is 01:05 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.01582 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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