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   Go Down

Author Topic: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification  (Read 290050 times)

0 Members and 1 Guest are viewing this topic.

BlackStyler

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #100 on: January 13, 2006, 01:50:20 am »

update sql file for 143 i could it find it on the zip...so here is one

#better thumbs
INSERT INTO cpg143_config (name, value) values ('enable_unsharp', '0');
INSERT INTO cpg143_config (name, value) values ('unsharp_amount', '120');
INSERT INTO cpg143_config (name, value) values ('unsharp_radius', '0.5');
INSERT INTO cpg143_config (name, value) values ('unsharp_threshold', '3');
INSERT INTO cpg143_config (name, value) values ('thumb_height', '140');

#watermark
INSERT INTO cpg143_config (name, value) values ('enable_watermark', '0');
INSERT INTO cpg143_config (name, value) values ('where_put_watermark', 'southeast');
INSERT INTO cpg143_config (name, value) values ('watermark_file', '/absolute/server/path/to/watermark.png');
INSERT INTO cpg143_config (name, value) values ('which_files_to_watermark', 'both');
INSERT INTO cpg143_config (name, value) values ('orig_pfx', 'orig_');
INSERT INTO cpg143_config (name, value) values ('watermark_transparency', '40');
INSERT INTO cpg143_config (name, value) values ('watermark_transparency_featherx', '0');
INSERT INTO cpg143_config (name, value) values ('watermark_transparency_feathery', '0');

#mini_thumbs
INSERT INTO cpg143_config (name, value) values ('enable_mini_thumbs', '0');
INSERT INTO cpg143_config (name, value) values ('mini_thumb_width', '60');
INSERT INTO cpg143_config (name, value) values ('mini_thumb_height', '60');
INSERT INTO cpg143_config (name, value) values ('mini_pfx', 'mini_');
INSERT INTO cpg143_config (name, value) values ('mini_as_category_lead', '1');

#notification system
INSERT INTO cpg143_config (name, value) values ('enable_user_notification', '0');
ALTER TABLE cpg143_users ADD auto_subscribe_post tinyint(4) NOT NULL DEFAULT 1;
ALTER TABLE cpg143_users ADD auto_subscribe_comment tinyint(4) NOT NULL DEFAULT 1;
CREATE TABLE cpg143_notify (
user_id INT(10) UNSIGNED NOT NULL DEFAULT 0,
picture_id INT(10) UNSIGNED NOT NULL DEFAULT 0,
mail_sent TINYINT(4) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (user_id, picture_id)
) TYPE=MyISAM;

#avatar
INSERT INTO cpg143_config (name, value) values ('enable_avatar', '0');
ALTER TABLE cpg143_users ADD avatar_url varchar(255) NOT NULL default '';
ALTER TABLE cpg143_comments ADD avatar_url varchar(255) NOT NULL default '';

#PMS
CREATE TABLE cpg143_pms (
               id INT(10) NOT NULL AUTO_INCREMENT,
               owner int(10) NOT NULL DEFAULT '',
               subject VARCHAR(120) NOT NULL DEFAULT '',
               message TEXT,
               sender VARCHAR(120) NOT NULL DEFAULT '',
               sender_id int(10) NOT NULL DEFAULT '',
               posted INT(10) NOT NULL DEFAULT '',
               sender_ip VARCHAR(120),
               smileys TINYINT DEFAULT '1',
               status TINYINT DEFAULT '0',
               showed TINYINT DEFAULT '0',
               replied TINYINT DEFAULT '0',
               PRIMARY KEY (id)
               ) TYPE=MyISAM;
               
ALTER TABLE cpg143_users ADD user_pmsmail tinyint(4) NOT NULL DEFAULT 1;

INSERT INTO cpg143_config (name, value) values ('pms_enabled', '0');
INSERT INTO cpg143_config (name, value) values ('pms_messages', '200');
INSERT INTO cpg143_config (name, value) values ('pms_enable_email', '1');
INSERT INTO cpg143_config (name, value) values ('pms_make_links', '1');
INSERT INTO cpg143_config (name, value) values ('pms_date_format', 'l dS of F Y ');
INSERT INTO cpg143_config (name, value) values ('pms_time_format', 'h:i:s');
INSERT INTO cpg143_config (name, value) values ('pms_smilies', '1');
INSERT INTO cpg143_config (name, value) values ('pms_post_flood', '30');
INSERT INTO cpg143_config (name, value) values ('pms_message_bbcode', '1');
INSERT INTO cpg143_config (name, value) values ('pms_message_img_tag', '1');
INSERT INTO cpg143_config (name, value) values ('display_buddy_status', '1');
INSERT INTO cpg143_config (name, value) values ('display_pms_status', '1');




#buddy
INSERT INTO cpg143_config (name, value) values ('enable_buddy', '0');
INSERT INTO cpg143_config (name, value) values ('enable_buddy_email', '1');
INSERT INTO cpg143_config (name, value) values ('enable_buddy_private_view', '1');
INSERT INTO cpg143_config (name, value) values ('buddy_enhanced_display', '1');
ALTER TABLE cpg143_users ADD enable_admin_email tinyint(4) NOT NULL DEFAULT 1;

CREATE TABLE `cpg143_buddy_req` (
  `id` int(11) NOT NULL auto_increment,
  `buddy_from` int(11) NOT NULL default '',
  `buddy_to` int(11) NOT NULL default '',
  `since` int(11) NOT NULL default '',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM;

CREATE TABLE `cpg143_buddy` (
  `id` int(11) NOT NULL auto_increment,
  `user_id` int(11) NOT NULL default '',
  `buddy_id` int(11) NOT NULL default '',
  `buddy_ok` enum('YES','NO') NOT NULL default 'NO',
  `buddy_block` enum('YES','NO') NOT NULL default 'NO',
  `since` int(11) NOT NULL default '',
  PRIMARY KEY  (`id`,`user_id`)
) TYPE=MyISAM;



### performance settings, thumb desc settings
INSERT INTO cpg143_config (name, value) values ('fast_stats', '0');
INSERT INTO cpg143_config (name, value) values ('enable_stats', '0');


### misc settings
INSERT INTO cpg143_config (name, value) values ('enable_loginform', '0');


### right side adjusts
INSERT INTO cpg143_config (name, value) values ('info_block_align', '1');
INSERT INTO cpg143_config (name, value) values ('display_pic_voting', '0');
INSERT INTO cpg143_config (name, value) values ('display_pic_rating', '0');
Logged

easyjava

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 120
  • Be Tresh
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #101 on: January 13, 2006, 11:15:12 am »

easyjava: please attach a zip with the theme. I can't download it from the given source
Roadster: no, that's a hack for the standalone. But with some basic php knowledege it should be easy to find an easy way (ie use phpBB avatars instead)

Thank you.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #102 on: January 13, 2006, 06:27:47 pm »

Thank you.

fixed a few things...
-position of menu
-position of login box
-IPs display now for admin above comments
-Avatars next to comments added
there was a lil bug in theme.inc.php... please update yours. You need to copy the modpack images into the kubrick images folder too. Maybe you want to edit them or create new ones so they fit smooth into that theme

changed files: theme.php, template.html (kubrick folder), themes.inc.php (include dir)

edit: I've fixed the 'picinfo block always displays' bug too. However the theme still needs more editing. It uses no standard function from the themes.inc.php so you'll have to apply all changes. Eg. the stuff to displayrating, number of comments etc on right of the thumb

edit2: attaching the newest theme.php for Kubrick (right side adjusts working)
« Last Edit: January 14, 2006, 09:40:22 am by Stramm »
Logged

easyjava

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 120
  • Be Tresh
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #103 on: January 14, 2006, 09:01:53 pm »

fixed a few things...
-position of menu
-position of login box
-IPs display now for admin above comments
-Avatars next to comments added
there was a lil bug in theme.inc.php... please update yours. You need to copy the modpack images into the kubrick images folder too. Maybe you want to edit them or create new ones so they fit smooth into that theme

changed files: theme.php, template.html (kubrick folder), themes.inc.php (include dir)

edit: I've fixed the 'picinfo block always displays' bug too. However the theme still needs more editing. It uses no standard function from the themes.inc.php so you'll have to apply all changes. Eg. the stuff to displayrating, number of comments etc on right of the thumb

edit2: attaching the newest theme.php for Kubrick (right side adjusts working)

Thank you very much. It's perfect
Logged

easyjava

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 120
  • Be Tresh
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #104 on: January 20, 2006, 08:59:15 am »

Hello
Just a question.

How can I do for : in the comments, if a anonyme user post, the PM button be removed ?  (To avoid pms_send.php?id=0)

Thank you
Logged

younk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #105 on: January 20, 2006, 09:09:20 am »

hi im pretty new here, (first post)

Stramm could you make the mod fit to the hardwired theme. that would be really great.
I use 1.4.3.

thanks in advance.

Logged

andrewshu329

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • sasphotos.net
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #106 on: January 24, 2006, 08:16:08 pm »

Hi Stramm,
Can you please mark in the files where you made modifications? Im working with a modified version and that would help alot.
Thanks
Logged
CPG 1.4.2
Apache 2.0.54
PHP 5.0.5
MySql 4.1

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #107 on: January 25, 2006, 01:12:12 am »

You could use a diff application like WinMerge to find the differences.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #108 on: January 26, 2006, 02:26:43 pm »

Hello
Just a question.

How can I do for : in the comments, if a anonyme user post, the PM button be removed ?  (To avoid pms_send.php?id=0)

Thank you

Easy to do... scheduled for the next version

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #109 on: January 26, 2006, 02:29:47 pm »

hi im pretty new here, (first post)

Stramm could you make the mod fit to the hardwired theme. that would be really great.
I use 1.4.3.

thanks in advance.



I've just moved a four person household from one country to another and finally have internet again (for ~ 10 mins now). Still much to do here. So I'll need some days till I find some time

Alejandrito

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 31
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #110 on: January 29, 2006, 05:22:25 am »

I was tryng to get it to work with 1.4.3 but I get this error while creating the table cpg143_pms and I donˇt know why it says it's about "owner"
Code: [Select]
Error

consulta SQL:

CREATE TABLE cpg143_pms(
id INT( 10 ) NOT NULL AUTO_INCREMENT ,
owner int( 10 ) NOT NULL DEFAULT '',
subject VARCHAR( 120 ) NOT NULL DEFAULT '',
message TEXT,
sender VARCHAR( 120 ) NOT NULL DEFAULT '',
sender_id int( 10 ) NOT NULL DEFAULT '',
posted INT( 10 ) NOT NULL DEFAULT '',
sender_ip VARCHAR( 120 ) ,
smileys TINYINT DEFAULT '1',
STATUS TINYINT DEFAULT '0',
showed TINYINT DEFAULT '0',
replied TINYINT DEFAULT '0',
PRIMARY KEY ( id )
) TYPE = MYISAM ;

MySQL ha dicho: Documentación
#1067 - Invalid default value for 'owner'

Gracias! :)
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #111 on: January 29, 2006, 11:44:43 am »

yep, my bad...

replace all occurances of

int( xx ) NOT NULL DEFAULT '',
with
int( xx ) NOT NULL DEFAULT '0',

elmagic

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
  • no se
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #112 on: January 29, 2006, 03:24:39 pm »

Hello

thank you for this pack i'm going to try it :)

but i don't understand that :

Quote
If you use another theme than classic... then you'll have to change it's functions. Have a look at theme.inc.php and check what I've edited there. That'll give you an impression of what to do

if i use the fruity themes what i need to change please ?

Thanks
Logged
Coppermine Powaaa

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #113 on: January 29, 2006, 06:18:22 pm »

should work without any changes, just copy the images within the modpack to the fruity theme images dir. Maybe you want to edit them so that they fit better to your theme

elmagic

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
  • no se
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #114 on: January 29, 2006, 08:32:09 pm »

Ok but

Since I replaced file from the modpack I have this error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4096 bytes) in /home/***/www.my website.com/htdocs/include/picmgmt.inc.php on line 406
i go back to try again but after :
Upload Failure - './albums/edit/'

sometimes when I want to uploader I meet myself with one 404 while the upload.php page is here

I don't see any watermark on my images ::( maybe that my version 1.4.3 is bugued :(
Logged
Coppermine Powaaa

Nibbler

  • Guest
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #115 on: January 29, 2006, 08:40:29 pm »

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4096 bytes) in /home/***/www.my website.com/htdocs/include/picmgmt.inc.php on line 406

http://forum.coppermine-gallery.net/index.php?topic=5843.0

i go back to try again but after :
Upload Failure - './albums/edit/'

Don't use the back button while uploading.
Logged

elmagic

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
  • no se
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #116 on: January 30, 2006, 11:49:07 am »

Thank you very much now it's work better :)
Logged
Coppermine Powaaa

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #117 on: January 31, 2006, 03:11:28 am »

I tried adding the watermark disable addition that you made for 1.3, thinking that it would work w/ 1.4...but it didn't...is there something else that needs to changed to get it to work?

thanks again  8)

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #118 on: January 31, 2006, 06:30:44 am »

untested... and it's not admin settable anymore.

Code: [Select]
find all 3 occurances of
      $CONFIG['enable_watermark']
and replace with
      $enable_watermark

find

      $work_image = $image;

replace with

      $work_image = $image;

      if ($CONFIG['enable_watermark'] == '1' && (!USER_IS_ADMIN)) $enable_watermark = 1;

freesouljah

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 116
  • Can you feel the Love?
    • freesouljah.com
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #119 on: January 31, 2006, 09:23:35 am »

untested... and it's not admin settable anymore.

tested it out and it shuts the watermark off no matter what...

thanks for helping out and creating the mod btw  8)
Pages: 1 2 3 4 5 [6] 7 8 9   Go Up
 

Page created in 0.046 seconds with 19 queries.