![]() |
Main Site Page Login/Private Message Hack Request
I was wondering if there is a way to just do a login/log off on the front page of my site, and have it show your Private Message (if any) hack?
I have seen a few remote login hacks, but none shows the Private Messages. Is this possible? |
1- make it a php file (rename it as index.php)
2- add: PHP Code:
3- before ?> part you can query the db to get pms PHP Code:
Well this is basically the structure you need but a little bit PHP knowledge to apply will help a lot.. |
Hi and thanks for the quick reply, but maybe you can help me a little bit more.
First, my site is www.ac2hq.com In the top navbar, near Skins, I was hoping to put the login, password info. That little area is a seperate little template php file called skins.php that gets called. Anyways, I put this in that file but no luck. PHP Code:
Any idea what I did wrong? |
1- did u get a error message?
2- have you loaded the page after you logged-in to your board? Let's test it, try this code and it will give you the clues: PHP Code:
|
Ok this is what I get:
Array Array Array userid=1 username=Mithan Unlogged in people get: userid=0 username=Unregistered PS thanks again for the help :) |
sorry my bad, replace line:
echo " $unreadpm $newpm $allpm"; AS: PHP Code:
As for login info you can add this code: PHP Code:
|
Ok that all seems to be working great. One last question, where can I find a Log in code that will work with this? (ie- allow you log in remotly).
|
PHP Code:
|
Actually I found that the table within vB worked...
Quote:
Now to just figure out the code to make that Private Message think clickable, so it takes you to your messages :) |
Quote:
echo "<href=".$pmlink.">your PMs></a>"; |
I put
$pmlink="http://www.yoururl.com/forum/private.php?s=".$session[sessionhash]; near the top of the original code, and the echo part in as well, but all its returning is a your PMs Any idea? |
yep forget 1 extra char in the code.. use this:
echo "<href=".$pmlink.">your PMs</a>"; |
Hmmm, still not working. I had taken that littke > out before as well...
This is the full code. Quote:
|
sorry it is:
echo "<a href=".$pmlink.">your PMs</a>"; I guess I need a sleep.. :knockedout: |
bla
I should of seen that too.... Anyways thanks for the info. Do you mind if I clean this up and possible post it on the Hacks forum or something? I think this is something people would really like. Full credit goes to you of course... |
One last error im getting:
Warning: Cannot add header information - headers already sent by (output started at /home/www/ac2hq/index.php:86) in /home/www/ac2hq/forum/admin/functions.php on line 1582 Everything works fine, but I get this until I log into the forum, then it goes away... Any clue? |
Vincent]This doesn't really have to do with anything but I don't see the point in having the
PHP Code:
PHP Code:
|
Quote:
BTW. the code is really raw, you'd better clean it up and polish it if you are determined to release it (like the lines Vincent mentioned) and be ready to get plenty of "how can I add this into that hack" questions. :glasses: Quote:
|
This is what goes at line 86...
Quote:
|
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|