Welcome to Geeklog, Anonymous Monday, December 23 2024 @ 08:55 am EST
Geeklog Forums
Geekary error as recipient tries to see the ecard from email link
Johny
Anonymous
I had this plugin Geekary which used to work very fine with the GL 1.3 tree but lately the
recipient email link to the actual card page is showing :
Fatal error: Call to a member function on a non-object in /.../geekard.php on line 136
This probably needs some minor correction in the geekcard.php - any one with experience in it probably can solve it easily. Looking for some help please.
function geekard_buildTag($geekard)
{
global $_TABLES,$_GEEKARY,$_GKCONST;
$result=DB_query("SELECT * FROM {$_TABLES['geekary_images']} WHERE id='{$geekard['geekage_id']}'");
$A=DB_fetchArray($result);
switch ($A['geekage_type']) {
case "image/png" :
case "image/x-png" :
case "image/jpeg" :
case "image/pjpeg" :
case "image/bmp" :
case "image/gif" :
$content_template = new Template($_GKCONST['publictemps']);
$content_template->set_file('content','content.thtml');
$content =@getimagesize("{$_GKCONST['full_geekage']}{$A['cat_id']}/{$A['file_name']}");
$content_template->set_var('file_name',"{$_GKCONST['geekage_url']}{$A['cat_id']}/{$A['file_name']}");
$content_template->set_var('scroll','no');
break;
case 'application/x-shockwave-flash' :
$content_template = new Template($_GKCONST['publictemps']);
$content_template->set_file('content','swf.thtml');
$content_template->set_var('file_url',"{$_GKCONST['geekage_url']}{$A['cat_id']}/{$A['file_name']}");
$content =@getimagesize("{$_GKCONST['full_geekage']}{$A['cat_id']}/{$A['file_name']}");
break;
case 'video/x-ms-wmv' :
case 'video/mpeg' :
case 'audio/wav' :
case 'audio/mpeg' :
$content_template = new Template($_GKCONST['publictemps']);
$content_template->set_file('content','video.thtml');
$content_template->set_var('file_url',"{$_GKCONST['geekage_url']}{$A['cat_id']}/{$A['file_name']}");
break;
}
recipient email link to the actual card page is showing :
Fatal error: Call to a member function on a non-object in /.../geekard.php on line 136
This probably needs some minor correction in the geekcard.php - any one with experience in it probably can solve it easily. Looking for some help please.
Text Formatted Code
function geekard_buildTag($geekard)
{
global $_TABLES,$_GEEKARY,$_GKCONST;
$result=DB_query("SELECT * FROM {$_TABLES['geekary_images']} WHERE id='{$geekard['geekage_id']}'");
$A=DB_fetchArray($result);
switch ($A['geekage_type']) {
case "image/png" :
case "image/x-png" :
case "image/jpeg" :
case "image/pjpeg" :
case "image/bmp" :
case "image/gif" :
$content_template = new Template($_GKCONST['publictemps']);
$content_template->set_file('content','content.thtml');
$content =@getimagesize("{$_GKCONST['full_geekage']}{$A['cat_id']}/{$A['file_name']}");
$content_template->set_var('file_name',"{$_GKCONST['geekage_url']}{$A['cat_id']}/{$A['file_name']}");
$content_template->set_var('scroll','no');
break;
case 'application/x-shockwave-flash' :
$content_template = new Template($_GKCONST['publictemps']);
$content_template->set_file('content','swf.thtml');
$content_template->set_var('file_url',"{$_GKCONST['geekage_url']}{$A['cat_id']}/{$A['file_name']}");
$content =@getimagesize("{$_GKCONST['full_geekage']}{$A['cat_id']}/{$A['file_name']}");
break;
case 'video/x-ms-wmv' :
case 'video/mpeg' :
case 'audio/wav' :
case 'audio/mpeg' :
$content_template = new Template($_GKCONST['publictemps']);
$content_template->set_file('content','video.thtml');
$content_template->set_var('file_url',"{$_GKCONST['geekage_url']}{$A['cat_id']}/{$A['file_name']}");
break;
}
8
8
Quote
All times are EST. The time is now 08:55 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content