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)

wooolF[RM] 10-20-2002 10:17 PM

]Damn TECK... long time I have been here... I still remember my beta tests of first releases of vbHome! was about 130 queries or so... Hehe ;) I know u still remember it :)

Just wanted to say that this hack is still number one for me at whole vBulletin.org! Thanx for everything you gave to this forum and its users... and our friendship.

I will not talk about all these releases of vbHome with better code with less queries every time and support that u gave to users. Just enough to look at post number one in this thread to understand how much work u put in this hack...

Man, you simply rock! :D

Peoples like you ... ah... U're just the best! :)

Best Greets wooolF[RM]

AviationForum 10-20-2002 11:49 PM

Well said, Woolf.

Anitah 10-21-2002 02:23 AM

I don't know if this came up before because I can't read all 107 posts.

Setup went well, easy as pie, but this error comes up when I try to access the page:

Database error in vBulletin 2.2.6:

Invalid SQL:
SELECT COUNT(*) AS threads, SUM(IF(forumid<>, 1, 0)) AS threads, SUM(IF(forumid=, 1, 0)) AS headlines
FROM thread
WHERE lastpost>1035159939

mysql error: You have an error in your SQL syntax near ' 1, 0)) AS threads, SUM(IF(forumid=, 1, 0)) AS headlines
FROM thread
WHERE l' at line 2

mysql error number: 1064

Date: Sunday 20th of October 2002 11:10:59 PM
Script: http://www.mysite.com/forum/forum/index.php
Referer:

Anitah 10-21-2002 02:48 AM

Nevermind. It works now :)

Thansk for a great hack! I love it! And I know my members will too.

Cheers.

TECK 10-21-2002 05:13 AM

Anitah, if you installed my script... can you tell me why you didn't click the Install button?
Just curious.

Anitah 10-21-2002 09:39 AM

Oh, I didn't realize.

Anitah 10-21-2002 09:51 AM

TECK, I'm glad you're around. Hopefully you can help me out.

I first installed this on a test board. Had a little problem, as you can see by my previous post. Resolved the problem simply by rewriting the path and uploading the index.php once again. But now installing on my regular board brings another error:

There seems to have been a slight problem with the THE PLACE database. Please try again by pressing the refresh button in your browser.

This doesn't tell me much.



I suspect the problem might be with my path.

Here's what I did in the index.php file:

chdir('/home/mysite/public_html/forum');

Uploaded index.php to my public_html directory.

Presumably www.mysite.com/index.php should bring it up, right?

I have no idea because I'm very dumb about these things.

TheSaint-AeD 10-21-2002 10:18 AM

Dear Readers,

first of all I want to thank Teck a lot for this awesome Hack. The potential of it nearly seems unlimited, and I got lots of ideas how to design and tweak it, but I got some serious problems with the install, as I'm morely some Web Designer than a Hacker, and my Knowlegde of DB and Server Structure isn't that good. I ask you for your help and apologize for any Inconveniance I make to you:

Some general Things:

vB Home Lite url is http://gslallianz.de
my Forums are at the sub-Domain http://foren.gslallianz.de (if you want, take a look at them, they're about 1 Months old )

Here is what I did during Installation Process:

Step 1: I made a copy of http://foren.gslallianz.de/admin/template.php and added
PHP Code:

$only['home'] = 'http://gslallianz.de'

(URL of vBHL, not the Forums)

Step 2: Made a copy of http://foren.gslallianz.de/member.php and replaced the passages as told by you.

Step 3: Made a copy of http://foren.gslallianz.de/newthread.php and replaced the passages as told by you.

Step 4: Opened vBHL index.php and edited the passage. As I did not know what to fill in there, I copied info.php on the domain and the subdomain, and it told me the following:

gslallianz.de: /www/htdocs/thesaint/info.php
foren.gslallianz.de: /www/htdocs/cea/info.php

I tried out filling in
PHP Code:

chdir('http://foren.gslallianz.de/www/htdocs/cea'); 

and
PHP Code:

chdir('http://gslallianz.de/www/htdocs/thesaint'); 

Step 5: Edited the Template via the ACP as told.

Step 6: Changed Imagesfolder to http://foren.gslallianz.de/images and deleted $bburl/ in front of https://vborg.vbsupport.ru/images (no spaces) in the templates bbcode and standarterror

Step 7: Edited all Smilies

Step 8: Edited the Avatars

Step 9: Renamed Moderators to Journalists

Step 10: Created the new Forum

Step 11: copied index.php to http://gslallianz.de
copied printarticle.php and newthread.php to http://gslallianz.de/forum
copied template.php to http://gslallianz.de/forum/admin
copied the images to http://gslallianz.de/forum/images


Then I wanted to coll up http://gslallianz.de/forum/admin/vbhlinstall.php but all I get is blank pages everywhere. I have no Idea how to solve this Problem, so I told you as detailed as I can, what I did, and hope you can help me.

I apologize for my english, but as I'm from Germany I got some difficulties to describe these Problems.

Sincerely, TheSaint-AeD

nokia8860 10-21-2002 12:45 PM

TheSaint-AeD

Remove the http:// from your chdir setting. It should look like this instead

PHP Code:

chdir('/www/htdocs/thesaint/forums'); 


Let me know if that helps.

Smoothie 10-21-2002 04:15 PM

Step 4 of the readme first explains how to set the correcr path.

Smoothie 10-21-2002 04:18 PM

Quote:

TECK, I'm glad you're around. Hopefully you can help me out.

I first installed this on a test board. Had a little problem, as you can see by my previous post. Resolved the problem simply by rewriting the path and uploading the index.php once again. But now installing on my regular board brings another error:

There seems to have been a slight problem with the THE PLACE database. Please try again by pressing the refresh button in your browser.

This doesn't tell me much.
Is this a fresh install? Did you follow all the steps in the readme first file?

HoMiE 10-22-2002 02:28 AM

Tried to in stall and get a cgi error

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

can someone help?

TheSaint-AeD 10-22-2002 10:03 AM

Quote:

Originally posted by nokia8860
TheSaint-AeD

Remove the http:// from your chdir setting. It should look like this instead

PHP Code:

chdir('/www/htdocs/thesaint/forums'); 


Let me know if that helps.

Changed that, but I still get blank Pages on vbhlinstall.php and index.php :(

Smoothie 10-22-2002 05:02 PM

STEP 4:

Open vbHome (lite) index.php file and change the default server path:
chdir('/wwwroot');

to your website full server path, for example:
chdir('/home/website/forum');

If you are not sure how to do this, create a file with the content:
<?php phpinfo(32); ?>

Save it as info.php and upload it onto your /forum folder.
When you open info.php in your browser, you will see there a list of environment 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.
All you have to do now is copy that path onto your vbHome (lite) index.php file.

mindbuster 10-22-2002 08:06 PM

k, i have read the first 20 pages and the last 20 pages, and didnt see anything like this...

Warning: SAFE MODE Restriction in effect. The script whose uid is 1829 is not allowed to access / owned by uid 0 in /home/hitman2forumcom/index.php on line 12

Warning: Unable to access ./global.php in /home/hitman2forumcom/index.php on line 16

So what's up with that?

Is it something my host (shared) has disabled?

I did the complete setup until the final step where i should upload the files, i then tried executing the index.php and got the above error!!! *gaasp*

mindbuster 10-22-2002 08:39 PM

Hmm, somehow i got the chdir messed up, corrected it but now i get...

Warning: Unable to access ./global.php in /home/hitman2forumcom/vbhlinstall.php on line 3

....when trying to run the installer....

wmabon 10-22-2002 08:53 PM

TECK,

I installed vbHome (lite) to evaluate, and I've hit a bit of a bump in the road....

I would greatly appreciate your help in getting this up and running.

I read your instructions and I did not have any problems with steps 1-4 (to the best of my knowledge).

For Step 5 I did not find the modifyavatar template and I skipped this step. Perhaps vBulletin, which I paid to do the installation, did not include this file??

Step 6 also did not seem consistent with what I was finding, and I skipped this as well.

Step 7 I modified a few of the smile paths, and this seemed easy enough.

Step 8 I made an avatar image and changed the path to a full path, and this worked ok.

In Step 9 I generated a Journalists user group, but did not understand your comment about usergroup IDs.

I performed step 10

In step 11...

I uploaded the index to: /big/dom/xobesitypolicy/www

which I take to be my root dir.

I uploaded printarticle.php, but newthread.php was not in the installation I downloaded from you, so I skipped that.

template.php was already in my ADMIN dir, and not available for uploading...

I had no problem uploading the images...

For the final step, running the installer, I uploaded vbhlinstall to my root directory and just got a white screen in the browser...

Then when I went to the domain, obesitypolicy.com, I got:


Database error in vBulletin 2.2.8:

Invalid SQL:
SELECT COUNT(*) AS threads, SUM(IF(forumid<>, 1, 0)) AS threads, SUM(IF(forumid=, 1, 0)) AS headlines
FROM thread
WHERE lastpost>1035299570

mysql error: You have an error in your SQL syntax near ' 1, 0)) AS threads, SUM(IF(forumid=, 1, 0)) AS headlines
FROM thread
WHERE l' at line 2

mysql error number: 1064

Date: Tuesday 22nd of October 2002 04:57:02 PM
Script: http://obesitypolicy.com/vbulletin/
Referer:


TECK,

Any thoughts would be much appreciated? Can my company pay you to install this properly? My computer skills are pretty marginal. I'm doing this because we're a small organization....

TECK 10-22-2002 09:38 PM

Quote:

Originally posted by mindbuster
Hmm, somehow i got the chdir messed up, corrected it but now i get...

Warning: Unable to access ./global.php in /home/hitman2forumcom/vbhlinstall.php on line 3

....when trying to run the installer....

run the installed in your /admin folder, the same way like you run your vbulletin installer.

TECK 10-22-2002 09:40 PM

wmabon, i dont need money for this. i will help you. check your pm's

mindbuster 10-22-2002 10:10 PM

Quote:

Originally posted by TECK
run the installed in your /admin folder, the same way like you run your vbulletin installer.
Thanks, the install went fine with no errors but no extra options in admin cp and i still get an error when trying to run index.php....

Warning: Unable to access ./global.php in /home/hitman2forumcom/index.php on line 16

What could be wrong?

Carthriller 10-22-2002 10:50 PM

What about the Asianxo.com homepage, was this hack used?

TECK 10-22-2002 10:56 PM

phpportals. be aware, the portal have alot of queries.

Carthriller 10-22-2002 11:57 PM

HOw did he put the member stats on the front page, like how many members and users are on?

K_2 10-23-2002 01:52 AM

I get this error when I try to login..

Database error in vBulletin 2.2.8:

Invalid SQL:
SELECT COUNT(*) AS threads, SUM(IF(forumid<>, 1, 0)) AS threads, SUM(IF(forumid=, 1, 0)) AS headlines
FROM thread
WHERE lastpost>1035340327

mysql error: You have an error in your SQL syntax near ' 1, 0)) AS threads, SUM(IF(forumid=, 1, 0)) AS headlines
FROM thread
WHERE l' at line 2

mysql error number: 1064

Date: Tuesday 22nd of October 2002 10:47:46 PM
Script: http://www.myforumhere.com/forum/index.php

ethics 10-23-2002 04:08 AM

Forum ID set correctly?

mikeB 10-23-2002 04:19 AM

will this work in 2.2.1?

Anitah 10-23-2002 05:33 AM

Quote:

Originally posted by Smoothie
Is this a fresh install? Did you follow all the steps in the readme first file?
Yes, it's a fresh install and I followed the steps exactly. Checked and rechecked them and filled in the path in index.php precisely as info.php directed, i.e. chdir('/home/mysite/public_html/forum');

TheSaint-AeD 10-23-2002 06:17 AM

Quote:

Originally posted by Smoothie
STEP 4:

Open vbHome (lite) index.php file and change the default server path:
chdir('/wwwroot');

to your website full server path, for example:
chdir('/home/website/forum');

If you are not sure how to do this, create a file with the content:
<?php phpinfo(32); ?>

Save it as info.php and upload it onto your /forum folder.
When you open info.php in your browser, you will see there a list of environment 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.
All you have to do now is copy that path onto your vbHome (lite) index.php file.

Thats exactly what I did, but I still get blank Pages. I guess it must have something to do with my domains, as I run my forum on a seperate sub-domain, which contains a seperate DB, and not in a folder on my main domain. Any Hints how to fix this?

X-Fan 10-23-2002 06:19 AM

Also, is it possible to have more than one forum set as the articles forum? With vBPortal, I have separate news, features, and reviews forum, all with months worth of content. I'd like to keep those three forums separate, yet still have the latest articles in all three showing on vbHome.

Plus some of my staff (journalists) are also moderators (and are in my site's moderators usergroup). Is it possible to allow mods the same functionality as admins/journalists with respect to articles?

Any help is appreciated!

Smoothie 10-23-2002 06:27 AM

Quote:

Originally posted by X-Fan
Ditto. I did a fresh install, followed all the steps exactly, yet despite what the installer said none of the templates were actually added, nor am I getting any extra options in my vBulletin admin.

I just ditched vbPortal in favor of vBHome, but vBHome doesn't appear to be installing correctly. I've just spent the better part of 2 hours editing the paths for my hundreds of smilies and avatars, only to find that I'm now stuck because vBHome won't install. :tired:

Did you upload the vbhlinstall.php script installer to your forums/admin folder and run from your browser? Check your templates->modify The home templates should be located under the default templates for each style

Smoothie 10-23-2002 06:31 AM

Quote:

Also, is it possible to have more than one forum set as the articles forum? With vBPortal, I have separate news, features, and reviews forum, all with months worth of content. I'd like to keep those three forums separate, yet still have the latest articles in all three showing on vbHome.
Yes, download the multipleforums hack located in the first post in this thread.

Smoothie 10-23-2002 06:37 AM

X-Fan- just checked your site, looks like you got it running ok...You need to run the vbhlindex.php to get your articles showing

X-Fan 10-23-2002 07:03 AM

Yeah, got it all sussed out :)

Thanks for the tip about the multiforums add-on. I'll grab that straight away!

Is there something similar to allow for multiple usergroups to have the same functionality as journalists, as some of my site's mods are journo's too.

X-Fan 10-23-2002 07:12 AM

Okay, another question. Is there a way to add a rotating banner ad script (with tracking of impressions and click-thrus + CT%) to the top of every page on site, like vbPortal does?

X-Fan 10-23-2002 07:30 AM

And still more questions!

I'm a complete HTML dunce. For the life of me, I can't work out how to get a column on the right.

Ideally, what I'd like is:

* rotatable banner ad up the top
* left hand column containing (each in a separate "block") Welcome box, login/logout, private messages (with PM gauge), statistics (total members, total active/inactive, total threads/posts, threads/posts today, visits today), who's online, latest posts, counter
* right hand column with (each in a separate "block") sponsor ad, PayPal donations link, search box, more recent news (apart from those already displayed on the page), poll, affiliates
* at the top of the center column, a "Welcome to" box

Can anyone please help with getting that set-up. I've had a nightmarish week with a site relocation and upgrade that caused a lot of problems. Removing vbPortal seems to have eased the strain a little, but I'm needing the above to get my site's functionality back. I'll be bald by the weekend at the rate I've been pulling my hair out, so I'd really appreciate any help!!!!!

X-Fan 10-23-2002 08:09 AM

Regarding the multiforums news hack for vBHome, is there a way that the preview of the article displayed on the front page can retain the same formatting (line breaks etc) as the original article? Currently it all just runs together without any paragraph spacing that may exist in the original article.

TECK 10-23-2002 09:24 AM

Quote:

Originally posted by X-Fan
Regarding the multiforums news hack for vBHome, is there a way that the preview of the article displayed on the front page can retain the same formatting (line breaks etc) as the original article? Currently it all just runs together without any paragraph spacing that may exist in the original article.
disable html option. this was done for some older versions of vb that add double <br />'s.

X-Fan 10-23-2002 09:29 AM

If I disable HTML, won't that mean the images I have in the articles will show up as the HTML code instead?

TECK 10-23-2002 09:41 AM

no

X-Fan 10-23-2002 09:55 AM

Okay, cool. Thanks for such a great hack, TECK, and for an alternative for those of us not happy with the load vbPortal puts on a server!

Now if I could only get help with setting up a column on the right!


All times are GMT. The time now is 07:09 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.05204 seconds
  • Memory Usage 1,854KB
  • 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
  • (5)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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