Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-30-2009, 04:39 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Darlene159 View Post
Give it a rest. The avatars, as is now, is fine.
Why should I give it a rest? There are pages and threads asking for small, simple changes to avatars. What makes you think it's fine? It's a simple thing, why so against it?
Reply With Quote
  #2  
Old 08-30-2009, 05:20 AM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally Posted by DustyPorViva View Post
Why should I give it a rest? There are pages and threads asking for small, simple changes to avatars. What makes you think it's fine? It's a simple thing, why so against it?
I'm not against it, apart from aminated avatars, but apparently Stefan doesn't want it done. I dont see the big deal, especially to get angry about.
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote
  #3  
Old 08-30-2009, 03:48 AM
kia345 kia345 is offline
z0rbi 4 life 🤘
kia345's Avatar
Join Date: Dec 2006
Location: delteria
Posts: 6,737
kia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond repute
It's not going to slow it down enough to be noticeable, I think he's just being lazy.
__________________
pojo
Reply With Quote
  #4  
Old 08-30-2009, 05:23 AM
kia345 kia345 is offline
z0rbi 4 life 🤘
kia345's Avatar
Join Date: Dec 2006
Location: delteria
Posts: 6,737
kia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond repute
It's a big deal because practically every other forum on the internet uses them except Graal. It's a big deal because lots of successful games and communities take advice, suggestions, and requests from their players, while Graal just floats off in its own direction.
__________________
pojo
Reply With Quote
  #5  
Old 08-30-2009, 05:28 AM
MysticX2X MysticX2X is offline
Prince
MysticX2X's Avatar
Join Date: Sep 2005
Posts: 2,529
MysticX2X will become famous soon enough
Pojo, my insides are dying of excitement to see your animated avatar every time I see your posts.
__________________
-Mystic

former acc: mystic2k


RIP Matt (NBK)
Reply With Quote
  #6  
Old 08-30-2009, 05:37 AM
kia345 kia345 is offline
z0rbi 4 life 🤘
kia345's Avatar
Join Date: Dec 2006
Location: delteria
Posts: 6,737
kia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond reputekia345 has a reputation beyond repute
Quote:
Originally Posted by MysticX2X View Post
Pojo, my insides are dying of excitement to see your animated avatar every time I see your posts.
I don't even think I'd use one, but it's the fact that we don't have the option and we don't get listened to
__________________
pojo
Reply With Quote
  #7  
Old 08-30-2009, 05:37 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Stefan's concern is how larger avatars would affect the loading time of pages. I believe this is negligible considering the prevalence of broadband. Images are also cached on the computer so avatars would only be downloaded once anyways. And it is also possible, as Dusty said, to configure a maximum avatar file size that allows either a large image or a smaller animated image.
__________________
Reply With Quote
  #8  
Old 08-30-2009, 06:35 AM
BigBear3 BigBear3 is offline
Zormite
BigBear3's Avatar
Join Date: Jan 2007
Location: Lynn, MA
Posts: 2,551
BigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond repute
If people like Frieza or Sam could have tiny little animated avatars that don't limit our access why can't we? It's just like everybody has been saying this entire time, just keep a limit.

I have animated avatar's on every other forums I have ever been a part of. You think I'd be against animated avatars, possibly having one of the worst computers on the forums, but it's imbecilic to never even consider it an option and just put it aside when it's being supported by such a large party.
Reply With Quote
  #9  
Old 08-30-2009, 03:09 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Here is a greasemonkey script that implements like half the pavatar spec by following people's profile homepage links and checking for pavatar links and replacing the graal forum avatar with the pavatar found there.

Future improvements include limiting the size and dimensions as described in the pavatar spec or possibly being gimmicky and supporting svg, feel free to get on that.

Edit: Now limiting maximum dimensions, customisable at the end of the script.

NPC Code:
// ==UserScript==
// @name gforum-pavatars
// @namespace http://ilfirin.org/
// @description Follow homepage links and check for pavatars for every post
// @include http://forums.graalonline.com/forums/showthread.php?*
// @include http://forums.graal2001.com/forums/showthread.php?*
// @include http://forums.graalgraalonline.com/forums/showpost.php?*
// @include http://forums.graal2001.com/forums/showpost.php?*
// ==/UserScript==

function getUserId(postId) {
var reps = document.evaluate(
'//span[starts-with(@id, "repdisplay_' + postId + '_")]',
document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null)
for (var i = 0; i < reps.snapshotLength; ++i) {
var id = reps.snapshotItem(i).getAttribute('id')
var index = id.lastIndexOf('_')
if (index == -1) continue
return id.substr(index+1)
}
}

function getLink(td) {
var link = td.firstChild
if (!link || link.tagName != 'A') return
var textNode = link.firstChild
if (!textNode) return
var text = textNode.nodeValue
if (!text
|| text.substr(0, 6) != "Visit "
|| text.substr(text.length - 12) != "'s homepage!") return

return link.getAttribute('href')
}

function sanify(link) {
// what happened to find_first_of?
if (link.indexOf('?') != -1) return
if (link.indexOf('@') != -1) return
if (link.indexOf('forums.graal') != -1) return
if (link.substr(0, 7) != 'http://') return
return link
}

function getPavatar(resp) {
var r = /X-Pavatar:\s+([^\r\n]+)/i.exec(resp.responseHeaders)
if (r) return r[1]
var doc = new DOMParser().parseFromString(resp.responseText, 'text/xml')
//// xpath does not appear to work here?
//var links = doc.evaluate(
// '/html/head/link[@rel="pavatar"]',
// doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null)
//for (var i = 0; i < links.snapshotLength; ++i) {
// var link = links.snapshotItem(i)
var links = doc.getElementsByTagName('link')
for (var i = 0; i < links.length; ++i) {
var link = links[i]
if (link.getAttribute('rel') != 'pavatar') continue
var href = link.getAttribute('href')
if (href) return href
}
}

function addClass(elem, className) {
// elem.classList.add("customAvatar") -- only FF 3.6 and up
var oldClassList = elem.getAttribute('class')
if (!oldClassList)
elem.setAttribute('class', className)
else
elem.setAttribute('class', oldClassList + ' ' + className)
}

function setPavatar(userId, pavatar) {
var avs = document.evaluate(
'//img[starts-with(@src, "image.php?u=' + userId + '&")]',
document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null)
for (var i = 0; i < avs.snapshotLength; ++i) {
var av = avs.snapshotItem(i)
av.setAttribute('src', pavatar)
av.removeAttribute('width')
av.removeAttribute('height')
addClass(av, 'customAvatar')
}
}

function combine(base, href) {
if (href.substr(0, 1) == '/') {
var i = base.indexOf('/', 8)
if (i == -1)
return base + href
else
return base.substr(0, i) + href
} else if (href.substr(0, 7) == 'http://') {
return href
} else {
return base + '/' + href
}
}

function onLoadCallback(link, userId) {
return function(resp) {
if (resp.status != 200) return
var pavatar = getPavatar(resp)
if (pavatar)
setPavatar(userId, combine(link, pavatar))
}
}

function checkAvatar(link, userId) {
link = sanify(link)
if (!link) return
GM_xmlhttpRequest({
'method': 'GET',
'url': link,
'headers': {'Accept': 'text/html,application/xhtml+xml'},
'onload': onLoadCallback(link, userId)
})
}

var handledUsers = {}

var tds = document.evaluate(
'//td[@class="vbmenu_option"]',
document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null)

for (var i = 0; i < tds.snapshotLength; ++i) {
var td = tds.snapshotItem(i)
var link = getLink(td)
if (!link) continue
var node
for (node = td.parentNode;
node && node.tagName != 'TABLE';
node = node.parentNode)
;
var postIdLabel = node.parentNode.getAttribute('id')
var postId = postIdLabel.substring(9, postIdLabel.length - 5)
var userId = getUserId(postId)
if (!userId || handledUsers[userId]) continue
handledUsers[userId] = true
checkAvatar(link, userId)
}

var style = document.createElement('style')
style.setAttribute('type', 'text/css')
style.appendChild(document.createTextNode(' \
.customAvatar { \
max-width: 192px ! important; \
max-height: 272px ! important; \
} \
'))
document.getElementsByTagName('head')[0].appendChild(style)




If there is a link somewhere in there, Skyld approved of it.

Last edited by Loriel; 08-31-2009 at 12:37 AM..
Reply With Quote
  #10  
Old 08-30-2009, 03:18 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Here is a screenshot of it in action.

Click image for larger version

Name:	hooray.png
Views:	253
Size:	67.3 KB
ID:	49263
Reply With Quote
  #11  
Old 09-01-2009, 08:11 PM
BigBear3 BigBear3 is offline
Zormite
BigBear3's Avatar
Join Date: Jan 2007
Location: Lynn, MA
Posts: 2,551
BigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond repute
Quote:
Originally Posted by Loriel View Post
Here is a screenshot of it in action.

Attachment 49263
Next.. the world.
Reply With Quote
  #12  
Old 09-03-2009, 04:47 PM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
how to apply that script?
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote
  #13  
Old 09-03-2009, 04:51 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Liberated View Post
how to apply that script?
You need the Greasemonkey plugin for Firefox.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.