Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification - Page 6 Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification - Page 6
 

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]

Main Menu

Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification

Started by Stramm, November 29, 2005, 05:05:42 PM

Previous topic - Next topic

0 Members and 12 Guests are viewing this topic.

BlackStyler

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');

easyjava

Quote from: Stramm on January 12, 2006, 08:47:47 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.

Stramm

Quote from: easyjava on January 13, 2006, 11:15:12 AM
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)

easyjava

Quote from: Stramm on January 13, 2006, 06:27:47 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

easyjava

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

younk

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.


andrewshu329

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
CPG 1.4.2
Apache 2.0.54
PHP 5.0.5
MySql 4.1

Tranz

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

Stramm

Quote from: easyjava 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

Easy to do... scheduled for the next version

Stramm

Quote from: younk 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.



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

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"
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! :)

Stramm

yep, my bad...

replace all occurances of

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

elmagic

Hello

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

but i don't understand that :

QuoteIf 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
Coppermine Powaaa

Stramm

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

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 :(
Coppermine Powaaa

Nibbler

Quote from: elmagic on January 29, 2006, 08:32:09 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

Quote from: elmagic on January 29, 2006, 08:32:09 PM
i go back to try again but after :
Upload Failure - './albums/edit/'

Don't use the back button while uploading.

elmagic

Coppermine Powaaa

freesouljah

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

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


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

Quote from: Stramm on January 31, 2006, 06:30:44 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)