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)

FlyingDutchman 05-02-2002 09:28 AM

the result:

Code:

Page generated in 1.0316380262375 seconds with 40 queries,
spending 0.051961898803711 doing MySQL queries and 0.97967612743378 doing PHP things.


FlyingDutchman 05-02-2002 09:43 AM

This sucks :( I got the news showing up:

$newsforum=3

I posted a thread in Forum #5 and it shows up?!?
I posted a thread in Forum #1 and set $newsforum to 1 and nothing shows up?!?

el3m3nt 05-02-2002 03:36 PM

FlyingDutchman, perhaps something wrong with the forumpermissions? if forum #1 doesnt work.. just use a forum which works.. if theres no other solution...

JoeHarrison, thanks.. yap a little typo. ahm.. perhaps i'll release version 1.4 with some fixes.

Bad Bunny 05-04-2002 04:37 AM

Ok...I followed the instructions, and I have an error on line 403, which just HAPPENS to be "?>" without the quotes of course.
Anyway...I don;t see how this could work since I am renaming the index file of vb...so when ever going to the root, you will be goiong to the portal. That seems...odd. never the less, I would really like to get something running like this. I guess I am jut brain dead or something.
Any help would be apreciated.

netman 05-04-2002 04:38 AM

I am currently out of the office and will return on Tuesday, May 7th.

Frank

FlyingDutchman 05-04-2002 05:41 AM

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,

wintz 05-04-2002 08:30 AM

Quote:

Originally posted by Bad Bunny
Ok...I followed the instructions, and I have an error on line 403, which just HAPPENS to be "?>" without the quotes of course.
Anyway...I don;t see how this could work since I am renaming the index file of vb...so when ever going to the root, you will be goiong to the portal. That seems...odd. never the less, I would really like to get something running like this. I guess I am jut brain dead or something.
Any help would be apreciated.

I had the same error see Here for what fixed it for me it might help you

NTLDR 05-04-2002 06:48 PM

Quote:

Originally posted by Bad Bunny
Ok...I followed the instructions, and I have an error on line 403, which just HAPPENS to be "?>" without the quotes of course.
Anyway...I don;t see how this could work since I am renaming the index file of vb...so when ever going to the root, you will be goiong to the portal. That seems...odd. never the less, I would really like to get something running like this. I guess I am jut brain dead or something.
Any help would be apreciated.

Bad Bunny, make sure that there is nothing after the "?>" ie make sure that the > is the last character of the file and there are no lines after it and no spaces, I think this is what is causing the problem.

TECK 05-05-2002 12:20 AM

element, you have 57queries on your page. that means your server on the red line. everything over 40 is bad.

erdem 05-05-2002 04:46 AM

another 57 on me :)

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?

ZiRu$ 05-06-2002 08:30 PM

thanks! This hack looks good I'll install it this weekend

boiboi 05-07-2002 02:45 AM

this is what shows up when i view source

<!-- BEGIN TEMPLATE: home -->

<!-- END TEMPLATE: home -->

NTLDR 05-07-2002 06:22 PM

Quote:

Originally posted by boiboi
this is what shows up when i view source

<!-- BEGIN TEMPLATE: home -->

<!-- END TEMPLATE: home -->

Have you created and enterd the HTML into the home template?

Bad Bunny 05-09-2002 02:28 AM

Ok, I get a completely blank screen.
??

Disturbed 05-09-2002 04:06 AM

you get a blank screen cos unlike vBHome this hack only works in your forums directory and not the root directory...

boiboi 05-09-2002 04:41 PM

Quote:

Originally posted by NTLDR


Have you created and enterd the HTML into the home template?

Yes I have.

NTLDR 05-09-2002 06:08 PM

Quote:

Originally posted by Disturbed
you get a blank screen cos unlike vBHome this hack only works in your forums directory and not the root directory...
Wrong

This will work in another directory other than your forums dir, if you use the chdir command:

PHP Code:

chdir("/path/to/forums"); 

Above:

PHP Code:

require("global.php"); 


Disturbed 05-09-2002 06:15 PM

i did try that b4, but it didn't work thats why i'm using vBHome :rolleyes:

N9ne 05-09-2002 07:06 PM

This hack sounds awesome! Easy installation, great options, I WILL DEFINITELY install this hack! Thanks El3m3nt!

Ordovicium 05-09-2002 09:45 PM

Thanks works great on 2.2.5

The only thing: I will remove the Notpad Link on the main page, but I could not find it.

NTLDR 05-09-2002 10:44 PM

Quote:

Originally posted by Disturbed
i did try that b4, but it didn't work thats why i'm using vBHome :rolleyes:
If its set up properly it will ;)

NTLDR 05-09-2002 10:45 PM

Quote:

Originally posted by Ordovicium
Thanks works great on 2.2.5

The only thing: I will remove the Notpad Link on the main page, but I could not find it.

Its most likly to be in either home_left or home_loggedin or something similar, click on search under the templates section on the Admin CP menu and type notpad, that will find the culprit :D

FlyingDutchman 05-10-2002 07:45 AM

home_logout is the right template ;)

Ordovicium 05-10-2002 09:28 AM

Quote:

Originally posted by FlyingDutchman
home_logout is the right template ;)
Yes, thanx. I searched all the time in home_left. And the Search-Engine didn't find it under home_logout.

el3m3nt 05-10-2002 03:13 PM

hehe Ordovicium.. nice sig ;)

von mir aus k?nnen wir schon deutsch sprechen auf vb.org.. sofern niemand was dagegen hat? :)

FlyingDutchman 05-10-2002 04:41 PM

Quote:

Originally posted by el3m3nt
hehe Ordovicium.. nice sig ;)

von mir aus k?nnen wir schon deutsch sprechen auf vb.org.. sofern niemand was dagegen hat? :)

i have something against it!
let's all speak our own language! w00t, this place will get messy! :p :bunny:

boiboi 05-11-2002 04:10 AM

adding chdir above required didn't work so I moved everything back inside the forums dir. now this is what appears when i view source

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

Decoder 05-14-2002 07:57 AM

i am completly lost here
can someone please give me a hand?


PHP Code:

+-----------------------------------------------------------------------+
Instructions for the new index.php                    |
+-----------------------------------------------------------------------+

1. Open the file and edit the variables at the top of the file.

2. Open the original vBulletin index.php and look for..

    
$activeusers "";
    
$loggedinusers "";

   
till    
    
      $recordusers 
$maxusers[0];
      
$recorddate vbdate($dateformat,$maxusers[1]);
      
$recordtime vbdate($timeformat,$maxusers[1]);
      eval(
"\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");

   [
Line 138-211pay attentiontake exactly this codecopy this code with Ctrl+C.

3. In the new index.php look for..

    
// add here the vBulletin code of the original index.php

   
and replace it with the code you took out of the original index.php above


NTLDR 05-14-2002 04:46 PM

Which part(s), are you stuck with?

In the file, the term "new index.php" refers to the file called index.php in the vbindex zip.

Basicly you need to copy some code from your forums/index.php file into the php file that came with vBindex. (Due to copyright reasons, which is why it hasn't already been done.)

Decoder 05-14-2002 06:44 PM

i dont know what code to copey

"Open the original vBulletin index.php and look for..

$activeusers = "";
$loggedinusers = "";

till

$recordusers = $maxusers[0];
$recorddate = vbdate($dateformat,$maxusers[1]);
$recordtime = vbdate($timeformat,$maxusers[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\"; ");

[Line 138-211]"

this confuses me


All times are GMT. The time now is 10:51 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.01457 seconds
  • Memory Usage 1,853KB
  • 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_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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