Activity Mod Fixes »  Show posts from    to     

Icy Phoenix


General Support - Activity Mod Fixes



MWE_001 [ Wed 10 Aug, 2016 10:39 ]
Post subject: Activity Mod Fixes
First, trophy king feature is in place but don't work? No biggie, one less sql query the way I see it

Next, on submitting a score, it went to an all white page with some html parsed on it. No css at all what so ever.

screenshot_2

And here it is with the following fix in place

screenshot_3

Here is the fix:

OPEN plugins/activity/templates/default/saved_body.tpl
FIND
Code: [Hide] [Select]
<div class="text_cont_center" style="width:400px;">

ADD BEFORE
Code: [Hide] [Select]
<!-- INCLUDE overall_header.tpl -->

FIND
Code: [Hide] [Select]
<br clear="all" />

AFTER ADD
Code: [Hide] [Select]
<!-- INCLUDE overall_footer.tpl -->


CLOSE AND SAVE FILE

Now your no css problem is fixed after you clear the cache.


The next issue is if you do not have enough credits to play a game , (ONLY if you have Cash Mod installed and enabled in Activity Mod), it takes you to a page that nicely explains you do not have enough credits or what ever to play the game. It has a Javascript Close Page link that does not work.

Here is the fix for English and Italian versions.


OPEN plugins/activity/language/lang_english/lang_activity.php
FIND LINE 121
Code: [Hide] [Select]
<a href=\"javascript:parent.window.close();\">[Close Window]</a>

REPLACE WITH
Code: [Hide] [Select]
<a href=\"activity.php\">[Return To Games]</a>

FIND LINE 122
Code: [Hide] [Select]
<a href=\"javascript:parent.window.close();\">[Close Window]</a>

REPLACE WITH
Code: [Hide] [Select]
<a href=\"activity.php\">[Return To Games]</a>


CLOSE AND SAVE FILE


OPEN plugins/activity/language/lang_italian/lang_activity.php
FIND LINE 122
Code: [Hide] [Select]
<a href=\"javascript:parent.window.close();\">[Chiudi Finestra]</a>

REPLACE WITH
Code: [Hide] [Select]
<a href=\"activity.php\">[Return To Giochi]</a>

FIND LINE 123
Code: [Hide] [Select]
<a href=\"javascript:parent.window.close();\">[Chiudi Finestra]</a>

REPLACE WITH
Code: [Hide] [Select]
<a href=\"activity.php\">[Return To Giochi]</a>


CLOSE AND SAVE FILE


And that will fix your pages from not closing and returning you to the games page.


PLEASE NOTE: My fixes are not official. That is up to MG to decide what is right. This is just what worked for me

Take care and have a great night all. Off to bed I go. I'm tired.


Mighty Gorgon [ Wed 10 Aug, 2016 11:10 ]
Post subject: Re: Activity Mod Fixes
Thank you for reporting problem and fix, very well done.

I'll check your fix and report.


MWE_001 [ Tue 16 Aug, 2016 02:48 ]
Post subject: Re: Activity Mod Fixes
I found another bug and got it fixed.

This bug was when viewing the games on activity.php it has a few links that you can interact with. Examples:


• No Comments
• Challenge
• Highscores
• Info
• Played: 1
• Cost: 5
• Jackpot: 100
• Edit

When clicking the edit link, it went to a 404 error page. It was not linking back to the plugin properly thus not allowing a admin to edit the games from activity.php. Instead, the admin would have to go all the way in to the ACP to do a simple edit to a game.

Here is the fix I came up with.

Open activity.php

Find

(\'' . ADM . '/admin_activity.' . PHP_EXT .

Replace with

(\'' . ACTIVITY_ROOT_PATH . ADM . '/admin_activity.' . PHP_EXT .

CLOSE AND SAVE FILE

Open plugins/activity/activity_daily.php

Find

(\'' . ADM . '/admin_activity.' . PHP_EXT .

Replace with

(\'' . ACTIVITY_ROOT_PATH . ADM . '/admin_activity.' . PHP_EXT .

CLOSE AND SAVE FILE

Open plugins/activity/activity_newest.php

Find

(\'' . ADM . '/admin_activity.' . PHP_EXT .

Replace with

(\'' . ACTIVITY_ROOT_PATH . ADM . '/admin_activity.' . PHP_EXT .

CLOSE AND SAVE FILE
-----------------------------------------------------------------------------------------------------------------

As always folks, these edits are what worked for me. The final say for fixes is up to MG. Use at your own discretion or wait until MG gives the go ahead.

Enjoy!


Mighty Gorgon [ Sat 20 Aug, 2016 22:38 ]
Post subject: Re: Activity Mod Fixes
I have implemented all your suggestions.

Just a note:
ACTIVITY_ROOT_PATH . ADM => ACTIVITY_ADM_PATH

ACTIVITY_ADM_PATH contains also the trailing slash at the end...


MWE_001 [ Sun 21 Aug, 2016 04:58 ]
Post subject: Re: FIXED Activity Mod Fixes
Ahh thank you for the correction. That is why I thought it wise to add the disclaimer to take it for what it was worth until the ol mighty MG approved! Thanks my friend. I will gladly update my notes.

And not sure if anyone is interested or not, but I have LOADS of games for activity mod.


**EDIT**

Hey Informpro, I do have a load of games as I was saying. I will take a look at my hosting package and see if I have enough room left on my disc space to upload them. If not I may be able to use drop box. As a matter of fact, let me see if I can use drop box. I really have limited bandwith on my hosting package.

I'll get back to you here shortly with a link to the games.

Here you go. Activity Mod Games

Now in this folder you will notice some games that have 2 folders. For example, one might be tetris and then another one called tetris_data. The ones with the _data originally went in a folder called game_root. If you didn't place these folders accordingly, the games would not work. I am not sure how it is going to work in IP as I have not yet tried. If they don't, I guess we don't use them Wait, I just looked, we put the games in game_root now anyhow so lets hope for the best.

Enjoy!


mort [ Mon 22 Aug, 2016 01:36 ]
Post subject: Re: FIXED Activity Mod Fixes
MWE_001 wrote: [View Post]
And not sure if anyone is interested or not, but I have LOADS of games for activity mod.


Pretty sure that these game packages are still relevant too..

http://www.origon.dk/phpBB3/index.php



MWE_001 [ Mon 22 Aug, 2016 04:36 ]
Post subject: Re: FIXED Activity Mod Fixes
Ohhh will those games work on Activity mod Plus? If so, JACKPOT! Thanks for that Mort!

The ones I linked to were the oldies that Austin released on the old phpbb-amod site many years ago.


Mighty Gorgon [ Sun 28 Aug, 2016 11:03 ]
Post subject: Re: FIXED Activity Mod Fixes
Wow!

Did you download all of them @origon as well?


MWE_001 [ Sun 28 Aug, 2016 22:32 ]
Post subject: Re: FIXED Activity Mod Fixes
No. I registered at origon and it said admin had to approve me. I never got approved. The ones I linked to are all the ones that were available back int he day at phpbb-Amod.com before Austin Inc. closed shop.


**EDIT**

Sorry to report this guys but if you have not got the game packs off of my server yet in the download link I provided, You may want to soon. I have to delete that file. I have run out of disc space on my server and got a warning from my host.

I could possibly add it to my drop box but I'm not sure how long the link will be good for? I am new to drop box and not sure how it works yet.

I'll be removing the arcade games by tomorrow at 8pm UTC. If anyone has a clue about drop box please let me know and I will re up. I think the public has a right to download these games for the activity mod if they choose. There is some great games in it that provide endless fun for our awesome activity mod.

Any other solutions maybe?

**EDIT**

The link in my other post has been updated with my dropbox link for the games pack. I will add it to my github as well... if I can.


Informpro [ Thu 08 Sep, 2016 23:18 ]
Post subject: Re: FIXED Activity Mod Fixes
Fine with me, I downloaded it "day one" :P.




Powered by Icy Phoenix