vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   welcome/login panel on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=37134)

DraX 09-27-2002 12:44 AM

Where exactly can I find the 1.30 zip file? All I see is the one for 1.20 and I checked that, which showed the last modified dates for the files as those relative to the time of your 1.2 release.

Darren Lewis 09-27-2002 05:27 AM

Sorry, I thought I'd uploaded the new zip file, but must have forgotten to check the button to replace the current attachment.

I've uploaded the new file in the first post.

Darren.

DraX 09-27-2002 01:31 PM

Hmmmm... the last modified date of the files within the archive still say 9/11, nothing suggesting they are more recent, and while the thread now says that the filename is v1-30.zip, it still downloads as v1-20.zip

A Closer look... the readme still says you have to copy and paste, which you said is no longer necessary with 1.30

Darren Lewis 09-27-2002 04:37 PM

Strange, could be a cache problem.

Anyway, I'll attach the 1.30 version to this post too.

Darren.

DraX 09-28-2002 04:59 AM

Thanks much. Great hack, by the way :)

glo 10-04-2002 02:46 PM

Hi Darren,

I have spent some time on other hacks and this appears to be more suited to what i actually need!

I will try to load it up in the next few days and when i do i will click the Install button.

Looking very promising! Will speak to you during the install!

Thanks

glo 10-05-2002 04:58 AM

Hi Darren,

I am about to do the install! I will be trying thiswith ver 2.2.8.

Do you know of any other users using 2.2.8?

glo 10-05-2002 09:51 AM

Hi Darren,

The install went well, but i cant seem to get it to integrate!

The html page is www.glo-racing.com/v3/main.html
and I am trying to place the welcome panel in the right hand blue column where it says "start"

I created the replacement file www.glo-racing.com/v3/main.php and for some reason the php completely alters the code.

I am open to suggestions!

Darren Lewis 10-05-2002 03:57 PM

Hi glo,

Your main.php file cannot find the webwelcome.php file so is ending at that point and not parsing the rest of the HTML. I tried to view the webwelcome.php file which should be in the same dir and I got a 404 error.

Viewing the source of your main.html file, everything else seems to be OK.

Darren.

PS It works with 2.2.8

glo 10-05-2002 10:22 PM

Hi Darren,

I have created a test page with only your webwelcome script at http://www.glo-racing.com/v3/test.php and this appears to displlay the correct info.

Notice this is in the same folder as as http://www.glo-racing.com/v3/main.html and http://www.glo-racing.com/v3/main.php. ( main.html and main.php have identical coding, just a different file extension!)

But for some reason the php extension manipulates the code. (Please confirm if the main.html and main.php look identical) because for me they appear different but are supposed to the same!

I have amended the path to webwelcome.php ie
<?php include ('/hsphere/local/home/glo-raci/glo-racing.com/forums/webwelcome.php'); ?>

This has not rectified the problem?

HELP!

Nitesh 10-13-2002 11:46 AM

Quote:

Originally posted by Colon33
Hey Higgins, you need to allow GUESTS to view your board without registering. I had the same problem.
Hi, is there any way around this? Ive tried various hacks thoughout this board but none of them work.

Any help would be appreciated, thank you.

Buck Satan 11-05-2002 03:05 PM

I keep getting the "Call to a member function on a non-object in webwelcome.php on line 24" error even though Guests are able to view my forums. Any ideas?

Grunt 11-08-2002 10:51 AM

Quote:

Originally posted by Darren Lewis
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.

*raises hand and yells - Im interested!

glo 11-11-2002 06:57 AM

any one got this working with 2.2.8????

I am still stuck!!!

Tony DiMera 11-16-2002 01:46 AM

This is what I get:

PHP Code:

Fatal errorCall to a member function on a non-object in /home/virtual/site11/fst/var/www/html/webwelcome.php on line 24 

I am having the same problem as Buck, and it is an addition which I have put in.

Darren Lewis 11-16-2002 07:06 AM

This error is because the vbulletin global.php file has not been called or found. Make sure that the paths etc are correct at the top of your homepage.

Tony DiMera 11-16-2002 07:38 PM

Thanks a lot it works. I got it as a subdomain and version 2.2.8 and it works great. "Clicks Install" The only thing is when I go to login on my homepage, it takes me to my board and if I go back to my homepage it shows me logged out, I even try hitting refresh. Is there anyway to fix this?

NTLDR 11-16-2002 07:48 PM

Make sure that your cookies are set to:

Cookie Domain: .mydomain.com (Yes 2 dots ;))
Cookie Path: /

That may do the trick.

Tony DiMera 11-16-2002 07:50 PM

I don't have that problem on the board just the homepage. BTW mine is a subdomain how would i put it? forums.mydomain.com

NTLDR 11-16-2002 07:53 PM

If the homepage is at www.mydomain.com and the forums at forums.mydomain.com then use the settings above and I'm 99% sure that will solve the problem.

If not then forums.mydomain.com is what to put in ;)

Tony DiMera 11-16-2002 07:58 PM

That did the trick, thanks a lot.

NTLDR 11-16-2002 08:01 PM

Your welcome :)

Tony DiMera 11-17-2002 01:52 AM

Is there anyway to adjust how it looks? Like in size and colors?

Darren Lewis 11-17-2002 08:40 AM

Everything is controlled by the templates.

glo 11-17-2002 09:17 AM

anyone that has this hack working,

I was hoping that u may be able to help me with the coding for this hack. It looks fine but wont work properly. To date Darren Lewis has had a look at the code but cannot see why it wont work for me.

i am trying to use it at
http://www.glo-racing.com/v3/main.php
but it keeps parsing the code for some unknown reason.

The actual code can be viewed at http://www.glo-racing.com/v3/main.html and selecting view source. the web welcome is supposed to load in the right hand column at the top.

Even when trying to view
http://www.glo-racing.com/forums/webwelcome.php doesnt display and I have not modified the code, just inserted the template, yet it wont work properly.

Any help is greatly appreciated.

Thanks in advance.

Darren Lewis 11-17-2002 08:20 PM

If it helps, this is my PHPinfo file.

JustAskJulie 11-21-2002 09:04 PM

Is there any way to use this on a .html page instead of having to convert my homepage to .php ?

glo 11-21-2002 10:48 PM

Hi Julie,

From what i can tell, u need to use the php extension, otherwise it wont action the php code.

But then again, i could be wrong because i havent gotten this code to run on my site yet.

glo 11-22-2002 08:17 AM

Darren, after adding the templates, should i be able to test them by accessing www.website.com/forums/webwelcome.php ?

Regards

Gavin Lo

Darren Lewis 11-23-2002 08:27 AM

Yes you should be able to.

It will not work on a page with a .html extension, unless you set your server to parse .html extensions as php.

glo 11-23-2002 08:29 AM

Hi Darren, I am testing the code on its own as I think that when inserted into my page that it gets corrupted along the way?

Anyway, when it logs me in, and i select "user CP" it doesnt send me to the correct link cause the directory for the forums is above the folder where the link is?

Can you please make some suggestions???

Darren Lewis 11-23-2002 08:43 AM

Sure :)

The paths for the links are controlled by the templates. The one for the UserCP is in the webwelcome_logoutcode template. You may want to add $bburl instead of the forums/ bit in the link?

I'm sure that something is getting corrupted on that page. I've attached a screenshot of what I get when viewing the php page. Anyone got any suggestions as to why it suddenly stops, and displays the raw HTML?

WHO 11-24-2002 08:15 PM

I have a few questions. Maybe someone can answer them for me. :)

I installed this, and for the most part it works great. When I first tried to install it, I put the "global.php" section at the top of the page and it didn't work at all.

So instead, I made a page called "login.php" with the following code:
PHP Code:

    <?php
    chdir
("vbulletin/");
    require(
'global.php');
    include (
"../webwelcome.php"); 
    
chdir("../");
    
?>

I then included that from the page and everything worked great...for the most part.

It's not exactly a horrible bug that I'm getting because it's somewhat difficult to reproduce, but still a bit annoying. I open two web browsers, go to my homepage with one, and the forums home with the other.

On the homepage browser, I log out. I refresh the forms home browser and then log in on that page. THEN, I go back to the browser with the homepage in it and refresh it.

Without fail, there will be a "headers already sent" type error, but it goes away if I click on a link to the forum. If I just sit there and refresh it, it doesn't go away though.

Lost yet? :)


Another question I have is: Is it normal for all the guests that are just visiting the homepage to be listed as guests in vB now? If I'm logged in as an admin, I see the exact location on my site where they are, but if I'm logged in as anyone else it just says "Main Index". Normal?

Also, I noticed a big jump in page views and referrers according to the vBstats hack I installed. Will it count all the hits on my entire site now? Or just a fluke?

Thanks

NTLDR 11-24-2002 08:28 PM

Make sure in both webwelcome.php and the login.php you created that there is no whitespace (blank spaces) before <?php and after ?>

WHO 11-24-2002 08:37 PM

Quote:

Originally posted by NTLDR
Make sure in both webwelcome.php and the login.php you created that there is no whitespace (blank spaces) before <?php and after ?>
Oh, thanks. Didn't realize that.

Still the same result though :(

WHO 11-24-2002 08:52 PM

Actually, now that I've tested it a little more, I really can't tell when this is happening. There are a few different ways it happens, most of them involving clicking back to the homepage from the forums.


http://www.truthhurts.org is the URL if anyone is interested.

NTLDR 11-24-2002 09:19 PM

Make sure the spaces arn't in main.php or functions.php either, if are no spaces then the error is on line 7 on main.php

WHO 11-24-2002 09:52 PM

Quote:

Originally posted by NTLDR
Make sure the spaces arn't in main.php or functions.php either, if are no spaces then the error is on line 7 on main.php
Line 7 on main.php is the link to my CSS file. Could that have something to do with it? If so, how could I go about fixing it?

NTLDR 11-24-2002 10:02 PM

I would say yes that is the problem. The code in functions.php is trying to do stuff that must be done before any output is sent to the browser. So make sure there is no HTML before you have the bit where you require global.php in your main.php file.

WHO 11-24-2002 10:36 PM

Quote:

Originally posted by NTLDR
I would say yes that is the problem. The code in functions.php is trying to do stuff that must be done before any output is sent to the browser. So make sure there is no HTML before you have the bit where you require global.php in your main.php file.
Thanks, I managed to fix it I think. For some reason when I put the code directly on the top of main.php I got the same error. But when I stuck the include for the login file that I made right there, it worked great.


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
  • Page Generation 0.02073 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete