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)
-   -   [RELEASE v2] Homepage Login on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=23524)

badmeetsevil- 10-16-2001 07:16 PM

Rob: The Homepage Logon to any page you want is possible. I just saw it in action at phpportals.com. Do you have a est on when you'll start/finish it?

Hooper 10-17-2001 12:09 AM

I don't understand this hack. I merely used the forumhome_logincode in my front page design.

badmeetsevil- 10-17-2001 09:53 PM

Link?

Alien 10-22-2001 08:56 AM

I've tried a million variations listed by everyone here, and I still cannot get mine to function. :)

I can get the login form to work, but it shows up EVERY time even when the user is logged in and of course has a cookie set.

So what needs to be done to get it to not show the form and detect the users login correctly so it won't show the form?

Otherwise the login form itself works excellent, it just prompts to login every time which isn't really desired..

Thanks guys. :D

Blackangel 10-22-2001 06:01 PM

Quote:

Originally posted by Rostor
Hi All,
it works but sometimes give me an error on header :eek:

Warning: Cannot add header information - headers already sent by (output started at C:\Inetpub\wwwroot\XXXXX\home.php:11) in C:\inetpub\wwwroot\XXXXX\forum\admin\functions.php on line 1459

Someone can help me plz ? :)

i get the same error ...

homepage working if i call homepage.php directly

but if i include or require it on php page .... et get this error.

Any tips ?

certify 10-24-2001 12:19 PM

Juan are you still having this problem?

I just got that fix 2 weeks ago, probably I can help.

Juan 10-24-2001 12:26 PM

Thank you. I've moved to vbportal so now I don't have the need.

certify 10-24-2001 12:35 PM

What is vbportal?

Juan 10-24-2001 03:34 PM

<a href="http://phpportals.com" target="_blank">http://phpportals.com</a>

certify 10-25-2001 01:12 PM

WoW, looks great... wish I seen this ealier.

bitbender 10-25-2001 04:22 PM

I tried this hack last nite on a PHP based front page

Now, being that I'm a id-10-T newbie with PHP, I'll claim no great shakes at page design, or PHP coding, but, it seems to have serious issues(MySql DB errors, and bad pass data to SQL call) if there are no cookies, but only gets the: Warning: Headers already sent" error message when a cookie is present. Also, it DOES issue the Welcom back message. I know that the admin.php is called from the global.php include....

I also changed it up a bit, making all the statements after the } else { statement to be print( statements, as I wasn't getting a good result with the escape from html/PHP structure that was in place.

It DOES process the logon correctly, and allows the links on my front page direct access to the threads, so what I've got going wrong has to be simple....

Another consideration is that I use BadMeetsEvil's Headlines script, modified, and in several variants, each with a different forum category for all the areas on the board.

The other hacks used on the front page are;
  1. Last 10 Posts (trimmed to 5)
  2. Who's Online (Vertical Form)
  3. Top 10 Posters
A sample of the page can be seen Here

If you want to logon, use the userId: Varebel, password same as user Id. It's a read-only Id, so no posting is allowed, simply a test vehicle we use for see what the general public see's.

Thanks for any help in advance....Be kind, Old mainframers need help, too :))

JohnBradshaw 10-25-2001 08:30 PM

Hi

Can anyone help me?

I have a Digi Chat hosting thing, at the moment I can get it to log into the chat system if the user is already logged in and on the vB board.

But what I now need to do is allow a user to login and get to the chat system at the same time, anyone know how to do this?

The code I currently have is:
PHP Code:

<?php 

include("./global.php"); 

if (!
$bbuserinfo[usergroupid]==|| $bbuserinfo[usergroupid]==|| $bbuserinfo[usergroupid]==|| $bbuserinfo[usergroupid]==7) { 
eval(
"dooutput(\"".gettemplate('chatmod')."\");"); 
} else { 
if (!
$bbuserinfo[usergroupid]==|| $bbuserinfo[usergroupid]==2) { 
eval(
"dooutput(\"".gettemplate('chat')."\");"); 
} else { 
eval(
"dooutput(\"".show_nopermission()."\");"); 

// end if 

?>

And a template:
PHP Code:

Chat
<html
<
head
<
title>$bbtitle $foruminfo[title]</title
$headinclude 
</head
<
body
$header 
<center><!-- *** START APPLET CODE *** --> 
<
APPLET NAME="DigiChat" 
CODEBASE="http://host4.digichat.com/DigiChat/DigiClasses/" 
CODE="com.diginet.digichat.client.DigiChatApplet" 
WIDTH="200" HEIGHT="100" ALIGN="MIDDLE" 
ARCHIVE="client.jar"

<
PARAM NAME="siteID" VALUE="XXXX"
<
PARAM NAME="cabbase" VALUE="Client.cab"
<
PARAM NAME="background" VALUE="0099cc"
<
PARAM NAME="textcolor" VALUE="000000"
<
PARAM NAME="nickname" VALUE="$bbuserinfo[username]"

DigiChat requires a Java Compatible web browser to run
</
APPLET
<!-- *** 
END APPLET CODE *** --></center
$footer 
</body
</
html


Gutspiller 04-13-2002 11:56 PM

I installed this hack and I like it, but it has spaces above and below the login. I was able to get rid of the spaces above and below the text after you login, but I can't seem to find out how to get rid of the spaces on the login menu thingy.

I am using the code that is in this attachment: https://vborg.vbsupport.ru/attachmen...&postid=143603

(Post #3 in this thread.)

Can somebody please help me? I really want to use this hack, but those spaces just don't go with where I am trying to use this hack.

Thanks.

Meta 04-14-2002 12:43 PM

Yeah ... lovely hack ... works nice for me.

Thank you, RobAC!

mashby 04-21-2002 08:25 PM

Does anyone have this working with 2.2.5? I've installed it and everything is fine as long as the user is logged in. However, once you logout, it takes you to the login section and not the form that is part of the script.

Thoughts?

mashby 04-21-2002 08:47 PM

Ok, I have a few more details on this issue. :)

Since my VB board is part of a totally private site, I have it set so that guest cannot browse the board. Basically, there is no guest account.

So, if you're not logged in, you're immediately taken to the login window. Since this is being done as an include, it looks like I'm going to have to edit the template pretty heavily to get it to work correctly. Right now there are broken images and the re-directs aren't working.

I'm getting closer. :D

joecool 08-31-2002 01:27 AM

Read next post. :)

Editied....

joecool 08-31-2002 12:09 PM

Hey people.. If you get the error msg Cannot add header information, just add ::

<?php
chdir("forum/board/");
require('./global.php');
?>

At the VERY VERY top of your code.. Even before the HTML.. :)

this will change the directory, so you will have to reconfigure other PHP scripts, but stops header errors.

SVTBlackLight01 03-11-2003 11:36 AM

Quote:

Originally posted by Hooper
I don't understand this hack. I merely used the forumhome_logincode in my front page design.
So far this is the only thing that I have gotten to even come close to working. The login works however you are redirected to the forums home page.

SVTBlackLight01 03-11-2003 01:14 PM

Quote:

Originally posted by SVTBlackLight01


So far this is the only thing that I have gotten to even come close to working. The login works however you are redirected to the forums home page.

Well, this was way too easy so I must be missing something.

Anyway, to get it to return the same page, I made another member.php (members.php) and hard coded the return page url. Then reflected the new members.php path in the login box code.

I have tried it extensively and it worked every time.

Marulatree 03-24-2003 10:12 AM

Can anyone help me removing the spaces above and below the login boxes like what GUTSPLLER is talking about below:

Quote:

04-14-02 at 12:56 AM Gutspiller said this in Post #53
I installed this hack and I like it, but it has spaces above and below the login. I was able to get rid of the spaces above and below the text after you login, but I can't seem to find out how to get rid of the spaces on the login menu thingy.

I am using the code that is in this attachment: https://vborg.vbsupport.ru/attachmen...&postid=143603

(Post #3 in this thread.)

Can somebody please help me? I really want to use this hack, but those spaces just don't go with where I am trying to use this hack.

Thanks.



All times are GMT. The time now is 08:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02295 seconds
  • Memory Usage 1,786KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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