Sub Menu
Links Menu
Online Users

In total there are 688 users online :: 1 registered, 0 hidden and 687 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot] based on users active over the past 60 minutes

Need Some php Help Please

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Need Some php Help Please

PostAuthor: MWE_001 » Sat Dec 30, 2006 5:31 pm

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 [url=http]MY BOARD[/url], but not on Cleo's board using the same identical code.

the error is as follows:
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
Code: Select all
<php> sql_query($q); while($row = $db -> sql_fetchrow($r)) { $game_img = CheckGameImages($row['game_name'], $row['proper_name']); $game_id = $row['game_id']; $played = $row['played']; $name = $row['proper_name']; $game_img = str_replace("<img>","<img height='30' width='30' ", $game_img);  $link = "<b>". $game_img ." <a>". $name ."</a><br>Played: ". number_format($played) ." times</b>";  $template -> assign_block_vars('populargames', array( 'POP' => $link) ); $i++; $link = ''; } } }    imp_populargames_block_func(); // // This portal block was converted from ezPortal system to IM Portal.Orignal Copyrights go to aUsTiN,for // creating the blocks for ezPortal ?>


Here is its .tpl file :
Code: Select all
<table>     <tr>         <td>             <span>                <marquee>                    <BEGIN>                 {populargames.POP}<br>             <END>             </span>         </td>     </tr> </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[/list]

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. <img> 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
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

Re: Need Some php Help Please

PostAuthor: Teelk » Sat Dec 30, 2006 9:09 pm

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

example.
Code: Select all
    include($phpbb_root_path . 'includes/activity_mod_functions.'.$phpEx);  
You'll also need to add $phpbb_root_path to the global list.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: Need Some php Help Please

PostAuthor: MWE_001 » Sun Dec 31, 2006 2:26 am

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
Last edited by MWE_001 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1265
Likes: 0 post
Liked in: 0 post
Images: 12
Joined: Fri Apr 21, 2006 6:59 pm
Cash on hand: 0.00
Location: Illinois

PostAuthor: ayasha » Tue Jan 02, 2007 6:35 am

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. <img>
Last edited by ayasha on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
No one can make you feel inferior without your consent.
~Eleanor Roosevelt

ayasha
Sr Integra Member
Sr Integra Member
 
Posts: 634
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 5:10 pm
Cash on hand: 0.00


Return to General Discussion

Who is online

Registered users: Bing [Bot]

cron