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 08-31-2002 10:00 PM

Login to VB from your Homepage. Plus other features.
 
Hello.

This hack will allow you to login from your homepage, then be redirected to your homepage (or anypage you like), and if already "Cookied" then it will say hello.

It will also display total posts on your homepage, And loads of features to come ::

Private messages,
new posts since last visit
top posts,
newest member

All on your homepage. :)


Beta tested needed. :)

** Attached file opens in WORDPAD **

assassingod 08-31-2002 10:38 PM

Ill will test this out. I really want one of these on my site. But cant find any good hacks:o
EDIT: Well, I found the instructions a little confusing, therefore I dont think I go the modifications in member.php correct.

But anyway, I get this error on my homepage (index.php)
PHP Code:

Welcome back$username!
"); print("Enter Forum ]"); } else { ?> 


mewgood 08-31-2002 10:48 PM

is it the homepage must be in php?

joecool 08-31-2002 11:27 PM

Looks like you have not put the <?PHP tag. or <? at the beggining of the code. ;)

So it passes as HTML

joecool 08-31-2002 11:32 PM

Hey, assassingod .

Why are you editing members.php? only edit this file if you want to change redirection. :)

assassingod 08-31-2002 11:53 PM

Hey! Thanks joecool:) Ive got it working:)

I cant wait til the full release

joecool 09-01-2002 12:47 AM

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.

joeboo 09-01-2002 02:09 AM

joecool... thats almost like my name.. lol... anyways, say the forums and the site was on different servers.. can this hack still work? or does the site and forums have to be on the same server?

joecool 09-01-2002 02:13 AM

No it wont..

You would get too many errors.. :)

Maybe i will look into it. :)

joeboo 09-01-2002 02:27 AM

Well, let me know if you find a way around it :)

YzermanCpt 09-01-2002 03:50 AM

Cool hack. I'll install and test this out.

Intex 09-01-2002 08:23 AM

Nice work joecool - I've been waiting for something like this. I'll check it out on my dev board today :).

I'd be very interested in the other items appearing on the homepage too :).

Intex 09-01-2002 08:38 AM

Unfortunately only just noticed the post from joeboo. My website and forum are on different servers too :(. Can you look into integrating that as I think this would be the case for quite a few people :).

joecool 09-01-2002 10:34 AM

Maybe if you people who have thier website / forum on different servers, may be able to use it if you copy the required .php files from the other server and place them in your website directory mirroring how it works normally.


Hmmmm.. I will look into this. :)

rapsearch 09-01-2002 05:49 PM

interesting...

is this something like the script options from www.phpportals.com ?

If possible, i'd like to see this hack in action, do you have a sample?

joecool 09-01-2002 07:28 PM

No demo. Sorry, i developed this script, using my works intranet site, we have a board on there, i will take some screen shots and post them here. Hope thats okay.

:)

Mithan 09-02-2002 12:28 AM

Nice hack.

I added a little to this, you can get it to show PM's on your front page:

after
Code:

if ($bbuserinfo['userid']!=0) {
enter

Code:

$pmlink="URL/private.php?s=".$session[sessionhash];
(change the URL to point to your forum)

Where you print the user name out and link to the forum, enter this:

Code:

print ("<a href=\"$pmlink\">$unreadpm[messages] Private Messages. </a><br>");
This will print out Private Message on your forum.

You can see this in action on the front page of my site:
http://www.ac2hq.com


I am currently trying to get it too print out the Active Users, but I dont know the tags. If anybody can help me with this, that would be great.

joecool 09-02-2002 12:39 AM

I can help you with that..

My version does the following...

Sorry about the orange hyperlinks.. ;)

if thats what ur after then let me know. :)

also thanks for the previous post.. i will definatley add that.. :)

Mithan 09-02-2002 12:53 AM

Ok, how would I get it too do exactly what you show in that picture?

joecool 09-02-2002 12:57 AM

hehe.. do you like it?? okay.. i will give you the details, but your gonna have to wait a few minutes..

I will get all the code and email it to you :)

i will send it in about 20 minutes. ;)

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... ;)

joeboo 09-02-2002 11:26 PM

oh sweet :)

assassingod 09-03-2002 05:32 PM

Hey joecool:) How is the hack going?? I cant wait til you finish it!!! Release the final version soon!!!!!:D

joecool 09-03-2002 06:42 PM

Hey people, i have been testing different parts of the script all night, I will imagine it will be released tomorrow, as full version??

Just wondering ??? Do I start a new thread in full relase section??

joeboo 09-04-2002 12:35 AM

yeah.. i think u do. I have seen people do that.. from like v.1.0 to v.2.0.. so yeah..

joecool 09-04-2002 09:45 AM

OKay people i have release the version : https://vborg.vbsupport.ru/showthrea...259#post295256 but this is the version where they must be on the same server.. I am working on the Different server thingy.

rapsearch 09-04-2002 11:27 AM

One question.. is it possible to use this with the phpnuke script? ( i hope you know that)

Because i need to add
<?php
chdir("forum/vbulletin");
require('./global.php');
?>
ABOVE the <html> tag accoring to your instruction.. but find that hard to do :(....also.. does it conflict with possible PN features....

I hope you know something about this.

i use the script at www.rapsearch.com

joecool 09-04-2002 11:34 AM

It should be okay, but if PHP nuke requires a PHP file in a different folder you will need to do somehting like this: Example only*

../phpnuke/config.php (Example)

Maybe make a copy of your index file and test it first.. Any problems. PM me on simonroberts999@hotmail.com :)

rapsearch 09-07-2002 03:59 PM

:o(...can't get it to work.. you're familiar with the phpnuke script??

It has a file called header.php in which the <html> tag you're talking about is... but i can't the code you offer to be added above... get nothing but parse errors...

ps..if you want to discuss this by email.. let me know

Colon33 09-16-2002 06:43 AM

<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=43454&perpage=15&displa y=&pagenumber=1" target="_blank">https://vborg.vbsupport.ru/showt...=&pagenumber=1</a>

Most recent.

Version 2 comes out tomarrow

sklwer 10-09-2002 03:31 PM

has anyone nade this work on version 2.8 ?


All times are GMT. The time now is 02:45 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.01333 seconds
  • Memory Usage 1,813KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete