View Full Version : vbHome (lite) - your vBulletin(powered) main homepage
Pages :
1
[
2]
3
4
5
6
7
8
9
10
11
12
13
14
15
glad that helped :)
post a news.. and it will show.. try it. is because the new articleid filed must be updated.
also, keep on trying to remove all the extra stuff you dont need, go to war with every query... the less you have the better is for your server. an ideal number should be 25, max 30queries.
wooolF[RM]
05-14-2002, 10:32 PM
]weeeeeeeeeeeee... love vbHome... :D gonna install 2.0 at thursday :D
aspire007
05-14-2002, 11:22 PM
Ok edit that statement i now get a plain white screen :(
did you tried the trick i mentioned on how to get the path? in install.txt? let me know please.
did you installed the templates?
aspire007
05-14-2002, 11:42 PM
yeah i tried to call up the member2.php and i got a blank sceen.
hmm you are right. they changed the code, since the new db_mysql.php was updated.
you have to find your path. create a file with the content:<?php phpinfo(32); ?>save it as info.php and upload it to your server, where vbHome Lite will be located. it will tell you the server path.
aspire007
05-15-2002, 12:04 AM
ok that worked for getting my path :) but i still get a blank screen and i have added all the templates and uploaded the vbhome_lite.php and called that up then deleted it but nothing is working and i know it is me and not the vbhome .
what do you mean you called vbhome_lite.php? this is the table alteration installer. did you ran it into your /admin folder?
if you are not sure of something, please let us know and we will help you. tell here exacly all the steps you did, at letter and we will tell you what went wrong.
and dont worry, nobody was perfect when it started to code php or install a hack. our goal here at vb.org is to get our hacks up and running..
in order to do this, we need to know exacly what you did.
take your time and explain in as many details as possible what you did so far. :)
i tried to make it as clear as possible the install.txt file but nobody's perfect right? if something is unclear, please post it.. step by step.. what you did and where you got stuck.
aspire007
05-15-2002, 04:30 AM
ok i got it to somewhat work but it looks all messed up :)
but hey im glad i got it this far and i thank you for the help :)
http://www.thechosenway.com
you are more then welcome.. but you did all the job by yourself. congrats. :)
i'm glad you got it working. i wasnt able to see your page because it is asking me to register...
aspire007
05-15-2002, 06:10 AM
hmm sorry about that i will change that :) see if it works for you now :)
http://www.thechosenway.com
yep. you sure did got it up and running. :)
all you have to do is play with the html code and make it look the way you want.
the important thing is: you installed correctly all vbHL components.
pdmedia
05-15-2002, 06:43 AM
Thanks in advance with this I will try to give you as much info as I have.
Directory structure
/web "root"
/web/vbhome "vbhome directory"
/web/forum "forum directory"
I ran info.php and entered the path that it gave me
when i try to view vbhome im my browser all I get is a blank page with the following html
<!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>
I have created all the templates and checked everything I can think of but it just wont work arrgh!
Thanks and I cant wait to get this thing working!
matt, get the path where /forum/global.php is located.
it will work.
pdmedia
05-15-2002, 07:16 PM
thanks,
I was pointing to the vbhome directory...
Duh
Now it works.
-Matt
MomofThree
05-15-2002, 08:22 PM
I'm having problems with it. See my husband usually installs the hacks for me, but he hasn't been available, so I tried to do it myself. BAD IDEA!
I have an error "Parse error: parse error in /home/www/theparentclub/index.php on line 50"
I'm not sure if I did any of it right.
Hope you can help.
Iliana
www.theparentclub.com
techno
05-15-2002, 09:27 PM
I updated with this new version yesterday, and now guests can see the thread links to my private sections on the vbhome page....
Any ideas why?
If I log in as a guest, those forums cannot be seen. Only on the home page. And if I click the link, it lets me right in...(as a guest)
my mistake.. sorry.
in vbHL index.php file, find:$forum=$DB_site->query("SELECT forumid FROM forum");
while ($forums=$DB_site->fetch_array($forum)) {
if($doperm["$forums[forumid]"]["canview"] == 1) {
$forumperms[]=$forums["forumid"];
}
else {
$forumperms[]=$forums["forumid"];
}
}replace it with:$forum=$DB_site->query("SELECT forumid FROM forum WHERE forumid<>$newsforum");
while ($forums=$DB_site->fetch_array($forum)) {
if($perms["$forums[forumid]"]["canview"] == 1 || !isset($perms["$forums[forumid]"]["canview"])) {
$forumperms[]=$forums["forumid"];
}
}that should do it.
MomofThree
05-15-2002, 10:52 PM
Perhaps if I ask the certain questions where I had trouble, someone here can help me. Keep in mind, that I haven't installed many hacks, so I'm not very good at this.
1.) When it mentions to add the vbulletin code into the index.php for vbhome, do I put the code that is from the boards index.php in there?
2) When I tried step 5 to set my {imagesfolder} to the full url. I got a lot of broken images.
I think I did the rest correctly and when I went through the final steps I got the following error. But do I call this link to get to my vbhome page ( http://www.theparentclub.com/index.php )?
There I get this error: Parse error: parse error in /home/www/theparentclub/index.php on line 50
I am sure there is something I'm not doing right and could use some help.
Thanks,
Iliana
Momo... line 50 is:// ADD HERE YOUR VBULLETIN CODEwhat did you add there?
please be more specific on how you changed your { imagesfolder }
you should do it this way: instead of images, you should have:
http://www.yoursite.com/forum/images
MomofThree
05-15-2002, 10:56 PM
That's what confused me. Not sure what code I place there, so I put the code from the index.php of my forums.
MomofThree
05-15-2002, 10:57 PM
I did put that exact url instead of images and some of the images on my boards had broken links showing up.
you cannot add the hole forums index.php. only parts of it.
on the first post there is a little tutorial on how to add extra code. follow the steps there.
all the best,
nakkid.
MomofThree
05-15-2002, 11:00 PM
For someone who is new to this, how can I know what parts I'm supposed to add?
I'm sorry for all these questions, don't mean to waste anyone's time. :(
wooolF[RM]
05-15-2002, 11:13 PM
That will be kinda hard for you, MomofThree. This hack is not kinda newby friendly, it wont work just like 2+2=4.
techno
05-15-2002, 11:21 PM
thanks a lot nakkid...that did the trick.
Great hacks, keep em' comin!!
MomofThree
05-15-2002, 11:22 PM
Yeah I'm noticing that. :(
But I'm not going to give up either! :)
MomofThree
05-15-2002, 11:28 PM
Ok I put this code in only in the vb home index.php file:
[vB code]
eval("\$homepminfo = \"".gettemplate('home_pmloggedin')."\";");
} else {
$pminfo='';
}
and now I get this error: Parse error: parse error in /home/www/theparentclub/index.php on line 51
Should I be calling the following url?: http://www.theparentclub.com/index.php ???
Velocd
05-15-2002, 11:41 PM
Looks nice, but I can't make up my mind of installing this one or Vbindex...they both look so similar..
I saw the screenshots of Vbhome, but does anyone actually have a live demo? (as in a forum running Vbhome?) Thanks ;)
no. i dont have a live site. why would you need it? is the same like in the picture.
the difference between vbHome and vbIndex is the queries. if you like to have 100queries on your main page and kill your server, install vbIndex. over 40queries is really high the server load. element copied part of my code.
vbHome Lite 1.0 was bad. had queries on the loop that were getting multiplied. the more threads and news you had, the more queries you ended up with.
so with PPN's help i got the latest threads re-writen and also grabbed directly from the post table the actual message in the database, for the news goodies. is small and fast and it doesnt clutter your page with noend queries.
----------------
Iliana, please notice on the PM addon the way i mentioned the VB Code? if you look at that area of code, you will see that there is some extra code.
due to jelsoft copyright, i'm not allowed to show the code so i replace it with the pharantesis...
i really cant do more then this. if you are not sure, please wait for your husband. i'm sorry i could not help more.
what i can do, just to give you an example is to send you through PM an example of pm code so you understand the mechanism.
let me know if that's ok with you.
----------------
Originally posted by wooolF[RM]
That will be kinda hard for you, MomofThree. This hack is not kinda newby friendly, it wont work just like 2+2=4. woolf, this hack is for everyone. maybe you guys should help the lady. i know i will as much as the time allow me. she is nice and all she wants is to get some help.
think of you when you started and if someone would tell you that:
hey, that's not for you... ur too newbie to fit here...
i know that's not what you ment woolf, but that's what it sounds like.. :)
now let's be nice all of us (especially me, who i had attitude probs before - that i want to correct and earn again everyone's respect) and help Iliana.
i have an idea. i already send an email to all vbHL users. i was wondering if any of you could post your add-ons? it will be a great help for everyone who is new here at vB.org.
thanks alot for your help. i would do it myself, but i'm overloaded in my schedule.
an example on how to do it without infringing the jelsoft copyright is listed here:
https://vborg.vbsupport.ru/showthread.php?action=showpost&postid=236179
all the best,
nakkid.
Sadie Frost
05-16-2002, 02:17 AM
Originally posted by Velocd
Looks nice, but I can't make up my mind of installing this one or Vbindex...they both look so similar..
I saw the screenshots of Vbhome, but does anyone actually have a live demo? (as in a forum running Vbhome?) Thanks ;)
I'm still working on the formatting, and I changed it quite a bit from what it looks like if you just install it, but you can look here:
http://www.after-darkness.com/main.php
or also
http://www.britpack.com/main.php
This second ones is more what it looks like when you first install, but I haven't upgraded that one to v 2.0 yet
MomofThree -
What helps me is to look at the directions for the hacks I want to add and then add the code I would add to index.php or whatever to the vbhome index.php page. Hope that helps a little.
sadie, one thing i want you to make sure:
check to see if all your new templates that you created are also added to the:
templatesused = '...';
line. for every template you forget, you add an extra query.
so, if you created home_pmloggedin, you should also have it listed in templatesused.
let me know if you found any forgotten ones.. i'm sure you will get your page under 20queries. good luck.
floren.
Sadie Frost
05-16-2002, 03:09 AM
Well, a little better - it's down to 33 after adding:
forumhome_welcometext,topref,forumhome_pmloggedin, forumhome_logoutcode,forumhome_newposts,calendar_s howbirthdays
Thanks for the help Floren - I didn't even know main.php?explain=1 existed :) Or anything about the number of queries.
good job isabel. well 'explain' will be gone on 2.2.6
but i plan on adding it into my vbMicrostats hack.
Sadie Frost
05-16-2002, 03:24 AM
Then I will be doing your microstats hack :D
well vbMicrostats already show you the queries on the page.
take a look here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=35811
Velocd
05-16-2002, 03:36 AM
So what is your opinion on Vbportal? Just curious...since it looks very similar also, but does it create many queries like Vbindex?
i cannot pronounce myself on this. it depends how you use it. vbIndex also doesnt have alot of queries if you want it basic... around 20.
vbHL 2.0 have 6, when used basic. so you have alot more room for your addons.
about phpportals, i never use it, so i cannot tell you if is good or bad. i know from other users (firefly for example) that it ads alot of queries and also there are only few options that people use from it.
however, wajones did an amasing job on it. is up to you what you use, as long as you achieve your desired result.
vbHL 2.0 was built for low query usage. that's all.
MomofThree
05-16-2002, 10:51 AM
nakkid,
go ahead and send me the info through PM. I'm frustrated here and really, really, really want your hack on my site. :(
Sadie Frost
05-16-2002, 12:54 PM
I had vbportal (only for a couple of days though). I removed it because I didn't like how everything was set - I wanted to be able to just put what I wanted on it, which is why I like vbhome more. Maybe if I had played with it more I could have customized it better. I think it's good if you don't want to add any content to it - if you just want it to pull things from the forums. I didn't want a page that just reiterated everything that was already on the boards.
It probably just depends on what you want it to look like, and what your personal preference is :)
done momo. i send you the info.
MomofThree
05-16-2002, 04:30 PM
Nakkid,
Thanks for the PM, I pasted the code. So now I'm not getting any errors, so I guess that's good. But I'm getting a blank page.
http://www.theparentclub.com/index.php
Can anyone here offer this poor woman some help? Please?
<Shamlessly begging>
wooolF[RM]
05-16-2002, 06:50 PM
u have a lot of pages as I can see in your root folder. Many SHTML files etc. Can this be your problem?
I would really like to help you but I don't think it's possible... There's way too much things that can stay on your way. Too many places where u can have errors. If I were you I have made an admin account and let look on of the persons that u trust to to look on the problem.
wooolF[RM]
05-16-2002, 07:10 PM
]Originally posted by nakkid
ADD-ONS
If you create a new template, make sure you also add it to:templatesused = 'home,home_headinclude,...,yourtemplatehere';or else you will add an extra query for every template you missed.
grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr rrrrrrrrrrrrrrrrrrr
why u never said so before? :D
I just "cutted" 9 queries just with this SIMPLE step.
* wooolF[RM] stabs nakkid :p
momo.. you didnt pointed the chdir to find global.php.
that's why you get a blank page.
MomofThree
05-16-2002, 10:09 PM
nakkid,
I looked up trying the member2.php method in your install.txt and it gave me the following /home/www/theparentclub/forums/ and that is what I have on the vb home index.php
Is that still wrong?
bonnmac
05-17-2002, 01:30 AM
Okay I'm feeling really stupid here. But I guess I won't learn if I don't ask. I get just a blank white page when loading the index.php.... What am I doing wrong. Any help would be appreciated. thanks.
http://www.time4worship.com/index.php
pdmedia
05-17-2002, 01:53 AM
I had the same problem this is what I did wrong...
you are supposed to enter the path to the root folder, I took this to mean the root VBHOME folder but you are actually supposed to enter the root to your main FORUMS folder.
-Matt
Originally posted by MomofThree
I looked up trying the member2.php method in your install.txtmomo... you dont have the latest file downloaded. please download again the file. before you download clear all your temp and cookie files. you must set the path to point to the global.php location. in this way vbHL can use it's variables.
MomofThree
05-17-2002, 12:59 PM
Ok I did this and I still get a blank page.
:( Shoot me :(
email me the vbHL index.php at nakkid@msn.com
i will look when i have time send it to you back. also upload the info.php file to your server into the forum folder and give me in that email the location of the file. thanks.
ok.. iliana.. i got your email... everything looks ok.
the only think i see is the templates? you didnt add them? it should work great everything.. the path is correct, the templates are set ok and the code also.
MomofThree
05-17-2002, 08:49 PM
I added the templates through my control panel, am I supposed to add them on the index.php? I can give you access to my control panel, if you want to check. Let me know.
Velocd
05-19-2002, 10:32 PM
By reading all these conversations its making this hack seem more and more complex, although I know it really isn't. I'm having a problem, and whaddaya know, its the same problem everyone else has been having. I'm getting a blank page for my http://www.diffusion4.com/index.php, because my guess is that chdir is not set properly. Here is what my chdir looks like in my index.php:
// SET YOUR ROOT PATH (this is not your site URL)
//chdir("/home/velocd/public_html/forums");
// THIS IS THE GLOBAL ENVIRONMENT FILE, DON'T TOUCH IT
require("./global.php");
Is that not correct? I have done something similar to this with a phpmychat integration hack. Yet for some reason, this is not working...I ran <?php phpinfo(32); ?> and that is the absolute link it gave me.
Also what is this question MomoofThree asked above, are you suppose to add the templates (all the ones with the prefix home) in index.php?
Take alook at my index.php please to see if I did set the directory correctly, I would really like to get this hack working cause it looks awesome ^_^
that is correct velocd. you see the line://chdir("/home/velocd/public_html/forums");? is commented. uncomment that and you will see that you will not get a blank page anymore. it should look like that:chdir("/home/velocd/public_html/forums");let me know if is ok everything.
Velocd
05-19-2002, 11:25 PM
https://vborg.vbsupport.ru/.....OMG! I can't believe--how the---?? uahh!! ......crap, that should have never been commented http://www.diffusion4.com/forums/images/smilies/suspecting.gif but it was my mistake anyway. if this were my computer science class I would be the laughing stock of it, but luckily people here aren't as observent (muahahah, oh wait--yeah they are, d'oh!)
thnx for the help ^_^
Velocd
05-20-2002, 01:06 AM
Anyway, it works very well, and I'm sure I'll get the hang of it just like I did when I first started Vbulletin. Nakkid, you need to make a webpage with resources and add-ons to Vbhome that people can post up, it would be a sweet idea ;) (thats unless you current webpage is partially for that purpose).
I have a small problem though, check out my homepage http://www.diffusion4.com, where the news shows it only says the title of my post and the date info, but not that actual post. what might be the cause of this?
just post one thread. it will updat, and show the content. try it and let me know.
btw, i'm glad you got it working.
Velocd
05-20-2002, 03:01 AM
Well...I posted 1 thread as you said, and you can see the result at http://www.diffusion4.com ,yet for somereason nothing is being shown but who posted, the title, and avatar...:(
your are missing an install step from the newthread.php update. did you ran the table installer? it looks to me like it doesnt update the articleid field in thread table.
go ahead and review everything, just to make sure.
Velocd
05-20-2002, 03:26 AM
Heh, another careless mistake..
if ($forumid==47) {
$DB_site->query("UPDATE thread SET articleid=$postid WHERE threadid=$threadid");
}
The real number was not 47 but 74.
Thanks once again for the help ;)
I have another question ^_^ Anyway to import a poll of some sort, like how vbindex has one. I'm not too sure myself of how to make one, and I mean a poll that any visitor can submit to, not just members. Or maybe I could just take alook at the vbindex code....
the tutorial is posted on the post no.1 of this thread. look for the poll add-on link. is written by wooolF[RM] and taken from phpPortals (credit to wajones).
also. make sure you check your added templates. you probably forgot to add some names to your templatesused='';.
it is really important not to miss any of them because for every single forgotten template, you will add a query.
Velocd
05-20-2002, 03:55 AM
k, I'll be sure not to miss any
thnx once again ;)
Velocd
05-20-2002, 04:37 AM
Now I've got another question, about that poll hack posted in here. I just installed it but there is one problem, I want guests to be able to vote in the poll also. I tried to modify the persmissions of the poll forum well enough so guests could post replies vote on forums, with leaving them unable to view the forums. But it still prompts a guest to register, anyway to fix this?
MomofThree
05-20-2002, 11:10 AM
YEEEEEEEEEEEEEEEEEEESSSS! Mine if finally showing up. I had it commented as well, didn't know I had to remove it. The only thing is that it looks real odd and images not showing up. I'll have to play with it a bit more.
Thank you! :)
Velocd
05-20-2002, 01:41 PM
I've got one more question and then I'll shut up, because I'm sure most of these things I can figure out myself, but I'm sorta compressed on time with school and stuff. The "new threads" list on the home page that shows up, it gives the name of the member who first started the thread, how can I make it give the name of the user who last replied to the thread instead? See post #318 for my other question also ;)
MomofThree
05-20-2002, 04:49 PM
when I edit my image replacement code to my full url, I get broken images and I'm sure of the location of these files. The odd thing is, that not all the images show as a broken image. They are all located here: http://www.theparentclub.com/forums/images/
and that is what I'm putting in places of the "images".
Any ideas what could be wrong?
MomofThree
05-20-2002, 05:58 PM
Ok I'm starting to get the hang of it, but not completely.
Here is my hompage: http://www.theparentclub.com/index.php
The threadbits is not showing up and neither is the PM information.
So if you want to be done with me ;) help me please! LOL
Thank you so much!
Velocd
05-21-2002, 12:43 AM
In your Vbhome index.php, make sure the section labeled:
// ################################################## ####################
// ## LATEST THREADS ################################################## ##
//################################################## ####################
and the code inside exists. If it still doesn't work than post the index.php file and I will take a look at it.
Regards,
Velocd
MomofThree
05-21-2002, 11:23 PM
Velocd,
I sent it to you in emai. Thanks for looking at it.
I'd like to get this to work.
Iliana
Velocd
05-22-2002, 02:38 AM
Checked my email, nothing found. Why don't you just attach it to a post in this thread, that would make it 100x more easier
* Velocd doesn't like going to his email very often
Also, hey Nakkid could you please help me with a question stated in post #320 (no need to answer question in post #318, figured it out)
I've updated my homepage too now, the hack works perfect. http://www.diffusion4.com
velocd, for the 320 post do this...
find:$getnews=$DB_site->query("SELECT thread.title,thread.dateline,forumid,postusername, postuserid,post2.pagetext as pagetextREPLACE it with:$getnews=$DB_site->query("SELECT thread.title,thread.dateline,forumid,postusername, postuserid,lastposter,post2.pagetext as pagetextbelow:$newsuserid=$news[postuserid];ADD:$lastposter=$news[lastposter];then place in your threadbits template the $lastposter variable to suit your needs.
i didnt test this on ym script, please let me know if it worked. thanks.
MomofThree
05-22-2002, 10:54 AM
Edited due to nakkid's post below.
Vel., now you know why I initially did not post my index file here and emailed it to you, but you said you never received it. I emailed it through the email link provided on your profile.
I guess I am done with this hack since I can not get it to work. :(
Thank you for trying.
momo, when you purchased vbulletin, you accepted the license agreement. by posting parts of VB code you infringe it. please remove it (the VB code part). if you need help, please use email or pm's. thanks.
Velocd
05-24-2002, 04:33 AM
Thanks for post #326 Nakkid ;)
edit:
that is odd, I just did those code changes you mentioned and it still doesn't work :(
Beekon
05-25-2002, 01:32 PM
I've got this working after some fiddling around with it.
(still modifying and testing)
But I have a little problem with the private messaging box.
I can't seem to add my titlebar wich I use for all my windows.
My home_pmloggedin template is empty, this is probably why ?
I can't find what to add there tho ..
Anyway, I've added all my other titlebars in the home template before I called the entire variable(?), when I try this with the pm box it just won't shop up, or cluttered like hell.
My html skills are better then my php, but I can't seem to find why it's doing that.
http://www.f2d.be/v2/test/index.php
(I forgot that the box wont even show up when you're not registered, I'll up a screenshot)
I'm also looking for the code to add wich members are online, I can't find it in the index.php :(
Beekon
05-25-2002, 02:26 PM
More problems ..
The news needs to appear in a scrollable window, I'm currently doing this with an iframe (http://www.f2d.be/v2)
I can't figure out how to do this with vbhome tho :(
This is what I've tried ::
(in template home)
<IFRAME NAME="iframe1" SRC="news.php" ALIGN="top" HEIGHT="400" WIDTH="400" HSPACE="0" VSPACE="0" frameborder="0">
If you can see this, your browser does not support iframes!
</IFRAME>
Then I created the file news.php and added everything from the home_newsbits template into that.
That didn't work, attached screenshot shows the output ..
I somehow expected that :) Can someone give me a hint on how I should do this ?
look at forumfome_pmloggedin for the code that must be added into home_pmloggedin. play with the html code to obtain the look you want. good luck with your site.
Beekon
05-25-2002, 03:59 PM
I was looking for that yesterday but must've overlooked it. thank's for pointing it out :)
Khaybel
05-26-2002, 03:53 AM
looking for feedback,
I've setup a testsite, on my site, while I match my website layout to V255/Vbhome (lite) and Webtemplates. I'm not using any portal scripts at all. just the systems above, and some of the many wonderful script addon's from this site I'll be trying to intergrate later into the site as well.
http://testsite.orbsydia.com/index.php3
Please let me know if I can buy or beta test the non lite version of the script when it is done. It totally rocks.
any back to working on the site...
PS: not all the links work yet, since I'm moving my site soon to a dedicated rack server... so if a page doesn't work, I'm working on that now.
Beekon
05-26-2002, 09:19 PM
here's what happens when I try to load the news in an iframe
(the iframe is a php file, copied and pasted from the 'home_newsbits' template).
I forgot to attach the screenshot earlier I guess :ermm:
Anyone have an idea what I should do here ?
I tried several things like including and requiring the index file or the global file from vb but none of it worked. I'm pretty new at this :(
Khaybel
05-27-2002, 12:00 AM
Possible feature/request to add to VBhome (lite) or Pro, not sure if it has been added or not.
I've been setting up my site, and would love it if there was a section in the control panel to add/modify sections of the Vbhome system.
Example: Toggling how many posts, new threads etc show up on your front page,
I know we can edit templates etc, but having more admin control would be a cool feature. Over all everything seems really stable, just lots of tweaks and trial and error.
TestSite/Example: http://testsite.orbsydia.com/index.php3
Rob
PS: Beekon, nice looking site :)
Khaybel, i looked at your site. is really nice.
My queries are currently 171.... lol kinda high, I have everything done right, I think... Ive just majorally customized it....
My question is, I am using a lot of board stuff on the vbhome, like the numbers of members, latest members, members birthdays..... so codes like that need to be listed somewhere special to cut down on the queries?
Also a good bit of my queries say this: Query: SELECT parentlist FROM forum WHERE forumid='50'
and the next query will be: Query: SELECT *,INSTR(',8,1,-1,', CONCAT(',', forumid, ',') ) AS ordercontrol FROM forumpermission WHERE usergroupid=6 AND (forumid='8' OR forumid='1' OR forumid='-1') ORDER BY ordercontrol LIMIT 1
It does this for each of the forums, and theres around 80. Is there anything I can do to fix this?
Thanks!
Emma
Khaybel
05-27-2002, 09:26 PM
Question about vbhome.
working on update :)
Rob
Admin
05-28-2002, 11:19 AM
Closed by request of nakkid.
The hack was reopen for the simple reason a comercial version will be available.
The comercial version is called VirtuaNews and is entierly writen by my friend, James Tingle.
The script is designed to support large databases and the install is as simple as vBulletin's. Also, it uses the same database as vBulletin or it can be installed as a standalone.
When available, I will post more information related to this.
For now, here it is a little teaser... (screenshot below)
Regards,
Nakkid.
ExAvIoUr
08-27-2002, 10:04 PM
can;t wait for it.
hypedave
08-28-2002, 03:04 AM
hey nakkid im glad you decided to pick things back up as this was my last resort. I was almost ready to start coding my own, but anywho good luck and see ya around
Erwin
08-28-2002, 03:07 AM
Looks nice... how query-intensive is it? I know that vBPortal was bad.
I'm creating a site consisting of a hub and a half-dozen subportals, and am looking for a good way to integrate news, articles, polls and forums without driving myself insane. So if Virtual News is easy, efficient and inexpensive I'll be all over it like white on rice. :)
tingle
08-28-2002, 12:04 PM
The script can be set up so that there are only 5 queries on the front page if you want :) All pages are created fast (index.php under 0.05 seconds most of the time). It is able to handle news, polls articles etc, and you dont actually have to edit anything for vbulletin, just install in the same database.
The site is open now at http://www.virtuanews.co.uk should anyone want to take a look :)
Tingle
hypedave
08-28-2002, 04:37 PM
hey looks very nice, I noticed that for the forum you are using IB, how will this tie into vb???
Also can this operate as a site all by itself, jus curios, or shall I wait for Nakkid to feel us in on more details.
thanks
tingle
08-28-2002, 04:40 PM
better idea to ask me that, i did the coding, nakkid helped out in other ways :)
The answer to your question is yes it does run standalone, or with ibforums, or vb, thats how it does :) All it does is uses the vbulletin user tables to prevent the need to register twice.
If anyone has any further questions please ask in my forums, dont want to get told off by the vb staff now do we :)
Tingle
Tigga
08-31-2002, 02:12 AM
I've been using vBhome for a few months now. It works great, but I seem to be having one small problem with it. When I put the code for the most users ever online in the file and upload it, it always resets to the number of users online (or close to it). When I took out that section of the code it stopped resetting itself. Has anyone else noticed this problem or know how to fix it?
Colon33
09-04-2002, 06:42 AM
Is this a replacement of the index.php file already on our servers or can we place the code we need already into our existing files, so we dont have to ++++ around with an all new index file? :) Just wondering cause i am considering installing this but i dont want to lose my original file.
is a different file..
[ index.php (vbhome)
---[ forum
------[ index.php (vbforumhome)
Ron ? DCS
09-08-2002, 06:53 AM
I'm getting a blank page. :( Just like everyone else did, but my problem sure ain't commented lines and/or pointing in the wrong direction.
Here is the code right from the index.php!
// SET YOUR ROOT PATH (this is not your site URL)
chdir("/home/basketba/public_html/forum");
// THIS IS THE GLOBAL ENVIRONMENT FILE, DON'T TOUCH IT
require("./global.php");
The root path is exactly as given in "info.php" ...
Here it is, over and over...
/home/basketba/public_html/forum/info.php
Man, is this ever frustrating...I really need to get this to work!
Ron ? DCS
09-08-2002, 06:57 AM
Figured it out, believe it or not, I was in the wrong style!
It's a little raw right now, but there is no doubt this is going to be awesome when I get this thing working. :D
heh. i was sure you will find out what's wrong. that's why i didnt answer rightaway. congrats.
please take you time to read everything in the install file and you will be ok...
make sure you keep those news and latest threads values lower then 10 orelse you endup with 50queries...
test it and let me know.
EnriqueHavoc
09-13-2002, 07:30 PM
i have 2 questions:
1) where would i look to find what fields i can call in the query and the syntax for how to turn them into variables?
example:
thread.title,thread.dateline,forumid,postusername, postuserid,post2.pagetext as pagetext
$newsusername=$news[postusername];
i want to call the news threadids and replies so i can link them from the index to the forum.
2) like another guy on here, the pagetext isnt showing up in my news. i checked the newthread.php and the newsforum is specified correctly. where else could i look? ive gone over the instructions multiple times
thanks
http://www.motionzoo.org/news/index.php
EnriqueHavoc
09-13-2002, 10:26 PM
ok i got the thread links working. after MUCH trial and error and checking pluh news for how they did it :P
i added:
thread.threadid and replycount
to the query and then called them with:
$threadurl=$news[threadid];
$replycount=$news[replycount];
ok next up is figuring out why the pagetext isnt working :P
ugh
Zachariah
09-14-2002, 12:50 AM
Well I'll have to say this is smooth .......
I do, like many others have a request.
A link back to the news post in the forums.(so ppl can comment on it)
home_newsbits
<a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]"><b>$newstitle</b></a>
As you know it did not work.
* Zachariah scratchs head
I know i have to tell VBhome what $thread[threadid] is but for the life of me I am stuck.
Any help on this issue would be cool :D
EnriqueHavoc
09-14-2002, 12:57 AM
argh, take 1 step forward 2 steps back...:P
i still cant figure out how to get the pagetext to work and after I modified my home template now only 1 news post will show up, and not the latest one either.
come to think of it, even with the original default home template 1 news post would show and the others would be displayed waaaaay down at the bottom of the page. that leads me to think its a table or alignment problem? but i cant seem to find any broken code
man ive been working on this too long. is there ANYONE out there that wants to step up and take a shot at what might be wrong?
heres my page http://www.motionzoo.org/news/index.php
EnriqueHavoc
09-14-2002, 12:59 AM
harry, read my post #355 i showed how i added a link
Zachariah
09-14-2002, 01:13 AM
ROFL .... we posted at the same time ...... thanks
BTW: your front page looks sweet !!!! :bunny:
EnriqueHavoc
09-14-2002, 06:38 AM
thank you :)
well i bit the bullet and asked my brother whos a programmer for help. im not sure exactly what he changed but he commented out some lines and wrote in new ones and now its fixed :P
i wish i understood what he did but im happier it works now
Tigga
09-14-2002, 07:24 AM
Is anyone else having the problem with the "Most users ever online" part of the hack or know how to fix it??
Zachariah
09-14-2002, 02:26 PM
@ EnriqueHavoc and others
What I did with EnriqueHavoc's Info :)
This news forum in our case is visable and users can only reply to posts not make new ones.
Added:
Comments (number of replays )to each news post with a link back to the thread for people to post on it.
VBhome Index.php
Find:
forumid,postusername,postuserid,post2.pagetext as pagetext
Before add:
thread.threadid,replycount
-----------------------------------
Find:
while ($news=$DB_site->fetch_array($getnews)) {
$newstitle=$news[title];
$newstime=vbdate($timeformat,$news[dateline]);
$newsdate=vbdate($dateformat,$news[dateline]);
$newsusername=$news[postusername];
After add:
$threadurl=$news[threadid];
$replycount=$news[replycount];
save
--------------------------------------
Template: home_newsbits
Add (were you want the "(Comments: 0)"
(Comments: <a href="$bburl/showthread.php?s=$session[sessionhash]&threadid=$news[threadid]">$news[replycount]</a>)
save
-------------------------------------
:banana:
I am still using the last version which I love by the way but my question is on the lastest threads part, how do I make it to where it only includes 1 forum, as compared to excluding forums.
Thanks!
Emma
Zachariah
09-17-2002, 04:24 PM
Q: about the newsbit
The news post on our site can be 1000+ char. This puts the entire post on the page. (so the main page could be 4-5 pages long) Is there a way to limit the char to a # amount ... and if you want to read more goto the post or click a link "more" ..and be put in the forums to read it.
Like a headline paragraph
i'm gonna release an even cleaner version.. i started working on it right now.. testing the queries.. etc.
you will be able to fix the newsthread's lenght on it.
Teck! I don't think you saw my question!
I am still using the last version which I love by the way but my question is on the lastest threads part, how do I make it to where it only includes 1 forum, as compared to excluding forums.
This is the last thing I need and the site will be up and running so please help me!
Thanks!
Emma
emma it will solve your to. patience. :)
i do a minor rewrite.. optimising the damn queries again.
minor rewrite??? guys get readdy... i did it!!! :)
i managed to get out of the queries loop!!!
from now on, vbHome will have only 14 queries, no matter how many threads or news articles you post.
yep, that's right, you can list 1000 threads or articles and still will perform only 14 queries.
i did a full code rewrite and released v3.0. :)
is probably the best code rewrite i ever made in all my hacks.
i also integrated the login and username panel (my own, no someone else's) and many other options, like article chars lenght, latest threads or(and) articles, etc. pretty much all the options others requested here and could not manage to get it inserted.
i'm still working on the html code a little... be prepared you will have to trash the old vbHome... :)
however the new vbhome it will take you about 5min to install it and maybe 2 or 1, if you already had it installed. the upgrade is not needed. only to swap the index.php file and replace all templates. :p
UPDATE
ok i will upload the new file in 2minutes and post here some screenies...
MAKE SURE YOU READ THE FIRST POST. i listed there all the new features.
if you installed this hack before, all you have to do is change the templates and upload the new index.php file.
just read the new readmefirst.txt file.
the guest look:
Zachariah
09-18-2002, 01:02 PM
Originally posted by TECK
i'm gonna release an even cleaner version.. i started working on it right now.. testing the queries.. etc.
you will be able to fix the newsthread's lenght on it.
OMG !! :bunny: :banana: :banana:
Wow :) That really really cut down on the queries.... wow. lol :) Thank you so much :)
One thing tho :) I couldn't find how to only include one forum in the latest threads ;) lol :)
Emma :D
HarryButt, is done. i added a variable there.
just redownload the file and make sure in the readmefirst.txt file it says at the top version 3.0.
Emma, in the new index.php file find:
if ($thread['forumid'] != $newsforum) {
eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
} elseif ($thread['forumid'] == $newsforum) {
eval("\$headlinebits .= \"".gettemplate('home_threadbits')."\";");
} else {
$threadbits = '';
$headlinebits = '';
}
replace it with:
$threadbits = '';
if ($thread['forumid'] == xx) {
eval("\$threadbits .= \"".gettemplate('home_threadbits')."\";");
}
replace the xx value with your designated forum.
emma, please dont remove the copyright text mentioned in the hack.
first of all, it's using vBulletin functions so it is part of it. in other words, is illegal to remove the copyright.
second, it's my hack. i worked some time on it so everyone could use a reliable code and all i ask is a link to my website. thanks.
also, i want you all the let me know what do you think about the new version. thank you. :)
bouncer18
09-19-2002, 01:51 AM
Ok i got a question...
Whats the syntax to show the user on the panel what the forum name is where the latest post resides..
like..
Blah Blah post Name Here
09-18-2002 04:51 PM by Whoever
Views: 48 Replies: 1 testing
Forum Name: NAME HERE
is it as easy as making a $forum[whatver]
or is there more to it..
is complicated if you dont want to add queries, you have to create new field in table thread and index it, then you run a extra query every time you post a new thread. the other way is to add a query every time you perfom the $thread mysql query. that will make you endup in a loop with 50-100queries performed on vbHome page.
so forget about it. why is it so important for you to show that info? do you think the users care what forum is posted in? they read the thread title and if interesting they will visit it.
personally, i use only the thread title as link... but others requested the extra info that comes with it so i include it.
you can use vbIndex (it's code is partially mines, copied from previous vbHome (lite) versions, without permission) if you want to show the forum titles... and also if you want to crash your server.
vbIndex uses 50-150queries on it's regular page.
lol, i saw element having on his page 172queries. NTLDR came up with vbIndex 2 (and put a little note inside - code by TECK), but still it uses 47 queries when set to minimum.
there you have it, now it's up to you.
hmmm... i have an idea, vbHome'rs. :)
how but instead of the avatar's picture (that some of you still want it), i add some custom iconews pictures, aligned to the right?
it will look similary to phpnuke. this should be extremly easy to do, so let me know if you are interested. ofcourse the number of queries will be always the same...
take a look below...
bouncer18
09-19-2002, 03:41 PM
i think it would be cool...
cant go wrong with eye candy
zachb
09-19-2002, 07:06 PM
I get
Fatal error: Call to undefined function: gettemplate() in /usr/local/psa/home/vhosts/chuckpalahniuk.net/httpdocs/dev/index.php on line 34
http://www.chuckpalahniuk.net/dev/
check your code changes. you made a mistake.
zachb
09-19-2002, 07:22 PM
alright.
could it be because i am using files that have code changes from installing vb portal? i've been experimenting with all the vb home page hacks.
as you know the hack was tested on a unhacked board.
however it should not interact with any of the pages since it does all the job by itself and pulls all the information from the database.
you made a code mistake. check it again.
bouncer18
09-19-2002, 10:35 PM
I did find what could be called an error..
let me attempt to explain.
I make a post in the news section and its shown on the main page. Someone else goes in and reply's to my post. Its updated on the main page showing last comment posted by user X.
No problem.
I go back into news and make a new topic.
Again, its shown on the main page like it should.
The problem lies on the previous post.
Users X replied to my initial thread. His name is still there. Now, when you click Mr. X's name you dont see his profile anymore, rather you see the profile of the person making the new topic.
member.php?s=&action=getinfo&find=lastposter&forumid=22
Eventho your clicking Mr. X's name you are seeing my profile cause i am the one making a new post in the forum eventhough your clicking Mr. X's name.
Does what i am saying make any sense?
Its loading the profile of the last poster in the forum rather then the last poster for that specific topic.
you are correct. i'm gonna change it. i will not add more code to it just because this issue... it requires extra hacking in VB files, fields added to table thread... you get the picture.
find:
$article['comments'] = 'last comment by <a href="' . $bburl . '/member.php?s=' . $session[sessionhash] . '&action=getinfo&find=lastposter&forumid=' . $article[forumid] . '">' . $article[lastposter] . '</a>';
replace it with:
$article['comments'] = 'last <a href="' . $bburl . '/newreply.php?s=' . $session[sessionhash] . '&action=newreply&threadid=' . $article['threadid'] . '">comment</a> by ' . $article['lastposter'];
the vbHome copyright:
Do NOT remove it because you infringe the vBulletin license agreement. vbHome is based on vBulletin code and it uses some of it's functions.
Also, the code is created by me, so all I ask in return is to leave the links unaltered and intact. Is a small price for what you can do with this free and reliable piece of software interface.
where can i find a demo board with this hack installed???
or anyones live site?
why do you need a demo? i posted some screenshots...
is better is you install it on your test board to see... if you dont have one, you could get one here:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=39482
cheers.
thanks TECK,
I think this hack is what i am after.
I am looking for the most suitable hack that will allow me to do the following:
1. place the login/password feature on the home (non vB) page.
2. place polls on non vB pages.
3. calculate the users online on the entire site, not just the vB forum pages.
4. have some member only pages (non vB), protected by the username and password access from vB!
I am using vB 2.2.7. (brand new forum!)
I have looked through most of this thread but thought it best to state it in full here.
you can add all this very easy...
1. is included
2. is a tut listed under addons
3. vbHome uses permissions.. actually i will write a little addon on how to define perms only for vbHome
keep in mind that vbHome it is a vBulletin page. it's part of it, so all restrictions related to it aply also..
just read the copyright on the first post. thanks.
Originally posted by TECK
you can add all this very easy...
1. is included
2. is a tut listed under addons
3. vbHome uses permissions.. actually i will write a little addon on how to define perms only for vbHome
keep in mind that vbHome it is a vBulletin page. it's part of it, so all restrictions related to it aply also..
just read the copyright on the first post. thanks.
Hi TECK,
I have downloaded your file, have just read thru the readmefirst file and although it says
" vbHome (lite) is fully customizable through vBulletin templates, so it's very easy to achieve any look or web design you want. "
but i am not sure if i can actually use it on my home page and not use the included vB template?
Can i cut and past the code? Will this work?
i have no idea what are you saying.
TECK,
i will try to set up your hack and integrate it into my existing homepage.
www.glo-racing.com/v3
It is the registration and users online that i want to use on my homepage.
in /forum/index.php, copy and paste the online users code. follow one of my tutorials listed in the first post, under add-ons to understand the technique.
good luck.
Kiraly
09-22-2002, 04:08 PM
teck when you release a full versione of vbhome with all functions ?
the full version is released already. is here (http://virtuanews.co.uk).
Kiraly
09-22-2002, 07:25 PM
100 $? :/
you asked for the full version. nobody is forcing you to buy it.
if you look at the list of options, you will understand that it have a very low price. and please do not discuss prices here, since i'm not allowed to advertise other products.
post your comments to the site if you have any. thanks.
bouncer18
09-23-2002, 02:47 AM
Originally posted by TECK
hmmm... i have an idea, vbHome'rs. :)
how but instead of the avatar's picture (that some of you still want it), i add some custom iconews pictures, aligned to the right?
it will look similary to phpnuke. this should be extremly easy to do, so let me know if you are interested. ofcourse the number of queries will be always the same...
take a look below...
any update if you plan on adding it?
yes. it will be added as an add-on, so if people like to have it it will be easy for them to install it. i code it in the same time i code my site... :)
i'm still thinking of a wise way, but rest assuered it will show up here soon. :)
i have installed the hack , but i only get a blank page?
any help? pls
EnriqueHavoc
09-23-2002, 01:13 PM
Originally posted by PlurPlanet
Is anyone else having the problem with the "Most users ever online" part of the hack or know how to fix it??
yeah i have this problem too where it only remembers the max users for a short period of time. seems like its a linking issue. I tried changing the location to enable cookies for the entire site in the admincp-->general options and that might have worked but left me unable to log out so who knows, ill try to figure it out later.
bouncer18
09-23-2002, 08:30 PM
thanks for the info.
This is a great addition to VB.
Thanks for all your time and effort
Originally posted by glo
i have installed the hack , but i only get a blank page?
any help? pls
ANYBODY???
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
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
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.
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:
<?php phpinfo(32); ?>
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('/wwwroot/test');
Replace the /wwwroot/test 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 /htdocs folder, it will still look for global.php in /forum 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 /global.php (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. :)
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? :)
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!
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.
nokia8860
09-26-2002, 07:18 AM
TECK,
Thanks for the quick reply! I will search the site for another way to add a poll.
Once again thank you for this great hack! I too have pressed INSTALL :classic:
nokia8860
09-26-2002, 08:14 AM
Sorry to bug you again TECK, I read a few pages back about changing some lines in the vbhome index file to prevent Private forum post from appearing in the "latest discussion" box.
I searched my index file but could not locate it. I have a private area in my site that I do not wish to be included in the latest discussion box. Any tips on how to remove it?
I am using v 3 of your hack.
Thanks :)
in v3 is done by default. any private forum threads will not show.
nokia8860
09-26-2002, 08:28 AM
I must have did something wrong then. I will check my forum permissions.
The title shows up on the home page and when I click on it as a guest it says im not able to see the page. My concern is the title of the post is still there.
I will re check my forum permissions just in case.
Thank you again for your quick reply!
nokia8860
09-26-2002, 08:40 AM
I checked my forum permissions and they area all set to private and also hid the private forums but the post still show up on the homepage.
Anything you can suggest?
Once again many thank you.
there is nothing i could suggest because the hack it's working flawlessly.
nokia8860
09-26-2002, 08:47 AM
Thanks. I will continue to check to see what I am doing wrong on my end. Again thank you for this very cool hack!
nokia8860
09-26-2002, 08:55 AM
v 2.2.7 Just did the upgrade today from 2.2.6
Ive attached the area that gets displayed from the home_article bits. It does its job where if I dont have permissions I can not view the thread. My question is, again it most likely is my fault in installation, can the title not show up if they are not allowed to view it anyways?
Thanks :)
nokia8860
09-26-2002, 09:01 AM
I feel like an idiot. I just read the title of the hack. its for 2.2.8 d'oh!!!!
I guess I should download the release candidate. It will probably solve my problem :(
if you look in vbHL file you will see clearly that the permissions are set NOT to allow any private posts to be displayed.
if ($ipermcache["$forum[forumid]"]["canview"]==1
that means, if the forum have the "canview" permissions enabled, then show the thread info.
also, the hack is designed to work with any 2.2.x version. i was wondering if you had a lower version, but that's not the case.
do this. install a default unhacked test board. you will see it's working great...
also keep in mind the hack does not interact with any other hacks you have on your board. it pulls the info it needs by itself.
nokia8860
09-26-2002, 09:08 AM
This is the only hack I have on the board. :)
I viewed my permission settings for my private area and for unregistered users and for other users that are not moderators or admins they can not view it.
Under the normal vB forums they can not see nor view the titles of the threads there.
Sorry for all the questions about this.
edit: again i know 100% that its probably something ive over looked. but thanks for helping me.
nokia8860
09-26-2002, 09:12 AM
TECK!!!!
It was my settings. I goofed somewhere in making things private. Many thank yous for putting up with me!
Now on to finding a poll for my frontpage!!!!
:D :D :D
i was sure you missed something in the forum settings. :)
MultiSync
09-27-2002, 03:59 AM
TECK
Is it possible to PM me some example how to add features to my front page? Like where to place all those lines... because I am new to this.
hello MultiSync... unfortunatelly not. please ask your colleagues who installed this hack for support related to addons.
i will support only the actual file, as stated on the first post.
cheers.
Cluster One
09-27-2002, 07:10 AM
I've got everything configured. I even ran the info.php and got the paths.
my forums directory is /home/buffy-fo/public_html/forums
I set it all up and all I get is a blank page. I've tried everything possible i know I've even read all the threads.
Mone'
09-27-2002, 07:32 AM
Originally posted by Cluster One
I've got everything configured. I even ran the info.php and got the paths.
my forums directory is /home/buffy-fo/public_html/forums
I set it all up and all I get is a blank page. I've tried everything possible i know I've even read all the threads.
http://www.buffy-forums.com/ is showing up fine here........
you just need to set the image path and i think you are done with it.
Mone'
TECK, i am throwing my hands in the air!
I cant figure out your instructions. I get BLANK pages only!
let me email you directly.
Originally posted by bouncer18
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
Hi Bouncer,
I have spent a week trying to figure this out! It doesnt mention in the instructions that you actually use the vBulletin CP to add and modify the templates. This is where i have been getting stuck! I have since loaded the templates via the CP and tried to submit the full url for the images but i cant locate the {imagefolder} via the CP?
glo, i promise i will help you step by step, you will get up and running your vbHome. i got your emails and i will answer your questions here.
now please check my quidelines (https://vborg.vbsupport.ru/showthread.php?action=showpost&postid=303123#post303123) on how to submit your problems. my hacks are made by points and steps so is easy for me (and you) to deal with a specific part at the time.
i'll be looking here in the thread. i dont answer to emails related to hacks support.
cheers,
floren.
ok glo, i'm looking on your email righe now and i answer to your highlited problems.
first of all, undo everything you did so far related to vbHL and start from a fresh copy. clear all your temporary files and redownload again the vbHL from here.
create the templates
1. in your vBulletin admin control panel, scroll down until you see Templates (is at the bottom on the left hand side).
2. click on Add.
3. enter there, one by one, the title and the contents of each template.
file index.php (your vbHL file)
1. open the file and make sure the chdir and is set like that:
chdir('/hsphere/local/home/glo-raci/glo-racing.com/forums');
require('./global.php');
2. save the file and place file in the [root] folder , in your case the folder above /forums:
[glo-racing.com] < place the vBHL index.php file here, the folder should have the name /web or whatever
------[forums] < your forum folder
follow the rest of instructions included in the read me file.
DO NOT PERFORM AGAIN the Installer!!! you did it right??? ran the table modifications? and also the vBulletin file modifications?
so we only need to focus on the templates creation and making sure the vbHL index.php file have all the variables set correctly.
let me know.
Hi TECK,
I have added the templates, and the vBHl index.php is placed in the root directory ie www.glo-racing.com/index.php
I did perform the installer again but the installer already recognised the initial installation and gave me the opion to cancel!
I modifed the bbcode and standarderror files too!
I have corrected the smilies and the imagefolders, but i still get a BLANK PAGE!
So i still have a blank page. I have looked at the vBHl index.php file and it still uses the imagefolder code, should this have changed???
My News forum is set to 2. please see www.glo-racing.com/forums
And should i be changing all the $bburl/ to forums/ in the templates???
try this.. rename the index.php vbHL file to home.php then comment like this:
// chdir('...
so it doesnt look for the right folder anymore because it's already there.
then move the new file (home.php) to your /forum folder and let me know if it displays everything correctly. if it still doesnt, you didnt add the templates properly.
also make sure you modified properly the vBulletin files listed in the readmefirst.txt file.
one thing, dont forget to post at least once, after you did all this, orelse you will get a blank page.
if you give me a temp admin access to your admin cp, i could look into it and see if the templates are added properly. is up to you.
make a username and password and give to that username admin status.. then when is all check restore it to regular user.
pm me all the info.
Hi TECK,
I still get blank page, and the templates i entered but did not modify!
I have PM you the details!
Goodluck
ok. glo, i changed everything, the way it suppose to be. :)
we are back in business. now, where is the vbHL file? in /forum?
is named to what?
also did you edited the newthread.php file? and added the code is described in the readme file?
here it is what i'm gonna do. i'm gonna edit a fresh unhacked newthread.php file (for vb228) with the code the way it's supposed to be and send it in the pm. all you have to do is upload it to your server, ok?
ok glo, i send you in a pm the correctly modified file. just upload it.
then let me know when done. post here.
thanks.
ok, now where is the vbhome file? in what folder?
move it to the main folder.. and make sure you have the path i listed few posts above onto it.
you want me to pm you also the vbHome file?
<a href="http://www.glo-racing.com/forums/home.php" target="_blank">http://www.glo-racing.com/forums/home.php</a>
now it has been moved to www.glo-racing.com/home.php but still no luck!
ok, i pm you the right file glo.
upload it and follow the instructions in the pm. you will be amased.. :)
//chdir('/hsphere/local/home/glo-raci/glo-racing.com/forums');
require('./global.php');
just upload the vbHome file i send you.. :)
let me know how happy you are...
v.v. happy! :cool:
Ok, this is done, the page loads but the image file doesnt load.
I think it has to do with the path!
Thanks TECK
Now, that this is in place, how do i modify it to suit my home page?
what's the url? for your vbHL page?
and you could click the install button also...
www.glo-racing.com/index.php
is the vbulletin powered home page that you just help me set up, but are you saying that i can just cut and past the code into my existing home page???
www.glo-racing.com/v3
forget it glo... i have no idea what are saying.
i asked you what is the URL for the vbHome lite page so i can see what is wrong with the images...
everything is set so the images will show. you can take it from here.
a friendly advice: do not install anything unless you are sure 100% what you are doing. honestly i made you favor that i installed practically the hole hack. i never do this for someone. you dont even have the decency to click on the install button.
good luck.
i need a beta tester for the poll add-on i just made. anyone willing to try it on his site, post here please.
thanks.
Thanks TECK,
I do apprecitate your help.
I am on the road and jump on momentarily to view your messages.
I will do the beta test for the POLLS!
And i have clicked on the install button now that i get a chance!
<a href="http://www.glo-racing.com/index.php" target="_blank">www.glo-racing.com/index.php</a>
Please have a look!
Thanks
ok.. it doesnt show the logo image because is not pointing to the right url. change it in the "home" template.
also, there is something wrong with your articleid field... is totally messed there everything... from previous installation attempts.
revert all changes you made to normal. to delete the articleid field and INDEX(articleid) from table thread, use phpmyadmin. contact your host, they probably have it installed in your account.
one more time: never install a hack if you are not sure 100% you know what you do.
my hack the way it is it will not affect at all your vBulletin functions.
nokia8860
09-28-2002, 07:47 AM
TECK,
I'm having loads of fun with this hack with trying to customize it and wanted to know how do i incorporate something that says
<!--#include file="file.php"-->
Where abouts do I put that? I tired in templates and in that section in the index file to put php stuff. Sorry but my knowledge of php is less than zero. So please bear with me if my questions seem elementary.
:)
nokia8860
09-28-2002, 07:48 AM
Originally posted by TECK
i need a beta tester for the poll add-on i just made. anyone willing to try it on his site, post here please.
thanks.
I've been trying to encorporate other polls ive found on the site but they all either dont work or slow down the page :(
I'll try it :D
Originally posted by nokia8860
TECK,
I'm having loads of fun with this hack with trying to customize it and wanted to know how do i incorporate something that says
<!--#include file="file.php"-->
admin CP > styles > modify > [fonts/colors/etc] > PHP parsed code
an example is listed there.
just uncomment each line.
honestly i never tried this way to add a file, and i always code the extra code i need onto the actual file.
why dont you add the content of your file.php onto vbHL??
is alot easier.
TECK, you told me there was a bug in my script and i asked you what it is? I am still waiting for your answer so i can understand what was wrong.
Originally posted by TECK
in /forum/index.php, copy and paste the online users code. follow one of my tutorials listed in the first post, under add-ons to understand the technique.
good luck.
Also, in this message above, you tell me to look at one of your tutorials on the first post.
I have looked there and do not see any tutuorials under add-ons???
Awaiting, your response.
glo, read this post:
https://vborg.vbsupport.ru/showthread.php?action=showpost&postid=236179
is a link, under add-ons. follow the idea from it. please understand that i will not customise for you your templates, graphics, code add-ons, etc.
what bug?? i dont know again what are you talking about. my hack doesnt contain bugs.
Hi TECK,
please understand me, "I want to learn"
I do not want you to customise my homepage, rather confirm that it can be done!
So, you accessed my admin and corrected my templates. What was wrong with how i set up the templates?
I am trying to work out what is wrong with www.glo-racing.com/index.php
PIMPY
09-28-2002, 06:29 PM
it seems my news article is not showing, it shows the article header and stuff but not the contents of the actual post
any help would be nice
TECK, when will it be released???
PIMPY
09-29-2002, 09:17 AM
<a href="http://gkog.doddv.com/main.php" target="_blank">http://gkog.doddv.com/main.php</a>
Please, i like it and plan to customize the whole thign to better work with my site, which i just got up now.. infact actually it was today when i got it all working good.. :P
Good work, and the 3.1 seems to be looking good
hello pimpy, i pm you the password.
thank you for installing my hack.
to uninstall the previous version, do this:
- delete all vbHome (lite) templates you created
- run step 4 from the new installer
to run step 4, load the vbHome (lite) installer in your browser like that:
vbhinstall.php?step=4
you will be prompted with the actual vbHome (lite) 3.1 uninstall. click on Continue.
you are done.
after this, start reading carefully the readmefirst.txt file. there are minor changes in v3.1 so pay attention to newthread.php file and any other details.
good look. :)
PIMPY
09-29-2002, 03:58 PM
why is it vbhome lite? i mean there is only one so how cna it be lite? shouldn't lite mean that you have a lite version from the original, which just lacks certain features, thats usually what lite means.. and if this the lite then when do get a glimpse of the full?
and btw thx, i'm gonna spend some time messing with the code and templates so that i cna get it looking nice and working how i want. is there a posibility you could get some conditionals in to this? like logicians things? then i could make it super uber nice
and
it seems there is a bit of lacking code in the index.php, as "$article[comments]" seems to be lacking, even tho its called from the templates
i noticed this as now it doesn't even say anythign after the -
check my link above a few posts to see
AND! for the polls, you have it so you out in the user ids for it to show to, well what if i want ALL users to see? should i just throw in a wildcard?
my script is fine the way it is now. it doesnt need any conditionals.
btw, did you know that you dont have to write some values on the index.php file? they are automatically generated by the query so is useless to redefine them again in the file.
bad coders do this.
about $article[comments], i dont see any on the templates, but i do see $articlecomments.
about the poll, i think you dont understand what i said. everyone can see it but not everyone can post polls to the main page, unless you want it. did you noticed the screenshots?
anything else you posted above, i didnt understand properly what you said so you have to rephrase again your sentences.
anout the script, if you think the script is incomplete, feel free to to write an add-on, if you find something is missing from it.
and there is a commercial version of what you see here.
you can check it at http://virtuanews.co.uk
PIMPY
09-29-2002, 06:59 PM
ya ok, well.. i'll take a look at it, but in my home_articlebits at the bottom where it has the - coments part, it has $article[comments]
what should this be? cause thats the way it was put on
Edit: Hmm thats weird i just checked my template it said $article[comments], yet in the install file it sadi to use $articlecomments, womethign weird went on there, did it not un-install properly?
make sure you remove your internet temp files, then redownload the file. you have an old version there.
also remove all OLD templates manually. then start from scratch. read my uninstall procedure, few posts above.
my uninstaller does not remove the old templates. only the new ones. also those new templates, once installed with the installer cannot be removed if they are customized. you have to revert them to original, then apply the uninstall.
LeeCHeSSS
09-29-2002, 08:20 PM
I want to start using vbHome (currently using vbPortal with its MANY MANY MANY queries), but in order to make the step easy for my users I want to finish the templates that vbHome uses on my home computer before using it on my actual site.
So even though you won't see vbHome there just yet: my site's url is www.Online-Role-Playing.com
check your pm's leech. thanks for choosing my hack.
let me know how it goes.
nokia8860
09-29-2002, 10:23 PM
TECK,
Im using the standar setting for polls with the pollactive set at 1 and pollposters array at 1, 3 15 and Im posting polls as admin and all i get in my home page is
Latest Poll
Total votes
No poll shows up or even a link? Any thoughts to what I have might forgoten?
there a little bug i found... it will not fix your problem nokia, but update your file anyway.
in vbhl index.php, find:
SELECT * FROM thread LEFT JOIN poll USING (pollid) WHERE visible=1 AND open<>10 $iforumperms $ipollperms ORDER BY thread.pollid DESC LIMIT 1
replace it with:
SELECT * FROM poll LEFT JOIN thread ON (thread.pollid=poll.pollid) WHERE visible=1 AND open<>10 $iforumperms $ipollperms ORDER BY thread.pollid DESC LIMIT 1
now, what you did wrong is that you installed over the old version the new one.
you have to delete all templates you manually made. they will not work with the new version.
just read the uninstall procedure:
https://vborg.vbsupport.ru/showthread.php?postid=303785#post303785
then you will see it works.
nokia8860
09-29-2002, 10:38 PM
TECK,
That code you posted fix the poll!!!
I also started from scratch instead of updating. I did a fresh vB install with a fresh install of vBhome lite 3.1
So perhaps that was the problem but fixed with the replacement code!
But it did lengthen the load time of the page to
Page generated in 12.75128102 seconds (0.79% PHP - 99.21% MySQL) with 20 queries
edit: when I turn the poll off via setting it to 0 in the index.php file the page loads up quick.
hmm... it should not. turn the poll on and let me go to the url you posted in the pm.. let me know when i can go.
also, 20 queries? is impossible. you should have max 17 with all options turned on.
nokia8860
09-29-2002, 10:51 PM
it is on now.
I can also reinstall vB and vBhome again just incase i missed something. Just let me know and I'll just reinstall
obiwan8472
09-29-2002, 11:06 PM
Hi! This looks amazing!
Can I have the password?
It will be installed at www.scifichat.net by the end of October.
I am in the midst of reopening SFC using VB. (just converted from UBB! best move ever)
Thankyou so much!
obiwan, i pm you the password.
thanks for trying my hack.
LaPiba
09-29-2002, 11:22 PM
Hi Teck,
I am using vbHome (lite) version 2 and i would like to update it to the new version. My site is: http://www.ekklesiaviva.com
Could I have the password?
Thank you very much in advance.
lapiba, i send you the password.
everyone please redownload the zip file, i think i fixed a problem with the performance.. in my server it's running v fast but for some reasons in older version of php it's a little slow.
for those who installed 3.1, the change is here:
https://vborg.vbsupport.ru/showthread.php?postid=304050#post304050
nokia let me know how is the speed now? when i went before on your site it was slow, even on forums page, not only on vbhome lite. let me know if the change fix it.
this is what i get me now, with all options enabled:
0.10036099 seconds (72.84% PHP - 27.16% MySQL) 17 queries
you have something there very wrong.. it pulls 3 extra queries from nowhere... if you count all queries they add to 17, not 20.
i want to know if anyone else have the same problem, loading slow the page with all options enabled. thanks.
nokia8860
09-29-2002, 11:42 PM
I am in the process of reinstalling vB 2.2.8 and just re downloaded the vbhome 3.1.
I will let you know what happens
ok.. i'm here. i get a email notification every time someone posts on the thread, so i will know when you answer.
make sure you use the new query i posted instead of the previous one. i changed again the LEFT JOIN to reduce the search in tables.
take a look again here:
https://vborg.vbsupport.ru/showthread.php?postid=304050#post304050
if your file contains the query you see there, then you have the latest updated files. if not, delete all your temporary files and redownload again the file. vbulletin have a prob with attachments in combination with IE. IE wont download the file if is in temp folder, even if it looks like.
nokia8860
09-30-2002, 12:01 AM
I reinstalled vB and vbhome but now my front page is blank. I will try the older version of the vbhome index file to see if it shows up.
Putting the old index file allows the vbhome index page to show but putting in the new file makes it appear blank?
no do not!
is the path probably... take you time and check all steps, why do you rush it??? that's why you endup with 20queries on your page because you mix everything there.
nokia8860
09-30-2002, 12:06 AM
HAHAHA sorry TECK the chdir was commented out. I un commented it now it pulls up.
ok.. but i noticed also that it takes forever to load even your main page???? not the vbHome one? isnt that a server problem?
and make me happy, don't rush it. take your time. you make little mistake and is all screwed. some files are changed some code is altered in a different way to squeeze more out of performance.
so take you time and check all properly.
nokia8860
09-30-2002, 12:13 AM
Here is the microstats from a fresh install of vb2.2.8 with the latest d/l of vbhome 3.1 with the fix already in the index page
Page generated in 13.17248702 seconds (0.70% PHP - 99.30% MySQL) with 20 queries
My test area is running off my @home cable modem so pulling it up outside will be slow.
Pulling up the forums locally gets me
Page generated in 0.16096699 seconds (83.25% PHP - 16.75% MySQL) with 16 queries
Sorry for being such a trouble for you but I really do appreciate all the help you have given :)
so, on the local server it shows at 16queries? the vbHome or the forums? i didnt get you.
it doesnt make sense to add 4 extra queries... from where?? is not possible.
nokia8860
09-30-2002, 12:16 AM
the first stat with 20 is for vbhome the second stat is for the forum page itself
is impossible, look at my stats... and i have all options turned on:
nokia8860
09-30-2002, 12:20 AM
I will try again and let you know :)
remember that you had before 14queries? on the old vbHome?
now if you turn on the polls that's 2 queries and the pm's that's another one, for a total of 17, exacly what i have me.
i use the same file, so there is no magic in there... :)
hmm on your home page, it took like 15seconds to load the nuke portal or what ever it is...
do you have a server online? through your cable? how it is setup your site?
PIMPY
09-30-2002, 12:59 AM
is it possible for you to get all of those templates in to a collapsed folder thing? cause i mean i ahev about 100 custom templates and stuff and having them un collapsed is just more of a mess..
and if you can, how? cause i have a whole bunch i would like to get collapsed
ya it is possible.
open /admin/template.php and find:
$only['getinfo'] = 'User Info Display';
below this, add:
$only['home'] = 'Home Page';
you are done, now all home templates are grouped toghether.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.