Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
Avatars display question
Avatar
nirok
Member
Free Members
sp_UserOfflineSmall Offline
Dec 7, 2011 - 5:19 pm

Thought I'd show a quick screen shot of the tim thumb script i've added:

 

Image Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 7, 2011 - 7:25 pm

so you modified an existing function in core?  you should hook into the api we make available...  assume you are referring to sp_UserAvatar();??

you can filter the image size if you want, but that will just change the size and not actually resize the image which I think you are doing...

and you can always filter the $avatarData array which contains the image...

but not sure I can add more currently without knowing what you actually did...

Avatar
nirok
Member
Free Members
sp_UserOfflineSmall Offline
Dec 7, 2011 - 7:51 pm

Yes you are right I did edit the core, mainly to see how it would work... I know this isn't the correct way of doing this since there is upgrade issues etc etc. I'm just working on a function now in the custom function area of my template to see if I can get it working that way. Essentially all I want to do is call avatars that are displayed through this function so I can adjust them on my template size wise, since they are all the same size at the moment. I'll look at the avatardata array

 

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 7, 2011 - 8:03 pm

feel free to ask questions as you proceed... glad to help since we dont have our full api docs ready for 5.0 yet...

Avatar
nirok
Member
Free Members
sp_UserOfflineSmall Offline
Dec 7, 2011 - 8:42 pm

I pasted the code that i edited in the core file and pasted it in my new custom function, just changed the function name... 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 7, 2011 - 9:35 pm

as long as you call that, should be fine...

Avatar
nirok
Member
Free Members
sp_UserOfflineSmall Offline
Dec 8, 2011 - 7:29 pm

Yes this has worked a charm, also i've done similar to the breadcrumbs, just wanted to remove the line breaks and add a couple of things.... are you guys going to add a widget to the forum like in the previous verson?

 

Thanks

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 8, 2011 - 9:12 pm

widget is already there...  its in the template tags plugin...  heavily reconfigured with more options...

Avatar
nirok
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2011 - 5:13 pm

I missed that plugin, that's handy. I actually already created a sidebar within the forum where I have placed the users logged in avatar, login buttons and all the buttons normally found on top of the forum. What template function would I use to call the latest discussion with avatars displayed? I have added sp_RecentPostsTag() but I don't think that is the right one... it displays the latest topics just not the avatars. 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2011 - 6:32 pm

yes, sp_RecentPostsTag() is the right one... you have to pass the argument to include avatars...  until we have our online docs in place, just look at the file in the template tags library folder... the available args are listed there... see the itemOrder...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626