forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Mod packs => Topic started by: Stramm on November 29, 2005, 05:05:42 pm

Title: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on November 29, 2005, 05:05:42 pm
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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: daniel_w on November 29, 2005, 07:09:11 pm
Thank you! I'm testing it right now!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: daniel_w 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)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi 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?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on November 30, 2005, 05:06:51 am
daniel_w, sigepjedi .. I've edited my first post. Please read the 'some additional notes'
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on November 30, 2005, 05:20:03 am
Ok...

I'll await the update to the mod pack before moving any further with this.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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)',

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on November 30, 2005, 06:04:34 pm
Where is the following hardcoded, or being set:

 http://www.myporntal.com/vote/pms.php
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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 ;)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on November 30, 2005, 06:32:27 pm
Im actually using english.

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on November 30, 2005, 06:53:26 pm
I've updated the zip
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi 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?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi 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>
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi 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>
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat 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?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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_
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi 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.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on November 30, 2005, 09:19:29 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_


A BIG THANKS ;D
and by the way, love the new version!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on November 30, 2005, 10:55:10 pm
Is there a way to have the watermark feature run over all the older images that were there prior to applying the MOD?

Its working great for all new images.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on November 30, 2005, 11:12:10 pm
Oops sorry I thought I was in the clear. Using theme classic I recieve this error when clicking on my friends(buddies) Every other link works great and thanks for the help.

Quote
While executing query "SELECT id, buddy_ok, buddy_block, buddy_id, since, u.avatar_url, u.user_name as buddy_name, o.user_ip FROM cpg_buddy as b LEFT JOIN  cpg_users as u on b.buddy_id=u.user_id LEFT JOIN  as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY buddy_name ASC LIMIT 0, 25;" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY budd' at line 1

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.004s)

    [1] => select * from cpg_plugins order by priority asc; (0.002s)
    [2] => delete from `thevp_coppermine1`.cpg_sessions where time<1133384873 and remember=0; (0.001s)
    [3] => delete from `thevp_coppermine1`.cpg_sessions where time<1132178873; (0.001s)
    [4] => select user_id from `thevp_coppermine1`.cpg_sessions where session_id=md5("aeeeb6b2c9ffe935e598621def202391156e99a6a1cbf1e23d44c12712d17ef2"); (0s)
    [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.001s)
    [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.001s)
    [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `thevp_coppermine1`.cpg_sessions set time='1133388473' where session_id=md5('aeeeb6b2c9ffe935e598621def202391156e99a6a1cbf1e23d44c12712d17ef2'); (0.001s)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2005-11-30 22:07:53' (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 count(*) FROM  cpg_buddy WHERE user_id=1 AND buddy_ok = 'YES' (0.002s)
    [15] => SELECT count(*) FROM  cpg_buddy WHERE user_id=1 AND buddy_block = 'YES' (0.001s)
    [16] => SELECT count(*) FROM  cpg_buddy_req WHERE buddy_to=1 (0.001s)
    [17] => SELECT count(*) FROM  cpg_buddy_req WHERE buddy_from=1 (0s)
    [18] => SELECT id, buddy_ok, buddy_block, buddy_id, since, u.avatar_url, u.user_name as buddy_name, o.user_ip FROM cpg_buddy as b LEFT JOIN  cpg_users as u on b.buddy_id=u.user_id LEFT JOIN  as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY buddy_name ASC LIMIT 0, 25; (0s)
    [19] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.001s)
)

==========================
GET :
------------------
Array
(
)

==========================
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.228 seconds - 20 queries in 0.022 seconds - Album set : ; Meta set: ;
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 08:43:50 am
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.

can you give me a link?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 08:46:16 am
Is there a way to have the watermark feature run over all the older images that were there prior to applying the MOD?

Its working great for all new images.

The admin tools will do this for you. If you want to undo the watermark... go there as well. For the undo turn off watermark and let the admin tools recreate fullsized and normal images. Creating mini thumbs and cropped thumbs for older images works the same.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 08:48:03 am
Oops sorry I thought I was in the clear. Using theme classic I recieve this error when clicking on my friends(buddies) Every other link works great and thanks for the help.

Looks to me like there's not all sql added with the correct prefix. Please recheck
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: ganeshcp on December 01, 2005, 09:27:11 am
does this mod have any issues?

i used the mod pack for 1.3 and now i have upgraded to 1.4.2....will i have any problems with the tables?
g
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: amirw2k on December 01, 2005, 10:11:48 am
This looks great !
I'm using a bridged gallery, so I have no use for the PM and user related mods. Is it possible to specify changes made only for the watermark  & thumbs ?

I can easily identify the database changes, but I'm not sure about the changes in the files.

Thanks,
Amir W.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 12:02:30 pm
does this mod have any issues?

i used the mod pack for 1.3 and now i have upgraded to 1.4.2....will i have any problems with the tables?
g

there are some new sql entries... you have to identify them and hut apply these... despite that there shouldn't be a problem
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 12:03:45 pm
This looks great !
I'm using a bridged gallery, so I have no use for the PM and user related mods. Is it possible to specify changes made only for the watermark  & thumbs ?

I can easily identify the database changes, but I'm not sure about the changes in the files.

Thanks,
Amir W.

have a look at the watermark mod for 1.3.x... just use the picmgmnt.inc.php from this modpack and do siilar as described in the 1.3 thread
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: ganeshcp on December 01, 2005, 02:15:04 pm
there are some new sql entries... you have to identify them and hut apply these... despite that there shouldn't be a problem

i did that and it seems to work fine. :)
a suggestion wud be to improve the interface of the pms and buddy interface...it doesn't seem very user friendly
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: ganeshcp on December 01, 2005, 03:01:24 pm
there is a small problem. the star rating pics are all displaying a "no rating" image...
http://www.bollyville.com/thumbnails.php?album=toprated

[am not sure if this is coz of this mod even or something else]

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on December 01, 2005, 05:09:36 pm
The admin tools will do this for you. If you want to undo the watermark... go there as well. For the undo turn off watermark and let the admin tools recreate fullsized and normal images. Creating mini thumbs and cropped thumbs for older images works the same.

It kind of looks like i have too many damn pictures..... YIKES!
5994 files in 995 albums and 5 categories with 56495 comments viewed 2750535 times
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 05:22:36 pm
there is a small problem. the star rating pics are all displaying a "no rating" image...
http://www.bollyville.com/thumbnails.php?album=toprated

[am not sure if this is coz of this mod even or something else]



I can't reproduce that behaviour on my test installs
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 01, 2005, 05:23:24 pm
It kind of looks like i have too many damn pictures..... YIKES!
5994 files in 995 albums and 5 categories with 56495 comments viewed 2750535 times

hmmm, I have more... 11651 files in 34 albums and 1 categories with 42407 comments viewed 2813697 times
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on December 01, 2005, 05:36:15 pm
I just limited it to 5 at a time... and it processed, but The normal_ images are still without the watermark.

I am running it as follows:

- Update thumbs and/or resized photos
 > Everything... full sized, resized and thumbs
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 01, 2005, 08:11:02 pm
Looks to me like there's not all sql added with the correct prefix. Please recheck

Well I don't know much about SQL but I think this looks ok, Maybe I am missing something?

Quote
While executing query "SELECT id, buddy_ok, buddy_block, buddy_id, since, u.avatar_url, u.user_name as buddy_name, o.user_ip FROM cpg_buddy as b LEFT JOIN  cpg_users as u on b.buddy_id=u.user_id LEFT JOIN  as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY buddy_name ASC LIMIT 0, 25;" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY budd' at line 1

And the debug info...

USER:
------------------
Array
(
    [ID] => 8a5ca64617481b882ff7ca739aaca6fb
    [am] => 1
    [liv] => Array
        (
           
  • => 4
  • [1] => 2
                [2] => 36
                [3] => 25
                [4] => 55
            )

       
[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.001s)
        [2] => delete from `thevp_coppermine1`.cpg_sessions where time<1133460315 and remember=0; (0.003s)
        [3] => delete from `thevp_coppermine1`.cpg_sessions where time<1132254315; (0.001s)
        [4] => select user_id from `thevp_coppermine1`.cpg_sessions where session_id=md5("c9c760c6c7dd2aabd3345231f64f37d1156e99a6a1cbf1e23d44c12712d17ef2"); (0.001s)
        [5] => select user_id as id, user_password as password from `thevp_coppermine1`.cpg_users where user_id=1 (0.002s)
        [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.001s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0.001s)
        [10] => update `thevp_coppermine1`.cpg_sessions set time='1133463915' where session_id=md5('c9c760c6c7dd2aabd3345231f64f37d1156e99a6a1cbf1e23d44c12712d17ef2'); (0.001s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0.001s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2005-12-01 19:05:15' (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 count(*) FROM  cpg_buddy WHERE user_id=1 AND buddy_ok = 'YES' (0.001s)
        [15] => SELECT count(*) FROM  cpg_buddy WHERE user_id=1 AND buddy_block = 'YES' (0s)
        [16] => SELECT count(*) FROM  cpg_buddy_req WHERE buddy_to=1 (0.001s)
        [17] => SELECT count(*) FROM  cpg_buddy_req WHERE buddy_from=1 (0.001s)
        [18] => SELECT id, buddy_ok, buddy_block, buddy_id, since, u.avatar_url, u.user_name as buddy_name, o.user_ip FROM cpg_buddy as b LEFT JOIN  cpg_users as u on b.buddy_id=u.user_id LEFT JOIN  as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY buddy_name ASC LIMIT 0, 25; (0.001s)
        [19] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0.001s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    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.312 seconds - 20 queries in 0.025 seconds - Album set : ; Meta set: ;
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on December 01, 2005, 11:17:21 pm
also, is it possible for the watermarking to bypass .gif files?

This would allow for animated gif to still work
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 02, 2005, 05:36:56 am
Well I don't know much about SQL but I think this looks ok, Maybe I am missing something?


Well, how should I see from the debug if you added all the SQL with the correct prefix given in post one in this thread? Start up phpmyadmin and have a look
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 02, 2005, 05:51:47 am
I just limited it to 5 at a time... and it processed, but The normal_ images are still without the watermark.

I am running it as follows:

- Update thumbs and/or resized photos
 > Everything... full sized, resized and thumbs

Checked all possible settings... all work as expected for me. Maybe you just need to reduce the number of images to process in a batch even more. Depends on your CPU usage and server settings. If it has a somehow smart setup it times out after ~5+- pics
You can wait a lil bit till I strat the 'better admin tools for 1.4x'. These will auto refresh the batch process.. you won't have to click 'continue' after every 5 pics that have been processed but go drinking a coffee or two
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 02, 2005, 05:59:09 am
also, is it possible for the watermarking to bypass .gif files?

This would allow for animated gif to still work

in picmgmnt.inc.php find in function resize_image
Code: [Select]
    if ($imginfo[2] != GIS_JPG && $imageinfo[2] != GIS_PNG && $CONFIG['GIF_support'] == 0) {
        $ERROR = $lang_errors['gd_file_type_err'];
        return false;
    }

below add
Code: [Select]
    if ($imginfo[2] == GIS_GIF) { $watermark="false"; }
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 02, 2005, 06:03:17 am
i did that and it seems to work fine. :)
a suggestion wud be to improve the interface of the pms and buddy interface...it doesn't seem very user friendly

what are your suggestions... now the user can see all what's in his 'box'. He selects all items he'd like to change. Then from a dropdown he just choses the change that should be applied to the items.... hit go and done

Of course it's possible to change the user interface... if you come up with a better one I'd be more than happy to have a look at it. Still I like the existing one ;)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 02, 2005, 10:47:24 pm
Well, how should I see from the debug if you added all the SQL with the correct prefix given in post one in this thread? Start up phpmyadmin and have a look

Well I keep getting the same error...
 
Quote
While executing query "SELECT id, buddy_ok, buddy_block, buddy_id, since, u.avatar_url, u.user_name as buddy_name, o.user_ip FROM cpg_buddy as b LEFT JOIN  cpg_users as u on b.buddy_id=u.user_id LEFT JOIN  as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY buddy_name ASC LIMIT 0, 25;" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as o on u.user_id=o.user_id WHERE buddy_ok='YES' AND b.user_id = 1 ORDER BY budd' at line 1

I looked in phpmyadmin and all the correct prefixes (cpg_...) are in place, a total of 25, but then I am not sure what errors I would even recognize "My Friends" link is the only one that shows and error, but I just don't know how to fix it. Should there be an cpg_avatar or am I missing something? What I have now is...albums, banned, bridge, buddy, buddy_req, categories, comments, config, dict, ecards, exif, favpics, filetypes, hit_stats, notify, online, pictures, plugins, pms, sessions, temp_data, usergroups, users, vote_stats, votes.
You'll have to forgive me I am php and SQL illiterate, though I am learning some!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 03, 2005, 01:32:34 am
Ok I started over and these are the errors I get from phpmyadmin. Also I am not sure if this is relevent, but when I browse the table cpg_config in phpmyadmin there is no row that refers to buddies and the tables cpg_buddy and cpg_buddy_req are both empty.

Quote
SQL query:
#buddy
INSERT INTO cpg_config( name, value )
VALUES (
'enable_buddy', '0'
);# Error
INSERT INTO cpg_config( name, value )
VALUES (
'enable_buddy_email', '1'
);# Error
INSERT INTO cpg_config( name, value )
VALUES (
'enable_buddy_private_view', '1'
);# Error
INSERT INTO cpg_config( name, value )
VALUES (
'buddy_enhanced_display', '1'
);# Error
ALTER TABLE cpg_users ADD enable_admin_email tinyint( 4 ) NOT NULL DEFAULT 1;# Error
CREATE TABLE `cpg_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 ;# MySQL returned an empty result set (i.e. zero rows).
CREATE TABLE `cpg_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 ;# MySQL returned an empty result set (i.e. zero rows).
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: kegobeer on December 03, 2005, 01:38:43 am
Code: [Select]
INSERT INTO cpg_config (name, value) VALUES ('enable_buddy', '0');
Try that.  Spacing does matter.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 03, 2005, 02:46:32 am
Code: [Select]
INSERT INTO cpg_config (name, value) VALUES ('enable_buddy', '0');
Try that.  Spacing does matter.

Tried that too, but still get the same errors and I still get errors when I try to click on the My Friends link in my gallery!
When I tried deleting and starting over everyone of my errors says the same thing
Quote
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 03, 2005, 09:30:05 am
Thanks for the help. I finally just gave up and created a new database and gallery. Some how something got seriously screwed up in my files. But there is very good news I applied the new mod and it works with my new install, YEAH! Now the real work begins to move over every picture, but at least it's working. Again thanks for the help and the mod is great!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 03, 2005, 09:58:30 am
Thanks for the help. I finally just gave up and created a new database and gallery. Some how something got seriously screwed up in my files. But there is very good news I applied the new mod and it works with my new install, YEAH! Now the real work begins to move over every picture, but at least it's working. Again thanks for the help and the mod is great!

ohh.. to late... that's you'd have had to do
Code: [Select]
ALTER TABLE cpg_users ADD avatar_url varchar(255) NOT NULL default '';
ALTER TABLE cpg_comments ADD avatar_url varchar(255) NOT NULL default '';

but I'm glad it finally's working for you
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 03, 2005, 11:48:46 am
yes it's me again!
Other than seeing a few changes in some arrays, themes.inc.php looks like greek to me. From my understanding I am to make these changes in each templates theme, but I am so lost. Can you give me a rough walk through of what needs to be added or changed and where?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 03, 2005, 01:11:05 pm
yes it's me again!
Other than seeing a few changes in some arrays, themes.inc.php looks like greek to me. From my understanding I am to make these changes in each templates theme, but I am so lost. Can you give me a rough walk through of what needs to be added or changed and where?

what theme are you using?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 03, 2005, 05:17:52 pm
had a quick look and from that I think only the hardwired theme.php needs a lil change. What has to be modified is the css and template.html. Also you need to check the new images. If you like them as they are.. then you copy them into the other themes image directories. However you can design different ones for each theme.

in the css there are these new entries...
Code: [Select]
.alt1, .alt1Active
{
background-color: #F8FAFC;
font-family: verdana, arial, helvetica, sans-serif;
}

.alt2, .alt2Active
{
background-color: #cacaca;
font-family: verdana, arial, helvetica, sans-serif;
}

.alt3
{
background-color: #ececec;
color: #000000;
}

.pms_send_a {
background: #EFEFEF ;
padding-top: 3px;
padding-right: 10px;
padding-bottom: 3px;
padding-left: 10px;
border: 1px inset;
}

.pms_send_b {
background: #cacaca;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
border: 1px inset;
}

.pms_legend
{
        margin: 10px;
}

.panel
{
background: #F8FAFC;
color: #000000;
padding: 10px;
border: 2px outset;
}

.panelsurround
{
background: #cacaca;
color: #000000;
}

.pms_linecolor1
{
background-color: #0E72A4;
font-size: 10px;
}
.pms_linecolor2
{
background-color: #71ACCA;
font-size: 10px;
}
.pms_linecolor3
{
background-color: #DEDEDE;
font-size: 10px;
}
.pms_linecolor4
{
background-color: white;
font-size: 10px;
}
.pms_linecolor5
{
background-color: #A6DAF5;
font-size: 10px;
}

.smallfont
{
font-size: 10px;
}


to template.html you need to add the tag for the loginform/ PM and buddy quick statistics
Code: [Select]
{LOGIN_FORM}
attached is the hardwired theme... rename to theme.php
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 05, 2005, 05:15:30 am
Ok everything is running smoothly (Thank you Stramm) except when I click on private messages and then click to view any messages the entire page duplicates itsself at the bottom with the exception that it shows the inbox and I get an error at the very bottom that reads...

Quote
Fatal error: [] operator not supported for strings in /www/t/thevp/htdocs/cpg142/pms.php on line 406

I tried logging in as a differentr user on a different PC and still the duplication, but no error. It doesn't matter which theme I am using. I tried searching the forms for that type of error, but nothing applies to the newest version.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 06, 2005, 08:49:08 am
Ok everything is running smoothly (Thank you Stramm) except when I click on private messages and then click to view any messages the entire page duplicates itsself at the bottom with the exception that it shows the inbox and I get an error at the very bottom that reads...

I tried logging in as a differentr user on a different PC and still the duplication, but no error. It doesn't matter which theme I am using. I tried searching the forms for that type of error, but nothing applies to the newest version.

I'm updating the zip
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: easyjava on December 06, 2005, 08:31:15 pm
If a keyword is on some pictures it display too some times on the keyword search page. How can i do if i want that it display only one time ?

(sorry for my bad englash)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: pslawinski on December 06, 2005, 10:09:03 pm
I had some problems with the way that the send script added RE: on to the beginning of every reply indiscriminently.

Here's a fix for that:

Update: 12/6/05 17:38 GMT-6 Code rewritten to remove all RE: instances and replace with only one.

pms_send.php

Find:
Code: [Select]
// Add subject
$subject = "RE: " . stripslashes($message['subject']);

Replace With:
Code: [Select]
// Add subject
$mess = explode("RE: ", stripslashes($message['subject']));
$subject = "RE: " . $mess[count($mess) - 1];


There now there will only ever be one RE: in a subject line...
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: pslawinski on December 07, 2005, 08:26:38 am
The personal message inbox has a problem where the incorrect total number of messages is displayed in in the tabs.  This can be corrected by following the steps below.

pms.php

Find:
Code: [Select]
$total= @mysql_num_rows($result);

if ($total>0) $tabs = create_tabs($total, $page, $total_pages, $tab_tmpl);

Replace With:
Code: [Select]
$total= @mysql_num_rows($result);

if ($tot_box[0]>0) $tabs = create_tabs($tot_box[0], $page, $total_pages, $tab_tmpl);
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 07, 2005, 08:56:22 am
easyjava, that's not related to the mod

pslawinski, thanks.. still the multiple Re: instances are intended behavior (same as with emails)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: pslawinski on December 07, 2005, 09:02:22 am
easyjava, that's not related to the mod

pslawinski, thanks.. still the multiple Re: instances are intended behavior (same as with emails)

Yeah, I guess this makes sense, but after a certian amount of replies the subject can be nothing but RE: RE: RE: RE: (...)

Anyways, I suppose I'm just used to Gmail where RE: is not even shown
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: pslawinski on December 07, 2005, 09:10:23 am
Stramm:

The BBCode buttons you used in pms_send.php appear to only work in IE.

Do you have a fix for this?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 09, 2005, 08:13:34 am
Hey Stramm, I'm using the Igames theme, I'm not sure which functions to edit to be able to use the PM system mod, i can't figure it out, what to put where.... a link to my gallery is www.thebeerrun.com/gallery         
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 10, 2005, 11:25:48 am
Hey Stramm, I'm using the Igames theme, I'm not sure which functions to edit to be able to use the PM system mod, i can't figure it out, what to put where.... a link to my gallery is www.thebeerrun.com/gallery         

that should work out of the box. Except maybe you use a modified theme...
if you can't get it  to work zip the theme folder and attach it to your next post

pslawinski... I'll have a look

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 10, 2005, 10:30:20 pm
that should work out of the box. Except maybe you use a modified theme...
if you can't get it  to work zip the theme folder and attach it to your next post

pslawinski... I'll have a look



Thanks Stramm, i attached my igames theme folder, i customized it a bit with my header and some adsense boxes, other then that, i cant find anywhere to send a message in a persons profile. I saw it in the classic view, but not in my igames theme, which is the set theme.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 10, 2005, 10:33:15 pm
also my avatars no longer work, it just shows  {AVATAR}        next to the name... everything worked fine in my last version before i upgraded to 1.4 , could that be a sql problem? even tho it seems to be the same sql code for the avatars as the 1.3.x version mod.      ???
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 11, 2005, 05:30:34 am
Thanks Stramm, i attached my igames theme folder, i customized it a bit with my header and some adsense boxes, other then that, i cant find anywhere to send a message in a persons profile. I saw it in the classic view, but not in my igames theme, which is the set theme.

lol... i found the problem, turns out the images just weren't in the images folder for the PM send, and PM reply... not sure if its in everyones, or i messed something up. Anyways, i still can't get the {avatar} to display properly, in the comments, it shows up fine in the "friends" page.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 12, 2005, 12:14:48 am
lol also in my PM system, now that i got it working... when it emails you a message... it gives a porn link? is that built in.... ?

Hello FrankyJ, You have received a new private message at The Beer Run Dot Com from devo. Please click here to log in and read it: http://www.myporntal.com/vote/pms.php 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}     

the "myporntal.com"  part lolol is that a spam attack on me? or is that a built in message for the PM system... just curious hahah
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 15, 2005, 03:45:36 pm
sorry, I'll fix that with the next version. This mods were custom work that got the permission to get published here on the mods board. I've tried to remove all hard links and all hardoced language stuff. Still it's possible that some stuff remained.

Anyways, if that 'porn link' (it's a 404 cause the site doesn't exist anymore) gives you a spam attack???? (how would it do that?? Does this link have your email addy??) then check your computer for spyware. I've set this site up myself and it's clean (was clean) of any disgusting stuff you can think off.

To get rid of that hardcoded link change in pms_send.php
Code: [Select]
            '{LINK}' => "http://www.myporntal.com/vote/pms.php"
to your own pms.php

as said... I'll make it an auto thingie with the next mod update


Cause of the avatar problem... It should work with the original theme.php that ships with 1.4.2. If you've changed that file you'll have to modify the functions you've added (I've listed them somewhere in this thread)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 15, 2005, 06:33:21 pm
no i didn't get spam attacked or anything, I was just wondering if something took over the link, or it was hardcoded. I fixed it now tho thank you. The new PM system is great. Now i'm going to work on fixing the Avatars thank you Stramm.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 15, 2005, 07:04:22 pm
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
-------------------------------------------------------------------------------------------------------------------------------------------------

I don't have a problem with any of those functions, those are the only modifications i can find to theme.php, which function would be for the avatar? everything else works.  The avatar works fine in some spots, just not in the comment spot. but profile, and my buddies page they all show up. Only things i've modifed on themes.php was "@" to Options, and commented out Home ont he links.  ???
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 15, 2005, 07:09:56 pm
$template_image_comments
check that variable

and have a look at the one in themes.inc.php to see how to add the avatar
basically {AVATAR} {MSG_BODY} would spit out the avatar (if set) and the comment
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 15, 2005, 07:38:09 pm
$template_image_comments
check that variable

and have a look at the one in themes.inc.php to see how to add the avatar
basically {AVATAR} {MSG_BODY} would spit out the avatar (if set) and the comment

okay, i checked out those, in my themes.php file, $template_image_comments doesn't exist, only in themes.inc.php      also, in the themes.inc.php  {AVATAR} {MSG_BODY}    is set, but in the gallery, you only see "{AVATAR}"  next to the persons name, the text.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 15, 2005, 07:40:38 pm
in the classic theme too?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 15, 2005, 07:44:04 pm
in the classic theme too?

yeah in the classic theme, $template_image_comments doesn't exist either. its version 1.4.2  says in the theme.php file even.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 16, 2005, 08:41:56 am
yeah in the classic theme, $template_image_comments doesn't exist either. its version 1.4.2  says in the theme.php file even.

yup,cause it's in themes.inc.php. If you want a different design for a certain theme you put that in the themes file and rewrite it
I wanted to know if the classic theme doesn't show the avatar too and instead displays {AVATAR}
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: ganeshcp on December 17, 2005, 05:32:02 pm
I think there should be a note regarding the extra copyright line "Modded by Stramm" that is added to coppermine while installing this mod. I know the original author has taken great effort and time to make this mod but is that line without a link truly necessary? Then we should have such credits for all mods we install.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 17, 2005, 10:06:03 pm
yup,cause it's in themes.inc.php. If you want a different design for a certain theme you put that in the themes file and rewrite it
I wanted to know if the classic theme doesn't show the avatar too and instead displays {AVATAR}

The classic theme doesn't show the avatar either, just displays {AVATAR} , how can i fix this to work on my igames theme! :(
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 17, 2005, 10:12:58 pm
I think there should be a note regarding the extra copyright line "Modded by Stramm" that is added to coppermine while installing this mod. I know the original author has taken great effort and time to make this mod but is that line without a link truly necessary? Then we should have such credits for all mods we install.

Since its free, open soruce software, a line that gives credit to the author isn't asking much at all. You could pay lots of $ for software like this. If you spent the time making mods, im sure you would want credit. I don't see any problem with his credit line at all. I'd do the same thing if i could make mods. Other mods have the same thing actually, i've seen a couple. Not a big deal, or related to this help topic really? 
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 18, 2005, 12:21:57 pm
try toi reupload the themes.inc.php from the modpack to your include directory. If it doesn't show the avatar then this should fix it.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 18, 2005, 11:32:44 pm
try toi reupload the themes.inc.php from the modpack to your include directory. If it doesn't show the avatar then this should fix it.

ok, i re installed the mod pack, the latest one even to make sure again.... tried to re input the SQL for the avatar SQL and its already set, and i updated the  database with the admin tool.  Checked the comments and it still shows "{avatar}" instead of the image, also i think the PM sign next to the authors name is broken too,  only on the comments page though, ever works on everything else... so the only time their is problems is when you view an image and it displays the comments section.  Should i reinstall a file that contains the comments section or something? I have no clue how it used to work and now it doesn't just doesn't make sense to me! I'm trying everything, the avatar and pm system is my favorite part of the mod!   ???  :'(
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 19, 2005, 09:10:30 am
please zip the file your_cpg_dir/include/themes.inc.php and attach it to your next post
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 19, 2005, 09:32:12 am
please zip the file your_cpg_dir/include/themes.inc.php and attach it to your next post


okay, i attached it, if you need anything else let me know. thanks a lot for lookin at the file. I don't know what could be wrong with it, if its the same one everyone else has, all i changed was the order of links so the Upload file link is first, and commented out Home because i have a flash header that has a home link.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: celeritycat on December 22, 2005, 10:03:00 am
Stramm, can you tell me what php files and where I need to edit in order to change the appearance of the Welcome and login on the front page? It would be nice if I could set it up with a style according to theme and not always left aligned or maybe change the button style. Stuff like that! Much appreciated.


Oh and by the way once I changed the email link to my pm everything works wonderful. Nice Job!  Happy Holidays!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 22, 2005, 12:03:37 pm
It's pretty easy... there are two (three if you count the language file) places where to edit the stuff.
1. template.html  --> have {LOGIN_FORM} where you want the welcome message/ form to appeare on the site
2. have a look at include/themes.inc.php and find at the bottom the function loginForm
  --> either modify it here to your needs (eg. display other info despite buddy and PM) or if you want it theme specific copy the entire function into your theme.php and do your modifications there
3. If you just want to change the text... just look it up in the language file (english.php - $lang_loginform). If you want to translate it... copy $lang_loginform to eg. dutch.php and do the translation

hope this helps
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: sigepjedi on December 22, 2005, 10:44:55 pm
where can i get the most recent version of this now?

im looking for the section with the avatars, mine doesnt seem to have a place for you to upload it to your profile. thanks.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: soteu00 on December 25, 2005, 11:22:43 pm
hi
i have installed your mod pack, basicly i unpload the files  and replaced the ones that were there
now i have this error hen i click on an image
Critical error
There was an error while processing a database query


http://acaciasrubras.com/coppermine/displayimage.php?album=2&pos=4

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: soteu00 on December 26, 2005, 02:05:09 am
well, i am just lost
how exactly do i install this mod pack
where are the instructions?
sorry iam new in coppermine
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 26, 2005, 02:46:16 am

okay, i attached it, if you need anything else let me know. thanks a lot for lookin at the file. I don't know what could be wrong with it, if its the same one everyone else has, all i changed was the order of links so the Upload file link is first, and commented out Home because i have a flash header that has a home link.


starmm! just wondering if you saw the attachement on this post, still can't get avatars to work  ??? >:( :'(
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 26, 2005, 10:51:18 am
starmm! just wondering if you saw the attachement on this post, still can't get avatars to work  ??? >:( :'(

oh... sorry, forgotten about it :(
checked it and it is just perfect. PM me for my email addy and then send me a zip of your cpg install please
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 26, 2005, 10:55:40 am
well, i am just lost
how exactly do i install this mod pack
where are the instructions?
sorry iam new in coppermine

this thread's all the info. Replace the files in your coppermine directory with the ones in the attached zip. Then do the SQL changes (easy with a tool like PHPMyAdmin)
Docs on how to use the mods... http://forum.coppermine-gallery.net/index.php?topic=21469.0
That's the old modpack for 1.3. There you can find some more basic info
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on December 28, 2005, 01:00:40 pm
also my avatars no longer work, it just shows  {AVATAR}        next to the name... everything worked fine in my last version before i upgraded to 1.4 , could that be a sql problem? even tho it seems to be the same sql code for the avatars as the 1.3.x version mod.      ???

Thanks for your help... found out finally what the problem is
Not only the avatar shouldn't work but the notifications and the PM link next to the commenter name shouldn't neither. This is simply cause you're using the 'multiline comments' mod. This plugin changes the variable $template_add_your_comment and the function theme_html_comments. Of course the plugin author didn't add code necessary for this modpack to work.

I've modified the plugin code a lil bit. Should work but it's untested... no guarantee
Oh, and if you enable 'Display info right of thumb' then it looks far better if you reduce 'Number of columns on thumbnail page' to 2
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: MavricK on December 28, 2005, 06:29:24 pm
Thanks for your help... found out finally what the problem is
Not only the avatar shouldn't work but the notifications and the PM link next to the commenter name shouldn't neither. This is simply cause you're using the 'multiline comments' mod. This plugin changes the variable $template_add_your_comment and the function theme_html_comments. Of course the plugin author didn't add code necessary for this modpack to work.

I've modified the plugin code a lil bit. Should work but it's untested... no guarantee
Oh, and if you enable 'Display info right of thumb' then it looks far better if you reduce 'Number of columns on thumbnail page' to 2

Thank you so much Stramm, once again you got the fix for it. I know this took a while to figure out, so thank you so much for taking time to figure it out!! It works perfect.  :D
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: easyjava on December 29, 2005, 09:21:14 am
Hello, thank you for your nice job.

I just want to know if it's possible to apply Kubrick template to your contribution. I'm sorry but i'm a newbie ! I'have tried with that : http://forum.coppermine-gallery.net/index.php?topic=24993.0 but it doesn't work.

Thank you very much
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on December 30, 2005, 04:21:08 pm
Hi Stramm, tnx for the mod, it works great !
However i do have 1 problem. Im using coppermine bridged with joomla.
To bridge those two, im using a commercial component that comes with e modified version
of coppermine.

Could you tell me which lines in which files to edit, so i can edit those withoud replacing
the whole file.


Cheers
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Joachim Müller on December 30, 2005, 04:22:51 pm
use a diff viewer like winmerge (http://winmerge.sourceforge.net/) to find out.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on December 30, 2005, 04:29:00 pm
great idea gaugau, but im using a mac.
gonna search for an alternative though

tnx :)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on January 06, 2006, 09:48:26 pm
Hello, thank you for your nice job.

I just want to know if it's possible to apply Kubrick template to your contribution. I'm sorry but i'm a newbie ! I'have tried with that : http://forum.coppermine-gallery.net/index.php?topic=24993.0 but it doesn't work.

Thank you very much

I'm sure it'll work. When I have some spare time I'll have a look... or you can read this thread, I've mentioned all theme stuff that possible may need editing
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: easyjava on January 09, 2006, 02:34:02 pm
Hello,

I have tried but there is a problem with the comments.
I have read the theme stuff, but I don't understand how it work.

 ???
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Roadster on January 11, 2006, 09:22:40 pm
The Avatar hack will this work whit a bridged phpBB ??? Would be nice to have Avatars next to the user's comments
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: 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)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: rutger on January 12, 2006, 11:28:34 am
Risking to sound like a total n00b (sometimes I doubt) I would like to ask where I can find the zip containing the modpack?

Thanks.

-- never mind, I found it in the other mod tree (1.3.5). Thanks!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on January 12, 2006, 05:17:37 pm
Risking to sound like a total n00b (sometimes I doubt) I would like to ask where I can find the zip containing the modpack?

Thanks.

-- never mind, I found it in the other mod tree (1.3.5). Thanks!

This is the thread for the CPG 1.4x modpack. The zip can be found in the very first post
If you're using CPG 1.3x then you're right to read the other modpack thread
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: BlackStyler 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');
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: easyjava 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.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: easyjava 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: 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.

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: andrewshu329 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Tranz on January 25, 2006, 01:12:12 am
You could use a diff application like WinMerge to find the differences.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Alejandrito 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! :)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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',
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: elmagic 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: elmagic 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 :(
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Nibbler 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.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: elmagic on January 30, 2006, 11:49:07 am
Thank you very much now it's work better :)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: freesouljah on January 31, 2006, 03:11:28 am
I tried adding the watermark disable addition (http://forum.coppermine-gallery.net/index.php?topic=16286.msg90883#msg90883) 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)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm 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;
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: freesouljah 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)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: eternaldrive on February 02, 2006, 12:20:59 pm
Hey Stramm have to say I like your mod alot, it has given my photo gallery added functionality (without having a forum). Is there anyway to add a pm link to the menu system (or have i stuffed up the installation somewhere).
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 02, 2006, 12:29:24 pm
Hey Stramm have to say I like your mod alot, it has given my photo gallery added functionality (without having a forum). Is there anyway to add a pm link to the menu system (or have i stuffed up the installation somewhere).

I didn't consider that for necessary. To send PMs there are a lot of possibilities to blend in a send PM link after the usernames in comments, thumb view, profile etc.

To check email just use the PM status info (to be enabled in config -> performance settings  [I know, kinda missleading naming])

However it's very easy to change the menu and add eg. a 'View PMs' link
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 04, 2006, 05:23:42 am
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

tell me what's not working. Despite a lil modification to show the pm/ buddy quickstats in template.html all seems to work

edit: ahhh, ok, found what you meant... the my_friends template error when you're not logged in. Please use the attached theme.php
You still need to add the gfx to your themes images directory and you'll need to update the css file
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: brambond on February 09, 2006, 03:13:39 pm
Really nice mod Stramm! only one question: I uploaded my watermark and it is shown on my photo's, but the edges aren't sharp and on a dark background there are white pixels around the edges...
Can you/someone tell me how I can make my picture sharp and smooth (e.g. the options which I should enable in photoshop or someting)

I appreciate your help! thanks in advance!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 09, 2006, 03:43:21 pm
a link to such a pic please and do you use GD2?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: brambond on February 10, 2006, 02:57:03 pm
Yeah, I use GD2.

Here a link to my watermark picture: http://www.raregaste.nl/fotoalbum/watermerk.png

Hope you can help :) thanks in advance!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 10, 2006, 03:15:29 pm
open the file include/picmgmnt.inc.php, find
Code: [Select]
ImageCopyMerge($dst_img,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH,$CONFIG['watermark_transparency']); //$dst_x,$dst_y,0,0,$logoW,$logoH);
//ImageCopy($dst_img,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH); //$dst_x,$dst_y,0,0,$logoW,$logoH);

replace with
Code: [Select]
//ImageCopyMerge($dst_img,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH,$CONFIG['watermark_transparency']); //$dst_x,$dst_y,0,0,$logoW,$logoH);
ImageCopy($dst_img,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH); //$dst_x,$dst_y,0,0,$logoW,$logoH);

now the transparency setting in config has no function anymore. If you want the watermark to be transparent against the background, then reduce layer transparency to eg. 50 in your paint proggy
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: brambond on February 10, 2006, 05:37:15 pm
Thanks Stramm, it works :D

I only have one question: Now my watermark pic isn't transparant at all, but I would like to have the white corners of my watermark picture to be transparant. (as you can see in my watermark-link above), the corners don't belong to the logo.

How can I do that? Thanks for your help!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 10, 2006, 07:01:41 pm
in your paint proggy make white transparent, save as png with transparency...
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 17, 2006, 01:41:09 pm
I checked the option for watermarking both files in the config, but it only watermarks the intermediate picture ? How can i fix this ?
And would it be possible to have different watermark files for the intermediate and fullsize picture ?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 17, 2006, 02:45:45 pm
link?
do you use the latest version?
and please tell me all watermark related settings
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 18, 2006, 04:30:30 am
tnx for the quick reply. i'm using the version from the attachment in the first post.
Also using the laters coppermine

www.grafflix.org/flix
Code: [Select]
Watermark image: yes
Where to place the watermark: bottom right
Which files to watermark: Both
Which file to use for watermark: /home/web/MyUsername/flix/albums/watermarks/watermark.png
Transparency 0-100 for entire image: 40
Set color transparent x (GD2 only): 0
 Set color transparent y (GD2 only): 0

Tnx for the help
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 18, 2006, 08:57:06 am
OK, had a look but wasn't able to upload a test pic due to your settings... but doesn't matter. I've seen that the first pic you've uploaded has a watermark on fullsized
http://www.grafflix.org/flix/displayimage.php?album=lastup&cat=0&pos=81

so my guess is that you've switched to 'only intermediate' and later again (after the uploads) to 'both'... just recreate the fullsized images with the admin tools... hope this helps. New uploads always have your current settings applied
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 18, 2006, 02:18:42 pm
Hi, tried it, but didnt have any effect. What pics do have the fullsize watermark ? can't find any
Ill make you an account later, maybe that would help.

Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 18, 2006, 07:03:26 pm
Hi stramm, got another question if you don't mind.
It doesnt regard this problem, but your oranje template.
I wanted to change the sidebar menu by replacing the links with images. But when
I copy the code from the sample theme, like i would do normally the menu doesn't show up, just the flags for the menu.
What should i do to change the appearance of the menu ?

Your theme is really nice btw :)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 18, 2006, 08:20:57 pm
Hmm, problem seems to be fixed  ??? Have no idea how, what or why, but it works :)

Tnx for the help.

If you have the time please checkout my post above.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 18, 2006, 09:18:57 pm
Hi stramm, got another question if you don't mind.
It doesnt regard this problem, but your oranje template.
I wanted to change the sidebar menu by replacing the links with images. But when
I copy the code from the sample theme, like i would do normally the menu doesn't show up, just the flags for the menu.
What should i do to change the appearance of the menu ?

Your theme is really nice btw :)

hmm, for the oranje theme I'd copy the function theme_main_menu and then look for eg.
Code: [Select]
        '{HOME_LNK}' => $lang_main_menu['home_lnk'],
and replace it with eg.
Code: [Select]
        '{HOME_LNK}' => "<img src='themes/oranje/images/home.gif' alt='Home' border='0' width='100' height='20'>",
do similar for all menu entries you want to replace with images

oh... and nice to hear the watermark stuff is working ;)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 19, 2006, 05:17:17 pm
Tnx again man, worked perfectly :D
Very nice mod, watermarking is done quite fast.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 20, 2006, 07:35:02 pm
Is anyone experiencing problems with report to admin when using bridged coppermine ?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 20, 2006, 07:56:33 pm
Is anyone experiencing problems with report to admin when using bridged coppermine ?

are you talking about the oranje theme? If yes, then please post in the theme's thread. Makes it far easier ;)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: kubanik on February 20, 2006, 08:30:37 pm
im sorry for this stupid question but:
where do you put the SQL? Thank you
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 21, 2006, 10:54:28 am
the 'SQL' is a description of your database setup. Best is to use a tool like phpmyadmin to do the changes (and of course make backups before)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: n3n on February 21, 2006, 03:22:23 pm
What photoshop export settins you guys use for the watermark ? Keep having weird white lines across, like a border.
Got the bridge working really well :) Only problem left is the report to admin.
I'll post some debug info later on.

cheers
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 21, 2006, 04:16:29 pm
has already been answerd here and in the watermark thread.. I assume you're using GD2
-> http://forum.coppermine-gallery.net/index.php?topic=24341.msg128162#msg128162
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 22, 2006, 01:37:29 am
Hello Stramm, thank you so much for your great mods!

I am having an issue with my gallery, and due to my uncertainty (and lack of knowledge) I decided to post my question here. I have just upgraded from version 1.3.4 to 1.4.3, and therefore lost all of your superb mods that I was using in the previous one (these were the better thembs: exact size and unsharp masking, and the watermark mod).  As a result of the upgrade the thumbnails of the albums the pictures that were uploaded before the update became stitched. I tried several combinations in the config but with no luck in succeeding the "aesthetical beauty". The strange thing is that the category thumbnails remain how they used to be before (150x150px). I was planning to install the new mods and see if they could fix that but since the gallery is bridged with phpbb I got a bit scared when I read the first post, where you say that there may be bugs with the private messages in bridged forums. And that leads to my next question - do the mods come only as a pack - I don't need all of them, maybe just the watermark and the thumbs again.

What should I do in order to fix the stitching bug and how can I let our users enjoy once again your great mods without having to install the whole modpack?

Thank you very much in advance!
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 22, 2006, 08:58:25 am
I think after the post on the first page I've made the query in question admin settable... means you can turn everything off that may produce errors in a bridged CPG (comment notification, private messages, buddy list)
Backup files and db before applying the mod.

If you just wish to undo the 'exact size' thumbs, then goto the admin tools and recreate the thumbs...

Not sure when (cause I haven't looked into bridging yet) but soon I'll guess I'll come up with phpBB bridge support

 And yes, the mods come only as pack cause maintaining them is/ was a lot of work. And it's not only each mod per se but the combinations

However all should work smooth if you disable the mentioned functions. And in
Performance settings 
Display buddy status info when logged in (2q)
Display pm status info when logged in (2q) 
 
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 22, 2006, 02:05:08 pm
Thank you for your fast reply!

It is great that you can enable/disbale the mods from the admin panel. I have backed up my db and the files to be replaced - so I'm ready to roll :). The only question that I have is whether I should preserve my old table names (that are cpg134 and not 142) while doing the MySQL Querry for the creaton of the new ones for the mods. Will there be problems if I change the 142 from the query to 134, or this will mean that I'will have to change the names as well in the php files of the mods? I guess that since I already have the cpg134_config table, I should do the query to that table and not 142, which does not exist. What about the tables created from scratch then, which are dedicated to the mods themselves (like cpg 142_pms), should I leave them that way? :-[

I think that is all, thank you again in advance.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 22, 2006, 03:43:22 pm
you just continue with the prefix you're already using
so you have to replace all cpg142_ with cpg134_
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 22, 2006, 04:27:50 pm
I am sorry, for questioning again, but MySQL finds duplicate data /because I had some of the mods installed in the previous version/ and aborts the query. Should I use the IGNORE command or should I just overwrite the old keys using ON DUPLICATE KEY UPDATE? If so, could you please tell me how should I "compose" the commands in the querry (i.e where in the query should I put them exactly) because I have very little experience with MySQL?
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 22, 2006, 07:56:34 pm
Phew, I finally managed to make the database work, everything seems OK, except the category thumbnails don't show up. And I get a "Database error" when I click on someones' username. I think it has to do something with the bridging and the avatar hack (although it is disabled in config), because it gets the user details from the phpbb's table and not from the cpg's. Here is the debug info I get:

Quote
While executing query "SELECT *, username AS user_name,
                              user_email AS user_email,
                              user_regdate AS user_regdate,
                              user_from AS user_location,
                              user_website AS user_website,
                              user_id AS user_id,
                               AS avatar_url
                              
                              FROM  `site_com_-_sql`.phpbb_users WHERE user_id = '68'" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS avatar_url
                              
                              FROM  `site_com_-_sql`.phpbb_use' at line 7

Maybe I should edit something in profile.php, but I'm just not shure what it is...

*update: I just rolled back to the original index.php and the issue with the category thumbs not showing up was solved, could you please tell me if there are any important modifications in the modded index related to the watermarking, thumb mods and detailed pic info, as they are the only ones that I am planning to use - if not, I guess I'll stay with the original index.php
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 22, 2006, 08:21:38 pm
OK, for the category image... it's set by default that it uses the new feature 'mini thumbs' (these are disabled by default.. stupid, will need to change the SQL)... so either use the minithumbs or disable that category lead image is a mini thumb
Album list view -> Use mini thumb as category lead image

for the clickable names... in thumb view even the orig coppermine has that 'problem'. But here you can disable it in config. For the clickable names in comments.. that's a mod feature. It's coded into themes.inc.php

find
Code: [Select]
<b><a href="profile.php?uid={AUTHOR_ID}">{MSG_AUTHOR}</a></b><a name="comment{MSG_ID}">&nbsp;</a>
and replace with
Code: [Select]
<b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}">&nbsp;</a>
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 22, 2006, 08:56:22 pm
The solution for the category thumbnails worked just fine, thank you!

I just remembered that before applying the mod, there were no problems with the clickable names under the thumbnails, nor in comments - on the profile page was showed even the number of photos uploaded by the user, which, in my opinion, is very cool. I tried rolling back to the original profile.php, but the problem still remains, so maybe something is wrong with another file. Looking at the query I see that unlike the other lines (user_id AS user_id) "avatar_url" is missing before AS avatar_url. Is there a way to insert it before or remove this line form the query completely? I hope this would solve the problem.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 22, 2006, 09:48:57 pm
I see what you mean... I'll have a look at this tomorrow. Still, clickable names in comments is a mod only feature
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 22, 2006, 10:07:59 pm
quick fix...
some SQL to add, replace phpbb_ with the prefix your phpbb is using

Code: [Select]
ALTER TABLE phpbb_users ADD avatar_url varchar(255) NOT NULL default '';

then open bridge/phpbb2018.inc.php (if you use version 2.0.18 or higher, otehrwise phpbb.inc.php) and find

Code: [Select]
'grouptbl_group_name' => 'group_name' // name of 'group name' field in groups table

and replace with
Code: [Select]
'grouptbl_group_name' => 'group_name', // name of 'group name' field in groups table
                        'avatar_url' => "'avatar_url'" // name of 'avatar_url' field in users table

that's it ;)

good luck
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 23, 2006, 03:21:41 pm
It worked just perfect!

Thank you for all your help and good luck with your virtual and real life projects!

Stramm modding rocks!  8)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 23, 2006, 03:32:08 pm
Thanks... actually I'm working on the bridging (phpbb 2.0.18+). So far Avatars are working (comments and in profiles). PM links next to usernames are nearly finished (for bridged CPG), then buddy list and notifications.. that should it be

so if anyone cares to test  ;)
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 23, 2006, 07:37:35 pm
phpbb bridge's finished...
-Avatars (the ones from phpbb) in cpg profile and comments, getting separately enabled in CPG config
-Notification emails on comments to subscribed users (switch in CPG config and using the PM notification switch in phpbb users profile)
-Buddy list
-PM links next to user names in thumb list and comments (of course using phpbb PM)

I just need someone who'd test it... without that I won't publish the new version
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Constantin on February 24, 2006, 07:53:54 pm
Hello, Stramm!

Sorry for the late reply. I would be glad to help you with the development of this mod. I can test it on two separate servers with coppermine and phbb bridged, and if you want you can test it there aswell to make sure everything is OK.

This is the least thing I can do, in order to show you my gratitude for your great work.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 24, 2006, 07:55:51 pm
here you go... http://forum.coppermine-gallery.net/index.php?topic=28367.0
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: eternaldrive on February 27, 2006, 06:55:20 am
Nice work with the new themes Stramm they look really good  :D! How hard was is it to modify the themes? I'm thinking about changing some modifications to tentacle, what should i focus on for changing the color scheme?

Edit I noticed the pm and buddies list next to the logo, has this been added to the current theme or is something you are currently working on. It doesn't seem to be showing up with my site.
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on February 27, 2006, 08:09:22 am
Edit I noticed the pm and buddies list next to the logo has this been added to the current theme or is something you are currently working on. It doesn't seem to be showing up with my site.

That's in the modpack. I've written some short docs when I uploaded the new version http://forum.coppermine-gallery.net/index.php?topic=28367.0
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: thoxic on March 02, 2006, 04:59:13 pm
It´s not working cause when i save in config back to 'no'
for exemple when i save: Enable private messaging with yeas, I save ad then back to config and appear 'no' again :(

and notices are:

nclude/themes.inc.php

    * Notice line 565: Undefined index: info_block_align
    * Notice line 767: Undefined index: pms_enabled
    * Notice line 780: Undefined variable: pm_link
    * Notice line 2612: Undefined index: enable_loginform
    * Notice line 1321: Undefined index: enable_buddy

/include/plugin_api.inc.php

    * Notice line 230: Only variable references should be returned by reference
    * Notice line 230: Only variable references should be returned by reference
    * Notice line 230: Only variable references should be returned by reference
    * Notice line 230: Only variable references should be returned by reference

/admin.php

    * Notice line 114: Undefined index: enable_loginform
    * Notice line 114: Undefined index: mini_as_category_lead
    * Notice line 114: Undefined index: display_pic_rating
    * Notice line 114: Undefined index: display_pic_voting
    * Notice line 114: Undefined index: info_block_align
    * Notice line 114: Undefined index: enable_mini_thumbs
    * Notice line 87: Undefined index: mini_thumb_width
    * Notice line 87: Undefined index: mini_thumb_height
    * Notice line 87: Undefined index: watermark_transparency
    * Notice line 87: Undefined index: watermark_transparency_featherx
    * Notice line 87: Undefined index: watermark_transparency_feathery
    * Notice line 114: Undefined index: pms_enabled
    * Notice line 114: Undefined index: pms_make_links
    * Notice line 114: Undefined index: pms_smilies
    * Notice line 114: Undefined index: pms_message_bbcode
    * Notice line 114: Undefined index: pms_message_img_tag
    * Notice line 114: Undefined index: pms_enable_email
    * Notice line 87: Undefined index: pms_messages
    * Notice line 87: Undefined index: pms_date_format
    * Notice line 87: Undefined index: pms_time_format
    * Notice line 87: Undefined index: pms_post_flood
    * Notice line 114: Undefined index: enable_buddy
    * Notice line 114: Undefined index: enable_buddy_email
    * Notice line 114: Undefined index: enable_buddy_private_view
    * Notice line 114: Undefined index: buddy_enhanced_display
    * Notice line 114: Undefined index: display_buddy_status
    * Notice line 114: Undefined index: display_pms_status
    * Notice line 114: Undefined index: enable_stats
    * Notice line 114: Undefined index: fast_stats
    * Notice line 114: Undefined index: enable_user_notification
    * Notice line 114: Undefined index: enable_avatar
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Stramm on March 03, 2006, 09:05:14 am
looks like you haven't applied the SQL at all or at least not correctly
and I recommend to use the newer version of this modpack http://forum.coppermine-gallery.net/index.php?topic=28367.0
Title: Re: Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification
Post by: Joachim Müller on March 03, 2006, 09:31:55 am
I suggest editing the first posting in this thread, saying that users are suppossed to use the newer version (in big, bold letters) and then locking this thread.