[solved] Activity Mod for 141

Mods etc.

Moderator: Integra Moderator

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Mon Dec 18, 2006 1:32 pm

Well great Cleo! I'm glad to have helped. And Good news, I have a Trophy King Block for you as well. the code was written by someone else and didn't work. I have tweaked it a tad and you can now see it in action at my test site [url=http]MWEVA.COM[/url] I have it set as a header up top.

First what I need you to do is get into your root files and go to the blocks folder and remove anything trophy king related. It may be something along the lines of blocks_imp_trophyking.php

Next go to your templates folders and remove anything similar to trophyking_block.tpl

That should get rid of your current broken Trophy King/Queen Box

Now to add your new block.

Creat file trophyking_block.tpl
Place this code
Code: Select all
   <table> <tr> <td> <span> <img><br><br> <BEGIN> {trophyking.BEST} <END> </span> </td> </tr> </table>  


Save

Create file blocks_imp_trophyking.php
Place code
Code: Select all
<php> * Description : Display current Trophy King * version : 1.0.0 (Oct 24, 2005) * ************************************************************/ /************************************************************ * For Security Purposes, Please Check: * [url=http://IntegraMOD-tw.net]http://IntegraMOD-tw.net[/url] or [url=http://IntegraMOD.com]http://IntegraMOD.com[/url] * for the latest version of this MOD. * Downloading this MOD from other sites could cause malicious * code to enter into your phpBB Forum. * ************************************************************/ /*********************************************************** * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; * either version 2 of the License, or (at your option) * any later version. * ************************************************************/  if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); }  if(!function_exists(imp_trophyking_block_func)) { function imp_trophyking_block_func() { global $template, $db, $theme, $phpEx, $userdata;  $q = "SELECT * FROM ". USERS_TABLE ." ORDER BY user_trophies DESC";  $best = $db -> sql_query($q); $trophyking = $db -> sql_fetchrow($best);  $username = $trophyking['username']; $user_id = $trophyking['user_id']; $trophies = $trophyking['user_trophies']; $link = ($trophyking['user_id'] == ANONYMOUS) ? ". ". $trophyking['username'] : "<b><a>". $username ."</a></b>";  $template -> assign_block_vars('trophyking', array( 'BEST' => $link . "<br><b>". number_format($trophies) . "</b> Trophies" ) );  } }    imp_trophyking_block_func();  ?>

Save

Upload files trophyking_block.tpl to your templates/blocks directory
Upload blocks_imp_trophyking.php to you root/blocks folder

Exit and log in to your ACP go Im Portal, and choose your page you wish to creat a new block in.

Name: Trophy King
Active: Yes
Type: BBcode
Cache: no
Block File: trophy King
View By: Your Choice

All the following options are your choice. I hope this helps you and others. I have had this block for a while and was not in a hurry to get it to work. Thx for lighting a fire under my Duff. Let me know if you have any issues with this block and I'll do what I can to help. Have a great day/night Ray
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: ayasha » Mon Dec 18, 2006 2:38 pm

thanks MWE, that worked great <img>
Last edited by ayasha on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 5:10 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Mon Dec 18, 2006 2:48 pm

Cleo Im glad I got to help. I have been getting so much info from this community for so long , Im finally glad I could give back some.

I am also working on many other blocks for activity mod as well. Note though they are not my codes. All I did was make them work. For some reason I had to tweak a few lines but all seems good. If anyone is interested in these blocks let me know and Ill get to work on them Immediately and have them ready to go In a new thread since Ms. Cleo's probs have been solved here.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: shedt_v » Mon Dec 18, 2006 4:44 pm

I would love these blocks, would they work with arcade mod?

Could you post how you made them?
Last edited by shedt_v on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

shedt_v
Integra Member
Integra Member
 
Posts: 114
Likes: 0 post
Liked in: 0 post
Joined: Sat Dec 09, 2006 7:37 am
Cash on hand: 0.00

PostAuthor: ayasha » Mon Dec 18, 2006 6:15 pm

:lol:

what do these other block do MWE? maybe you can begin a new thread telling what they are and the purpose they serve <img>
Last edited by ayasha on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 5:10 pm
Cash on hand: 0.00

Re: [solved] Activity Mod for 141

PostAuthor: MWE_001 » Mon Dec 18, 2006 9:19 pm

Ok. Ill get a new thread going. I have a bunch more ready to go.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: MWE_001 » Mon Dec 18, 2006 11:39 pm

"shedt_v";p="18580" wrote:I would love these blocks, would they work with arcade mod?

Could you post how you made them?


I think they do work with Napoleans arcade mod. A couple of them need editing though to make them work. Ill have to check on that.

And I would love to show you how I made them but i didnt make them as I stated before. I found these a long time ago and just played with them til I got them to work. Thats why all the original authors and copyrights still exist in the code and my name is nowhere at all. It is not my work. Only my fixing.
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Previous

Return to IntegraMOD Modifications

Who is online

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