Activity Mod For Icy Phoenix


Goto page Previous  1, 2, 3, 4, 5, 6  Next

Subject: Re: Activity Mod For Icy Phoenix
yes Sir it's ok :mricy: 8)

Pepi

Subject: Re: Activity Mod For Icy Phoenix
it will be true to add ina tables to includes/functions_dbmtnc.php :wink:

Subject: Re: Activity Mod For Icy Phoenix
difus wrote: [View Post]
it will be true to add ina tables to includes/functions_dbmtnc.php :wink:

Since Activity is an addon, I won't add those tables in default package. :wink:

But we may add instructions on how to add those tables into that file. :wink:

Subject: Re: Activity Mod For Icy Phoenix
install.txt


install.zip
Description:  
Download
Filename: install.zip
Filesize: 663 Bytes
Downloaded: 243 Time(s)

Subject: Re: Activity Mod For Icy Phoenix
Thanks, I'll create a new package including also these instructions.

Subject: Re: Activity Mod For Icy Phoenix
andrea75 wrote: [View Post]
Two fix to let works fine the "Challenge Page" and the "Hall Of Fame" (an error message was shown):

OPEN amod/challenges.php
FIND
Code: [Download] [Hide] [Select]
$template->set_filenames(array('body' => ACTIVITY_MOD_PATH . 'challenges_body.tpl'));

BEFORE ADD
Code: [Download] [Hide] [Select]
include_once($phpbb_root_path . 'includes/functions_color_groups.' . $phpEx);


OPEN amod/activity_hof.php
FIND
Code: [Download] [Hide] [Select]
$page_title = $lang['hof_page_title'];

BEFORE ADD
Code: [Download] [Hide] [Select]
include_once($phpbb_root_path . 'includes/functions_color_groups.' . $phpEx);





Thanks for you fix, Andrea ;)


Note: The official package has not been fixed yet.



I found another bug in top scores and solved like you did ;)


Fatal error: Call to undefined function color_group_colorize_name() in .../amod/activity_top_scores_search.php on line 44




OPEN amod/activity_top_scores_search.php
FIND
Code: [Download] [Hide] [Select]
$search = $_GET['user'];
if ($search)
{
$template->set_filenames(array('body' => ACTIVITY_MOD_PATH . 'activity_top_scores_search_body.tpl'));

BEFORE ADD
Code: [Download] [Hide] [Select]
include_once($phpbb_root_path . 'includes/functions_color_groups.' . $phpEx);

Subject: Re: Activity Mod For Icy Phoenix
This package won't be updated, because I'll release a new version compatible with latest IP when the new version will be out.

Subject: Re: Activity Mod For Icy Phoenix
Mighty Gorgon wrote: [View Post]
This package won't be updated, because I'll release a new version compatible with latest IP when the new version will be out.





Oh... ok MG... I've worked on it all the day and found many little errors... too bad I don't have the knowledgements to fix that on my own :(

Subject: Re: Activity Mod For Icy Phoenix
Most of them are already solved.

Try Activity @ MG.com to test.

Subject: Re: Activity Mod For Icy Phoenix
Mighty Gorgon wrote: [View Post]
Most of them are already solved.

Try Activity @ MG.com to test.



I know... but I downloaded the package and I am testing it on my site... and still found some errors like those I've posted the fix for, above.


And now this, when you click on the best player trophies, there is a conflict with the color groups mod...


I know the error is here

Code: [Download] [Hide] [Select]
/* Info for the person with the most trophies */
$q = "SELECT *
FROM ". USERS_TABLE ."
ORDER BY user_trophies DESC
LIMIT 0, 1";
$r = $db->sql_query($q);
$row = $db->sql_fetchrow($r);
$usersname = color_group_colorize_name($row['user_id']);
$usersid = $row['user_id'];
$userstrophies = $row['user_trophies'];

if ($usersid != ANONYMOUS)
$top_player1 = str_replace('%n%', "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$usersid") ."' class='nav'>". $usersname ."</a>", $lang['info_box_top_trophy_holder1']);
else
$top_player1 = str_replace('%n%', $usersname, $lang['info_box_top_trophy_holder1']);
$top_player2 = str_replace('%t%', "<a href='". append_sid("activity.$phpEx?page=trophy_search&user=$usersname") ."' class='nav'>". $userstrophies ."</a>", $top_player1);
$top_player = $top_player2;




I know that the error is caused by the $usersname variable (the code generated contains html parsing that causes Ctracker to stop it) ... I saw you solved it on MG.com, can you just tell me how did you solved it?

Subject: Re: Activity Mod For Icy Phoenix
Try to check the package in the beta version.

Subject: Re: Activity Mod For Icy Phoenix
Vortex wrote: [View Post]


I know the error is here

Quote:
/* Info for the person with the most trophies */
$q = "SELECT *
FROM ". USERS_TABLE ."
ORDER BY user_trophies DESC
LIMIT 0, 1";
$r = $db->sql_query($q);
$row = $db->sql_fetchrow($r);
$usersname = color_group_colorize_name($row['user_id']);
$usersid = $row['user_id'];
$userstrophies = $row['user_trophies'];

if ($usersid != ANONYMOUS)
$top_player1 = str_replace('%n%', "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$usersid") ."' class='nav'>". $usersname ."</a>", $lang['info_box_top_trophy_holder1']);
else
$top_player1 = str_replace('%n%', $usersname, $lang['info_box_top_trophy_holder1']);
$top_player2 = str_replace('%t%', "<a href='". append_sid("activity.$phpEx?page=trophy_search&user=$usersname") ."' class='nav'>". $userstrophies ."</a>", $top_player1);
$top_player = $top_player2;[/code]



I know that the error is caused by the $usersname variable (the code generated contains html parsing that causes Ctracker to stop it) ... I saw you solved it on MG.com, can you just tell me how did you solved it?




Oh my God I feel so idiot... the error was the variable? Just create another one! wohow


Quote:
/* Info for the person with the most trophies */
$q = "SELECT *
FROM ". USERS_TABLE ."
ORDER BY user_trophies DESC
LIMIT 0, 1";
$r = $db->sql_query($q);
$row = $db->sql_fetchrow($r);
$usersname = color_group_colorize_name($row['user_id']);
$clean_name = $row['username'];
$usersid = $row['user_id'];
$userstrophies = $row['user_trophies'];

if ($usersid != ANONYMOUS)
$top_player1 = str_replace('%n%', "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$usersid") ."' class='nav'>". $usersname ."</a>", $lang['info_box_top_trophy_holder1']);
else
$top_player1 = str_replace('%n%', $usersname, $lang['info_box_top_trophy_holder1']);
$top_player2 = str_replace('%t%', "<a href='". append_sid("activity.$phpEx?page=trophy_search&user=$clean_name") ."' class='nav'>". $userstrophies ."</a>", $top_player1);
$top_player = $top_player2;



(I can't use the solution of the beta package because the color groups function is different and I think it wouldn't work on 1.1.0.15b )

Solved 0007

Subject: Re: Activity Mod For Icy Phoenix
Great!!! :mricy:

Subject: Re: Activity Mod For Icy Phoenix
I know that this mod is not supported, but i have a little problem.

Critical Error

Sorry, the games are currently offline until the admin upgrades/installs the current version. The current version is 1.1.0. Your version is Unknown.

I try to install and drop the cache, but nothing, and i don't know which upgrade choose.

Some counsel?

Thanks, and if don't give support, don't worry, I'll understand.

Subject: Re: Activity Mod For Icy Phoenix
Did you go in ACP and installed Activity after having enabled the var in constants?

Goto page Previous  1, 2, 3, 4, 5, 6  Next

Page 4 of 6


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.8468s (PHP: 3% SQL: 97%)
SQL queries: 17 - Debug Off - GZIP Enabled