Page 1 of 1

Top Poster Block

PostPosted: Mon Apr 17, 2006 7:10 pm
Author: Bush
I currently have this block I found running around between IM support sites, what it does is displays the top 5 posters on the forums in a block, along with their avatar.

I was wondering if someone could be so kind to modify this.

blocks/blocks_imp_top_posters.php
Code: Select all
 <?php/***************************************************************************  *                         blocks_imp_top_posters.php  *                            -------------------  *   begin                : Sunday, May 02, 2004  *   copyright            : (C) 2004 masterdavid - Ronald John David  *   website              : [url=http://www.integramod.com]http://www.integramod.com[/url]  *   email                : [url=http://www.integramod.com]http://www.integramod.com[/url]  *   email                : [url=http://www.integramod.com]http://www.integramod.com[/url]  *   email                : <a>webmaster@integramod.com</a>  *  ***************************************************************************/  $lang['Title_top_posters'] = 'Top Posters';$lang['Posts'] = 'Posts';?>


templates/YOUR_THEME/blocks/top_posters_block.tpl
Code: Select all
<table><tr><td><hr></td></tr><BEGIN>         <tr>             <td><span><a>{topposter.AVATAR_IMG}</a></span></td>         <td><span><b><a>{topposter.USERNAME}</a></b> <br>(<b>{topposter.POSTS}</b> <a>{L_POSTS}</a>)</span></td>         </tr><tr><td><hr></td></tr><END></table>


I would like to see if someone would be able to modify this to display points as well!

If someone could do this that would be GREAT!

I wish I could code!

Re: Top Poster Block

PostPosted: Mon Apr 17, 2006 7:15 pm
Author: GanBei
[url=http]DEMO[/url]

Is this what you are looking for?

Re: Top Poster Block

PostPosted: Mon Apr 17, 2006 7:17 pm
Author: GanBei
ooops, sorry, i didn't add the blocks and activate them yet on the DEMO site.. I'll do that soon..

Re: Top Poster Block

PostPosted: Mon Apr 17, 2006 7:22 pm
Author: Bush
GanBei on that site I did see a block for site statistics (bottom left), is there a way i could get this?

Re: Top Poster Block

PostPosted: Mon Apr 17, 2006 7:28 pm
Author: GanBei
This particular block isn't much useful unless you implement it when you first set your site live cuz it collects many stats (from yearly to monthly to weekly to daily to hourly, adn to the seconds)..

This block is most useful for a fresh install of integramod..

Re: Top Poster Block

PostPosted: Mon Apr 17, 2006 7:51 pm
Author: tmotley
I modified a Top Cash block to look just like the Top Poster block.

View it in left column of my site (Bones Leaders): http://motleyville.com

If it's something of interest I'll make it available...

*EDIT* - I know a separate block is not what you wanted but I thought a modified points block might help one of the smart people here do the modifying.

Re: Top Poster Block

PostPosted: Mon Apr 17, 2006 8:23 pm
Author: Bush
tmotley could you PM me with a download link for your top points block (all files and where they go)

Thanks.

Or Post code here like i did.

Thanks.

PostPosted: Tue Apr 18, 2006 7:19 am
Author: tmotley
pm sent to you Bush...

PostPosted: Tue Apr 18, 2006 9:24 am
Author: tekguru
any chance of a PM here as well ? <img>

Re: Top Poster Block

PostPosted: Tue Apr 18, 2006 9:46 am
Author: tmotley
I'll just post a link to my download area I guess. Use at own risk but it works on my site. <img>

I changed the install.txt file to manual instructions. I hope that isn't a problem. I'm still unsure how to give credit where credit is due. I just modified someone else's work...

http://motleyville.com/home/dload.php?a ... &cat_id=14

I've uploaded the original install.txt file separately. It's available in my download area linked above.

PostPosted: Tue Apr 18, 2006 6:56 pm
Author: tmotley
Bush as successfully merged the two into one block. (I read my pm.) Just a few tweaks and it should be good to go...

PostPosted: Wed Apr 19, 2006 6:29 am
Author: Bush
Thanks a lot for your help tmotley. <img>

PostPosted: Wed Apr 19, 2006 9:30 am
Author: tekguru
and cheers for the download - appreciated!

PostPosted: Wed Apr 19, 2006 9:38 am
Author: Eon
Will there be a final viewing of a working block, plus the code here?

Re: Top Poster Block

PostPosted: Thu Apr 27, 2006 1:58 pm
Author: stugas
Yes... please take downloads and install instructions to this thread. I think this will be a helpful thing.
And I think that a simple update on this code will give the pretended effect, is just take off the user_points and use something like "user_posts", I don't know whitch is <img>

PostPosted: Thu Mar 15, 2007 11:08 pm
Author: krillmeed
Anything new on this?

PostPosted: Fri Mar 16, 2007 5:31 pm
Author: tmotley
I don't know what happened with Bush combining the two but I did it. I'm not saying I did it in a quality fashion but...

I merged the top posters and top cash blocks into one block.

Here's a link to my 'merging' on my old 1.4.0 board. I don't think there'll be issues on 1.4.1 but...

http://motleyville.com/home/portal.php

It only involves:

1. Editing one language file with what you want to call your points and posts.
2. Editing the tpl file with what you want the subheadings to be (mine are just 'High' with the points and posts names from the language file appended)
3. Uploading 1 cfg and 1 php file to your blocks/ folder
4. Uploading 1 language file to blocks/lang/lang_******/ folder
5. Uploading 1 tpl file to each template/blocks/ folder.
6. Once uploaded you just add the block via IM Portal... Blocks Management.
7. You also can set the top posts and top points in block independently. Mine is set on 3 each... the default is 5 each. This is done in Portal Configuration
8. You can also set the size of the miniature avatars. This is also done in Portal Configuration.

If there's any interest in it, I'll make it available.

Re: Top Poster Block

PostPosted: Fri Mar 16, 2007 9:13 pm
Author: Frost
Sure I'd love to play with it <img>

PostPosted: Fri Mar 16, 2007 9:35 pm
Author: tmotley
I think I'll tweak things a bit to try to make it as clean a setup as possible. I don't how to create code but I can piece it together trial-and-error style until it either works or I totally break things...

I'll hopefully have something worked up sometime this weekend.

PostPosted: Sat Mar 17, 2007 1:28 am
Author: krillmeed
I also would be very interested, thank you for help in advance <img>

PostPosted: Sat Mar 17, 2007 1:45 pm
Author: tmotley