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]