![]() |
Quote:
I'm going to wait a while to see if it resets again (my forum doesn't tend to get a huge amount of traffic :) ). Once I'm satisfied things are OK, I'll release V1.1 (how do you decide version numbers anyway? should this be V2? :cross-eyed: ) I'll probably write a fresh webwelcome.php file, and then tell you which lines to copy across from the original vB index.php file. Is anyone using the script to display birthdays, or PMs on the non-vB page, as my own V1.1 is not set to include this info? |
How often do you notice a reset? Mine happens every day.
|
I don't have a huge amount of traffic so it seemed to always say "Most users ever online was 1 on date & time I was visiting".
It seems to be OK now. Will probably try to get the new release written and uploaded soon. |
OK, I've released V1.10 of this hack. The zip file in the first post of this thread has been updated.
V1.10 13 May 2002 Fixes the bug where the "most users online...." on the forum page keeps reseting to zero. Removes a lot of the unecessary bloat from the script. Creation of script simlified. Now just cut and paste. NB template name change in this version - webwelcome_home is now called webwelcome. |
Please help! I Love this hack! It is exactly what I am looking for. I am having trouble getting it to work on my site though. I have the forum installed in a directory called /forum/ just like you do, but I don't understand where I am supposed to put the template files that we modified. I am a newbie so sorry if this is an obvious question but I've tried everything.
|
Quote:
My forums are in the directory /forums so make sure that the paths are altered for your site. Hope that helps :) |
I am getting this error whenever i am using this hack.
Quote:
If it has something to do with the require script at the very top of the website i am gonna be very mad. However, my forums are located as a sub-domina of my website, they look like this: http://forums.mysite.com My phpfile is located here: http://www.mysite.com So being a subdomain how would i make the top require file look? I have been at this for about 3 hours so its time to rest.... lol |
just make it look like this:
PHP Code:
|
Let us know if that works for you. Some server configuations seem to be very picky about paths to include files. On mine I don't have to use the full server path, just the relative path.
Darren. |
well i think i got it to work but if i put in the full path it says open_basedir restriction in effect, if i put those paths in the webwelcome.php page it calls the entire global.php page and messes up everything on my page. It only works if i put the webwelcome.php page into the root of my forums url.
Again, my forums are a subdomain of the site i am trying to use this on. there is no forums folder just the root. |
Quote:
|
I require that file, and the entire login page appears. Is this normal? I try logging in with this new box that shows up and it says directory not found. Ideas?
|
OK, let me see if I can work out what is going on. Have you got the script to work and display the welcome bit with the login box (similar to on my website ) If so, and the login box isn't working it may be due to the paths in the template files
Look in the webwelcome_logincode and webwelcome_logoutcode templates and make sure that the paths to member.php are correct. Because you are on a subdomain, you may need to make the paths absolute ie http://forums.yourdomain.com/member.php etc.. You will need to do this with all the templates (I wrote them for my site and haven't gotten around to making them more generic yet). You may be able to just use $bburl/member.php instead? You will also need to alter the cookie settings in your admin control panel so that it affects the whole domain rather than just your subdomain (see some of the earlier posts about this). Darren. |
Hello boardies,
I getting the following Error: Quote:
PHP Code:
Could ya help me? |
Hi belorofon
Looking at your website in your profile, you have quite a few other scripts on the homepage. The error message I got was Quote:
Darren. |
If I wrote
PHP Code:
<!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> with other words: nothing :cry: |
k guys.. this is what happens when i put that code at the top of my forum:
The entire template for the LOGIN screen on VB appears and distorts eveything with broken images. And i have all the new templates made and i have edited the files properly. It cant be that hard to do with a forum thats a sub-domain. |
I have installed and it seems to be working...only one prob...if i am logged in and i log out (from the homepage or from the forum)...and then i go back to my homepage..it says i am still logged in...if i hit refresh...it refreshes and then it updates with me as a guest.
similarly, if i am not logged in and i log in...then go back to my homepage..it doesnt say i am logged in unless i hit refresh. one thing, i had to include the full path to the webwelcome.php in the include. any ideas on how i can fix the logged in/logged out issue? thank you so much for the hack! frank ps i want to use another hack called logician news on the homepage...will this cause any probs with this hack? ps for those with vb 2.2.6, this is the version i am using and it worked fine other than the issue noted above. the lines referenced in the install instructions are still valid for 2.2.6. |
Hi Frank, I too have this refresh issue. It's cuased by the browser (IE6 in my case) loading the page from it's internal cache. When you click refresh it loads the page from the server and the correct information is shown.
The way to get around it is have some code in the header of the page which tells the browser not to store it in its cache - can;t remember what that code is at the moment (perhaps someone else will enlighten us). I'm not sure about Logicians hack. I'm running my own news script on my homepage. Only thing to be carefull with is the paths. Darren. |
<meta http-equiv="Cache-Control" content="no-cache">
but it still running into the same issue. so if you dont hit refresh and it says you are still logged in...am i indeed still logged in on the forum? kinda confused about this. i wonder if the hack to take the user back to the page from which they logged in will work in forcing a reload? what do you think? i would think this would work on login...not so sure about logout..does that hack take the user back back to the page from which they logged out? anyway, once again thank you for the hack! i went to your site...very nice..seems like you are pulling info from the forums in two diff formats..."Book News" and "Latest Discussions"...i wanted to do this but the other hack doesnt allow this or i dont know how to accomplish it. i did install the logician hack and all i had to do was specify the full path to the config file. is your news hack available on this site? :) frank |
The login works :) however I get the same problems as above. :(
On my non-vb page the login fields appear, I enter my login name and password, it takes me to the forums. When I go back to my non-vb, the login fields are still there! But even when i refresh, the fields still stay. Vice Versa, if i install the hack when i'm still logged in, the welcome message appears. When I go back to my forums and log out, the welcome message is still there on my non-vb page (even refreshing that page continuously). I've got my forums on a sub-domain, 2.2.6. Does anyone else have this problem? Any help is appreciated! |
OK, sorry about the slow replies. I've been updating my website quite a bit these last few days.
These are the no cache headers that vbulletin uses. Try these to see if they work. Code:
<!-- no cache headers --> The latest threads on my website's homepage is a slight modification of Tubedog's hack available here. The other two (the Book News, and the Site News) are ones that I wrote myself. They're basically identical hacks but each one looks to a different forum ID for the info, and use different templates. The book news is a public forum, the site news is a private forum so can't be seen in the forums by guests and members (but it can by me :) ) In writing them, I used code and ideas from several of the news hacks available here. To cut the title after x charcters, have a look at KuraFire's newsportal and thread overview hack and Tubedog's latest threads hack. To pull forum info to a non-vb page have a look at vbhome or vbindex (look for the news bits in the code). I suppose if enough people are interested I could release them as a separate hack (when I get a bit more time :) ) Darren. |
Hello, is it possible to split this into two sections?
By this i mean have a webwelcome.php and webwelcome_logout.php. Why do i want this? well i use VBPotal and already have a P_themeheader & P_themeheader_loggedout These templates already have menus for logged in and logged out users ie: logout register links. What i would like to be able to do is to be able to include file or template, in existing templates: P_themeheader & P_themeheader_loggedout which has welcome panel for a logged in user or logout/not registered user. any ideas how i could use this hack for such a purpose? many thanks |
I'm not sure I follow what you want to do. I don't use vbportal, but from the sites I've seen using it, it already has a built in welcome/login feature.
If you want to include bits of the templates from this hack in the vbportal templates that should work OK. If you want to include the php code in the templates that probably won't work. I know that with vbulletin you can't use php code within the templates so I presume the same is true for vbportal (and other systems that use templates). Darren. |
Thanks for reply.
Yes i know VBP has all these feature, but they are in side/center blocks and i want to put them in header section, so need to included them the P_themeheader templates. Real pain trying to work it out :( |
A quick update to say that the new V1.20 has been released. I've been meaning to do this for a while but never got around to it. After a few emails about it here it is.
It will allow you to display the user's avatar on the non-vb page. Basically a modification of Firefly's hack. Any other features people would like? |
My forum and my main site are on two different domain names and IP address. Will this hack still work?
|
Sorry if it was asked before... but is there any easy modification to apply to this hack to have private messaging information included ? :p
Thanks in advance. |
Quote:
Quote:
I haven't been applying or bothering with hacks much recently as I'm waiting for VB3 to be released. |
OK, I've nearly finished the next version :)
New Features Added:- - Option to show PM info (if user cannot use PM system or has chosen not to use it, the pm info will not be shown for them). - Option to show who's online and another option within that to show usernames or not (invisible users will show as visible to admin only). - Both the PM info and Who's Online bits will use the correct grammar. If for example only 1 member is online, it will say "1 member" and not "1 members" or "1 member(s)" but if 2 members are online it will say "2 members". Similar for guests and PM info. Again, layouts of all of these will be configurable via custom templates. As I've edited a lot of the vb original code, I'm going to abandon the copy & paste system and release a fully loaded webwelcome.php file. Hope to have this out by the weekend. Any other features people want whilst I'm in the mood :) Darren. PS Still haven't tried it on a subdomain or another domain. |
Hello I really want this hack but this is what I get?
PHP Code:
|
I've had vBhome installed on my site for the last few months. I then modified the script a little (mostly just took out the news part) and used that to make a column on the left side of every page that shows a users info (or login box), online users, buddy list, latest topics, and etc. The majority of my pages are coded in HTML, so I just used ssi to include the PHP file and it worked great. Now I'm starting to code more and more of my site in PHP, but I'm starting to run into problems. I can't seem to use SSI anywhere in a PHP file, so I tried using the PHP include function to include that file. That worked for the most part, but the only problem is a user can not log in from that page, and if someone is already logged in it won't show their info.
I decided to try and use this hack to see if I could get it to work with my PHP scripts, but I'm still not having any luck. I put this code Quote:
Quote:
Quote:
I've got this hack to work fine on a test page done in PHP, but I can't get it to work on a PHP script page. Does anyone have any idea how I can make this work or perhaps another way I can display a users login information on another PHP script? |
Hi, I've updated the zip file to V1.30.
This new release contains options to show PM info and who's online (with or without usernames). There is no more copy&paste creation so things should be a bit simpler. There are a couple of more templates to create if you want to use the pm and who's online bits. I also fixed a very minor bug. If you chose not to show avatars the welcome text would not be centred in the box as there would still be a blank avatar column. A simple change to the webwelcome template and the php file has sorted that. OK, this include global.php does cause a few problems. This is mainly when you have other scripts running on the same page. If these scripts require other directories they may not work. I've got Tubedog's latest threads hack on my homepage, but it's creating problems when I try to pull info from my reviews engine (Censura). This is what I have at the very top of my index.php homepage. <?php chdir("forums/"); require('./global.php'); ?> <html> I then have this where I want to show my welcome panel <?php include("webwelcome.php"); ?> and it works OK. Different servers behave differently. I'm running Apache on Linux. Tony, I have no idea why you're getting that message :( Any other hacks/scripts on your page that may be creating trouble? Darren. PS I'll probably not be adding any new features to this hack from now. It does everything I personally need it to do on my site, and I don't have the time to do any custom work. Hopefully it will work with VB3, but if not I'll sort something out as I'll be going to VB3. |
No matter what I try I can't seem to get this to work with another PHP script. I tried what you suggested above and put this right above <HTML> in the PHP file...
<?php chdir("forums/"); require('./global.php'); ?> And it came back with this error... Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site72/fst/var/www/html/gallery/albums.php:32) in /home/virtual/site72/fst/var/www/html/forum/admin/functions.php on line 1603 Anyone have any suggestions on how to make this work or know if it's even possible to make it work with another PHP script? |
Looks like your "gallery" script is conflicting and sending header info. Is there any other PHP code above the call to vbulletin's global.php file as this may be interfering.
|
Yes, there is quite a bit of code above where I was calling the global.php file from. Here's what's above it...
Quote:
|
Try putting it above your PHP code, so it's the very first bit of code on that page. Then chdir back to your current directory
ie. <?php chdir("forums/"); require('global.php'); chdir("../"); // Hack Prevention then your gallery php stuff Darren. |
Well I tried your suggestion and put -
<?php chdir("/home/virtual/site72/fst/var/www/html/forum"); require('./global.php'); chdir("/home/virtual/site72/fst/var/www/html/gallery"); ?> At the very top of the file and got this error... Warning: Cannot send session cache limiter - headers already sent (output started at /home/virtual/site72/fst/var/www/html/gallery/albums.php:7) in /home/virtual/site72/fst/var/www/html/gallery/session.php on line 51 Fatal error: Call to a member function on a non-object in /home/virtual/site72/fst/var/www/html/webwelcome.php on line 22 I've been playing around with it for quite a while, but still no luck. If you happen to think of anything else that might work please let me know and thank you very much for your help thus far. :) |
I can't get it to work. Only getting this error
Quote:
Quote:
*EDIT* Ok got it running now but it Displays the whole index.php Page with broken Buttons. |
Hey Higgins, you need to allow GUESTS to view your board without registering. I had the same problem.
|
All times are GMT. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|