Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« on: June 26, 2006, 03:14:14 pm » |
|
This is a advertisement plugin for coppermine Copper Adv1.2.4 (Stable) 2006/08/06 - 05:30 GMT Feature====== - It has 3 banner type (picture/flash/html) - It's using iframe to put your banner on page - It didn't use anycontent - Position of banners is configurable (after sys menu,after sub menu,Multi banner) - Iframe will use Height & width of banner, suggested by PYAP - you can Enable/Disable banners,suggested by tfischer - French translation by PYAP - Italian translation by lontano Known Issue===== - Some theme do not work with "after sys menu" or "after sub menu" Fixes===== - Bug in Uninstallation system , found by GordonRaboud - Check it ! and give me feedbackI use some code from Paver and donoman's plugins Special thanks to Paver , donoman for their good documenting Direct Download Demo [Edit GauGau 2010-03-03] This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/copper_ad
It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.
Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_copper-ad_v1.2.5.zip/download [/Edit]
|
|
|
« Last Edit: March 03, 2010, 08:56:52 am by Joachim Müller »
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Paver
Dev Team member
   
Gender:
 United States
Posts: 1606
Paul Van Rompay
|
 |
« Reply #1 on: June 26, 2006, 04:13:51 pm » |
|
Looks good. I haven't used it much yet, but I have noticed a few typos on the configuration page: - Statuse of Plugin -> Status of Plugin
- Enter the title blow the banner -> Enter the title below the banner
- Do you want to banner appears on admin mode -> Do you want banner to appear on admin mode
Looks nice & easy to configure from what I've seen so far.
|
|
|
|
|
Logged
|
|
|
|
Davide Renda
Dev Team member
   
Gender:
 France
Posts: 1369
aka "Lontano"
|
 |
« Reply #2 on: June 26, 2006, 08:31:57 pm » |
|
Where are the banners put in the page? I'm experiencing conflicts installing it (Internal Server Error) on a modded (the Stramm's modpack) 1.4.8 CPG gallery using Oranje theme. A part from the error, it seems enlarge the page to the left, hence why I ask where the iFrame containing banners is put.
|
|
|
|
|
Logged
|
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #3 on: June 26, 2006, 11:45:04 pm » |
|
@lontano:sorry, plugin is made to use with standard theme not moded theme , let see and check your issue: plugin has 3 positioning configuration: 1.after sys menu , it add it self (iframe) to "$template_sys_menu" variable (work with most of themes) 2.after sub menu , it add it self to "$template_sub_menu" variable (work with most of themes) 3.multi banner , it add it self after each "<!-- End standard table -->" but you can limit the number of apearance
by default (when install) positioning is set to 1
I'll check stramm theme structure to find conflict ...and I'll correct this if possible anyway thank you for feedback @Paver:thank you for your answer ,much appreciate,I'll correct those ... but let see, is there any other issue?
|
|
|
|
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
tfischer
Coppermine regular visitor
 
Posts: 75
|
 |
« Reply #4 on: June 27, 2006, 03:49:18 am » |
|
I'm trying to set this up to work with Google Adsense (previously I used anycontent.php and hacked the album and thumb pages to have them display anycontent as well).
When I go to delete any add from the banner list page, I get "There is only one banner on your databse and it can't be deleted!!!". There are currently FOUR ads in the banner list -- the three originals, plus the one I created for Google Adsense.
Am I missing something? I didn't notice any user docu, so if there is some, I apologize and ask that you point me to it...
-Tim
|
|
|
|
|
Logged
|
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #5 on: June 27, 2006, 05:12:54 am » |
|
thank you  fix now on ver 1.1
|
|
|
|
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Pascal YAP
Dev Team member
   
Gender:
 Armenia
Posts: 3835
He's me, and She's Moon
|
 |
« Reply #6 on: June 27, 2006, 10:07:10 am » |
|
Morning Borzoo, I can not install your Copper-Ad  I receive this alert : Critical error There was an error while processing a database query Install stop just after : Configure plugin: Copper ad Click button to install plugin. Configure plugin using button on Admin toolbar. INSTALLBecause i'm french see inside my attached file (1.2.1) French.php (for Copper-Ad 1.2.2  Look carefully in this translation because french è etc. characters  PYAP
|
|
|
« Last Edit: June 28, 2006, 02:15:13 pm by PYAP »
|
Logged
|
! Pas de PM please ! No PM s'il vous plait !
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #7 on: June 27, 2006, 10:41:26 am » |
|
can you check it on debug mode? on installation stage it's run "schema.sql"
|
|
|
|
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Pascal YAP
Dev Team member
   
Gender:
 Armenia
Posts: 3835
He's me, and She's Moon
|
 |
« Reply #8 on: June 27, 2006, 11:05:00 am » |
|
Borzoo, I know, i need to replace with this in schema.sql. ENGINE=MyISAM; by TYPE=MyISAM; : CREATE TABLE IF NOT EXISTS `cpg143_plugin_copperad` ( `adv_id` int(10) unsigned NOT NULL auto_increment, `kind` int(1) unsigned NOT NULL default '1', `address` varchar(255) NOT NULL default 'Only if its picture or flash', `height` int(4) unsigned NOT NULL default '100', `width` int(4) unsigned NOT NULL default '780', `linkto` varchar(255) NOT NULL default 'index.php', `alt` varchar(255) NOT NULL default 'Advertisement', `html` text NOT NULL, `showd` int(1) unsigned NOT NULL default '0', `name` varchar(255) NOT NULL default 'Copper Ad default name', PRIMARY KEY (`adv_id`) ) TYPE=MyISAM; And replace cpg_plugin_copperad by my own cpg143_plugin_copperad (in other file too) Copper-Ad work nice now  Finally, my French Translation work fine too  For INSTALL and others  PYAP
|
|
|
|
« Last Edit: June 28, 2006, 02:15:59 pm by PYAP »
|
Logged
|
! Pas de PM please ! No PM s'il vous plait !
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #9 on: June 27, 2006, 12:09:33 pm » |
|
- okey the first issue ENGINE=>TYPE fix now - the secound is not really an issue , on installation proccess , plugin will change CPG_ with your prefix  - thank you for feedback & translation
|
|
|
|
« Last Edit: June 27, 2006, 01:09:33 pm by bmossavari »
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Pascal YAP
Dev Team member
   
Gender:
 Armenia
Posts: 3835
He's me, and She's Moon
|
 |
« Reply #10 on: June 27, 2006, 01:27:12 pm » |
|
Borzoo, I'm OK for All. But if I need a smaller banner than 100x780 px ? Then, i am obliged to modify my database, and also codebase.php Search and replace (height)(width) values : <iframe align="middle" frameborder="0" height="YOUR-VALUE" id="adver" marginheight="0" marginwidth="0" name="adver" scrolling="no" src="banner.php" width="YOUR-VALUE"> Table on DB : your cpg_plugin_copperad (height)(width) PYAP
|
|
|
|
« Last Edit: June 27, 2006, 01:32:34 pm by PYAP »
|
Logged
|
! Pas de PM please ! No PM s'il vous plait !
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #11 on: June 27, 2006, 01:43:12 pm » |
|
 okey , I'll make it dynamic(take height & width from banner properties) on next ver
|
|
|
|
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #12 on: June 27, 2006, 03:53:31 pm » |
|
Now you have a dynamic Iframe ... new ver 1.2.1 
|
|
|
|
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
tfischer
Coppermine regular visitor
 
Posts: 75
|
 |
« Reply #13 on: June 28, 2006, 03:45:42 am » |
|
Got it working! Thanks for a great plugin.
A quick feature request: - On the Banner List page, it would be nice to have a checkbox, or some other way to enable and disable ads without deleting and recreating them. That way, we could have differnet ads ready to run as necessary, e.g. a seasonal sale ad that could be activated only during the sale.
Thanks, -Tim
|
|
|
|
|
Logged
|
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #14 on: June 28, 2006, 12:00:51 pm » |
|
@tfischer:It's done @PYAP:check the lang file 
|
|
|
|
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Pascal YAP
Dev Team member
   
Gender:
 Armenia
Posts: 3835
He's me, and She's Moon
|
 |
« Reply #15 on: June 28, 2006, 02:17:30 pm » |
|
Borzoo, Look at attached file : FRENCH.PHP for Copper-Ad 1.2.2PYAP
|
|
|
|
Logged
|
! Pas de PM please ! No PM s'il vous plait !
|
|
|
Sami 
VIP
  
Gender:
 Iran, Islamic Republic of
Posts: 3689
BMossavari
|
 |
« Reply #16 on: June 28, 2006, 02:51:57 pm » |
|
Package Updated by french.php Lang Thank you PYAP
|
|
|
|
« Last Edit: June 28, 2006, 03:50:47 pm by bmossavari »
|
Logged
|
I don't answer to PM with support question Please post your issue to related board
|
|
|
Pascal YAP
Dev Team member
   
Gender:
 Armenia
Posts: 3835
He's me, and She's Moon
|
 |
« Reply #17 on: June 28, 2006, 03:38:42 pm » |
|
Borzoo, Because my host do'nt allow CHMODed at all, i need to " comment by PYAP" some lines in codebase.php// Install Plugin function copperad_install() { global $CONFIG, $lang_plugin_copperad, $lang_plugin_copperad_config, $thisplugin; require ('plugins/copper_ad/include/init.inc.php'); if ($_POST['submit']==$lang_plugin_copperad_config['button_install']) { require 'include/sql_parse.php'; // Copy needed file and ADV directory // COMMENT BY PYAP copy($thisplugin->fullpath."/banner.php.sample","banner.php") or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__); // COMMENT BY PYAP copy($thisplugin->fullpath."/bannermgr.php.sample","bannermgr.php") or cpg_die(ERROR, //COMMENT BY PYAP $lang_plugin_copperad_config['permission'], __FILE__, __LINE__); // COMMENT BY PYAP mkdir('adv') or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__); // COMMENT BY PYAP mkdir('adv/pic') or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__); // COMMENT BY PYAP mkdir('adv/flash') or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__); // COMMENT BY PYAP copy($thisplugin->fullpath."/adv/pic/copperad.jpg","adv/pic/copperad.jpg") or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__); copy($thisplugin->fullpath."/adv/flash/copperad.swf","adv/flash/copperad.swf") or cpg_die(ERROR, $lang_plugin_copperad_config['permission'], __FILE__, __LINE__);
I need also to place by hand in my Gallery's root http:// myCPG/ this two files banner.php.sample and bannermgr.php.sample (remane banner.php and bannermgr.php) PYAP
|
|
|
|
|
Logged
|
! Pas de PM please ! No PM s'il vous plait !
|
|
|
Davide Renda
Dev Team member
   
Gender:
 France
Posts: 1369
aka "Lontano"
|
 |
« Reply #18 on: June 28, 2006, 10:58:20 pm » |
|
On the readme file you ask to chmod de gallery folder to 777, install the plugin, and re-chmod back to 755 (only the folder); what about galleries directly installed in the root directory (like mine)? May this be the server error I am facing while trying to install this plugin?
|
|
|
|
|
Logged
|
|
|
|
tfischer
Coppermine regular visitor
 
Posts: 75
|
 |
« Reply #19 on: June 29, 2006, 05:09:02 am » |
|
Thanks for adding the enable/disable feature so quickly!
Here's a few more issues I noticed:
- When upgrading to 1.2.2, I lost all my settings and ads, even though I said "don't remove the table" when uninstalling the old version. Not a big deal at this point, but would be a major pain if someone set up lots of ads and wanted to upgrade. (steps: uninstall old, delete old folder, ftp new folder, reinstall).
- When enabling/disabling ads on the Banner List page, after submitting the changes, there is a line of SQL debugging code at the top of the screen. Not a big deal since an end user should never see this.
- The "after sys menu" option doesn't look good with the "Rainy Day" theme. I think this is known, but just wanted to make sure.
- When creating a new HTML ad, there's no way to set the height and width. You need to go back and edit these values in the Banner List page.
- Not sure if this is under your control or not -- but a few screens (e.g. Create New) take you back to the home page when submitting changes. It would be nicer to have it take you to the CopperAd page.
Hope this is helpful... Thanks again for a great plugin! -Tim
|
|
|
|
|
Logged
|
|
|
|
|