Advertisement
It is currently Fri Jul 03, 2009 4:14 pm


Sub Menu
Bot Tracker

Yahoo [Bot]
Fri. Jul. 03 2009, 16:10
MSN [Bot]
Fri. Jul. 03 2009, 16:01
MSNbot Media
Fri. Jul. 03 2009, 15:57
Google [Bot]
Fri. Jul. 03 2009, 15:56
Google Adsense [Bot]
Fri. Jul. 03 2009, 13:54
Baidu [Spider]
Fri. Jul. 03 2009, 06:49
Gigabot [Bot]
Thu. Jul. 02 2009, 04:14
Alexa [Bot]
Sun. Jun. 28 2009, 06:29
psbot [Picsearch]
Thu. Jun. 25 2009, 20:11
Ask Jeeves [Bot]
Thu. Jun. 25 2009, 02:34

Search

Left Ads

Post a new topic Post a reply 
Page 1 of 1      [ 4 posts ] Next topic Bottom of the page. Who posted in this topic. Print view Bookmark topic Previous topic
Go to page    
Author Message
Offline
Site Admin
User avatar

Joined: Fri Apr 21, 2006 7:59 pm
Posts: 831
Location: Illinois
Flag
Cash:380
Male
   
Post Need Some php Help Please


 
I need a little help if I can please. Ihave been working on some blocks for the activity mod and got them to work on MY BOARD, but not on Cleo's board using the same identical code.

the error is as follows:
Quote:
Fatal error: Call to undefined function: checkgameimages() in /home/httpd/vhosts/graphicsplayhouse.com/httpdocs/psp/blocks/blocks_imp_populargames.php on line 54


Heres is the blocks php
  1. <?php
  2. /***************************************************************************
  3. * blocks_imp_populargames.php
  4. * -------------------
  5. * begin : Saturday, March 20, 2004
  6. * copyright : (C) 2004 masterdavid - Ronald John David
  7. * website : http://www.integramod.com
  8. * email : webmaster@integramod.com
  9. *
  10. * note: removing the original copyright is illegal even you have modified
  11. * the code. Just append yours if you have modified it.
  12. ***************************************************************************/
  13.  
  14. /***************************************************************************
  15. * Mod author : Activity Mod Plus 1.1.1 - aUstin
  16. *
  17. * IM Block Created by : GanBei (Oct 24, 2005) for IM 1.4.0
  18. *
  19. ***************************************************************************
  20. * For Security Purposes, Please Check: http://www.integramod.com
  21. * for the latest version of this MOD. Downloading this MOD from
  22. * other sites could cause malicious code to enter into your Integramod site.
  23. *
  24. ***************************************************************************/
  25.  
  26. /***************************************************************************
  27. *
  28. * This program is free software; you can redistribute it and/or modify
  29. * it under the terms of the GNU General Public License as published by
  30. * the Free Software Foundation; either version 2 of the License, or
  31. * (at your option) any later version.
  32. *
  33. ***************************************************************************/
  34.  
  35. if ( !defined('IN_PHPBB') )
  36. {
  37. die("Hacking attempt");
  38. }
  39.  
  40. if(!function_exists(imp_populargames_block_func))
  41. {
  42. function imp_populargames_block_func()
  43. {
  44. global $template, $db, $theme, $phpEx, $userdata;
  45. $total = "10";
  46. $i = 1;
  47. $q = "SELECT *
  48. FROM ". iNA_GAMES ."
  49. ORDER BY played DESC
  50. LIMIT 0, ". $total;
  51. $r = $db -> sql_query($q);
  52. while($row = $db -> sql_fetchrow($r))
  53. {
  54. $game_img = CheckGameImages($row['game_name'], $row['proper_name']);
  55. $game_id = $row['game_id'];
  56. $played = $row['played'];
  57. $name = $row['proper_name'];
  58. $game_img = str_replace("<img>","<img height='30' width='30' ", $game_img);
  59.  
  60. $link = "<b>". $game_img ." <a href='games.". $phpEx ."?mode=game&id=". $game_id ."&parent=true'>". $name ."</a><br>Played: ". number_format($played) ." times</b>";
  61.  
  62. $template -> assign_block_vars('populargames', array(
  63. 'POP' => $link)
  64. );
  65. $i++;
  66. $link = '';
  67. }
  68. }
  69. }
  70.  
  71.  
  72. imp_populargames_block_func();
  73. //
  74. // This portal block was converted from ezPortal system to IM Portal.Orignal Copyrights go to aUsTiN,for
  75. // creating the blocks for ezPortal
  76. ?>


Here is its .tpl file :
  1. <table align="center" valign="middle" width="100%">
  2.     <tr>
  3.         <td valign="top" align="left" class="row1">
  4.             <span class="gensmall" align="center">
  5.                <marquee behavior="scroll" direction="up" scrollamount="2" onmouseover="this.stop()" onmouseout="this.start()">
  6.  
  7.                  <!-- BEGIN populargames -->
  8.                 {populargames.POP}<br />
  9.             <!-- END populargames -->
  10.             </span>
  11.         </td>
  12.     </tr>
  13. </table>


The run down of my system is as follows :
  • Integramod 1.4.1 beta Rev 5 phpBB version .21
  • MySQL 4.0.17
  • PhP version 4.3.10
  • Free BSD Operating system


Before I get flamed to bad, please note these blocks work on my live site as well, NOT just on beta site which is only a test site and closed for registration. :wink: Maybe we can get Ms. Cleo to let us know what her specs are incase thathas anything to do with it. The only differance I see is her version of IM and mine are different. Over night I installed a Integramod all the way back to 1.3.2c and they worked as well. AND like I said on my live site Iuse everyday they work too. it is 1.4.0

_________________
Image


Sat Dec 30, 2006 6:31 pm
Top
Profile     
Offline
Site Admin
User avatar

Joined: Tue Mar 14, 2006 6:25 pm
Posts: 1296
Location: Canada
Flag
Cash:10
Male
   
Post Re: Need Some php Help Please


 
Find which file the function checkgameimages is in and use an include to that file in the block function.

example.
  1.     include($phpbb_root_path . 'includes/activity_mod_functions.'.$phpEx);
  2.  
You'll also need to add $phpbb_root_path to the global list.

_________________
A childhood can be a terrible thing to waste... that's why I've extended mine well into my 20's.


Sat Dec 30, 2006 10:09 pm
Top
Profile     
Offline
Site Admin
User avatar

Joined: Fri Apr 21, 2006 7:59 pm
Posts: 831
Location: Illinois
Flag
Cash:380
Male
   
Post Re: Need Some php Help Please


 
Ok. Im going to have to try and get Cleo to try that. I can not reproduce that error on my site no matter how hard I try . They just work for me for some reason but not for others. Thx Teelk for your thoughts and time, We will most definately give it a try

_________________
Image


Sun Dec 31, 2006 3:26 am
Top
Profile     
Offline
Beta Tester

Joined: Tue Mar 28, 2006 6:10 pm
Posts: 634
No gender specified
   
Post 


 
i do not understand coding well enough to apply this fix myself. sorry Ray.

as i stated before, if i have the newest 10 game block active, the others work, so i will just leave it like that until a coder can fix the code. :)

_________________
No one can make you feel inferior without your consent.
~Eleanor Roosevelt


Tue Jan 02, 2007 7:35 am
Top
Profile     
Display posts from previous:  Sort by  
Page 1 of 1      [ 4 posts ] Next topic Top Who posted in this topic. Print view Bookmark topic Previous topic
Go to page    
Post a new topic Post a reply 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Advertisement