Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post OT: Activity Mod. 
 
Hi, neighbours and friends...

Today I gived a try to activity mod with the premodded files that generously MG released with latest version of IP...

I also know ther is no support for activity mod as it is not part from IP, but I wanna know if someone else have tried it and have had the same error.

When creating the cache files, there is one called "tpl_mg_themes.amod.activity_online_body.php" that has a mistake and I get this error when I try to go to the main activity page (activity.php). I get this error:
Code: [Download] [Hide]
  1. Parse error: syntax error, unexpected '}' in /home/katet/public_html/portal2.0/cache/tpl_mg_themes.amod.activity_online_body.php on line 78 


You can try it if you click here and login with:

User: Tester
pass: test

So... I've checked the template file which has the following content:

Code: [Download] [Hide]
  1. <?php  
  2.  
  3. // eXtreme Styles mod cache. Generated on Wed, 05 Mar 2008 17:29:56 +0100 (time=1204734596)  
  4.  
  5. ?><?php  
  6.  
  7. $playing_games_count = ( isset($this->_tpldata['playing_games.']) ) ?  sizeof($this->_tpldata['playing_games.']) : 0;  
  8. for ($playing_games_i = 0; $playing_games_i < $playing_games_count; $playing_games_i++)  
  9. {  
  10. $playing_games_item = &$this->_tpldata['playing_games.'][$playing_games_i];  
  11. $playing_games_item['S_ROW_COUNT'] = $playing_games_i;  
  12. $playing_games_item['S_NUM_ROWS'] = $playing_games_count;  
  13.  
  14. ?>  
  15. <div id="online_games_h" style="display: none;">  
  16. <?php echo isset($this->vars['IMG_THL']) ? $this->vars['IMG_THL'] : $this->lang('IMG_THL'); ?><?php echo isset($this->vars['IMG_THC']) ? $this->vars['IMG_THC'] : $this->lang('IMG_THC'); ?><img style="padding-top:3px;float:right;cursor:pointer;" src="<?php echo isset($this->vars['IMG_MAXIMISE']) ? $this->vars['IMG_MAXIMISE'] : $this->lang('IMG_MAXIMISE'); ?>" onclick="javascript:ShowHide('online_games','online_games_h','online_games');" alt="<?php echo isset($this->vars['L_SHOW']) ? $this->vars['L_SHOW'] : $this->lang('L_SHOW'); ?>" /><span class="forumlink"><?php echo isset($playing_games_item['ONLINE_TITLE']) ? $playing_games_item['ONLINE_TITLE'] : ''; ?></span><?php echo isset($this->vars['IMG_THR_ALT']) ? $this->vars['IMG_THR_ALT'] : $this->lang('IMG_THR_ALT'); ?><table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">  
  17. <tr><td>&nbsp;</td></tr>  
  18. </table><?php echo isset($this->vars['IMG_TFL']) ? $this->vars['IMG_TFL'] : $this->lang('IMG_TFL'); ?><?php echo isset($this->vars['IMG_TFC']) ? $this->vars['IMG_TFC'] : $this->lang('IMG_TFC'); ?><?php echo isset($this->vars['IMG_TFR']) ? $this->vars['IMG_TFR'] : $this->lang('IMG_TFR'); ?>  
  19. </div>  
  20. <div id="online_games">  
  21. <script type="text/javascript">  
  22. <!--  
  23. tmp = 'online_games';  
  24. if(GetCookie(tmp) == '2')  
  25. {  
  26.     ShowHide('online_games', 'online_games_h', 'online_games');  
  27. }  
  28. //-->  
  29. </script>  
  30. <?php echo isset($this->vars['IMG_THL']) ? $this->vars['IMG_THL'] : $this->lang('IMG_THL'); ?><?php echo isset($this->vars['IMG_THC']) ? $this->vars['IMG_THC'] : $this->lang('IMG_THC'); ?><img style="padding-top:3px;float:right;cursor:pointer;" src="<?php echo isset($this->vars['IMG_MINIMISE']) ? $this->vars['IMG_MINIMISE'] : $this->lang('IMG_MINIMISE'); ?>" onclick="javascript:ShowHide('online_games','online_games_h','online_games');" alt="<?php echo isset($this->vars['L_HIDE']) ? $this->vars['L_HIDE'] : $this->lang('L_HIDE'); ?>" /><span class="forumlink"><?php echo isset($playing_games_item['ONLINE_TITLE']) ? $playing_games_item['ONLINE_TITLE'] : ''; ?></span><?php echo isset($this->vars['IMG_THR']) ? $this->vars['IMG_THR'] : $this->lang('IMG_THR'); ?><table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">  
  31. <tr><td class="row1" colspan="2"><span class="gensmall"><?php echo isset($playing_games_item['CURRENTLY_PLAYING1']) ? $playing_games_item['CURRENTLY_PLAYING1'] : ''; ?><?php echo isset($playing_games_item['TOTAL_M_PLAYING']) ? $playing_games_item['TOTAL_M_PLAYING'] : ''; ?><?php echo isset($playing_games_item['CURRENTLY_PLAYING2']) ? $playing_games_item['CURRENTLY_PLAYING2'] : ''; ?><br /><?php echo isset($playing_games_item['CURRENTLY_PLAYING5']) ? $playing_games_item['CURRENTLY_PLAYING5'] : ''; ?><br /><?php echo isset($playing_games_item['CURRENTLY_PLAYING3']) ? $playing_games_item['CURRENTLY_PLAYING3'] : ''; ?><?php echo isset($playing_games_item['TOTAL_G_PLAYING']) ? $playing_games_item['TOTAL_G_PLAYING'] : ''; ?><?php echo isset($playing_games_item['CURRENTLY_PLAYING4']) ? $playing_games_item['CURRENTLY_PLAYING4'] : ''; ?><br /><?php echo isset($playing_games_item['MAIN_COLOR1']) ? $playing_games_item['MAIN_COLOR1'] : ''; ?><?php echo isset($playing_games_item['MAIN_SEPERATOR']) ? $playing_games_item['MAIN_SEPERATOR'] : ''; ?><?php echo isset($playing_games_item['MAIN_COLOR2']) ? $playing_games_item['MAIN_COLOR2'] : ''; ?><br /></span></td></tr>  
  32. <?php  
  33.  
  34. } // END playing_games  
  35.  
  36. if(isset($playing_games_item)) { unset($playing_games_item); }  
  37.  
  38. ?>  
  39. <?php  
  40.  
  41. $playing_count = ( isset($this->_tpldata['playing.']) ) ?  sizeof($this->_tpldata['playing.']) : 0;  
  42. for ($playing_i = 0; $playing_i < $playing_count; $playing_i++)  
  43. {  
  44. $playing_item = &$this->_tpldata['playing.'][$playing_i];  
  45. $playing_item['S_ROW_COUNT'] = $playing_i;  
  46. $playing_item['S_NUM_ROWS'] = $playing_count;  
  47.  
  48. ?>  
  49. <tr><td class="row1" colspan="2"><span class="gensmall"><?php echo isset($playing_item['USER_NUMBER']) ? $playing_item['USER_NUMBER'] : ''; ?><?php echo isset($playing_item['USERNAME']) ? $playing_item['USERNAME'] : ''; ?><?php echo isset($playing_item['MAIN_SEPERATOR']) ? $playing_item['MAIN_SEPERATOR'] : ''; ?>  
  50. <?php  
  51.  
  52. } // END playing  
  53.  
  54. if(isset($playing_item)) { unset($playing_item); }  
  55.  
  56. ?>  
  57. <?php  
  58.  
  59. $playing_games_count = ( isset($this->_tpldata['playing_games.']) ) ?  sizeof($this->_tpldata['playing_games.']) : 0;  
  60. for ($playing_games_i = 0; $playing_games_i < $playing_games_count; $playing_games_i++)  
  61. {  
  62. $playing_games_item = &$this->_tpldata['playing_games.'][$playing_games_i];  
  63. $playing_games_item['S_ROW_COUNT'] = $playing_games_i;  
  64. $playing_games_item['S_NUM_ROWS'] = $playing_games_count;  
  65.  
  66. ?>  
  67. </span></td></tr>  
  68. <?php  
  69.  
  70. } // END playing_games  
  71.  
  72. if(isset($playing_games_item)) { unset($playing_games_item); }  
  73.  
  74. ?>  
  75. </div>  
  76. <?php  
  77.  
  78. } // END playing_games  
  79.  
  80. if(isset($playing_games_item)) { unset($playing_games_item); }  
  81.  
  82. ?>  
  83. </table><?php echo isset($this->vars['IMG_TFL']) ? $this->vars['IMG_TFL'] : $this->lang('IMG_TFL'); ?><?php echo isset($this->vars['IMG_TFC']) ? $this->vars['IMG_TFC'] : $this->lang('IMG_TFC'); ?><?php echo isset($this->vars['IMG_TFR']) ? $this->vars['IMG_TFR'] : $this->lang('IMG_TFR'); ?>  
  84. </div> 


Checked with a php editor (phpDesigner 2008), it says that line 78 has a systax error: Unexpected "}". So if I comment that line and reupload the file to de cache folder it works fine, but whe the cache is renewed, it fails again...

Anyone has the same problem?

Thanks in advance!
 




____________
Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: OT: Activity Mod. 
 
As we say in spanish
Spoiler: [ Show ]


Here's the solution.

Open IP_ROOT/templates/ANY_TEMPLATE/amod/activity_online_body

FIND (end of the file)  
Code: [Download] [Hide]
  1. <!-- BEGIN playing -->  
  2. <tr><td class="row1" colspan="2"><span class="gensmall">{playing.USER_NUMBER}{playing.USERNAME}{playing.MAIN_SEPERATOR}  
  3. <!-- END playing -->  
  4. <!-- BEGIN playing_games -->  
  5. </span></td></tr>  
  6. <!-- END playing_games -->  
  7. </div>  
  8. <!-- END playing_games -->  
  9. </table>{IMG_TFL}{IMG_TFC}{IMG_TFR}  
  10. </div> 


REPLACE WITH
Code: [Download] [Hide]
  1. <!-- BEGIN playing -->  
  2. <tr><td class="row1" colspan="2"><span class="gensmall">{playing.USER_NUMBER}{playing.USERNAME}{playing.MAIN_SEPERATOR}  
  3. <!-- END playing -->  
  4. <!-- BEGIN playing_games -->  
  5. </span></td></tr>  
  6. <!-- END playing_games -->  
  7. </div>  
  8. </table>{IMG_TFL}{IMG_TFC}{IMG_TFR}  
  9. </div> 


Now it works... I think the original template is wrong, as it has en extra <!-- END playing_games--> tag that is the one givin' problems...

Yoohoo!!! I got it!!
 




____________
Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OT: Activity Mod. 
 
I did not get this error at all. my works fine
 



 
xmenfileSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OT: Activity Mod. 
 
Maybe it would be faster to clean cache

Greetings!
 




____________
Gabriel Anca
 
KasLimonSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: OT: Activity Mod. 
 
Edit to SOLVED thanks Xusqui
 




____________
ThE KuKa - www.phpBB-Es.COM - Custom Installations phpBB
 
ThE KuKaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: SOLVED - OT: Activity Mod. 
 
Maybe if you have checked for the cache system to fix template error you don't have this error... Could it be xmenfile?

Greetz!
 




____________
Icy Phoenix Latest 2.0 (working pending)
Style: Aphrodite and MG_Themes
Site: Spanish Stephen King fan forum
Mods: Medal System Mod. BBAntispam 1.2. Several own BBcodes.
 
XusquiSend private messageVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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


  

 

  cron