https://www.icyphoenix.com/viewtopic.php?f=2&t=9639&p=60846#p60846
-----------------------------------
MWE_001
Sun 28 Aug, 2016 22:23

Re: Another Minor Activity Mod SQL Error Just Found
-----------------------------------
[quote user="Mighty Gorgon" post="60841"]Correct fix should be:
[codeblock]include_once(ACTIVITY_ROOT_PATH . 'includes/rewards_api.' . PHP_EXT);[/codeblock][/quote]

Thanks!

*EDIT*

This fix also needs done to line 67 of activity_favs.php as it leads to a php error as is.

If you click add game to favorites after this fix, it will go to a all white page instead of the php error. Nothing but all white page.

I fixed Activity issue #17 at Git [Activity] activity.php>"Games" section says "vote cast" #17

Fix is easy.

OPEN [b]activity.php[/b]
FIND
[codeblock]$rating_votes_cast = str_replace('%V%', $total_votes_given, $lang['game_rating_votes_one']);[/codeblock]
REPLACE WITH
[codeblock]$rating_votes_cast = str_replace('%V%', $lang['no_votes_cast'], $lang['game_rating_votes']);[/codeblock]

That will solve cast vote issue. Now it will say No votes cast.

Also, when clicking the copyright, I get a message that says hacking attempt which is open as a issue at Git as well.

I did this

OPEN [b]functions_amod_plusC.php[/b]
FIND
[codeblock]if (!defined('IN_ICYPHOENIX'))
{
	die('Hacking Attempt');
}[/codeblock]
REPLACE WITH
[codeblock](nothing, needs removed)[/codeblock]

[size=14][color=red]PLEASE anyone do not remove this code without speaking to Luca first! I am NOT sure how secure or unsecure that is. It makes the page work, but at what cost? As usual as I say, Luca has the final say, NOT me. Take care! [/color] [/size]


If you delete that code that hacking attempt will go away and the copyright page will work. BUT since Amod + site is long gone, all the images are missing which is ok I guess. It is better than getting a hacking attempt message.  :mrorange:

I got the arrow images fixed in the copyright page as well as link to the games download and I put up a quick sorry we are offline page for demo board. Personally, I think it would be better off to remove the demo board link all together. I think for my copy of activity, I will be removing the link to the demo board as phpbb-amod is gone forever and never is coming back. This would be much simpler than including a html or php page saying sorry or what ever. 

 [img]http://www.icyphoenix.com/files/images/11665/screenshot_14.jpg[/img] 

Here is one more and I swear I am done for the night as far as activity plugin goes. I would like to be able to add issues to Git and suggest fixes but not sure if I can or how git works?

But anyhow, 

If I go to ACP Activity/Games Edit games on the next page that opens, click Edit. Then you get this:

 [img]http://www.icyphoenix.com/files/images/11665/screenshot_12.jpg[/img] 

Notice missing images? To fix do the following.

OPEN [b]admin_activity.php[/b]
FIND LINE 384 
[codeblock]$game_image = '<img src="'. IP_ROOT_PATH .[/codeblock]
REPLACE WITH
[codeblock]$game_image = '<img src="'. ACTIVITY_ROOT_PATH .[/codeblock]

Save and close. Give s you this now

 [img]http://www.icyphoenix.com/files/images/11665/screenshot_13.jpg[/img] 

Enjoy!


