vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Login to VB from your Homepage. Plus other features. (https://vborg.vbsupport.ru/showthread.php?t=43014)

joecool 09-02-2002 01:19 AM

i will just upload it...

here any problems let me know :)

Mithan 09-02-2002 01:41 AM

ok for some reason I cant get it too just show the total numbers of people who are logged on, period.

Also, the Guests doesnt count right... I have about 60 guests on right now, and it says 3.

Any clue?

rapsearch 09-02-2002 09:55 AM

Joecool...Do i need the first one (zip file) to use this text addon?...

If possible, it would be good to edit your first post here with the latest install instruction, just to keep this thread organised... I'm deffinately feeling this hack.. but will wait until its "finished"...so many dope ideas are said, i'd love to see them combined

joecool 09-02-2002 09:59 AM

Okay thianks.. I am gonna re-write the script to include everything... Also the above (home.txt) should work but you will need to do Step 1 in the attached zip file. ;)

rapsearch 09-02-2002 10:01 AM

ok....i'll keep an eye on this one :).... waiting for the re-written version :)

Thanks for this great addon..

joecool 09-02-2002 10:38 AM

Okay people, today i am gonna finalise this hack, I will be adding bits to show:::

Show a Member if they have a NEW PM on your homepage, this will allow, if user cannot be recoginsed it will say "Not logged in" and if they have one PM it says you have 1 message.. etc etc.. Aldo it will allow people to click the number and be redirected to the PM Folder. Wow.. :)

But its still BETA so the will be bugs. ;)

Mithan 09-02-2002 04:38 PM

This is the code I am using for the front of www.ac2hq.com :

Code:

<?
if ($bbuserinfo['userid']!=0) {
$pmlink="http://www.ac2hq.com/forum/private.php?s=".$session[sessionhash];
$username=$bbuserinfo['username'];
$allpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] $ignoreusers");
$newpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND dateline>$bbuserinfo[lastvisit] AND folderid=0 $ignoreusers");
$unreadpm=$DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$bbuserinfo[userid] AND messageread=0 AND folderid=0 $ignoreusers");
$pmlink="http://www.ac2hq.com/forum/private.php?s=".$session[sessionhash];

print("<align='center'><span class=\"accent\">Welcome $username!</span></b><br>");
print ("<a href=\"$pmlink\">$unreadpm[messages] Private Messages. </a><br>");
print("<align='center'><b>[ <a href='http://www.ac2hq.com/forum/index.php'>Enter Forum</a> ]</b><br>");
} else {
?>
<span class="accent">Please Login:</span><br>
                    <form action="http://www.ac2hq.com/forum/member.php" method="post">
                <input name="username" type="text" size="7" />
                    <input name="password" type="password" size="7" />
                    <input name="submit" type="submit" value="Login!" />
                    <input type="hidden" name="s" value="$session[sessionhash]" />  <input type="hidden" name="action" value="login" />
                    </form><font size=1><a href="http://www.ac2hq.com/forum/register.php?s=&action=signup">Register Here</a></font><br>
<?                                       
}
?>

<!--<?php
$numbersmembers=$DB_site->query_first("SELECT COUNT(userid) AS users FROM user");
$numbermembers=$numbersmembers[users];
$newestuser = $DB_site->query_first("SELECT userid,username FROM user ORDER by joindate DESC LIMIT 1");

echo "Total Members: $numbermembers <br>";
?>


DemiNeo0101 09-02-2002 06:28 PM

Quote:

Originally posted by joecool
Hey.. small problem with this error msg "cannot send header information" blah blah..

This has been detected on 2.27 VB. not 2.26.

also if you have alot of Javascript, may report errors.

finally, if you find a better way to stop Header errors, let me know.. :)


P.S i am still working on this to make it better.

thats easy to fix, thats a user error, Its b/c you have spaces AFTER the ?> in one of your files. It happens to me all the time.

joeboo 09-02-2002 09:03 PM

God i want this hack.. but I just wish there was a way around it.. since my forums and site are different servers :(

joecool 09-02-2002 09:05 PM

Hey, i found a way round it... I am gonna test it myself, if okay, then wow.. ;) i will let you know... ;)


All times are GMT. The time now is 01:46 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.01060 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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