Hey,
If you visit: http://ve-designs.net/ve45/
I have the login working, so you can login to your account and you will be directed to the forums.
However, how would I go about it so that when you are logged in you see your avatar in the box on that page, and you no longer see the login forms but instead links to access your user cp etc,
any ideas?
Thanks again,
-Van
Show forum avatar in HTML website page
Started by Van Helsing, Dec 06 2006 04:28 AM
5 replies to this topic
#1
Posted 06 December 2006 - 04:28 AM
#2
Posted 06 December 2006 - 03:25 PM
If you use IPBSDK it will be a simple thing, since you can find in the examples folder of IPBSDK a little script tidbit that will display the avatar of the logged in user.
If you are not using IPBSDK though, I would reccomend you to use it
If you are not using IPBSDK though, I would reccomend you to use it
#3
Posted 06 December 2006 - 04:44 PM
If you do not want to use IPBSDK for such a small matter, or you simply can't due to the fact you are using another forum software, you can easily download the package, read the get_infoadv() and get_photo() functions, and you can draft a similar function for your software, provided you know what the database tables are called, and how they are called. Thus, you can form your own simple query and grab the user's avatar yourself. 
Otherwise just use the basics of IPBSDK, as it is a very nice package.
Otherwise just use the basics of IPBSDK, as it is a very nice package.
#4
Posted 06 December 2006 - 09:04 PM
From the looks of it, he doesn't know enough PHP to draft his own functions. I don't mean this offensively, just an observation. My apologies if I'm wrong.
However, if you're not very fond of PHP, I suggest you just get someone to do it for you. That or get someone to explain it well enough for you to do it yourself with IPBSDK.
Good luck
By the way, here is the link for IPBSDK..
http://ipbsdk.sourceforge.net/
However, if you're not very fond of PHP, I suggest you just get someone to do it for you. That or get someone to explain it well enough for you to do it yourself with IPBSDK.
Good luck
By the way, here is the link for IPBSDK..
http://ipbsdk.sourceforge.net/
Edited by Wolfe, 06 December 2006 - 09:52 PM.
#5
Posted 07 December 2006 - 07:22 AM
something along the lines of a basic mysql query,
select from avatar from yourdb where user = $session

Correct me if im wrong, I haven't a whole lot of experience with ipb.
select from avatar from yourdb where user = $session
Correct me if im wrong, I haven't a whole lot of experience with ipb.
#6
Posted 07 December 2006 - 12:00 PM
Hey, thanks guys.
I've downloaded the scripts etc, and they seem to be good - will get them working within the next week and post back with anything that happens,
Thanks again,
-Van
I've downloaded the scripts etc, and they seem to be good - will get them working within the next week and post back with anything that happens,
Thanks again,
-Van
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
