![]() |
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: |
Quote:
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 |
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. |
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. |
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. :) |
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. :)
|
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? |
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? :) |
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! |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|