Forumlar / Cotonti / General / Moar questions ;)

<<<123

lukgoh
#31 2012-01-18 16:50

Maybe one of the Cot developers can awnser this question, might help with my extension developments...

Dyllon
#32 2012-01-18 18:02
What exactly is your question again? Maybe I can be of assistance :P
We are what we repeatedly do. Excellence then, is not an act, but a habit.
pieter
#33 2012-01-18 18:13
#32773 lukgoh:

I think it was looking in the core files, I saw how Cot builds its tags. 

$t->assign(cot_generate_usertags($urr, 'USERS_DETAILS_', '', true));

Without looking at it again I thought $urr carried stuff over to other parts. Anyways if in the database a users avatar is stored as a link to the image, so "datas/avatars/imagename.jpg" then the tag should only put out "datas/avatars/imagename.jpg" so I don't understand where it is getting the "<img src="" /> part from, to be able to just use the tag in your tpl file to display the image? It's a little confusing... 

... can we help you ...
Dyllon
#34 2012-01-18 23:24

The html output from the avatar tag comes from the plugin's resource file. If you open plugins/userimages/inc/userimages.resources.php on line 9 you find this:

$R['userimg_img'] = '<img src="{$src}" alt="{$alt}" class="userimg {$class}" />';

That is where it comes from. In your case of modifying the size of the avatar you would use this css

#useravatar img.avatar {
	width:45px;
	height:45px;
}
We are what we repeatedly do. Excellence then, is not an act, but a habit.
lukgoh
#35 2012-01-18 23:37

Ah resources, interesting. Thank you Dyllon.

Added 35 minutes later:

Just incase anyone else is interested in this http://www.cotonti.com/page/resource_strings


Bu konu lukgoh tarafından düzenlendi(2012-01-19 00:12, 12 yıllar önce)
Kingsley
#36 2012-01-19 21:03

More questions.. about extrafields (pages)..

if you change the type of field, base html should change accordingly, right? mine doesn't. They  save no content either. ;( but only with the pages, user xtrafields seem to function correctly.

And in my forums with some sections the line Discussions: 0 Messages: 0 isnt displayed. No idea howcome :(

 And last but not least; how does the group.tpl work under siena?

lukgoh
#37 2012-01-19 22:57
#32798 Kingsley: 

if you change the type of field, base html should change accordingly, right? mine doesn't. They  save no content either. ;( but only with the pages, user xtrafields seem to function correctly.

I was wondering about this also...

<<<123