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)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

glo 09-24-2002 01:22 AM

I am not sure how i am supposed modify the templates?


And here is my path.
// make sure set your correct forums path, below
chdir('/forums/global.php');
require('./global.php');

I have already completed the install of vbHome and that indicates that the path is correct?

So maybe it has something to do with the templates and index.php.

I am losing my hair over this hurdle...... :confused:

bouncer18 09-24-2002 05:06 PM

Quote:

Originally posted by glo
I am not sure how i am supposed modify the templates?


And here is my path.
// make sure set your correct forums path, below
chdir('/forums/global.php');
require('./global.php');

chdir('/home/wwroot/purposebuilt/forum')

thats how mine is set.


as far as templates go...

go into /admin
near the bottom left you will see templates.
click edit and then edit them

Edited Due to Teck schooling me on the post below

TECK 09-24-2002 05:10 PM

thanks bouncer18. :)
but your path should be:
home/wwroot/purposebuilt/forums < without the / at the end.

glo, make sure you have the full path. i included in the reame file the information, how to get it.
also, for the templates, use the same aproach to add them.

xevious 09-24-2002 08:17 PM

Oh man, im having problems with the blank page also.
Here is what i get on my home page:
Warning: ChDir: No such file or directory (errno 2) in C:\apache\htdocs\index.php on line 17
This is what i have for paths in the index:
chdir('/forum/global.php');
require('./global.php');
I am installing this on a test board on my computer. Please let me know what i did wrong. Thank-you.

TECK 09-24-2002 08:30 PM

Some of you don't understand how the path settings are working, so I made a little tutorial to help you understand better.
First, create a file with the content:
[high]<?php phpinfo(32); ?>[/high]
Save it as info.php and upload it to your /forum folder.
When you open info.php in your browser, you will see there a list of env options set as default by your host.
One of them is called _SERVER["PATH_TRANSLATED"]. That's what you are looking for. The path to your folder.

Now, open vbHL index.php file and locate this code segment at the top:
chdir('[high]/wwwroot/test[/high]');
Replace the [high]/wwwroot/test[/high] path with your actual full server path.

Let's suppose your full server path to your forums (where global.php is located) is:
chdir('/home/test/htdocs/forum');
or
chdir('c:/apache/htdocs/forum'); (for windows users)

The chdir function changes the path the the correct location of your global.php file, if you call it from a different location, like it's the case for vbHome (lite).
Example:
chdir('c:/apache/htdocs/forum');
In the example above, if you place the index.php file in [high]/htdocs[/high] folder, it will still look for global.php in [high]/forum[/high] because chdir does the job for you and relocate the exact place where to look for the file (global.php).

The require function let know that global.php file is needed.
The dot in front of [high]/global.php[/high] (in require function) let know there is a link to either chdir folder or actual folder.

Adjust the correct path in your vbHL index.php file, and everything will work as it's suppose to. :)

xevious 09-24-2002 10:32 PM

Thanks alot Teck, works great now. Hehe, i am not very knowledgable about paths and such when it comes to running vb on my comp. Works fine now. Thank you. :)

glo 09-25-2002 12:06 AM

so does this mean that we should have created a vbHome folder with the new templates and index.php?

From what you jst said the chdir will point to a diffeerent index.php?

TECK 09-25-2002 12:11 AM

no glo. did you read the readmefirst file?

most of the time, people do this:
[root]
index.php < your vbHome (lite) file
---[forum] < your forums folder
------[index.php < your index.php file for your forumhome
------[more files here...
---------[admin] < your admin forums folder
------------[index.php < your index.php file for your admin CP
------------[more files here...

the chdir command is needed just to trace the /forum/global.php file, not your vbHL index.php file.
you can place anywhere you like the vbHL index.php file (included in the .zip), as long as you set the correct path to grab global.php, from your forums folder.
vbHome (lite) index.php file cannot work if the path is not correct.
once you set the right path, you can place even on the moon, your vbHome (lite) index.php and it will still work.

for example if your path is:
/home/index/site/local/forum
and your global.php is in /forum folder, you have to enter this:
chdir('/home/index/site/local/forum');

if you do this, you can place your vbHome (lite) file in any of the upper folders, for example:
/home, /index, /site, /local

and as well as in lower ones:
/forum/images

or whereever you want to put it. did you get it now? :)

nokia8860 09-26-2002 07:07 AM

I'm currently getting the hang of this very GREAT hack for vB. This is just what I needed. Everything is working like a charm.

My question, if it is possible to answer is about the poll add on. I am using ver 3 of vbhome lite and when I add all the changes to make the poll work the load time on my page lengthens by alot (and I'm pulling up the page locally)

Could I be doing something wrong? (the answer is probably yes) But when I remove the code that is to be placed towards the end of the vbhome index file my page loads up fast again.

Any help if possible would be great.

thanks!

TECK 09-26-2002 07:11 AM

i wouldnt recommend you to use that poll in vbHL 3.
it was designed for older versions... instead search the forums for "polls on home page" and insert that hack into it.

the good part about vbHL is that you can add any hack you want into it.
i think i will also make a add-on for this also... to avoid loading several queries. when i have time.


All times are GMT. The time now is 04:37 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.03205 seconds
  • Memory Usage 1,748KB
  • 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_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