Copper Ad ! First advertisement plugin for coppermine - Page 6 Copper Ad ! First advertisement plugin for coppermine - Page 6
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Copper Ad ! First advertisement plugin for coppermine

Started by Sami, June 26, 2006, 04:14:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sami

‍I don't answer to PM with support question
Please post your issue to related board

bebes007

FYI to all trying to install the plugin:

I guess this plugin works great for others but for me it was a no-go last night. I tried everything possible to get this to work correctly. I followed the instructions in the readme, chmod'd everything under the sun all to no avail. I turned on Debug mode to get a better understanding of what's going on. I wish I had saved the error but basically the plugin install never adds the tables listed in the scheme.sql file. After all else had failed, I took the code in scheme and loaded the sql statement in phpmyadmin and made sure I edited the tables for my table prefix...instead of CPG_blab-blab...mine was cpg14x_ so I made those changes and added both tables. Initially the "Fatal database error" that everyone else was talking about came from the fact that the needed tables were never installed. After I had the tables installed, I went to the Coppermine web interface -Config-pluginmanager. BTW for my installation, I unzipped just the copper_ad plugin and ftp'd to my server and put in the proper DIR renaming everything as necessary. Okay back to the web interface, first i went and choose to uninstall plugin, it asked to verify "say yes" then to install crossing my fingers hoping this time it would actually work...this time it worked!!  I'm not sure what was different about my setup than others. I hope to see more features in this plugin. Can I manaully set the max size of a banner. With the initial install 100px height just doesn't get it. Most of my banners are varying sizes. It would be nice if I could batch ad ads, especially if one batch of ads were all the same size, say 460x120, have the plugin look at one DIR, tell it where you would like the banner to be placed and that's it. I"m sure this is really complicated when it comes down to coding it but just thought I would toss that out there. Here is my setting if this helps :
USER:
------------------
Array
(
    [ID] => 89afa77915c3095d340f33cad7059df4
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 105
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0.001s)
    [1] => select * from cpg14x_plugins order by priority asc; (0s)
    [2] => delete from `coppermine`.cpg14x_sessions where time<1192054187 and remember=0; (0s)
    [3] => delete from `coppermine`.cpg14x_sessions where time<1190848187; (0s)
    [4] => select user_id from `coppermine`.cpg14x_sessions where session_id=md5("b30b2c28bd36692084a47122d1270ff65e38e8ada19459c153ec20f2384c0f8d"); (0s)
    [5] => select user_id as id, user_password as password from `coppermine`.cpg14x_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `coppermine`.cpg14x_users AS u INNER JOIN `coppermine`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `coppermine`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0s)
    [10] => update `coppermine`.cpg14x_sessions set time='1192057787' where session_id=md5('b30b2c28bd36692084a47122d1270ff65e38e8ada19459c153ec20f2384c0f8d'); (0s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg14x_banned WHERE expiry < '2007-10-11 04:09:47' (0s)
    [13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='72.37.153.169' OR ip_addr='72.37.153.169' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '0'  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM cpg14x_albums WHERE category = 2 (0s)
    [16] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [17] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '2' (0s)
    [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,1 (0.001s)
    [19] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1)GROUP BY a.aid (0.001s)
    [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='89' (0s)
    [21] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '2'  ORDER BY pos (0s)
    [22] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
    [23] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [24] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '1'  ORDER BY pos (0s)
    [25] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
    [26] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
    [27] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [28] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [29] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
    [30] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0.001s)
    [31] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
    [32] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '0' (0s)
    [33] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1 (0.001s)
    [34] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (2)GROUP BY a.aid (0.001s)
    [35] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='105' (0s)
    [36] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES'  (0s)
    [37] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0.003s)
    [38] => SELECT count(*) from cpg14x_comments where pid=55 and msg_id!=0 (0s)
    [39] => SELECT count(*) from cpg14x_comments where pid=63 and msg_id!=0 (0s)
    [40] => SELECT count(*) from cpg14x_comments where pid=33 and msg_id!=0 (0s)
    [41] => SELECT count(*) from cpg14x_comments where pid=91 and msg_id!=0 (0s)
    [42] => SELECT count(*) from cpg14x_comments where pid=1 and msg_id!=0 (0s)
    [43] => SELECT count(*) from cpg14x_comments where pid=87 and msg_id!=0 (0s)
    [44] => SELECT count(*) from cpg14x_comments where pid=4 and msg_id!=0 (0s)
    [45] => SELECT count(*) from cpg14x_comments where pid=27 and msg_id!=0 (0s)
    [46] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES'  (0.001s)
    [47] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8 (0.001s)
    [48] => SELECT count(*) from cpg14x_comments where pid=105 and msg_id!=0 (0s)
    [49] => SELECT count(*) from cpg14x_comments where pid=104 and msg_id!=0 (0s)
    [50] => SELECT count(*) from cpg14x_comments where pid=103 and msg_id!=0 (0s)
    [51] => SELECT count(*) from cpg14x_comments where pid=102 and msg_id!=0 (0s)
    [52] => SELECT count(*) from cpg14x_comments where pid=101 and msg_id!=0 (0s)
    [53] => SELECT count(*) from cpg14x_comments where pid=100 and msg_id!=0 (0s)
    [54] => SELECT count(*) from cpg14x_comments where pid=99 and msg_id!=0 (0s)
    [55] => SELECT count(*) from cpg14x_comments where pid=98 and msg_id!=0 (0s)
)

==========================
GET :
------------------
Array
(
    [cat] => 0
)

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.9 - OK
------------------
mySQL version: 4.1.20
------------------
Coppermine version: 1.4.13(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 2
Active Links 3
Client API version 4.1.20
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/share/pear | .:/usr/share/pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 300 | 300
max_input_time | 120 | 120
upload_max_filesize | 20M | 20M
post_max_size | 20M | 20M
==========================
Page generated in 0.156 seconds - 56 queries in 0.013 seconds - Album set : ; Meta set: ;


[edit by Sami]
Put debug info under code block
[/edit]

Joachim Müller

Don't post debug_output unless a supporter explicitely asks for it. It only clutters this thread.

Sami

@bebes007:
- Max 100 px height was a suggestion you can set what ever you want
- This plugin is getting old I should rebuild a new version with better functionality , I'll look in your suggestion then
‍I don't answer to PM with support question
Please post your issue to related board

mykee

My problem with your plugin that when I change banner (what is active), then website is no refreshing. Try empty cache, and reload, or click to other menus, I see old banner. What is problem?  ???
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Sami

‍I don't answer to PM with support question
Please post your issue to related board

erika_conn

#106
When I try to install I get this error:
Fatal error: copperad_install(): Failed opening required 'plugins/copper_ad/include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxx/public_html/photo_gallery/plugins/copper_adv_124/codebase.php on line 36

What am I doing wrong?  I have the latest version.
:-[

Joachim Müller

You obvisously haven't unzipped the plugin properly (preserving the folder structure), or you haven't uploaded all files that belong to the plugin. Re-upload all needed files that belong to the plugin.

Quote from: erika_conn on November 01, 2007, 08:09:59 PMI have the latest version.
Latest version of what? What's the "latest version" for you anyway. Both coppermine as well as this plugin comes with version numbers - you can post what version number of each you use. That's why the version numbers exist in the first place. Posting a link to your gallery might help as well.

Sami

@erika_conn:
rename {gallery root}/plugins/copper_adv_124 folder to copper_ad and you'll be fine
‍I don't answer to PM with support question
Please post your issue to related board

skmdd

I followed the instructions in the Readme file. I used the CHMOD method. The install was successful but I am getting this on the Admin Menu page:

Notices
/plugins/copper_ad/include/init2.inc.php

    * Warning line 23: mysql_free_result(): supplied argument is not a valid MySQL result resource

/include/functions.inc.php

    * Notice line 2685: Undefined variable: i

What can be the possible problem?

Sami

‍I don't answer to PM with support question
Please post your issue to related board

disposition

I installed this plugin and it looks great, but when I click on the COPPER AD button I see "configuration" and that is good but Create New banner and Banner List does not seem to open. I just want to make sure I am not missing something.

Thanks!  Hope you can help!

Sami

You need to click on each of them to expand (javascript should be enabled)
‍I don't answer to PM with support question
Please post your issue to related board

disposition

Thanks for the reply.

I do have javascript enabled on both my browsers IE and Firefox and both seem to just stick,  Do you know if there is a setting in coppermine that will just keep them expanded?  I am sure this is a problem on my end I just can't seem to open and close them.  My config just stays open so i never thought of it as a problem.


just_some_guy

Try changing themes to the classic theme and expand them. It could be the javascript is clashing with some code in your theme.
Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

disposition

Hey how are ya?

That does the trick, I will just have to do that...at least there is an option.  If anyone knows how I can fix it other wise that would be great!

THANKS!


just_some_guy

Tambien, Hablo Español      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

mismo

#117
It would be nice, if you could add padding (or vspace&hspace) feature for the ads. They would look so much better this way.

Also another feature would be, if you could also add a banner in the bottom of the page, after the gallery pictures and thumbnails.

mismo

Also it would be more professional plugin, if it would allow to set the position of each banner individually.

mykee

When I click Coppermine Ad on admin panel, then I get 503 error: Service Temporarily Unavailable. What's a problem?
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php