Advanced search  

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

Pages: [1] 2 3 4 5 ... 9   Go Down

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

0 Members and 1 Guest are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

Please use the new version http://forum.coppermine-gallery.net/index.php?topic=28367.0

Live demo: http://stramm.st.funpic.org/?theme=oranje
Get the theme too: http://forum.coppermine-gallery.net/index.php?topic=27438.0

new theme Tentacle: demo http://stramm.st.funpic.org/?theme=tentacle
get it here: http://forum.coppermine-gallery.net/index.php?topic=28273.0


Included in this pack
-Watermark for GD2 and Imagemagick with undo possibility
-Better thumbs... unsharp mask and cropping to an exact size
-Notification emails on comments to subscribed users
-Mini thumbs and avatar hack.. avatar next to comments, in PMs, in the profile and lil preview images in the notifications manager, possibility to use mini thumbs as lead image for categories
-Buddylist, users can become friends. Possibility for users to allow friends to view their private album
-Private message system
-Login form on top of the site for guests, buddy and PM stats instead for registered users
-Possibility to display uploader, comments number, votes number and rating instead of below the thumb on the right side of the thumb
-if user views a movie then a direct link to the movie's shown in the picinfo

This mod pack is for a standalone Coppermine 1.4.2
It may work bridged when PM, avatar, buddy, notifcation, login form etc. are turned off... however I haven't tested this

here the SQL
Code: [Select]
#better thumbs
INSERT INTO cpg142_config (name, value) values ('enable_unsharp', '0');
INSERT INTO cpg142_config (name, value) values ('unsharp_amount', '120');
INSERT INTO cpg142_config (name, value) values ('unsharp_radius', '0.5');
INSERT INTO cpg142_config (name, value) values ('unsharp_threshold', '3');
INSERT INTO cpg142_config (name, value) values ('thumb_height', '140');

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

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

#notification system
INSERT INTO cpg142_config (name, value) values ('enable_user_notification', '0');
ALTER TABLE cpg142_users ADD auto_subscribe_post tinyint(4) NOT NULL DEFAULT 1;
ALTER TABLE cpg142_users ADD auto_subscribe_comment tinyint(4) NOT NULL DEFAULT 1;
CREATE TABLE cpg142_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 cpg142_config (name, value) values ('enable_avatar', '0');
ALTER TABLE cpg142_users ADD avatar_url varchar(255) NOT NULL default '';
ALTER TABLE cpg142_comments ADD avatar_url varchar(255) NOT NULL default '';

#PMS
CREATE TABLE cpg142_pms (
id INT(10) NOT NULL AUTO_INCREMENT,
owner int(10) NOT NULL DEFAULT '0',
subject VARCHAR(120) NOT NULL DEFAULT '',
message TEXT,
sender VARCHAR(120) NOT NULL DEFAULT '',
sender_id int(10) NOT NULL DEFAULT '0',
posted int(10) NOT NULL DEFAULT '0',
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 cpg142_users ADD user_pmsmail tinyint(4) NOT NULL DEFAULT 1;

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




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

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

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



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


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


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

backup everything before you apply that mod.... database and your files

OK, some additional notes...
if you use a language file other than english... you'll have to add all new entries to it and translate it. If you do this... then that would be a nice contribution ;)
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. It's only some minor stuff

new... modpack for CPG 1.4.3
- fixed link in private message notification email
- private message bbcode buttons work now in firefox

new... modpack for CPG 1.4.3_2
-Guest comment PM link removed.
-You can have a welcome text on your index
-If you have a huge gallery you can speed up the index by either disabling statistics or enabling fast stats (performance settings. Fast stats just don't calculate private, not visible albumbs and pics). This can seriously improve MySQL performance
-Some minor improvements in themes.inc.php

If you want to use my oranje theme, you'll have to install the latest version (modpack for CPG 1.4.3_2)

modpack 1.4.3_3
-some W3C compliance improvements

don't use this modpack anymore... the next version can be found here http://forum.coppermine-gallery.net/index.php?topic=28367
« Last Edit: March 03, 2006, 10:59:06 am by Stramm »
Logged

daniel_w

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #1 on: November 29, 2005, 07:09:11 pm »

Thank you! I'm testing it right now!
Logged

daniel_w

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 10
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #2 on: November 29, 2005, 07:24:02 pm »

Okay, a few points after my first view:

- there are no options in admin.php for the new features
- the text "viewed x times" is now shown right beside instead of under the thumbs (solved - found this via phpmyadmin)
« Last Edit: November 29, 2005, 07:29:54 pm by daniel_w »
Logged

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #3 on: November 30, 2005, 04:42:06 am »

I got the following:

Template error
Failed to find block 'my_friends'(#(<!-- BEGIN my_friends -->)(.*?)(<!-- END my_friends -->)#s) in :



thoughts?
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 #4 on: November 30, 2005, 05:06:51 am »

daniel_w, sigepjedi .. I've edited my first post. Please read the 'some additional notes'

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #5 on: November 30, 2005, 05:20:03 am »

Ok...

I'll await the update to the mod pack before moving any further with this.
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 #6 on: November 30, 2005, 06:32:55 am »

changes in the language file


$lang_main_menu .... add
Code: [Select]
  'my_buddy_lnk' => 'My Friends',
$lang_get_pic_data.... replace with
Code: [Select]
$lang_get_pic_data = array(
  'n_comments' => 'comments: %s',
  'n_votes_main' => 'votes: %s',
  'n_votes' => '(%s votes)',
  'n_rating' => 'rating: %s/5',
  'n_views' => 'views: %s',
  'n_votes' => '(%s votes)',
  'posted' => 'posted by: ',
);

add a new entry
Code: [Select]
// ------------------------------------------------------------------------- //
// File theme.php
// ------------------------------------------------------------------------- //
$lang_loginform = array(
  'friends' => 'Friends',
  'request' => 'request(s)',
  'active' => 'active',
  'welcome' => 'Welcome back',
  'user' => 'Username',
  'pass' => 'Password',
  'remember' => 'Remember me',
  'pms' => 'Private Messages: ',
  'unread_total' => ' unread, total ',
);

$lang_admin_php add
Code: [Select]
'th_ex' => 'Exact',
 'wm_bottomright' => 'Bottom right',
 'wm_bottomleft' => 'Bottom left',
 'wm_topleft' => 'Up left',
 'wm_topright' => 'Up Right',
 'wm_center' => 'Center',
 'wm_both' => 'Both',
 'wm_original' => 'Original',
 'wm_resized' => 'Resized',

new:
Code: [Select]
// ------------------------------------------------------------------------- //
// File avatar_manage.php
// ------------------------------------------------------------------------- //

if (defined('AVATAR_PHP')) $lang_avatar = array(
  'manage' => 'Manage your avatar',
  'select' => 'Select an avatar from your already uploaded images',
  'stats' => 'Please make a selection',
  'available_pics' => 'You can chose from',
  'pictures' => 'pictures',
  'remove_avatar' => 'Remove current avatar',
  'remove' => 'To remove the current avatar mark the checkbox and hit \'Remove\'.',
  'title' => 'Title:',
  'img_name' => 'Image name:',
  'date_posted' => 'Date posted:',
  'selected' => 'Selected',
  'do_nothing' => '-- make selection --',
  'set_avatar' => 'Set as avatar',
  'go' => 'Go',
  'upload_first' => 'You need to to upload at least one picture before starting the manager',

  'title_a' => 'Pic Title ascending',
  'title_d' => 'Pic Title decending',
  'image_name_a' => 'Image Name ascending',
  'image_name_d' => 'Image Name decending',
  'date_a' => 'Upload Date ascending',
  'date_d' => 'Upload Date decending',
  'u_pics_on_p_pages' => '%d pictures on %d page(s)',
  'sort_by' => 'Sort by',
);

// ------------------------------------------------------------------------- //
// File subscribe.php
// ------------------------------------------------------------------------- //

if (defined('SUBSCRIBE_PHP')) $lang_subscribe = array(
  'sub' => 'Subscribe',
  'no' => 'No Subscribtions',
  'sub_already' => 'You are already subscribed to this picture',
  'sub_succ' => 'You successfully subscribed to this picture',
  'sub_not' => 'You are not subscribed to this picture',
  'sub_removed' => 'Your subscribtion has been removed',
  'manage' => 'Manage your subscribtions',
  'stats' => 'Statistics',
  'cur_sub_text' => 'You are currently subscribed to',
  'pictures' => 'pictures',
  'unsubscribe_all' => 'Unsubscribe from all pictures',
  'go' => 'Go',
  'subscribtions' => 'Subscribtions',
  'remove' => 'To remove all subscribtions mark the checkbox and hit \'Remove\'.',
  'remove_submit' => 'Remove all subscribtions',
  'check' => 'check/ uncheck all',
  'sub_first' => 'You need to be subscribed to at least one picture to start the manager',
  'do_nothing' => '-- make selection --',
  'delete_selected' => 'unsubscribe',
  'selected' => 'Selected',
  'check' => 'check/ uncheck all',
  'title' => 'Title:',
  'img_name' => 'Image name:',
  'uploader' => 'Uploader:',
  'date_posted' => 'Date posted:',
  'title_a' => 'Pic Title ascending',
  'title_d' => 'Pic Title decending',
  'owner_name_a' => 'Uploader Name ascending',
  'owner_name_d' => 'Uploader Name decending',
  'image_name_a' => 'Image Name ascending',
  'image_name_d' => 'Image Name decending',
  'date_a' => 'Upload Date ascending',
  'date_d' => 'Upload Date decending',
  'u_subscr_on_p_pages' => '%d subscribtions on %d page(s)',
  'sort_by' => 'Sort by',
);


// ------------------------------------------------------------------------- //
// File buddy_manage.php
// ------------------------------------------------------------------------- //


if (defined('BUDDY_PHP'))
{
$lang_buddy = array(
  'your_buddies' => 'Manage your buddies',
  'no_user' => 'There are no users in this box',
  'continue' => 'CONTINUE',
  'blocked' => 'Sorry, you can not request friendship. That user blocked you!',
  'already_buddies' => 'You are already buddies!',
  'adding_request' => 'Adding now your request!',
  'self' => 'Are you that lonely that you need to send a friendship request to yourself?',
  'request_already_sent' => 'You have already requested friendship. This request is still pending!',
  'already_requested' => ' has already requested friendship!',
  'added' => 'The user(s) have been added to your buddy list!',
  'link' => 'buddy_manage.php',
  'denied' => 'Buddy request denied and user blocked!',
  'deleted' => 'The selected user(s) have been deleted from your buddy list',
  'req_deleted' => 'Buddy request(s) have been deleted',
  'chose_other' => 'Please chose another box',
  'selected' => 'Selected users: ',
  'GO' => 'Go',
  'switch' => 'Switch to',
  'check_profile' => 'Check profile',
  'user_album' => 'User album',
  'last_uploads' => 'Last uploads',
  'last_comments' => 'Last comments',
  'users_in' => 'Users in',
  'users' => 'Users',
  'blocked_users' => 'Blocked users',
  'active' => 'Active friends',
  'I_requested' => 'I want to be friends with',
  'buddy_requested' => 'Users that want to be my friends',
  'blocked_users_short' => 'blocked',
  'active_short' => 'active',
  'I_requested_short' => 'my requests',
  'buddy_requested_short' => 'others requesting',
  'contains' => 'contains',
  'users_sm' => 'users',
  'in_total' => 'In total there are',
  'in_list' => '(blocked, requesting, active) in your lists.',
  'accept' => 'Accept request',
  'deny' => 'Deny request',
  'delete_blocked' => 'Delete blocked',
  'delete_buddies' => 'Delete buddies',
  'rem_request' => 'Remove request',
  'make_selection' => 'Make selection',
  'on' => 'online',
  'off' => 'offline',

 
 
  'email_subject_request' => 'wants to be your buddy at',
  'email_subject_deny' => 'denied your buddy request at',
  'email_subject_accept' => 'accepted your buddy request at',
  'email_subject_delete' => 'removed you from hir buddy list',
  'buddy_name_a' => 'Buddy Name ascending',
  'buddy_name_d' => 'Buddy Name decending',
  'date_a' => 'Date ascending',
  'date_d' => 'Date decending',
  'u_buddies_on_p_pages' => '%d buddies on %d page(s)',
);

$lang_buddy_email_request = <<<EOT
Hello {USER_NAME},

{BUDDY} wants to add you to his/ her buddy list.
Please click here to log in to accept or deny the request!
<a href="{LINK}">{LINK}</a>

{ADMIN}
EOT;

$lang_buddy_email_accept = <<<EOT
Hello {USER_NAME},

{BUDDY} accepted your request. You have added this user to your buddy list.
Please click here to check your buddy manager!
<a href="{LINK}">{LINK}</a>

{ADMIN}
EOT;

$lang_buddy_email_deny = <<<EOT
Hello {USER_NAME},

{BUDDY} has declined your request to add him/ her to your buddy list.

{ADMIN}
EOT;

}



// ------------------------------------------------------------------------- //
// File pms.php
// ------------------------------------------------------------------------- //

if (defined('PMS_PHP'))
{
$lang_pms = array(
// Common
'Messages' => 'Messages',
'Message' => 'Message',
'Save message' => 'Save message',
'Send' => 'Send',

// Messages
'Inbox' => 'Inbox',
'Outbox' => 'Outbox',
'switch' => 'Switch to',
'Box0' => 'Switch to Sent',
'Box1' => 'Switch to Inbox',
'Action' => 'Action',
'Reply' => 'Reply',
'Delete' => 'Delete',
'Quote' => 'Quote',
'Date' => 'Date',
'Status' => 'Messages status:',
'Subject' => 'Subject',
'Sender' => 'Sender',
'Receiver' => 'Receiver',
'Private Messages'=> 'Private Messages',
'PrivateMessage'=> 'Private Message',
'PrivMesIn'=> 'Private messages in',
'New message' => 'Send new message',
'managefolder' => 'Manage folder',
'Delete messages comply' => 'Are you sure you want to delete the selected messages?',
'delete' => 'delete',
'markread' => 'mark as read',
'markunread' => 'mark as unread',
'Read redirect' => 'All messages marked as read. Redirecting...',
'Mark all' => 'Mark all messages as read',
'markmessages' => 'Mark / unmark all messages in that time periode',
'markmessages_all' => 'Mark / unmark all messages',
// Viewtopic
'PM' => 'PM',
'maxmsg' => 'Maximum number of messages you can store',

// Profile
'Quick message' => 'Send private message',
'Show smilies' => 'Show smilies',

// Send or delete message
'Send to' => 'Send to',
'Send a message' => 'Send a message',
'Deletemessage' => 'Delete message',
'Del redirect' => 'Message deleted, redirecting...',
'Sent redirect' => 'Messages sent to user, redirecting...',

// Errors and messages
'No messages' => 'No messages',
'New messages' => 'There are new messages',
'No user' => 'There\'s no user with that username.',
'Full inbox' => 'Your inbox is full!',
'Inbox full' => 'Users inbox is full, you can not send you message to the user.',
'Sent full' => 'Can\'t save message to Sent, your box is full.',
'Flood start' => 'At least',
'Flood end' => 'seconds have to pass between sends. Please wait a little while and try send the message again.',


'No subject' => 'No subject',
'o_board_title' => 'Private Messages',
'Write message legend' => 'Write your message and submit',
'Subject' => 'Subject',
'Message' => 'Message',
'Hide smilies' => 'Hide smilies',
'Options' => 'Options',
'go' => 'Go',
'No message' => 'No message',
'Too long message' => 'Too long message',
'BBCode' => 'BBCode',
'img tag' => 'Image tag',
'Smilies' => 'Smilies',
'on' => 'on',
'off' => 'off',
'Bad request' => 'Bad request',
'No permission' => 'No permission',
'Image link' => 'Image link',
'Go back' => 'Go back',
'Pages' => 'Pages',
'Normal icon' => '<!-- -->',
'New icon' => 'You have new messages',
'Today' => 'Today',
'Yesterday' => 'Yesterday',
'Link separator' => ' :: ',
'Settings' => 'Settings',
'selectedmessages' => 'Selected messages',
'unreadmsg' => 'unread message',
'readmsg' => 'read message',
'reapliedmsg' => 'replied to message',

  'posted_a' => 'Date ascending',
  'posted_d' => 'Date decending',
  'sender_a' => 'Sender ascending',
  'sender_d' => 'Sender decending',
  'u_messages_on_p_pages' => '%d messages on %d page(s)',

);

$lang_pms_notify_email = <<<EOT
Hello {USER_NAME},

You have received a new private message at {SITE_NAME} from
{SENDER_NAME}. Please click here to log in and read it:
<a href="{LINK}">{LINK}</a>

If you don't want to receive these notification emails anymore
just update your profile and unmark the 'Notify me on new private
messages' checkbox.

{ADMIN}
EOT;
}




changes in config....
  'Themes settings'
Code: [Select]
  array('Display login form', 'enable_loginform', 1),

  'Album list view',
Code: [Select]
  array('Use mini thumb as category lead image','mini_as_category_lead',1), //cpg1.4

  'Thumbnail view',
Code: [Select]
  array('Display pic rating below the thumbnail', 'display_pic_rating', 1), //cpg1.3.0
  array('Display number of votes below the thumbnail', 'display_pic_voting', 1),
  array('Display info right of thumb (or below)', 'info_block_align', 1),

  'Files and thumbnails settings',   --> (change the forst entry, it's already existing, the others are new)
Code: [Select]
  array('Max dimension (width) of a thumbnail <a href="#notice2" class="clickable_option">**</a>', 'thumb_width', 0, 'f=index.htm&amp;as=admin_picture_thumbnail_max-dimension&amp;ae=admin_picture_thumbnail_max-dimension_end'), //cpg1.4
  array('Height of a thumbnail (if you use exact)', 'thumb_height', 0),
  array('Enable Mini Thumbs', 'enable_mini_thumbs', 1),
  array('Mini Thumb Width', 'mini_thumb_width', 0),
  array('Mini Thumb Height', 'mini_thumb_height', 0),

New settings
Code: [Select]
  'Thumb Sharpening',
  array('Enable Unsharp Mask', 'enable_unsharp', 1),
  array('Amount', 'unsharp_amount', 0),
  array('Radius', 'unsharp_radius', 0),
  array('Threshold', 'unsharp_threshold', 0),

  'Image watermarking',
  array('Watermark Image', 'enable_watermark', 1),
  array('Where to place the watermark', 'where_put_watermark', 18),
  array('Which files to watermark', 'which_files_to_watermark', 19),
  array('Which file to use for watermark', 'watermark_file', 0),
  array('Transparency 0-100 for entire image', 'watermark_transparency', 0),
  array('Set color transparent x (GD2 only)', 'watermark_transparency_featherx', 0),
  array('Set color transparent y (GD2 only)', 'watermark_transparency_feathery', 0),

  'Private messaging',
  array('Enable private messaging', 'pms_enabled', 1),
  array('Make links clickable', 'pms_make_links', 1),
  array('Enable smilies in private messages', 'pms_smilies', 1),
  array('Enable BBCode', 'pms_message_bbcode', 1),
  array('Enable image tag', 'pms_message_img_tag', 1),
  array('Enable email notification', 'pms_enable_email', 1),
  array('Messages user can store', 'pms_messages', 0),
  array('Date format', 'pms_date_format', 0),
  array('Time format', 'pms_time_format', 0),
  array('Flood protection, seconds till new pm can be sent', 'pms_post_flood', 0),

  'Buddies',
  array('Enable Buddy List', 'enable_buddy', 1),
  array('Email users if request/ accepted', 'enable_buddy_email', 1),
  array('Private albums but buddies can view', 'enable_buddy_private_view', 1),
  array('Display buddy album, last comments, last uploads (resource intensive)', 'buddy_enhanced_display', 1),

    'Performance settings',
//  array('Enable the ban list (2 more queries)', 'enable_bans', 1),
  array('Display buddy status info when logged in (2q)', 'display_buddy_status', 1), //cpg1.3.0
  array('Display pm status info when logged in (2q)', 'display_pms_status', 1), //cpg1.3.0
//  array('Enable gallery statistics (6 queries)','enable_stats',1),
//  array('Use fast stats - private pics counted too - saves quite some resources - stats need to be enabled','fast_stats',1),


  'User settings',
Code: [Select]
  array('Enable user notification on comments', 'enable_user_notification', 1), //cpg1.3.0
  array('Enable User Avatar (Mini Thumbs Required)', 'enable_avatar', 1),

$lang_db_input_php ... change the first line to
Code: [Select]
if (defined('DB_INPUT_PHP')) { $lang_db_input_php = array(
and at the end of it replace the ); with
Code: [Select]
  'user_comment_notify_subject' => 'Someone commented on a picture you are subscribed to at ', //cpg1.3.0
);

$lang_db_owner_comment_notify_email = <<<EOT
Hello {USER_NAME},

{COMMENTER_NAME} just commented on a pic from {OWNER_NAME}
with the title {PIC_TITLE}.
You will not get any more notifications regarding this pic till you
visit the site.

To read the comment click <a href="{IMAGE_LINK}">{IMAGE_LINK}</a>

To unsubscribe click <a href="{UNSUBSCRIBE_LINK}">{UNSUBSCRIBE_LINK}</a>

Best regards,
{ADMIN}

EOT;
}


$lang_delete_php add
Code: [Select]
  'mini_thumb' => 'mini thumb',
  'orig_pic' => 'original image',

$lang_picinfo add
Code: [Select]
  'download_URL' => 'Direct Link',
  'movie_player' => 'Play the file in your standard application',

$lang_display_comments add
Code: [Select]
  'unsubscribe' => 'Unsubscribe comment notification',
  'subscribe' => 'Get notified about new comments',

$lang_modifyalb_php add
Code: [Select]
  'me_and_buddies' => 'Me and my buddies',
$lang_register_php add
Code: [Select]
  'notify_pm' => 'Notify me on new private messages', //cpg1.3.0
  'manage_avatar' => '<a href="avatar_manage.php">Manage avatar</a>',
  'auto_subscribe_post' => 'Automatically subscribe to pictures you posted',
  'auto_subscribe_comment' => 'Automatically subscribe to pictures you commented',
  'manage_subscriptions' => '<a href="subscribtion_manage.php">Manage subscribtions</a>',
  'enable_admin_email' => 'Allow admin emails (buddy etc.)',
  'on' => 'online',
  'off' => 'offline',
 
$lang_util_php add 
Code: [Select]
  'update_thumb' => 'Only thumbnails (mini and regular)',
  'update_full_normal_thumb' => 'Everything... full sized, resized and thumbs',
  'update_full_normal' => 'Both resized and full sized (if a orig copy is available)',
  'update_full' => 'Just full sized (if a orig copy is available)',
  'delete_back' => 'Delete original image backup (if you do that you can not undo watermarking)',

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 #7 on: November 30, 2005, 06:53:59 am »

howtos... most you find in the existing threads.
To add the 'My friends' link to the menu

make sure in your language file you have the entry
Code: [Select]
  'my_buddy_lnk' => 'My Friends',
in $lang_main_menu

now we open your theme.php file and find something like

Code: [Select]
<!-- BEGIN my_gallery -->         

above add


Code: [Select]
<!-- BEGIN my_friends -->
                        <a href="{MY_BUDDY_TGT}">{MY_BUDDY_LNK}</a> ::
<!-- END my_friends -->



find ~

Code: [Select]
    if (!USER_CAN_CREATE_ALBUMS && !USER_IS_ADMIN) {
        template_extract_block($template_main_menu, 'enter_admin_mode');
        template_extract_block($template_main_menu, 'leave_admin_mode');
    }
   
     
above add ~
Code: [Select]
if (!USER_ID || $CONFIG['enable_buddy'] == 0) {
        template_extract_block($template_main_menu, 'my_friends');
}
         

find ~
Code: [Select]
        '{ALB_LIST_LNK}' => $lang_main_menu['alb_list_lnk'],         
below add ~

Code: [Select]
        '{MY_BUDDY_TGT}' => "buddy_manage.php",
        '{MY_BUDDY_LNK}' => $lang_main_menu['my_buddy_lnk'],
         
that's just a rough overview. Your theme may vary and you'll have to adapt it



Changes in the theme file...
function assemble_template_buttons, function theme_main_menu -- > here I've added the above mentioned My friends link. So if your theme soesn't use this standard functionm you'll have to chaneg your themes function

$template_thumbnail_view, function theme_display_thumbnails  -- > some lil changes to be able to move some thumb descripton from below the thumb to it's right side

$template_image_comments, function theme_html_comments  -- > to make the commenters name clickable and if PM is enabled display a PM button next to teh commenter name and to display the avatar

$template_add_your_comment, function theme_html_comments -- > subscribe / unsubscribe links

function theme_html_picinfo  -- > changes to display a clickable link to download the movie (if the displayed media is a movie) in picinfo

function theme_html_img_nav_menu -- > prepared so that it'S possible to display the owners name, id, pic title above a picture (just the tags need to be added to $template_img_navbar and it's rocking)

new function -- > function loginForm  -- > to display the loginform and the PM, buddy quick stats

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #8 on: November 30, 2005, 04:40:44 pm »

On PM, after sending a message i get:

Quote
Fatal error: Call to undefined function: display_pmsort_row() in /html/pms.php on line 689
« Last Edit: November 30, 2005, 06:18:42 pm by sigepjedi »
Logged

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #9 on: November 30, 2005, 06:04:34 pm »

Where is the following hardcoded, or being set:

 http://www.myporntal.com/vote/pms.php
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 #10 on: November 30, 2005, 06:31:02 pm »

tomorrow both will be fixed. And the language fallback will work as well.. except for the config.. .you'll have to switch to english for changing settings

Thanks for testing the stuff ;)

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #11 on: November 30, 2005, 06:32:27 pm »

Im actually using english.

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 #12 on: November 30, 2005, 06:53:26 pm »

I've updated the zip

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #13 on: November 30, 2005, 07:00:37 pm »

Great, aplying now.

Where does the users sessions get logged? Mine doesnt seem to show any users as online?
Logged

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #14 on: November 30, 2005, 07:06:17 pm »

On the pms.php, and buddy_manage.php, there are just blank boxes.... looks like something is not displaying.

on pms.php its this peice of code:

Code: [Select]
<table style="border:1px solid" cellpadding="0" cellspacing="1" border="0" width="100%">
<tr>
<td width="$proc[$box]%" class="pms_linecolor1" title="Stored messages in this folder: $tot_box[$box]">&nbsp;</td>
<td width="$proc_all_td%" class="pms_linecolor2" title="Total messages: $tot_messages">&nbsp;</td>
<td width="$proc_free%" class="pms_linecolor3" title="$lang_pms[maxmsg]: $CONFIG[pms_messages]">&nbsp;</td>
</tr>
</table>
Logged

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #15 on: November 30, 2005, 07:19:09 pm »

On pms.php

The delete selected message does not work.

When you select Delete, and Click Go... nothing happens, the form isnt submitted. Looks like its missing the actual <form>, but in adding and posting to self, it still doesnt remove the messages:

Code: [Select]
<form method="post" action="$PHP_SELF">
<td class="tablef" align="right" colspan="4">
<div class="smallfont">
$lang_pms[selectedmessages]
<select name="dowhat">
<option value="markall_read">$lang_pms[markread]</option>
<option value="markall_unread">$lang_pms[markunread]</option>
<option value="delete_messages_comply">$lang_pms[delete]</option>
</select>
<input type="hidden" name="box" value="$box" />
<input type="submit" class="button" value="$lang_pms[go]" />
</div>
</td></form>
« Last Edit: November 30, 2005, 07:24:19 pm by sigepjedi »
Logged

celeritycat

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #16 on: November 30, 2005, 07:46:55 pm »

I added the MySQL query and replaced the files from the stramzipfile, and when I try to go to my profile using theme classic I recieve this error...

Quote
While executing query "SELECT auto_subscribe_post, auto_subscribe_comment, enable_admin_email, user_pmsmail, user_name, user_email, user_group, UNIX_TIMESTAMP(user_regdate) as user_regdate, group_name, user_profile1, user_profile2, user_profile3, user_profile4, user_profile5, user_profile6, user_group_list, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_quota FROM cpg_users AS u INNER JOIN cpg_usergroups AS g ON user_group = group_id LEFT JOIN cpg_pictures AS p ON p.owner_id = u.user_id WHERE user_id ='1' GROUP BY user_id " on 0

mySQL error: Unknown column 'enable_admin_email' in 'field list'

Here is the debug info...

Quote
USER:
------------------
Array
(
    [ID] => 8a5ca64617481b882ff7ca739aaca6fb
    [am] => 1
    [liv] => Array
        (
           
  • => 5

            [1] => 4
            [2] => 2
            [3] => 36
            [4] => 25
        )

    [uid] => 1
    [sort] => ta
    [theme] => classic
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => celeritycat
    [groups] => Array
        (
           
  • => 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
(
   
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.003s)

    [1] => select * from cpg_plugins order by priority asc; (0.004s)
    [2] => delete from `thevp_coppermine1`.cpg_sessions where time<1133371611 and remember=0; (0.001s)
    [3] => delete from `thevp_coppermine1`.cpg_sessions where time<1132165611; (0s)
    [4] => select user_id from `thevp_coppermine1`.cpg_sessions where session_id=md5("2f970a09cff8ccce64dbf1b246b0b498156e99a6a1cbf1e23d44c12712d17ef2"); (0.001s)
    [5] => select user_id as id, user_password as password from `thevp_coppermine1`.cpg_users where user_id=1 (0.001s)
    [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 `thevp_coppermine1`.cpg_users AS u INNER JOIN `thevp_coppermine1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.002s)
    [7] => SELECT user_group_list FROM `thevp_coppermine1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
    [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 cpg_usergroups WHERE group_id in (1) (0.002s)
    [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `thevp_coppermine1`.cpg_sessions set time='1133375211' where session_id=md5('2f970a09cff8ccce64dbf1b246b0b498156e99a6a1cbf1e23d44c12712d17ef2'); (0.001s)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.003s)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2005-11-30 18:26:51' (0.001s)
    [13] => SELECT * FROM cpg_banned WHERE (ip_addr='67.180.151.178' OR ip_addr='67.180.151.178' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT avatar_url FROM cpg_users WHERE user_id = '1' (0.001s)
    [15] => SELECT auto_subscribe_post, auto_subscribe_comment, enable_admin_email, user_pmsmail, user_name, user_email, user_group, UNIX_TIMESTAMP(user_regdate) as user_regdate, group_name, user_profile1, user_profile2, user_profile3, user_profile4, user_profile5, user_profile6, user_group_list, COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_quota FROM cpg_users AS u INNER JOIN cpg_usergroups AS g ON user_group = group_id LEFT JOIN cpg_pictures AS p ON p.owner_id = u.user_id WHERE user_id ='1' GROUP BY user_id  (0.001s)
    [16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.002s)
)

==========================
GET :
------------------
Array
(
    [op] => edit_profile
    [theme] => classic
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.1.15-log
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
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 0
Active Links 1
Client API version 4.1.11
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/include/mysql
MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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/local/php4 | .:/usr/local/php4
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.281 seconds - 17 queries in 0.026 seconds - Album set : ; Meta set: ;

Can you please explain to me what I did wrong?
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 #17 on: November 30, 2005, 08:00:51 pm »

you've added the sql as is... but you should have modified the prefix to the one you use. Means you should have changed all occurances of cpg142_ in the sql above to cpg_

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 #18 on: November 30, 2005, 08:02:20 pm »

Quote
looks like something is not displaying.
I can't verify this.. all's working smooth. Check if you use the english.php from the zip and the fallback.inc.php

Quote
The delete selected message does not work
yup, on my to fix list

sigepjedi

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 111
Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
« Reply #19 on: November 30, 2005, 08:55:02 pm »

Quote
looks like something is not displaying.
I can't verify this.. all's working smooth. Check if you use the english.php from the zip and the fallback.inc.php


Yea... Im using those, and the most recent zip file.
Logged
Pages: [1] 2 3 4 5 ... 9   Go Up
 

Page created in 0.046 seconds with 21 queries.