FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Include a script as a url for avatar
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Include a script as a url for avatar [message #36128] Tue, 06 March 2007 18:47 Go to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
I wish to be able to include something like this as an avatar url, but it does not work in either case. How do I make it so this works? It may be a security risk, but it is an absolute necessity.

http://roster.faevictus.org/addons/siggen/av.php?name=Dyeus
http://roster.faevictus.org/addons/siggen/av.php/Dyeus.jpg

[Updated on: Tue, 06 March 2007 18:48]

Report message to a moderator

Re: Include a script as a url for avatar [message #36131 is a reply to message #36128] Wed, 07 March 2007 00:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can update the URL to the avatar for a given user in the database.

FUDforum Core Developer
Re: Include a script as a url for avatar [message #36189 is a reply to message #36131] Wed, 07 March 2007 16:18 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Thank you. What I am looking for is having the user input the url themselves and then let it be moderated. I don't want to do this for 189 users each time they earn a new level. Where can I go to modify the code to allow this style of url?
Re: Include a script as a url for avatar [message #36198 is a reply to message #36189] Wed, 07 March 2007 23:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You need to modify the URL avatar handling code inside register.php.t

FUDforum Core Developer
Re: Include a script as a url for avatar [message #36213 is a reply to message #36198] Thu, 08 March 2007 19:16 Go to previous messageGo to next message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
I looked at the code and found the problem. The software is not saying if the image is not meeting the size limitations. It simply says that the url does not contain a valid image. This is a confusing message. Is this something that could be updated to provide a more informative message in the main branch?

[Updated on: Thu, 08 March 2007 19:17]

Report message to a moderator

Re: Include a script as a url for avatar [message #36223 is a reply to message #36213] Fri, 09 March 2007 00:31 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
well a script is a non valid hence the problem. the forum uses get_image_size() function from PHP, if it does not return valid data it assumes that the file is non-valid.

FUDforum Core Developer
Re: Include a script as a url for avatar [message #36451 is a reply to message #36223] Sat, 24 March 2007 16:07 Go to previous message
Marticus   United States
Messages: 272
Registered: June 2002
Karma: 1
Senior Member
Just to follow up on this, fud works for the aforementioned scripts. It was a matter of avatar size and the message states that it is invalid not the wrong size. My users get the invalid message if their image (static or dynamically generated from a script) is not the correct size. I will modify the text to say the image is not valid or does not meet the size limitations. Or something like that...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: I have two questions.
Next Topic: Not possible to modify Topic Description after posting
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 06:06:54 GMT 2024

Total time taken to generate the page: 0.02778 seconds