Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by RobAC RobAC is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 07-23-2001 Last Update: Never Installs: 15
 
No support by the author.

Ok....this is my first hack. It's small and should be very straight forward.

The source of this hack is a thread that started in the main Code Hacks forum by a user looking for a hack that would allow their members to log in from the main home page of their site. Once logged in, it would display a Welcome message when the logged in member returned to the home page.

The original source was provided by Demolition, but members were having problems with getting the hack to run.

Warning/Disclaimer: I am not a well seasoned PHP programmer. I get by as best I can, but usually learn from example and tinkering. I have changed the PHP coding around slightly, and added much more HTML in order to format the input fields etc. This hack was tested using Internet Explorer 5.5 and Netscat 4.7. I have verified that it works in both OS's several times. I am also running the latest version of PHP on my server, so I'm not sure how to help those of you that are running PHP3, but I'll do the best I can. I won't make any promises though. I plan on continuing to work on this as well as add a few more features to it as time permits.

Download the attached file and edit it using a text editor of your choice. Add the pathway to your forums directory where noted. Save the file as a PHP file to your main forums directory. If your site's home page is an HTML document you will have to call the PHP file using a server side include. If you're not sure how to do this, you should search the forums here as this topic has already been covered several times.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 08-16-2001, 10:59 AM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack looks very cool. The only thing is that I can only get it to work correctly by calling the script direcly. When use php include on the index page, it gives me an error saying that headers have already been sent out.

Is there a way around it?
Reply With Quote
  #33  
Old 08-16-2001, 02:15 PM
certify's Avatar
certify certify is offline
 
Join Date: Nov 2001
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool I'll use this hack.
Reply With Quote
  #34  
Old 08-16-2001, 10:16 PM
certify's Avatar
certify certify is offline
 
Join Date: Nov 2001
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I have the login url instead of the login fields?

e.g.

You are not login, Login or Register
Reply With Quote
  #35  
Old 08-16-2001, 11:09 PM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone got this hack to work correctly without geting any errors?

I've tried everything and always get errors when using php includes. Please, I need help.
Reply With Quote
  #36  
Old 08-16-2001, 11:32 PM
Harry
Guest
 
Posts: n/a
Default

Yes, worked without any problem. See at

http://www.schatzjagd.org

on the right side, with the who's online script

Harry
Reply With Quote
  #37  
Old 08-26-2001, 01:41 PM
Rostor Rostor is offline
 
Join Date: Nov 2001
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi All,
it works but sometimes give me an error on header

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 ?
Reply With Quote
  #38  
Old 08-27-2001, 07:01 AM
samtha25 samtha25 is offline
 
Join Date: Jan 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Rostor
[B]Hi All,
it works but sometimes give me an error on header

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
That's what I get at smachol page, not being a registered user.

This would be a very nice thing to have - just a login or the welcome back message on the home page, but I think Rob may have lost interest, as it looks like he may be using vbportal.
Reply With Quote
  #39  
Old 08-27-2001, 04:47 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by samtha25
That's what I get at smachol page, not being a registered user.
Reply With Quote
  #40  
Old 08-28-2001, 12:31 PM
RobAC RobAC is offline
 
Join Date: Oct 2001
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by samtha25


That's what I get at smachol page, not being a registered user.

This would be a very nice thing to have - just a login or the welcome back message on the home page, but I think Rob may have lost interest, as it looks like he may be using vbportal.
Samtha,

I haven't lost interest, but I've been really busy the last couple of weeks and spent the last 4-5 days dealing with a loss in my family. I'm just getting back to work now, but will be taking off in a couple days for a much needed vacation. I won't be able to take a look at this hack until after I get back.
Reply With Quote
  #41  
Old 10-09-2001, 09:33 AM
certify's Avatar
certify certify is offline
 
Join Date: Nov 2001
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying to convert my files to PHP but there is something wrong with the this code. Try to register an account, then login and go the the 2 links below, you will notice that from the index.shtml you the system managed to detect that you are login but from index.php you are still not login??

This file call the header from header.shtml
http://www.certifyexpress.com/microsoft/index.shtml

Quote:
<tr>
<td width="100%"><font face="verdana" size="2">&nbsp;&nbsp;<!--#include virtual="/forum/homelogin.php" -->,&nbsp;&nbsp;<b>Total Registered Members : <font color="#FF3300"><!--#include virtual="/forum/registered.php" -->&nbsp;</b></font></font>
<br>
</td>

This file call the header from header.php
http://www.certifyexpress.com/micros...kpro/index.php

Quote:
echo "<td width=100%><font face=verdana size=2>&nbsp;&nbsp;";
include("http://www.certifyexpress.com/forum/homelogin.php");
echo "&nbsp;&nbsp;<b>Total Registered Members : <font color=#FF3300>";
include ("http://www.certifyexpress.com/forum/registered.php");
echo "&nbsp;</b></font></font>";
echo "<br>";
echo "</td>";
Below are the codes for homelogin.php

PHP Code:
require("global.php");

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
  
echo "<font face=\"verdana\" size=\"2\">&nbsp;<b>Welcome back, <font color=\"#FF3300\">$username</font>&nbsp;!</b>&nbsp;[<a href=\"http://www.certifyexpress.com/forum/member.php?s=&action=logout\">Logout</a>]</font>";

} else {

?>

<font face="verdana" size="2">You are not login. <b><a href="http://www.certifyexpress.com/forum/pageregister.php?action=login">Login</a></b> or <b><a href="http://www.certifyexpress.com/forum/register.php">Register</a></b></font>

<?

}

?>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:53 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.07106 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete