Top Poster Block

Mods etc.

Moderator: Integra Moderator

Top Poster Block

PostAuthor: Bush » Mon Apr 17, 2006 6:10 pm

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!
Last edited by Bush on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: GanBei » Mon Apr 17, 2006 6:15 pm

[url=http]DEMO[/url]

Is this what you are looking for?
Last edited by GanBei on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:48 am
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: GanBei » Mon Apr 17, 2006 6:17 pm

ooops, sorry, i didn't add the blocks and activate them yet on the DEMO site.. I'll do that soon..
Last edited by GanBei on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:48 am
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: Bush » Mon Apr 17, 2006 6:22 pm

GanBei on that site I did see a block for site statistics (bottom left), is there a way i could get this?
Last edited by Bush on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: GanBei » Mon Apr 17, 2006 6:28 pm

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..
Last edited by GanBei on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://integramod-tw.net/images/links/integramod-tw.gif[/img] "UN-OFFICIAL" Traditional Chinese Support for IntegraMOD Project![/url]

GanBei
Members
Members
 
Posts: 38
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:48 am
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: tmotley » Mon Apr 17, 2006 6:51 pm

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.
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: Top Poster Block

PostAuthor: Bush » Mon Apr 17, 2006 7:23 pm

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.
Last edited by Bush on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

PostAuthor: tmotley » Tue Apr 18, 2006 6:19 am

pm sent to you Bush...
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: tekguru » Tue Apr 18, 2006 8:24 am

any chance of a PM here as well ? <img>
Last edited by tekguru on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:29 pm
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: tmotley » Tue Apr 18, 2006 8:46 am

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.
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: tmotley » Tue Apr 18, 2006 5:56 pm

Bush as successfully merged the two into one block. (I read my pm.) Just a few tweaks and it should be good to go...
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Bush » Wed Apr 19, 2006 5:29 am

Thanks a lot for your help tmotley. <img>
Last edited by Bush on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

PostAuthor: tekguru » Wed Apr 19, 2006 8:30 am

and cheers for the download - appreciated!
Last edited by tekguru on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]http][/size]
[url=http][img=left]http://www.4winmobile.com/news/MVP_Horizontal_FullColor.png[/img][/url]
User avatar
tekguru
Sr Integra Member
Sr Integra Member
 
Posts: 329
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:29 pm
Cash on hand: 0.00

PostAuthor: Eon » Wed Apr 19, 2006 8:38 am

Will there be a final viewing of a working block, plus the code here?
Last edited by Eon on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 9:15 am
Cash on hand: 0.00

Re: Top Poster Block

PostAuthor: stugas » Thu Apr 27, 2006 12:58 pm

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>
Last edited by stugas on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

stugas
Newbie
Newbie
 
Posts: 1
Likes: 0 post
Liked in: 0 post
Joined: Tue Apr 25, 2006 2:56 pm
Cash on hand: 0.00

Next

Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Helter, Majestic-12 [Bot]