Dave Baker
12-13-2007, 07:39 AM
Greetings all,
Two new plugins have been added in our download area and available for downloading :) .
The first one is video plugin.
It gives you flexible ability to build your own video or MP3 directory. If you do not want it, you can just add extra field to your list of fields for uploading and displaying video or playing MP3 files.
After installation you will be able to find configurations of the plugin here: Admin Panel » Configuration » Video configuration
The plugin supports the following formats: mp3, flv, rtmp, jpg, swf, png, gif
Notes: There is templates/view-listing.tpl file in the pack of plugin, you should replace it with the suggest-listing.tpl file in your directory. If you do not want to replace the file you need make the following changes:
***Open templates/yourTemplate/view-listing.tpl and find code***
{include file="header.tpl"}
<h1>{$listing.title|escape:"html"}</h1>
{if $msg}
<div class="{$type}"><ol>{$msg}</ol></div>
{/if}
<div class="box">
***Below add ***
{esynHooker name="beforeViewListingFieldsArea"}
***Save file***
You can face the following bugs in our script:
Call to undefined function upload()
Fix:
***Open admin/suggest-listing.php and find code***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $category['id']."-".$token.".".$ext;
if (esynUtil::upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$temp[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Replace with***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $category['id']."-".$token.".".$ext;
if (esynUtil::upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$temp[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Save file***
***Open admin/edit-listing.php and find code***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $value['file_prefix'].$cat_id."-".$token.".".$ext;
if (upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$listing[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Replace with***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $value['file_prefix'].$cat_id."-".$token.".".$ext;
if (esynUtil::upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$listing[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Save file***
Please make sure that your host allows to upload necessary file size.
The second one is terms verification plugin.
Adds textarea field(readonly) with a terms in it to the "suggest listing" page and checkbox which need be marked if you agree with the terms.
You will be able to change terms or disable terms verification here: Admin Panel » Configuration » Terms verification
Notes: There is templates/suggest-listing.tpl file in the pack of plugin, you should replace it with the suggest-listing.tpl file in your directory. If you do not want to replace the file you need make the following changes:
***Open templates/yourTemplate/suggest-listing.tpl and find code***
{if $config.captcha}
{include file="captcha.tpl"}
{/if}
***Before add***
{esynHooker name="afterSuggestListingFields"}
***Save file***
P.S Also have been fixed some bugs in the google map and categories map plugins.
Two new plugins have been added in our download area and available for downloading :) .
The first one is video plugin.
It gives you flexible ability to build your own video or MP3 directory. If you do not want it, you can just add extra field to your list of fields for uploading and displaying video or playing MP3 files.
After installation you will be able to find configurations of the plugin here: Admin Panel » Configuration » Video configuration
The plugin supports the following formats: mp3, flv, rtmp, jpg, swf, png, gif
Notes: There is templates/view-listing.tpl file in the pack of plugin, you should replace it with the suggest-listing.tpl file in your directory. If you do not want to replace the file you need make the following changes:
***Open templates/yourTemplate/view-listing.tpl and find code***
{include file="header.tpl"}
<h1>{$listing.title|escape:"html"}</h1>
{if $msg}
<div class="{$type}"><ol>{$msg}</ol></div>
{/if}
<div class="box">
***Below add ***
{esynHooker name="beforeViewListingFieldsArea"}
***Save file***
You can face the following bugs in our script:
Call to undefined function upload()
Fix:
***Open admin/suggest-listing.php and find code***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $category['id']."-".$token.".".$ext;
if (esynUtil::upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$temp[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Replace with***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $category['id']."-".$token.".".$ext;
if (esynUtil::upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$temp[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Save file***
***Open admin/edit-listing.php and find code***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $value['file_prefix'].$cat_id."-".$token.".".$ext;
if (upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$listing[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Replace with***
elseif ('storage' == $value['type'])
{
if (!$_FILES[$field_name]['error'])
{
$ext = substr($_FILES[$field_name]['name'], -3);
$token = esynUtil::getNewToken();
$file_name = $value['file_prefix'].$cat_id."-".$token.".".$ext;
if (esynUtil::upload($field_name, ESYN_HOME.'uploads'.ESYN_DS.$file_name))
{
$listing[$field_name] = $file_name;
}
else
{
$error = true;
$msg = $esynI18N['unknown_upload'];
}
}
}
***Save file***
Please make sure that your host allows to upload necessary file size.
The second one is terms verification plugin.
Adds textarea field(readonly) with a terms in it to the "suggest listing" page and checkbox which need be marked if you agree with the terms.
You will be able to change terms or disable terms verification here: Admin Panel » Configuration » Terms verification
Notes: There is templates/suggest-listing.tpl file in the pack of plugin, you should replace it with the suggest-listing.tpl file in your directory. If you do not want to replace the file you need make the following changes:
***Open templates/yourTemplate/suggest-listing.tpl and find code***
{if $config.captcha}
{include file="captcha.tpl"}
{/if}
***Before add***
{esynHooker name="afterSuggestListingFields"}
***Save file***
P.S Also have been fixed some bugs in the google map and categories map plugins.