Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 3 4 5 [6] 7 8 9 10   Go Down

Author Topic: Copper Ad ! First advertisement plugin for coppermine  (Read 258104 times)

0 Members and 2 Guests are viewing this topic.

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #100 on: October 05, 2007, 02:18:41 pm »

enabled !
check the link again please
Logged
‍I don't answer to PM with support question
Please post your issue to related board

bebes007

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #101 on: October 11, 2007, 01:19:31 am »

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 :
Code: [Select]
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]
« Last Edit: October 11, 2007, 10:34:40 am by Sami »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #102 on: October 11, 2007, 08:26:13 am »

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

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #103 on: October 11, 2007, 10:44:54 am »

@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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #104 on: October 17, 2007, 03:23:34 pm »

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?  ???
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #105 on: October 18, 2007, 05:45:32 am »

post a link and more detail & example please
Logged
‍I don't answer to PM with support question
Please post your issue to related board

erika_conn

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #106 on: November 01, 2007, 08:09:59 pm »

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.
 :-[
« Last Edit: November 02, 2007, 07:33:05 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #107 on: November 02, 2007, 07:36:01 am »

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.

I 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.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #108 on: November 03, 2007, 12:14:06 pm »

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

skmdd

  • Tester
  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Celebrities Wallpapers & Photo Gallery
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #109 on: November 03, 2007, 05:29:14 pm »

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?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #110 on: November 04, 2007, 04:02:39 am »

Those are just notices and are not important ...
Logged
‍I don't answer to PM with support question
Please post your issue to related board

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #111 on: November 17, 2007, 05:18:49 am »

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!
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #112 on: November 17, 2007, 07:19:22 am »

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

disposition

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #113 on: November 17, 2007, 03:32:04 pm »

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.

Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #114 on: November 17, 2007, 03:51:07 pm »

Try changing themes to the classic theme and expand them. It could be the javascript is clashing with some code in your theme.
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 183
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #115 on: November 17, 2007, 03:54:53 pm »

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!

Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #116 on: November 17, 2007, 05:06:34 pm »

Good thanks. Good that its sorted.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #117 on: November 25, 2007, 09:44:54 am »

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.
« Last Edit: November 25, 2007, 09:49:55 am by mismo »
Logged

mismo

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #118 on: November 25, 2007, 10:23:49 am »

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

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary
Re: Copper Ad ! First advertisement plugin for coppermine
« Reply #119 on: November 29, 2007, 08:32:37 pm »

When I click Coppermine Ad on admin panel, then I get 503 error: Service Temporarily Unavailable. What's a problem?
Logged
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php
Pages: 1 2 3 4 5 [6] 7 8 9 10   Go Up
 

Page created in 0.035 seconds with 20 queries.