Posted on: 12/21/05 04:06pm
By: MaXi_XCeL
Hi Guys,
I've installed the inmemorial plugin in my geeklog but when I try to create an ablum, or submit an admin setting i receive the following error:
Fatal error: Call to undefined function: mysql_real_escape_string() in \mypath\to\geeklog\plugins\inmemoriam\functions.inc on line 1586
Can't find anything about it. Any suggestions?
Inmemoriam_1.0.1_1.3.11
Posted on: 12/21/05 04:26pm
By: Dirk
According to the
PHP manual[*1] , that function only exists as of PHP 4.3.0, so you're probably running on an older version.
bye, Dirk
Inmemoriam_1.0.1_1.3.11
Posted on: 12/22/05 09:43am
By: MaXi_XCeL
Right again Dirk! Thanks a lot!
Inmemoriam_1.0.1_1.3.11
Posted on: 12/22/05 10:06am
By: MaXi_XCeL
Another question. Maybe Im reading it wrong. In edit album you are able to set the album as featured and select the position and topic.
i am thinking that when i select a topic the album will only show as featured in that topic. But it shows in all topics and on index.
What's wrong (with me )
Thanks! David
Inmemoriam_1.0.1_1.3.11
Posted on: 12/22/05 12:35pm
By: machinari
you just found a bug! thank you and I'll fix it momentarily
Inmemoriam_1.0.1_1.3.11
Posted on: 12/22/05 01:11pm
By: machinari
in your functions.inc file, replace the function plugin_centerblock_inmemoriam() with this one:
//creates a centerblock on the index page
function plugin_centerblock_inmemoriam($where=1,$page=1,$topic =''){
global $INM_CONF, $_TABLES, $INM_TABLES, $_USER;
$pi_name = $INM_CONF['pi_name']; // Plugin name
$retval = '';
if (DB_getItem($INM_TABLES['settings'], 'anonview') == 0 && $_USER['uid'] <= 1){
return '';
}
// Retrieve Centerblock Settings
$result = DB_query("SELECT id, cntrblktype, cntrblkpage, cntrblkpos FROM {$INM_TABLES['albums']} WHERE featured='1'" . COM_getPermSQL('and'));
// Check user has rights to view this cb, if so, do it.
if (DB_numRows($result) == 1) {
list($id,$type,$cntrblkpage,$cntrblkpos) = DB_fetchArray($result);
// If enabled only for homepage and this is not page 1 or a topic page, then set disable flag
if ($cntrblkpage == 'none'){
if ($page > 1 OR $topic != ""){
$cntrblkenable = 0;
} else $cntrblkenable = 1;
// If enabled for all pages and this is not page 1, then set disable flag
} elseif ($cntrblkpage == 'all'){
if ($page > 1 ){
$cntrblkenable = 0;
} else $cntrblkenable = 1;
// If enabled for a single topic and this is it, then enable
} elseif ($cntrblkpage == $topic){
$cntrblkenable = 1;
}
// Check if there are no featured articles in this topic and if so then place it at the top of the page
if ($topic != "") {
$wheresql = "WHERE tid='$topic' AND featured > 0";
} else {
$wheresql = "WHERE featured = 1";
}
$query = DB_query("SELECT count(*) as count FROM {$_TABLES['stories']} $wheresql");
$result = DB_fetchArray($query);
if ($result['count'] == 0 && $cntrblkpos == 2) {
$cntrblkpos = 1;//top of page
}
if ($cntrblkenable AND $cntrblkpos == $where) {
if (DB_getItem($_TABLES['plugins'],'pi_enabled', 'pi_name = "' .$pi_name. '"')){
$retval = inm_featuredAlbum($id,$type);
return $retval;
}
}
}
}
Inmemoriam_1.0.1_1.3.11
Posted on: 12/22/05 01:48pm
By: MaXi_XCeL
Really nice Thanks! David
Inmemoriam_1.0.1_1.3.11
Posted on: 01/18/06 05:26am
By: k74
I have just installed the plugin, its great Mach just as your other plugins have been.
One question and I have a feeling it may be something on my end, I am able to upload MP3 files however when I hit play it won't open the file but there is no error logged that I can find. I can play MPEG and quicktime files with no problem and JPEGS. I haven't been able to get GIFS to work yey either even though I have the appropriate GD setup and enabled them in the config file as stated in the install file.
Any suggestions on how I mightovercome these issues?
Thanks in advance, Kev.
Inmemoriam_1.0.1_1.3.11
Posted on: 01/18/06 01:27pm
By: machinari
[QUOTE BY= k74] I am able to upload MP3 files however when I hit play it won't open the file but there is no error logged that I can find.[/QUOTE]does anything happen at all? goes to another page or anything? my suspicion is that your browser may not be configured to automatically open/play mp3's--unlikely however.
[QUOTE BY=k74] I haven't been able to get GIFS to work yey either even though I have the appropriate GD setup and enabled them in the config file as stated in the install file.[/QUOTE]that one stumps me. Have you tried a different library? imagemagick or netpbm?
Inmemoriam_1.0.1_1.3.11
Posted on: 01/18/06 01:58pm
By: machinari
give this a try, k74
edit $INM_CONF['aud_ext'] in Inmemoriam's config.php file:
change this: '.mp3' => 'audio/mpeg3',
to look like this: '.mp3' => 'audio/mpeg',
Inmemoriam_1.0.1_1.3.11
Posted on: 01/19/06 04:16am
By: k74
[QUOTE BY= machinari] does anything happen at all? goes to another page or anything? my suspicion is that your browser may not be configured to automatically open/play mp3's--unlikely however.
[/QUOTE]
It goes to a a download box? On my online site I have been using File Management plugin for people to open MP3 and Video files. This has worked OK. The files open with windows edia player on my browser straight away.
[QUOTE by : machinari]that one stumps me. Have you tried a different library? imagemagick or netpbm?[/QUOTE]
I have only used GD as it came installed on the server and has worked for everything so far (with the exception of the Upage plugin which I think may need netpbm?) GIF's open with no trouble on the site as I use them for logo's and advertisements.
Inmemoriam_1.0.1_1.3.11
Posted on: 01/19/06 04:18am
By: k74
[QUOTE BY= machinari] give this a try, k74
edit $INM_CONF['aud_ext'] in Inmemoriam's config.php file:
change this: '.mp3' => 'audio/mpeg3',
to look like this: '.mp3' => 'audio/mpeg',
[/QUOTE]
Thanks for all your suggestions machinari, I will try this. I hope to get this working as it is more what I am after rather than using the file managment plugin for this purpose.
Regards
Kev
Inmemoriam_1.0.1_1.3.11
Posted on: 01/19/06 06:31am
By: k74
Thanks for that suggestion machinari. The MP3's work now.
Is the rating system supposed to work with 1.3.11 or 1.4..0 only?
Regards
Kev
Inmemoriam_1.0.1_1.3.11
Posted on: 01/19/06 12:27pm
By: machinari
the rating system works with 1.3.11 and 1.4. It's the comment functions that will not work with 1.3.11.
the GD library doesn't actually have anything to do with whether a gif can be viewed when used inside a regular img tag on your site. Inmemoriam, however, uses the GD lib to render the file. I would recheck your GD version according to the comments in Inmemoriam's config.php file. There really is no other reason that I can think of that would disable gifs in inmemoriam.
Inmemoriam_1.0.1_1.3.11
Posted on: 01/20/06 02:08am
By: k74
Thanks machinari for your help. I will look into the GD issue.
However I still can't seem to get the rating system working, it comes up with:
Current rating: N/A Voters: 0
But I can't see where to make an actual vote.
It isn't really a necessary function for all my sites but I do have one where this will be handy if it did work.
Any how it is a great plugin, easy to install and looks fantastic. Another terrific plugin by machinari thanks for all your hard work. Hope you still get enough time to strum on the guitar and play with the kids. Have a ggood weekend.
Regards
Kev
Inmemoriam_1.0.1_1.3.11
Posted on: 01/20/06 02:36am
By: machinari
[QUOTE BY= k74]
But I can't see where to make an actual vote.
[/QUOTE]it is set up to not be able to vote for your own submissions. maybe that is the issue.
Inmemoriam_1.0.1_1.3.11
Posted on: 01/20/06 05:14am
By: k74
That would answer my question clearly. That is an extremeley good function.
Regards
Kev
Inmemoriam_1.0.1_1.3.11
Posted on: 01/30/06 09:54pm
By: Anonymous (reddy)
Is there a way to change the wording in the menu area at the top of the page from inmemoriam to Photo Gallery. I want to leave it inmemoriam evrywhere else but in the menu at the top of the page. In the header.thtml all it says is {menu_elements} and I don't know where to find them.
Thank you for any help!! Bob
Inmemoriam_1.0.1_1.3.11
Posted on: 01/30/06 09:59pm
By: machinari
[QUOTE BY= reddy] Is there a way to change the wording in the menu area at the top of the page from inmemoriam to Photo Gallery. [/QUOTE]have a look at the language file: $LANG_INM01[1].
Inmemoriam_1.0.1_1.3.11
Posted on: 01/31/06 11:46am
By: reddy
Thank you!!! That did the trick!!!