https://www.icyphoenix.com/viewtopic.php?f=2&t=9623&p=60729#p60729
-----------------------------------
MWE_001
Tue 16 Aug, 2016 02:48

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!


