1
eboughen
Allowing users to change logo.gif
  • 2005/2/13 17:44

  • eboughen

  • Just popping in

  • Posts: 2

  • Since: 2005/2/11


Hi - I'd like my users to be able to change the site logo, by uploading their own file. Because image manager allocates its own file names, I can't do it this way. Does anyone have any ideas?

2
beerMe
Re: Allowing users to change logo.gif
  • 2005/2/15 16:53

  • beerMe

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/9/13


This is an interesting question! Before I give my suggestion: let me first say that I am not a real coder, I haven't a clue about PHP or or mySQL, and this suggestion may be very complicated for someone who hasn't Xooped a lot (and it may not even work...)

Here's what I would do. Have your users upload their logo as their avatar (make sure to eliminate the minimum post requirement to upload avatar and allow a large enough image size). Then you will have to hack the theme you are using to show your standard logo UNLESS (the user is logged in AND the user has uploaded their own avatar). Of course, this could lead to some goofy looking web pages if the user's avatar is too big or too small...

This is the name of the variable that refers to a particular user's avatar: $user_avatarurl. So, to refer to it as an image using HTML you would write something like Logo. The conditional statement that would determine if the user is logged in AND has uploaded an avatar is beyond me but shouldn't be too tought to figure out if you know what you're doing.

Login

Who's Online

313 user(s) are online (266 user(s) are browsing Support Forums)


Members: 0


Guests: 313


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits