Jump to content


Show forum avatar in HTML website page


5 replies to this topic

#1 Van Helsing

    Young Padawan

  • Members
  • Pip
  • 11 posts

Posted 06 December 2006 - 04:28 AM

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

#2 Erik Bernskiold

    Jedi In Training

  • Members
  • PipPip
  • 422 posts
  • Gender:Male
  • Location:Gothenburg, Sweden
  • Interests:I love to do booth Web Design and Photography. Nothing beats a nice day out in the nature with the camera gear, getting loads of nice photos. I have been playing the flute for 6 years now and I love it, and I am playing the pipe organ as well. I also like to teach other people the in and outs of software such as the CS3 suite from Adobe.

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 :)

#3 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

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

#4 Wolfe

    Young Padawan

  • Members
  • Pip
  • 102 posts
  • Gender:Male
  • Location:Louisiana

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 :P

By the way, here is the link for IPBSDK..
http://ipbsdk.sourceforge.net/

Edited by Wolfe, 06 December 2006 - 09:52 PM.


#5 influct

    Young Padawan

  • Members
  • Pip
  • 63 posts

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.

#6 Van Helsing

    Young Padawan

  • Members
  • Pip
  • 11 posts

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users