Joined: Jan 17, 2009 Posts: 268 Location: Missouri
Posted:
Thu Jan 29, 2009 2:27 am
Didnt really want to open a new topic but than saw how many exist for the block so here goes.
I used the Top Users Points block and noted what was needed to apply this, sorry but Im making this simple so I dont drag on, this isnt a future request but it could easily be added.
Live preview(note my other changes):
Only registered users can see links on this board! Get registered or login to the forums!
EDIT: It changed the code here so you should probably read these instructions too.
Full instructions can be read:
Only registered users can see links on this board! Get registered or login to the forums!
Notice in the instructions all nbsp's were converted, so that needs to be considered. Very simple edits just add "points," before user_avatar, so the new code would look like this:
Hopefully you can figure out the "nbsp" and maybe someone here can come up with a better way of doing this, I know I didnt enclose the "Points:" in "<!--a href=""-->" but I didn't see it as needed. So an explanation on that for a non-link would also be great.
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Thu Feb 05, 2009 12:57 am
I just caught up with this - sorry! I think that's a nice mod. I don't use points but I know there are many who do. I don't know if you added this as an optional setting but that's how I would add it. Something like:
Joined: Jan 17, 2009 Posts: 268 Location: Missouri
Posted:
Thu Feb 05, 2009 6:41 am
Thanks, I took what you said and went with it, took me a couple hours but hows this..
I started by adding exactly what you gave me, in between Ranks and Num so it looks like this:
Code:
$showTopPostersRanks = 4; // 0=None, 1=Admin only, 2=Moderator only, 3=Admin and Moderator, 4=All
$showTopPostersPoints = TRUE; // true=yes - false=no
$showTopPostersNum = 5; // Total number of top posters to show
Than you still need to add the "points" so it looks like this:
the only way I could get it to display correctly is to change the "</td>" to the "<br />"...problem here is where else can I add the td, I tried an if statement and it wont work here, I added this on the next line so it looks like:
Only registered users can see links on this board! Get registered or login to the forums!
After changing it to false it still works, but is it a problem that the td tag isnt closed in that line or is it closing anyways? Also, this is the original block if you want me to post it let me know, the way I had it before was totally different.. I couldnt figure out how to get the avatars and everything in one row without making signifigant changes.
Joined: Oct 05, 2007 Posts: 152 Location: United Kingdom
Posted:
Thu Feb 05, 2009 8:41 am
Great development of such a useful block created by raven! I know i personally use it and i also make great use of the points system, so its definatly a +++ for me to have. I think it will also add another level of interaction with both site and users themselves.
Joined: Jan 17, 2009 Posts: 268 Location: Missouri
Posted:
Thu Feb 26, 2009 8:32 pm
Looks like this got lost lol... Has anyone tested this out? I still havent figured out what to do about that td tag, but maybe it would be ok on the next line after $cycle? Which would be here:
if (!($cycle%$showTopPostersPerRow)) $content .= "</tr>";
$cycle++;
}
$content .= "</table></div><br />";
}
The br would stay where td was changed in the previous post, but the td would be moved to after the tr, which might be a problem. But maybe it could also be in that if statement before the tr.
Edit: I think we can call this finished I went ahead and tested it and it seems fine. Ill compress and post soon, on linux right now so not having the best time navigating through my ntfs clutter.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum