Printer Friendly Version Attach Files
Ed Johnson |
25 Apr 2010 11:58. Edited 0 times. (Edit, Permalink) It looks like the space in my user name is causing the avatar display to fail. I thought this was addressed and fixed a while ago by tsangk… ??? Included page "inc:signature" does not exist (create it now) |
tsangk |
25 Apr 2010 13:02. Edited 0 times. (Edit, Permalink) However, notifcations don't show up properly in this theme. Included page "inc:signature" does not exist (create it now) |
leiger |
26 Apr 2010 00:10. Edited 0 times. (Edit, Permalink) As for notifications… what do you mean? Can you elaborate on "don't show up properly"? Included page "inc:signature" does not exist (create it now) |
tsangk |
26 Apr 2010 03:30. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
leiger |
26 Apr 2010 03:42. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
(user deleted) |
27 Apr 2010 19:01. Edited 1 times. (Edit, Permalink) [[image http://wdpkg.ejohnson.info/getavatar.php?u=ed-johnson&size=48]] [[image http://wdpkg.ejohnson.info/getavatar2.php?id=38854&size=48]] Included page "inc:signature" does not exist (create it now) |
leiger |
27 Apr 2010 23:35. Edited 1 times. (Edit, Permalink) [[image http://wdpkg.ejohnson.info/getavatar.php?u=Ed Johnson&size=48]] It's a wikidot problem. Adding a space in the URL breaks it and therefore tsangk's script only gets "Ed" and searches for an avatar for that user. Included page "inc:signature" does not exist (create it now) |
(user deleted) |
28 Apr 2010 00:14. Edited 2 times. (Edit, Permalink)
In the meantime, I have an idea that maybe tsangk can take a look at: If we use %%created_by_linked%% in list pages the link gets constructed like this: <a href="http://www.wikidot.com/user:info/ed-johnson" _ onclick="WIKIDOT.page.listeners.userInfo(38854); _ return false;">Ed Johnson</a> tsangk, can you modify (or create a new version) of your php used in [[image http://wdpkg.ejohnson.info/getavatar.php?u=tsangk]] so that we could use %%created_by_linked%% and then parse the unix-name or user_id out of that string to make it work? Nevermind, I figured out why it won't work. :( Included page "inc:signature" does not exist (create it now) |
(user deleted) |
28 Apr 2010 00:14. Edited 1 times. (Edit, Permalink) [Edit: Long lines in code blocks throw the page formatting out of whack. I edited my post above as a work-around.] Included page "inc:signature" does not exist (create it now) |
(user deleted) |
28 Apr 2010 03:03. Edited 0 times. (Edit, Permalink) OK, I've been messing with this issue too long tonight. After much trial and error and dusting off my limited PHP skills, I still can't get anything to work (and I see now my idea above won't work at all due to the way Wikidot constructs the link). However, I did find something that does work for users with spaces in their name. You can use ListUsers to construct a link that works with the user_id method that tsangk wrote:
Is there a way to incorporate that into this forum? I assume you're using ListPages to list the threads and from what I can tell, you can't nest ListUsers inside ListPages. But, if you can work the ListUsers into the post:_template, there might be a way to do this (kind of like I did here). Included page "inc:signature" does not exist (create it now) |
leiger |
28 Apr 2010 03:43. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
(user deleted) |
28 Apr 2010 04:22. Edited 1 times. (Edit, Permalink) Maybe I'm missing something obvious (I actually didn't test it with the code in a live template). I won't be able to do any heavy testing until tomorrow night. I have the pleasure of pulling an all-nighter tonight to do a major programming overhaul on our point of sale system at work. Included page "inc:signature" does not exist (create it now) |
(user deleted) |
28 Apr 2010 04:30. Edited 0 times. (Edit, Permalink)
I just read your post more carefully. I placed the ListUsers module in my post above and it worked. Do you mean you can't put modules in a live template and then list that category? Sign me still confused until I get a chance to do more testing… Included page "inc:signature" does not exist (create it now) |
leiger |
28 Apr 2010 08:17. Edited 3 times. (Edit, Permalink) Testing…
Edit: Okay… that was completely unexpected. I don't think ListPages works though:
The ListPages module does not work recursively.
Edit2: Okay, it's probably showing an error message ("ListPages doesn't work recursively") but I've blocked error messages with CSS. Included page "inc:signature" does not exist (create it now) |
leiger |
30 Apr 2010 01:16. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
(user deleted) |
06 May 2010 00:24. Edited 0 times. (Edit, Permalink) Included page "inc:signature" does not exist (create it now) |
GoVegan |
06 May 2010 00:54. Edited 0 times. (Edit, Permalink)
Yes :-) @ Shane, if you don't want the avatar to link to anywhere, just remove the |link= code altogether ('cause at the moment it links to some place strange). Included page "inc:signature" does not exist (create it now) |
leiger |
06 May 2010 01:58. Edited 0 times. (Edit, Permalink)
I was thinking that would work, but as I was in a hurry I decided to leave it like this for now. Will update it then. Included page "inc:signature" does not exist (create it now) |