PDA

View Full Version : Non-vB welcome panel.


Lotus Ims
02-27-2002, 02:15 PM
I would like a hack made, much like the one on the main page here. It needs to display the username, Avatar, Number of new posts, and how many new PM they have. If someone could mae this for me it would be great!

Example:

Welcome back, (username)
----------
|avatar|
| |
----------
Since you last visit,
(x) new posts
(x) new PMs

And if a user is not logged in display:
________________
Username: |________________|
________________
Password: |_______________|

I would greatly appreciate this. I would display a link to you page if you could make this for me.

mondaynightmike
02-27-2002, 04:48 PM
bump

slideboxer
02-27-2002, 05:08 PM
For myself, it was a matter of copying bits of root/index.php and placing them in my homepage php file.

Lotus Ims
02-27-2002, 11:46 PM
can you tell me what you did? I am not very good at PHP.

JJR512
02-28-2002, 05:52 AM
I could tell you how to do it...but it would involve me posting a lot of the content of index.php, and even though it's not the whole file, the powers-that-be might not like it too much (and I wouldn't blame them). I would send it to you in a PM or email, but I have no way of confirming your license myself.

So I will tell you in general how to do it. I'm sorry I can't be more specific.

First of all, your homepage PHP file needs to have a statement that makes it require global.php. Look in your forums/index.php file, very near the top is a statement that says "require" and "global.php" in it. Copy that line and put it in the same place in your homepage PHP file.

Now look around in index.php. The major functions are identified fairly well. For example, you probably want the part that starts with "// if user is know, then welcome". Copy that entire section of code into your homepage PHP file. Look around for any other parts you might want, too, like the PM notification or Who's Online. All that stuff is in there. It's really not that hard to find, just don't be afraid to look. :)

Lotus Ims
02-28-2002, 02:03 PM
Hey Moderators, do you have anyway of confirming my account?? If so please post saying my current license status. If you can't do it, then can we get a admin to do it.

Thanks,

And thanks JJR512 for the info. Once you get my licence confirmed, you can email me at webmaster@mtgforums.com. Thanks.

EDIT, go to my forums. I have hack from here installed. You need to be licensed to ge thacks from here. If you still don't belive me then goto line 1.

Lotus Ims
03-01-2002, 01:49 PM
**bump**

Lotus Ims
03-01-2002, 10:03 PM
**bump again** Someone please answer

mak
03-24-2002, 10:27 PM
hey, i also want this one done on mine. i'm licensed so how do i get details of this,too.

thanks.

Darren Lewis
04-07-2002, 10:06 AM
I'm working on this at the moment. I've nearly got it working, but I'm having a problem with the cookies.

If you haven't been to the forums before (and don't have the cookie), it generates a warning message
Warning: Cannot add header information - headers already sent by.....

I'm not sure how to solve this. If you've been to the forum page and got the cookie it works OK.

Any ideas?

Darren Lewis
04-07-2002, 02:42 PM
Forget it, I've got it working OK now.

Darren Lewis
04-08-2002, 09:06 AM
I've released the instructions and files as a hack which can be found here (https://vborg.vbsupport.ru/showthread.php?s=&threadid=37134)

Any questions or problems, then ask in that thread and I'll try to answer them.