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
  #52  
Old 10-25-2001, 04:22 PM
bitbender's Avatar
bitbender bitbender is offline
 
Join Date: Jan 2002
Location: Sorta near Dallas, Texas
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 )
Reply With Quote
  #53  
Old 10-25-2001, 08:30 PM
JohnBradshaw's Avatar
JohnBradshaw JohnBradshaw is offline
 
Join Date: Oct 2001
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #54  
Old 04-13-2002, 11:56 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #55  
Old 04-14-2002, 12:43 PM
Meta's Avatar
Meta Meta is offline
 
Join Date: Nov 2001
Location: Germany (north)
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thank you, RobAC!
Reply With Quote
  #56  
Old 04-21-2002, 08:25 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #57  
Old 04-21-2002, 08:47 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #58  
Old 08-31-2002, 01:27 AM
joecool joecool is offline
 
Join Date: Mar 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read next post.

Editied....
Reply With Quote
  #59  
Old 08-31-2002, 12:09 PM
joecool joecool is offline
 
Join Date: Mar 2002
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #60  
Old 03-11-2003, 11:36 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #61  
Old 03-11-2003, 01:14 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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 12:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10865 seconds
  • Memory Usage 2,328KB
  • 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
  • (2)bbcode_php
  • (2)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
  • (3)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
  • (11)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