TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 207
  • Total: 207

Roster Page

Started by londonhogfan, May 31, 2006, 06:56:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

iGate

#270
thx the above code worked.

How do i constrain the images sizes?

i tried changing the value $av_width but i still end up with one avatar (mine lol) which is 100px instead of the maximum 65. If it helps i am admin on the forum i am using this script so perhaps its voiding that function for admin users. i cannot test this theory because my co admin does not use an avatar. But it still seems an unreasonable idea.

http://ihf.lp.pl/index.php?page=27

thx so far

jacortina



Try changing this line:
$avatar_image = ($row2['avatar'] == '' ? ($row2['ID_ATTACH'] > 0 ? '<img  src="' . (empty($row2['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row2['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row2['filename']) . '" alt="" style="width:'.$av_width.';" border="0" />' : '') : (stristr($row2['avatar'], 'http://') ? '<img src="' . $row2['avatar'] . '" alt="" style="width:'.$av_width.';" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row2['avatar']) . '" alt="" style="width:'.$av_width.';" border="0" />'));

To:
$avatar_image = ($row2['avatar'] == '' ? ($row2['ID_ATTACH'] > 0 ? '<img  src="' . (empty($row2['attachmentType']) ? $scripturl . '?action=dlattach;attach=' . $row2['ID_ATTACH'] . ';type=avatar' : $modSettings['custom_avatar_url'] . '/' . $row2['filename']) . '" alt="" style="width:'.$av_width.'px;" border="0" />' : '') : (stristr($row2['avatar'], 'http://') ? '<img src="' . $row2['avatar'] . '" alt="" style="width:'.$av_width.'px;" border="0" />' : '<img src="' . $modSettings['avatar_url'] . '/' . htmlspecialchars($row2['avatar']) . '" alt="" style="width:'.$av_width.'px;" border="0" />'));

The units ("px") were left out. Firefox assumed that and displayed uniformly sized, smaller pics. IE didn't and it may be because no unit was supplied.

iGate


killerchicken

hi guys i like this mod alot however the link on the first page for the final build does not work anymore any ideas on that?
if someone could post the latest/ Full build here?

Sorry if im being cheeky

Hairy


There's about a 10 different versions in here now, you'll need to read through the whole thread to find the one you want (we all had to do that also)  :coolsmiley:

^-^

whiskey

Quote from: londonhogfan on May 31, 2006, 06:56:37 PM
===========================================================================
UPDATE:  08/24/06
===========================================================================
This has progressed quite a bit over the last 3 months.

The way this works is by creating member groups for each rank on your roster.  Then setting your members primary member group to their rank.

Click here for the post with the final code put together by JPDeni
http://www.tinyportal.net/smf/index.php?topic=5423.msg63479#msg63479
You will need to edit the ranks and remove things such as team names etc to make it work for you.  Have fun.

I know that this is a very old topic but this link is dead, any help on that ?

thanks



anX

Is there a way to make a black for this, as in shows the players, avatar  but resized to 40x60px and have the image link to their profile.

BD.shumar

I need little help, if someone can help me. :)
I have some values in DB, for some members, that I need to show on roster page.
Members are selected with secondary groups.
I know where in DB is value that I need to display on roster page, but I don't know how to make PHP to show that value.

Table: smf_themes
variable: CP4
value: ****

I need to show value on page.

Thank you.

This website is proudly hosted on Crocweb Cloud Website Hosting.