forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Mod packs => Topic started by: Stramm on February 24, 2006, 01:34:35 pm

Title: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Stramm on February 24, 2006, 01:34:35 pm
[Edit GauGau]
This thread is locked - please don't try to reply to it (because you won't be able to do so), but start your own thread on the board "cpg1.4 modpack by Stramm (http://forum.coppermine-gallery.net/index.php?board=86.0)" for questions on the modpack.
[/edit]

I'm starting a new thread for the new modpack version cause it it's bridge compatible.
For now I've added bridge files for PhpBB 2.0.18, 19, SMF 1.0x and punbb
Included are my two themes Oranje and Tentacle
Tentacle: http://forum.coppermine-gallery.net/index.php?topic=28273.0
Oranje: http://forum.coppermine-gallery.net/index.php?topic=27438.0
more (ported) themes on my site

demo: http://stramm.st.funpic.org/

Short overview
-Automatically downsize watermark on small images
-Enhances Nibbler's onlinestats like in the 1.3 version (online/ offline status in buddylist and profile)
-supported languages atm. english, german, french, greek, italian (theres a txt file that describes changes for russian - modpack support board)
-Custom thumb tool (for all file types - upload an image and let the system create a thumb/ manually crop the thumb)
more info: http://forum.coppermine-gallery.net/index.php?topic=47538.0
-Admin tools auto refresh (update images/ thumbs without the need to permanently click the continue button)
-Watermark (transparent) with undo possibility (GD2, ImageMagick)
-Unsharp mask for thumbs -> crystal clear thumbs
-Possibility to give an exact size for thumbs (cropping) -> all have the same size
-Notification emails on comments to subscribed users
-Private Message system
-Avatars (profile, next to comments, PMs, buddy list)
-Mini thumbs -> I use them for the subscribtion manager (notifications) so that users not only read the pic title but also have a preview
 also the mini thumbs are used for the avatars and the buddy list
-Buddy list -> Users can make friends on your site -> quick access to friends last comments, last uploads, profile... album permissions can be set that only album owners and his buddies can view albums (doesn't work yet if you're running a bridged CPG with forum and cpg db using different MySQL users) should work from 1.4.10 v1 incl fixes on
-If user views a movie then a direct link to the movie's shown in the picinfo
-If you change a username then the names get changed now in comments and picinfo too
-Possibility to disable language auto detect
-Login form on top of the site ... when logged in buddy and PM stats instead
-Speeded up stats... galleries with a lot of pics, users can get a huge performance boost

Everything can be switched on and off in admin, you'll need to use the english language to make changes in config (or you translate stuff and add it to your language file)

Of course bridged versions use PM and avatar system of the forum. Due to how SMF works only the 'hosted' avatars get considered here.

Installation:
Before you do anything make a backup of your files and your database!!!!!!
Unpack and upload the files in the archive. Keep the folder structure intact. Then run update.php .... done (you'll get a fatal error if you open the index without running update.php)
If you have a bridged Coppermine rerun the bridgemanager

Docs in the next post
latest update: 11-08-2007 -> Modpack v1 for CPG 1.4.14 bridge support
updated:
- modpack with all fixes

how to update your modpack to v1 for CPG 1.4.14: download, upload files to your server and run update.php
get it here: http://stramm.st.funpic.org    <-- have a look in the category downloads, no need to register but of course you may and explore the features a lil bit. And sorry, the attachment file size on the board wasn't big enough anymore. So I had to put the zips on my demo site

again... download here: http://stramm.st.funpic.org
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on February 24, 2006, 01:46:14 pm
Docs


Watermark... (default off)
Settings in config->Image watermarking
Works with IM and GD2. The watermark image should be a .png file. You can make it's background transparent. The transparency settings in config will make the entire watermark transparent to the image background (ImageMagick only).
You'll have to enter the absolute or relative path to the watermark image in config. Preset is a sample watermark in coppermines images directory. So you should see this sample when enabling the watermark function and upload a test image.
There's a new nifty feature. Automatically downsizing of the watermark image when the uploaded picture is smaller than the width you set (Downsize watermark if width of an picture is smaller than entered value. That is the 100% reference point. Resizing of the watermark is linear (0 to disable)).
If you eg. enter here 1024 (like I did on my demo site), then the 100% reference is at images with a width of 1024px or bigger. If you upload pics > 1024px the watermark image won't get resized and attached with its full size. If you let coppermine create an intermediate image with a width of 400 pics, then the watermark will get downsized to 39% of it's original size. Is the fullsized eg. 512px, then the watermark will have 50% of it's orig size. Of course this sucks some CPU. And it's working excellent together with (example: http://stramm.st.funpic.org/displayimage.php?pos=-96 )
Files and thumbnails settings -> Auto resize images that are larger than max width or height (set it to the same as you used for the 100% reference... in the example 1024)
this way the watermark will always fit perfectly onto your images

To undo a watermark turn off watermarking and use the admin tools
If you use GD2 then the transparency setting in config has no function. If you want the watermark to be transparent against the background, then reduce layer transparency of your watermark image in your paint proggy to eg. 50 (this I did for the sample watermark)...

custom thumb tool... (default on)
Files and thumbnails settings -> Enable Custom Thumbs (movie, audio, document)
Image watermarking -> Watermark custom thumbs (movie, audio, document)
what it does.. easily change thumbs for movies, audio and document files. User permissions of course get considered.
If you want you can let coppermine apply a watermark (I've already prepared some with the wording audio, movie and doc). You do not need to crop or resize on the new thumbnail on your locval box. That's done when uploading.
The 'change thumb' you can always find above the thumb in approve, edit picture (click below normal size image) and edit multiple pictures (click edit next to an album). You only will see the link when you enable it in config, when the user has the right to edit that image or when it's not an image but movie, audio, document. The new watermark files need to be placed in the folder where you've put your main watermark file. If you don't use the watermark yet follow the instructions for watermarking first. The watermark files for thumb watermarking need to be named wm_audio.png, wm_document.png and wm_movie.png. You can find my samples in the folder images/
the thumb watermarking is not dependent of the config setting 'Watermark Image yes|no'. That's only for normal and fullsize images
If you've enabled minithumbs these will get created for the custom thumbs too and you can use them eg. again as category lead image (check my demo site)

Better admin tools (auto refresh)
When you're recreating thumbs/ images in the admin tools then you can set an auto refresh flag. If set, the update process auto refreshes and you won't need to click 'continue' anymore.
The big advantage.... you can set the nuimber of images to process to a  low value eg (2-5). Now the chances the script times out are limited. Means you don't need to restart the entire process and sit in front of your monitor for hours clicking 'continue' (if you've a huge number of pics in your db)

You can turn auto refresh on/ and off on the admin tools page
Update thumbs and/or resized photos (1) - (checkbox) Auto refresh (no need to click continue button anymore)

Better thumbs... (default off)
In config under 'Thumb Sharpening' and 'Files and thumbnails settings'
To crop your thumbnails you'll have to set 'Files and thumbnails settings '-> Use dimension ( width or height or Max aspect for thumbnail ) to 'exact'. Below enter your desired thumb width/ height. Now all thumbnails have the exact same size.
'Thumb Sharpening' works similar to Photoshop unsharpen mask. To learn more about it please search the web. I've preset decent values. To get even sharper thumbs increase 'Amount' to 100-150



Notification emails on comments to subscribed users (default off)
'User settings' -> Enable user notification on comments
It's doing exactly this. Check your user profile. Here you'll see two new checkboxes. 'Automatically subscribe to pictures you posted' and 'Automatically subscribe to pictures you commented'... pretty selfexplaining... If you use a bridged Coppermine then it takes the values of the forums user profile. Now have a look at an image. Scroll down to the 'Add your comment' comment area. Next to it you'll see a 'Unsubscribe comment notification' or a 'Get notified about new comments' link (depending on your status)
Admin can turn it off/ on in config 'User settings' -> Enable user notification on comments
Check your profile. Here's a link to the subscribtion manager (standalone only... if you want to use the subscribtion manager in a bridged version you need to place a link to it somewhere). Users can unsubscribe from all or certain pics. If you've enabled mini thumbs then it gets even more descriptive for the user.


Mini thumbs (default off)
Config -> Files and thumbnails settings - Enable Mini Thumbs, Mini Thumb Width - Mini Thumb Height 
They are used for the comment notification system, the avatars, the buddy list and, if you want they'll replace the huge category lead image with thumbs of a size you like. If you want to use the avatar you'll have to enable the mini thumbs to get the full functionality (if not then only user uploaded avatars will work, if enabled, users can pick one of their uploaded pics and make them their avatar). There's a lot of more you can do with them. Eg. replacing the normal thumbs in filmstrip with the mini thumbs (need theme modification). This way you can dispaly a huge bunch more without messing with your layout.....

Use mini thumb as category lead image (default off)
Config -> Album list view - Use mini thumb as category lead image

Avatar (default off)
Config -> User settings - Enable User Avatar (Mini Thumbs Required)
Check your profile as well. Here's a link to the avatar manager. Surfers who have uploaded pics can choose their avatar from them or users just can upload an image that gets resized to the mini thumbs settings (mini thumbs of course get sharpened too). If you have choosen an avatar all users will see it in your profile and next to your comments, PMs, in the buddy list etc. If you use a bridged Coppermine your forums avatars gets used instead

Buddylist (default off)
Have a look at the config. Users can request friendship in profile. In the main menu you'll have a new link 'My Friends': Here you manage your friends. Accept, delete, block, unblock and watch your friends list. You can quick view all your buddies last comments, last uploads and user albums. Possibility to include PM etc. If admin has enabled private albums then users have another option in th album manager. They can make albums private but allow buddies to view them.

Login form on top of the page (default off)
Config->Themes settings
This login form will be visible below the top menu if you enable it in config (config->Language, Themes & Charset settings ). If you have the buddy list enabled logged in users will see buddy quick stats (eg. Friends: 3 request, active 15). Otherwise users just see a 'Welcome back USERNAME'... use it only when you haven't a bridged coppermine

Additional info when logged in (default off)
Config -> Performance settings -> Display buddy status info when logged in, Display pm status info when logged in
displays additional info when a user's logged in, PM info only when you don't use a bridged coppermine


Performance hacks
Config -> Performance settings ->
Enable gallery statistics (enabled, coppermine default) 
Use fast stats (default off)
This will speed up or disable the album info (X files in X albums and X categories with X comments viewed X times)
When you use fast stats Coppermine counts all images and albums, even private ones a user won't be able to see. In tests with a huge gallery this improved performance by a factor of 2-3

Disable language auto detect (default off)
Config -> Language & Charset settings -> Enable language auto detect

Move info from below the thumb to the right of it (default off)
Config -> Thumbnail view -> Display info right of thumb (or below)
yes --> info on the right, no (default) --> below
Here's another little change, you can now display even the comment count below (or right of) the thumb
Config -> Thumbnail view -> Display number of comments below the thumbnail
Config -> Thumbnail view -> Display pic rating below the thumbnail
Config -> Thumbnail view -> Display number of votes below the thumbnail

PM System
Config -> Private messaging (default off)
If you use a bridge, then your forum's PM system gets used
If turned on there'll be PM icons next to usernames in thumb view, comments. If you use my thumes then above the image (normal view) the uploader name and a PM icon will be. PM links in the profile and the buddy list too
Additional features: links, BBCode, smilies, images, flood protection, you can set the number of max messages, notification

Nibbler's onlinestats enhancement
If you've installed Nibblers onlinestats and enabled it (adding 'onlinestats' to config -> Album list view ->The content of the main page) you'll see online / offline text+images in the users profile and in the buddy list

Manually crop thumbs / replace thumbs for images and media
1. Either next to an album click 'edit files' or below the intermediate image click 'edit file information'. Now you'll find above the thumb a link 'change thumb'. That's not really new for modpack users but read on.
2. Click the change thumb link and find the 'changeThumb.php' interface. Now you not only can create new thumbs for media files but also for images. You can upload new images or (if the original is an image) create the thumb from the image again. Also you can decide if you want to let the system automatically create thumbs or do that manually to find the best part of the image.
3. If you decide to upload a new image to create a thumb from that you have the possibility to check the checkbox 'Manually crop after upload'. If you do that, manually cropping is enabled, if not, the system auto crops the image (of course that's faster). If you manually crop, the image loads and a box appeares that indicates the area that will be cropped. This area has a min size of your thumb dimensions and will keep the aspect. So far I've tested with the modpacks 'exact size' thumbs and did some quick'n dirty tests with 'width' and 'height'. When you've found the part of the image you want to use as thumb click the 'save' button. Done... you just created a new custom thumb for your picture or media file.
4. a) Either upload a image to use as base for cropping
      aa) manually crop (checkbox 'Manually crop after upload')
      bb) auto crop (don't check 'Manually crop after upload')
    b)
       aa) click (if the orig is an image) 'Use the original image as base to crop the thumb' and you can manually crop the thumb from the original image
     c) check the checkbox 'Remove current thumb' and click the button 'Remove current thumb' to delete the custom thumb. If it's a media file, then the media icon will display, if it's an image... then no thumb will display anymore.
more info/ screenshots: http://forum.coppermine-gallery.net/index.php?topic=47538.msg227090#msg227090
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Constantin on February 24, 2006, 08:06:28 pm
Great! I am startindg to back up the files which will have to be replaced and as soon as I am ready I will report the results here. If you want we can exchange somekind of IM info so that we can coordinate faster.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Constantin on February 24, 2006, 08:57:34 pm
OK, so far I have changed all the php files in the gallery dir and all works well at first view. I am now going to perform a detailed isnpection of the functions, but before that I want to ask you something - should I run the sql query, having in mind that I already ran it when I applied the non-bridge-able mod yesterday. Do you want to set up an account on my site so that you can check things yourself? If so, please PM me.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on February 25, 2006, 09:41:52 am
It's save top run update.php... if the SQL entries are already existing they won't get changed. If not, they get added

If you'd like you can pm me your URL and a test user account. Much appreciated  ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: andrewshu329 on February 25, 2006, 04:00:57 pm
Hi Stramm,
One question:
Is it possible, when using squared thumbnails, for the image to not be distorted?
Thanks,
Andrew
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on February 25, 2006, 04:07:41 pm
Hi Stramm,
One question:
Is it possible, when using squared thumbnails, for the image to not be distorted?
Thanks,
Andrew

of course... that's the purpose of the mod and not to have distorted crap. Have a look at my demo site (freehost, often down lately ...) http://stramm.st.funpic.org/
If you don't start from scratch but have existing images in the db then you need to run the admin tools and recreate the thumbs
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xplicit on February 26, 2006, 01:16:35 am
I'm rebuilding my ancient coppermine version and allthough I have written a lot of mods myself including buddy list and a PM system in the past I now have to start from scratch again and decided to install stramms  mod on a clean install but it seems to have a few problems...

I cant send buddy requests from someones profile page link will display:

Code: [Select]
buddy_manage.php?event=make&id=
And also private messages are not correct formatted, link will display:

Code: [Select]
pm_send.php?id=
Also the name in the profile is not shown.

It displays the correct profile though but it seems it doenst pick up the user id

I can however send private messages from the pictures itself (in the text above the picture :  from user PM)

Perhaps some screenshots make it more clear.

Am I the only one experiencing this?

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fpicserver.student.utwente.nl%2Fview_image.php%2F9YSS5XV48444&hash=3c99d05b94af5d17deb8f6a0e6a5d65949b542d3)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on February 26, 2006, 07:06:16 am
unbridged coppermine... weird, I can't reproduce that error. So it doesn't get the user name, id but additional stuff (joined, comments etc)
Can you try to reupload profile.php and all files in bridge/

edit: I've tried to save a query in profile.php... if you don't use the avatar you'll need to do this modification. The next version will have it included (for version 1.4.4 that'll be out soon)
open profile.php, find
Code: [Select]
            //$user_data = $cpg_udb->get_user_infos($uid);and replace with
Code: [Select]
if (!$CONFIG['enable_avatar']) {
                         $user_data = $cpg_udb->get_user_infos($uid);
}

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xplicit on February 26, 2006, 12:19:22 pm
Hi,

Did some test again today and problem disappeared suddenly.. (before reading your post by the way so without your suggested change)

What I changed was I added another user.

When I got the error I had as users:

* administrator
* test

testuser could not send things or see things from to the administrator, neither could de administrator do things to the testuser

I added a 3'th user today and now it suddenly works...

I will look further today if I can find the little nasty bug.

only 2 users is never the case in galleries so I think its not a big issue (as long as we know where it's comming from)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on February 26, 2006, 01:38:28 pm
k, I've figured it out. Hasn't to do anything with the user count but with enabling/disbaling the avatar. First thing to do is checking if user has a avatar (that's cause of the profile.php layout). Now to save a query I can read with the avatar all other user data.
But when the avatar is disable then the userdata won't get read.
So the fix avbove is necessary. I've changed it a lil bit so it won't do the redundant query when the avatar is enabled
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xplicit on February 26, 2006, 01:47:24 pm
Yeahh!

That must be it!

I indeed also enabled the avatar in between this operations!

Solved :) Great work!



Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: nem3sis on February 27, 2006, 11:43:09 am
very nice work that is. will try to integrate that into my coppermine. thx !!!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: PepoElMaster on February 27, 2006, 05:11:19 pm
Just installed the mod pack.
i reinstalled Coppermine becouse i was testing it. I drop averything on the DB, and all the files on the gallery directory. Uploaded cpg1.4.4, runed install.php

Then I upload the mod pack and run update.php
I selected Oranje as theme and English as language, but nothing new is showing on the configurations... No option to activate modpck features... What could be the problem?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Stramm on February 28, 2006, 08:09:38 am
check if you uploaded everything in the correct location. It's mandatory that you keep the folder structure intact.
Run update.php again and look for the last line ... it should be INSERT INTO cpg144_bridge (name, value) values ('avatar_path', '') Already Done

in the config enable 'Display language list'... confirm and now chose  'english US'
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: free on March 02, 2006, 09:50:46 am
Hi! This is the very best Mod i've ever seen for coppermine! thanks!

But i have e little problem with the Watermark option: If I have checked the option "Both" in "Which files to watermark" I have the Watermark only on the resized, but not on the orignial size pic. Could you help me?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: erroneus on March 02, 2006, 11:10:32 am
What edits do I have to make to my Eyeball theme to make it compatible with your mod pack?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: n3n on March 02, 2006, 02:51:26 pm
Hi Stramm. I was wondering, I would like to for my intermediate and fullsize images to have different watermarks.
How hard would it be to copy the code for the watermarking. Could you give me a hint in the right direction where i should look ?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: farhan on March 02, 2006, 11:50:56 pm
what modifications do i need to do to the theme to show Mini thumbs in film strips ?

thanks for the wonderfull mod :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: MyWorld2k on March 03, 2006, 03:56:33 am
thanks for this great mod!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 03, 2006, 08:06:58 am
Hi! This is the very best Mod i've ever seen for coppermine! thanks!

But i have e little problem with the Watermark option: If I have checked the option "Both" in "Which files to watermark" I have the Watermark only on the resized, but not on the orignial size pic. Could you help me?

I've heared that once before and it was a temp thing. I guess an overloaded server or similar. If you can post an URL and maybe pm me a testuser account I can have a look
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 03, 2006, 08:14:14 am
What edits do I have to make to my Eyeball theme to make it compatible with your mod pack?

most themes are compatible by default. You only need to add the tag {LOGIN_FORM} in template.html where the loginform and the PM/ buddy info should appeare
And you need to copy some css from classic theme to eyeball theme and adapt colors (that's css necessary especially for PM and buddy system)  -- starting from .alt1, .alt1Active    to     .smallfont
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 03, 2006, 08:25:42 am
Hi Stramm. I was wondering, I would like to for my intermediate and fullsize images to have different watermarks.
How hard would it be to copy the code for the watermarking. Could you give me a hint in the right direction where i should look ?


you've to functions in picmgmnt.inc.php
add_picture and resize_image
resize_image... change it to eg
Code: [Select]
resize_image($src_file, $dest_file, $new_size, $method, $thumb_use, $watermark="false", $sharpen=0,fullsize_wm="false")fullsize_wm="false" is new...

if false then the watermark image stays $CONFIG['watermark_file'] else you change it to your desired one
here for GD2:
Code: [Select]
$logoImage = ImageCreateFromPNG($CONFIG['watermark_file']);
add_picture: needs changes where it checks if the orig needs a watermark and calls the resize_image function... add fullsize_wm="true"
Code: [Select]
if (!resize_image($work_image, $image, $max_size_size, $CONFIG['thumb_method'], $resize_method, 'true',,'true'))
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 03, 2006, 08:44:29 am
what modifications do i need to do to the theme to show Mini thumbs in film strips ?

thanks for the wonderfull mod :)

ahhh... nice idea ;)
copy over the function theme_display_film_strip from themes/sample/theme.php to the theme.php you're using
find in that theme....
Code: [Select]
    foreach($thumb_list as $thumb) {
        $i++;
and below add
Code: [Select]
if ($CONFIG['enable_mini_thumbs']){
        $thumb['image']=preg_replace('/'.$CONFIG['thumb_pfx'].'/',$CONFIG['mini_pfx'],$thumb['image']);
        $thumb['image']=preg_replace('/height="[^"]*"/','height="'.$CONFIG['mini_thumb_height'].'"',$thumb['image']);
        $thumb['image']=preg_replace('/width="[^"]*"/','width="'.$CONFIG['mini_thumb_width'].'"',$thumb['image']);
}
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: n3n on March 03, 2006, 01:26:06 pm
Ok tnx alot man, gonna try to fix it, if it works ill post it for others.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: free on March 03, 2006, 02:01:04 pm
Hello Stramm
I found the error: if I insert the pictures with "Upload file", the Watermark is on both pictures. If I upload the pictures per FTP and insert the pictures with the function "Batch add files", the Watermark ist only on one picture (the original pic isn't watermarked). Is there a possibility to fix this little error?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Stramm on March 03, 2006, 02:57:31 pm
Hello Stramm
I found the error: if I insert the pictures with "Upload file", the Watermark is on both pictures. If I upload the pictures per FTP and insert the pictures with the function "Batch add files", the Watermark ist only on one picture (the original pic isn't watermarked). Is there a possibility to fix this little error?

ther orig_ picture (the one with the prefix orig_) never gets watermarked. It's the backup file. The one without any prefix is the fullsized image. I've tried with and without batchadd, with and without resize... I can't reproduce your problems.
Maybe you can give me some more info... GD2, ImageMagick...size settings (pixel, kb) etc
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: farhan on March 03, 2006, 10:30:39 pm
thanks a lot Stramm :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: coookie on March 03, 2006, 10:56:17 pm
Hi Stramm,
thank you for sharing this mod! I've installed it on my v1.4.4 gallery and it works perfectly, except now anonymous users can't see their comments anymore. My permissions are set so that no one has to register to view the gallery and guests can post and read comments. Is there any way I can keep it that way but make the comments show up again for everyone to see? ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 04, 2006, 11:21:22 am
Hi Stramm,
thank you for sharing this mod! I've installed it on my v1.4.4 gallery and it works perfectly, except now anonymous users can't see their comments anymore. My permissions are set so that no one has to register to view the gallery and guests can post and read comments. Is there any way I can keep it that way but make the comments show up again for everyone to see? ???

yup, lil bug related to bridge compatibility... very easy to fix
in bridge/udb_base.inc.php find the function get_comments (at bottom)
in the sql statement find INNER JOIN and replace it with LEFT JOIN
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: coookie on March 04, 2006, 11:41:20 am
It worked! Thank you so much  :D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Thierry on March 07, 2006, 03:31:01 am
Hi,

It seems to be a great modpack!

But in my conf, when I want to activate something (ie pms), it tells me that the conf has been updated, but it's not saved, so.. i can't enable new features, any idea why?

And a second question about my theme. I'm using "rainy day" theme, and usually the numbers of image views is under the image, in the same place as comments. And after the update, the number of views is right to the image, so.. it doesn't look aligned as u can see in the attachement, any advice?

Thank you in advance!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 07, 2006, 09:47:18 am
if the config settings don't get saved then usually the SQl hasn't been updated entirely. Try to run update.php again

You're describing a new feature here... read that part in the documentation (post 2) - 'Move info from below the thumb to the right of it (default off)' and view the demo how it looks in action http://stramm.st.funpic.org/
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 07, 2006, 10:46:50 pm
Hello

When i want to open a picture i have an error :
Code: [Select]
While executing query "SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid, avatar_url FROM cpg143_comments WHERE pid='38' ORDER BY msg_id ASC" on 0

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

Can you help me ?

Code: [Select]
USER:
------------------
Array
(
    [ID] => xxx
    [am] => 1
    [lang] => french
    [liv] => Array
        (
            [0] => 39
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => easyjava
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0s)
    [1] => select * from cpg143_plugins order by priority asc; (0s)
    [2] => delete from `treshch`.cpg143_sessions where time<1141764134 and remember=0; (0s)
    [3] => delete from `treshch`.cpg143_sessions where time<1140558134; (0s)
    [4] => select user_id from `treshch`.cpg143_sessions where session_id=md5("xxx"); (0s)
    [5] => select user_id as id, user_password as password from `treshch`.cpg143_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.avatar_url AS avatar_url, u.enable_admin_email AS notify, u.auto_subscribe_post AS auto_subscribe_post, u.auto_subscribe_comment AS auto_subscribe_comment, u.user_group+100 AS group_id FROM `treshch`.cpg143_users AS u INNER JOIN `treshch`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `treshch`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg143_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
    [10] => update `treshch`.cpg143_sessions set time='1141767734' where session_id=md5(xxx); (0s)
    [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-03-07 21:42:14' (0s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='85.218.27.85' OR ip_addr='85.218.27.85' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT title,keyword from cpg143_albums WHERE aid='1' (0s)
    [15] => SELECT COUNT(*) from cpg143_pictures WHERE ((aid='1'  ) )   (0s)
    [16] => SELECT * from cpg143_pictures WHERE ((aid='1'  ) )   ORDER BY pid DESC  LIMIT 1 ,1 (0.001s)
    [17] => SELECT title, comments, votes, category, aid FROM cpg143_albums WHERE aid='1' LIMIT 1 (0s)
    [18] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid, avatar_url FROM cpg143_comments WHERE pid='38' ORDER BY msg_id ASC (0s)
)

==========================
GET :
------------------
Array
(
    [album] => 1
    [pos] => 1
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.12-log
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.12
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/opt/mysql/include/mysql
MYSQL_LIBS -L/opt/mysql/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 | set_time_limit,passthru,exec,system,popen,shell_exec,proc_open | set_time_limit,passthru,exec,system,popen,shell_exec,proc_open
file_uploads | On | On
include_path | .:/opt/php/lib/php | .:/opt/php/lib/php
open_basedir | /home/www/987cf041e7728844b29fdfd59e89e6c0/:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail_r -t -i -fwebmaster@tam.ch | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 10 | 10
max_input_time | 60 | 60
upload_max_filesize | 48M | 48M
post_max_size | 48M | 48M
==========================
Page generated in 0.147 seconds - 19 queries in 0.001 seconds - Album set : ; Meta set: ;
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Thierry on March 08, 2006, 01:56:34 am
You're describing a new feature here... read that part in the documentation (post 2) - 'Move info from below the thumb to the right of it (default off)' and view the demo how it looks in action http://stramm.st.funpic.org/

Yeah I found it thanks. But still can't update configuration..

if the config settings don't get saved then usually the SQl hasn't been updated entirely. Try to run update.php again

I've tried to update again, it seems to be ok, I've some information "OK" or "Already done", Here is a link of the screenshot of the result of the update (http://manoirpub.ch/photos/update.gif), can you check it please? It still don't work.. I can save some information (like the displaying of language list), but the most of the new configuration (modpack) can't be changed..

Think I need some help! :p
Thank you in advance.

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 08, 2006, 02:56:15 am
I'm having some trouble installing it, and after browsing through the code a little, I guess it's the same problem as my french friend one post up.
Error is:
Code: [Select]
Template error
Failed to find block 'my_friends'(#(<!-- BEGIN my_friends -->)(.*?)(<!-- END my_friends -->)#s) in :
(yadda yadda)

I guess it happens because some variables from the mod, were added on lang/english.php only.
So, I made a complete comparison check with original and modded version, and came up with the stuff people will have to modify on their own lang file.
For instance, mine is lang/portuguese.php.
Doing it ancient phpBB MOD style...
Here goes: (anything goes wrong, feel free to warn me, or change this list)
*also note the variables contents were not translated, but you can translate it if you want to.

Had to put it on a text file because there were far more changes than I expected... enjoy it!

***NOTES:  The text file was supposed to be a post... so, please, forget all the [_CODE] and [_/CODE]... erm... codes. They were supposed to be bbCodes for making things clearer on the post.
Also, notice that those are comparisons from the original lang/english.php Coppermine 1.4.4 file, with the one suplied with this MOD.
Still, for people intending to apply those changes directly on their specific language files, just search for the strings WITHOUT variables contents.
For instance, on this part:
After:
Code: [Select]
  'cookie_prefix_explanation' => 'this has to be your BBS\'s cookie name',

Instead of looking for the whole line... search on your language file only for:
  'cookie_prefix_explanation' =>

You'll have to do this because the rest of the line is probably already translated to your language.

That's it. I wouldn't have to explain all this if I planned what I was doing better.... hope you get it anyways. XD
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 08, 2006, 03:30:23 am
More notes:

On admin config menu, if there are any translations fully made on this part, it may become impossible to tell where to make some changes I pointed out... I would have to think on another way to show were the changes were made. Sorry about that... portuguese version does not translate the admin config menu.

Finaly, I also noticed most changes doesn't really need to be done. If coppermine doesn't find the translation on a specific language, it will search for it on english.php lang file.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 08, 2006, 03:36:06 am
MWAAAAAAAAAAAAAAAAA HA HA HA HA HA

I just did loads of work for nothing. o__O

The error I had is in fact, because I'm using a different theme (hope I'm not wrong again).

Anyways, everything I just wrote is still useful if you want to translate mod stuff to your language.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 08, 2006, 03:52:43 am
To those having problems with templates (theme) other than those covered by Stramm's mod, I made 2 text files that point out changes made in the CLASSIC theme.
Main changes are in files /themes/classic/style.css and /themes/classic/template.html

With this, it's probably not too hard to make some adaptations to your own template files to make it work with Stramm's MOD.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Thierry on March 08, 2006, 04:12:24 am
MWAAAAAAAAAAAAAAAAA HA HA HA HA HA

I just did loads of work for nothing. o__O


You're wrong ! U save me.. lol

All's now working fine! Big thanks xportseeker ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 08, 2006, 04:21:35 am
on a Final note - couldn't solve the template error. Seems messing up with the template is far more difficult than I ever imagine...
Well... if someone is willing to port the subSilver template, please let me know! :D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 08, 2006, 04:23:24 am
Thierry - Really? XD Glad to help! :D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Thierry on March 08, 2006, 05:05:40 am
yeah really, all's working fine now.. i can see the "new admin tools" in the configuration, all's saved correctly, and the modpack is working well

ok so i'm testing the mod.. looks very great.

i've a little question about pms, the email notification system don't seems to work, i can't receive notification.. maybe the same language problem? the same for the "Display pm status info when logged in" option, any advice?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 08, 2006, 09:09:24 am
lol, OK guys... good to hear that you've sorted out most of your problems alone. If there still might be the one or other lil thingie....

here a quote from my first post in this thread...
Code: [Select]
Everything can be switched on and off in admin, [b]you'll need to use the english language to make changes in config[/b] (or you translate stuff and add it to your language file)
(relevant parts in bold, hehehe)
Of course I do not speak every language in the world and therefore can't translate everything but I'd be grateful if otheres will contribute and post their lang files here....

to the themes... in the old modpack thread I've explained how to do the changes. Standard themes should work out of the box or the modifications to do / downloads are in the old thread. A lot of questions are answered there too
http://forum.coppermine-gallery.net/index.php?topic=24341.0
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 08, 2006, 12:54:18 pm
Nobody can help me ?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 08, 2006, 01:17:06 pm
Nobody can help me ?

probably bridged with a not yet supportrd bridge ... read the first post please
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: easyjava on March 08, 2006, 04:49:07 pm
probably bridged with a not yet supportrd bridge ... read the first post please

It have just installed coppermine with your mod, no bridge. But i use Kubrick theme, and when I try with classic theme I have an other error :
Code: [Select]
Template error
Failed to find block 'report_comment_button'(#(<!-- BEGIN report_comment_button -->)(.*?)(<!-- END report_comment_button -->)#s) in :

<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">

        <tr>
                <td>
                        <table width="100%" cellpadding="0" cellspacing="0">
                           <tr>
                                <td class="tableh2_compact" nowrap="nowrap">
                                        <b><a href="profile.php?uid={AUTHOR_ID}">{MSG_AUTHOR}</a></b><a name="comment{MSG_ID}">&nbsp;</a>

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 08, 2006, 04:53:19 pm
that's a not mod related error. Usually appeares with old themes. Just reupload
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: easyjava on March 08, 2006, 05:44:38 pm
that's a not mod related error. Usually appeares with old themes. Just reupload

Ok I know where is the problem. Some days ago you have make a themes.inc.php file for me (it was for an old Kubrick theme) and when I put it I have the error. If I stay with the original themes.inc.php I can't put more of one comment on a picture. Can you help me to find the problem ?

Thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 08, 2006, 05:55:47 pm
good ... but what do you mean with 'more of one comment on a picture'. Do you mean you (a visitor) can comment several times on a pic but you wish to be able to comment only once?? If that's the case then just disable that behaviour in config (standard coppermine feature in comment settings - I think it was 'consecutive comments ')
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 08, 2006, 06:16:17 pm
No but (visitor, admin etc..) the comment is accepted, but not display.
I use the kubrick the that you havu modify for me http://forum.coppermine-gallery.net/index.php?topic=24341.msg121841#msg121841 (http://forum.coppermine-gallery.net/index.php?topic=24341.msg121841#msg121841)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 08, 2006, 07:38:57 pm
OK, got you but still not fully.
If a comment doesn't display (when guest has commented) read this thread and apply the given fix. If that's not the problem you have... a link to your gallery always may be helpful. A testuser account as well ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 08, 2006, 07:44:40 pm
Hello Stramm
I found the error: if I insert the pictures with "Upload file", the Watermark is on both pictures. If I upload the pictures per FTP and insert the pictures with the function "Batch add files", the Watermark ist only on one picture (the original pic isn't watermarked). Is there a possibility to fix this little error?

I've forgotten to write that this problem has been solved too. The culprit was wrong permissions in that environment. Some setups require that pictures that you want to batch add and watermark are chmoded to 666
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 09, 2006, 07:18:46 pm
Hello.

I'm going to do the french translation  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 10, 2006, 10:14:45 am
Hello.

I'm going to do the french translation  ;)

cool, thanks a lot  ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: easyjava on March 10, 2006, 04:58:38 pm
cool, thanks a lot  ;D

I think it's ok.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 11, 2006, 05:45:08 pm
Hello

I want to adapt a theme for your mod but i don't know the modifications. Can you tell me ?

Thank you
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 11, 2006, 07:13:17 pm
what exactly do you need to know??
There's one menue entry (buddies) and the loginbox (buddy, PM quick info)

despite that avatars in comments and the comment notification link
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 11, 2006, 07:19:54 pm
I want to adapt Kubrick theme 1.4.4 on your mod, but I can't  :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 11, 2006, 07:47:31 pm
hmm.. and what exactly is the problem???

do you want to do some additional translation?? ... please ;)

some time ago I've posted an adapted kubrick in the old thread 1.4 modpack thread... it's working but unfortunately it wasn't the new offical version

Code: [Select]
  array('Enable Custom Thumbs (movie, audio, document)', 'enable_custom_thumbs', 1),
  array('Watermark custom thumbs (movie, audio, document)', 'enable_thumb_watermark', 1),


// ------------------------------------------------------------------------- //
// File changeThumb.php
// ------------------------------------------------------------------------- //

if (defined('CHANGETHUMB_PHP')) $lang_cThumb = array(
  'stats' => 'Please make a selection',
  'available_pics' => 'You can chose from',
  'remove_thumb' => 'Remove current thumb',
  'remove' => 'To remove the current thumb mark the checkbox and hit \'Remove\'.',
  'title' => 'For the media with the filename:',
  'img_name' => 'Image name:',
  'instr' => 'Please chose an image you want to use as source to create a thumb for the above media (jpg/ png/ gif)',
  'deleted' => 'Thumb deleted',
  'delete_error' => 'Couldn\'t delete the thumb',
  'no_images' => 'You can cange thumbs only for movies, documents and audio files',
  'error' => 'Error',

);

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 11, 2006, 07:49:57 pm
i've a little question about pms, the email notification system don't seems to work, i can't receive notification.. maybe the same language problem? the same for the "Display pm status info when logged in" option, any advice?

yes, you need to copy over the email stuff and the PM, buddy status info to the lang file you're using (except of course you use english)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: opulence on March 11, 2006, 09:06:47 pm
Just installed it for the watermark feature and it works great!  Thanks!  :D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 11, 2006, 09:18:54 pm
need a volunteer or two to help me test the new feature. Have run tests now for two hours myself and think it works great

custom thumb tool
what it does.. easily change thumbs for movies, audio and document files. User permissions of course get considered.
If you want you can let coppermine apply a watermark (I've already prepared some with the wording audio, movie and doc). You do not need to crop or resize on the new thumbnail on your locval box. That's done when uploading.
The 'change thumb' you can always find above the thumb in approve, edit picture (click below normal size image) and edit multiple pictures (click edit next to an album). You only will see the link when you enable it in config, when the user has the right to edit that image or when it's not an image but movie, audio, document. The new watermark files need to be placed in the folder where you've put your main watermark file. If you don't use the watermark yet follow the instructions for watermarking first. The watermark files for thumb watermarking need to be named wm_audio.png, wm_document.png and wm_movie.png. You can find my samples in the folder images/

New config settings
Files and thumbnails settings -> Enable Custom Thumbs (movie, audio, document)
Image watermarking -> Watermark custom thumbs (movie, audio, document)

the thumb watermarking is not dependent of the config setting 'Watermark Image yes|no'. That's only for normal and fullsize images

please PM me with your email addy (so I can send you the zip)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 12, 2006, 01:54:43 am
Yes but your old version of kubrick doesn't work with the 1.4.4... there is many problems with the comments. And on displyimage.php the menu goes on the bottom of the page !

Code: [Select]
 
  array(Activer les miniatures personnalisées (vidéo, audio, document)', 'enable_custom_thumbs', 1),
  array('Watermarker les miniatures personnalisées (vidéo, audio, document)', 'enable_thumb_watermark', 1),


// ------------------------------------------------------------------------- //
// File changeThumb.php
// ------------------------------------------------------------------------- //

if (defined('CHANGETHUMB_PHP')) $lang_cThumb = array(
  'stats' => 'Faites une sélection',
  'available_pics' => 'Vous pouvez choisir parmis',
  'remove_thumb' => 'Supprimer la miniature actuelle',
  'remove' => 'Pour supprimer la miniature cliquez dans la case et cliquez \'Supprimer\'.',
  'title' => 'Pour le fichier portant le nom:',
  'img_name' => 'Nom de l\'image:',
  'instr' => 'Sélectionnez une image pour créer la miniature du média ci dessus (jpg/ png/ gif)',
  'deleted' => 'Miniature supprimée',
  'delete_error' => 'Impossible de supprimer la miniature',
  'no_images' => 'Vous ne pouvez changer la miniature que pour les vidéos, documents et fichiers audio',
  'error' => 'Erreur',

);
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 12, 2006, 02:39:31 am
Okies, will have a look at the new templates when I have a free min again
... and thanks again for the translation
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 12, 2006, 03:03:23 am
I don't see any problems with the kubrick theme... one just needs to add {LOGIN_FORM} to the template and add the friends button to the $template_sys_in theme.php... the rest is cosmetics (some css)

finished it and will post it with the mod update tomorrow or on mon
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 12, 2006, 11:01:01 am
Thank you very much  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on March 12, 2006, 05:23:18 pm
hey Stramm, i{ve installed your mod, and now i can{t batch upload, after i select the album i want the pics to go in, the nex screen comes up and insted of any icons like OK, and the rest of them, i get a link that says, click for details or click for reload, when i click there i get an internal server error, how do i fix this? didn't have a problem before applying the mod.

and my next question, is it all posible to just apply the watermark mod, and how would i do that?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 12, 2006, 05:51:37 pm
reupload everything and run update.php again. Looks like some messed up files. Make sure you overwrite the files. Don't resume

And no, it was to much work to keep the single mods up to date ... so I just pet the modpack
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Bierfreund on March 12, 2006, 08:40:22 pm
Has someone already modified the german language file german.php for the modpack? I have no php skills and can't do it myself.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: easyjava on March 12, 2006, 08:54:34 pm
Thank you very much Stramm... but update this file... there was an error with the : "é"
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on March 12, 2006, 11:13:37 pm
reupload everything and run update.php again. Looks like some messed up files. Make sure you overwrite the files. Don't resume

And no, it was to much work to keep the single mods up to date ... so I just pet the modpack

reupload the modpack?? or the whole coppermine installation and then the modpack?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 12, 2006, 11:22:19 pm
reupping the modpack should do
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 12, 2006, 11:24:00 pm
Quote
Has someone already modified the german language file german.php for the modpack? I have no php skills and can't do it myself.
no volunteer so far

Quote
Thank you very much Stramm... but update this file... there was an error with the : "é"
k, will do, thanks ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on March 12, 2006, 11:25:04 pm
reupping the modpack should do

yeah i just did that, still have the same problem, can't batch upload
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on March 12, 2006, 11:29:22 pm
it's very wierd too because the files are created, when i look at my folder on my ftp, i have the thumb files, mini thumb files, everything is created but not available in the gallery very wierd, doesn't work when i upload one by one either
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 12, 2006, 11:37:48 pm
link??
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on March 12, 2006, 11:40:06 pm
i sent u a pm
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Stramm on March 12, 2006, 11:58:54 pm
http upload works,
watermark+
sharpen+
crop+
batch upload+

hmm, can you be more specific with your problem?
and you don't use the latest modpack version, actual it's 1.4.4 bridge v2 (whether or not you use a bridge)

edit: ahh.. I see, the thumbs and images don't show up... that's permission problems as it looks. Chmod your batch add folder 777. If that doesn't help then the files too
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on March 13, 2006, 12:24:41 am
very wierd, thank you
 ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 13, 2006, 08:46:53 am
why weird?? That's *nix permissions. To learn  more about that search the web. As webmaster it's always good to know how your webserver works ;) And it looks like you get all working now... good luck
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: easyjava on March 13, 2006, 12:51:17 pm
Hello

I noticed that in the profile the users always have the offline statut. Is it normal ?
And in the profile I don't see the words location, interest... but i see the answer ?

Can you help me ?

Thankyou
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 13, 2006, 01:29:00 pm
the user status.... it's a feature I've introduced in the latest modpack for CPG 1.3. It relies on Nibbler's onlinestats. Since it's now a plugin for 1.4 I still think about either hardcoding the onlinestats mod into my modpack. The advantage you know... the online/ offline status in profile and buddy list. Everything is already prepared except the onlinestats mod/ plugin isn't added yet. Second problem I still think about is bridging compatibility...
So just turn off this feature (I even haven't described it in the docs... just in the thread for the 1.3 modpack you see how to enable it). --> remove the entry 'onlinestats' from config -> Album list view -> The content of the main page
instead you can try another undocumented feature ---> 'welcome' (prints a welcometext or anything you set on the mainpage... it's something like a spare anycontent block that's coded into index.php--> look there for it and modify the text to print [function welcometxt()]... it's a few ms faster than anycontent cause it doesn't need to include )

fixed the lil typo that prevented the additional profile info captions to display. Download the 1.4.4 v2 modpack again and reupload profile.php
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 14, 2006, 10:26:49 pm
Hi, i have an error. Im not sure if is about your modpack or is about the Cpg. i Have post it here:

http://forum.coppermine-gallery.net/index.php?topic=29153.0 (http://forum.coppermine-gallery.net/index.php?topic=29153.0)

Do you know something about it?

Thanks.

PD: your modpack and your themes are great, congratulations!!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 15, 2006, 11:37:45 am
It seems to be a Modpack problem...  ???

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 15, 2006, 01:14:15 pm
Fixed. Thanks.

Now i have noticed another diferent error. The login form on the top of the page didnt work at all.
When i click the login button it sent me to the login page on the forum. There i can login, but i would like the form to work if is it possible.
Thanks again.

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 15, 2006, 01:23:04 pm
the modpack docs tell you not to enable this feature if you have a bridged coppermine... in that case you can use the loginform of your forum... or you rewrite the function (in themes.inc.php) to fit your needs
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 15, 2006, 01:43:15 pm
Thanks, sorry, i forgot that...  ::)

I dont know how to rewrite that, but dont worry, i think i could live without it :P

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 15, 2006, 02:36:31 pm
Got it working with subsilver theme. Had to make minor changes in some files.

Great job Stramm!

I was starting to get crazy analyzing the code looking after the part I had to change to add a watermark...
The only working mod for cpg1.4.4 was watermarking on the fly... which is not very nice to the server... XD

I'd like to suggest one more admin option on watermarking -> wheter to keep a copy of the original image or not. Saves lots of space on the server. :D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 15, 2006, 03:03:08 pm
@darkpollo
I've updated my fix in your other thread so that you can use the avatars... for all others. This is only needed if you use the bridge and have two different db users for your forum and coppermine.

@xsportseeker
modifying existing themes to work together with the modpack requires only 2-3 lil modifications. I think I've described that a few times in this and the old 1.4 modpack thread ;)
but I don't really understand what you need to know about the watermark code...

not having backup files isn't the best solution cause you can't undo watermarks. If you eg once need to rebuild your thumbs.... bad luck, without backup the watermark would sit on the thumbs then as well. If you change your layout and another watermark would simply look far better... won't work. But with a backup ... not a problem
Still it's only ~3-4 lines of code to add that config option
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 15, 2006, 03:18:25 pm
Stramm - I was searching for watermarking stuff BEFORE I decided to use your mod... XD
About undoing the watermark... I'm aware of all that. Still, major problem is that I lack server space, and will probably put some wallpaper category space, with some hi-res images.... :S
Anyways, no need to worry. I think I can find out how to do this... maybe you can gimme some pointers? XD

Oh, one more thing: I couldn't find the "Custom Thumb tool" on Files and Thumbnails Settings... I guess it was the only feature I didn't find.

Now I'll post a topic asking if there's a way to make flash files display full size on displayimage.php :P

Thx for everything!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 15, 2006, 03:26:56 pm
the 'custom thumb tool' is new... just a few days old. Maybe you're not using the newest modpack version

if you don't want to make backups...
find in picmgmnt.inc.php
Code: [Select]
if (!file_exists($orig) && $CONFIG['enable_watermark'] == '1' && ($CONFIG['which_files_to_watermark'] == 'both' || $CONFIG['which_files_to_watermark'] == 'original'))  {
// if copy of full_sized doesn't exist and if watermark enabled and if fullsized pic watermark=true -> then we need a backup
if (!copy($image, $orig))
                return false;
else
$work_image = $orig;
}
and remove (not tested)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 15, 2006, 03:30:05 pm
Will check on the mod version, and not making backups.

Thanks again!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 15, 2006, 03:37:29 pm
@darkpollo
I've updated my fix in your other thread so that you can use the avatars... for all others. This is only needed if you use the bridge and have two different db users for your forum and coppermine.



Hey, thanks! Good news, i dont mind avatars, but its better to use them :D (and maybe users like them ;D)
What a fast answer!! :o
Do i need to restore the first fix or add the new code?

Yes, tested and everything is working fine now. :D


PD: could you help me with the login button? wich file i must edit and copy from SMF? I know i must edit the themes.inc.php, but im not sure where to get the code to use on it.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 15, 2006, 03:44:38 pm
@Stramm - just confirming - my version was outdated! That was it.
And about not making backups for watermarking... I analysed the code, and I guess that will work just fine.

I'm now having second thoughts on removing the backup since I'm thinking of making a quick watermark just now, and improving it later on... after I start my 3D graphics courses. XD
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 15, 2006, 04:00:57 pm
@darkpollo
I don't know smf code so I can't help you much there. if you want to use the login form you should have a look at function loginForm in themes.inc.php (or if it's defined in the theme you're using in it's theme.php)
Basically it's just a form that simulates the orig cpg login form.. so you'd just need to somehow copy the smf counterpart. This you can find if you just look at the source when the top login form is visible on a smf site

@xsportseeker
I consider the backup to be very useful :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 15, 2006, 05:48:23 pm
:)
I cannot be so dificult. I will post it here when i get it.

 ;D
Title: Watermark eats my database...
Post by: fotomaniak on March 17, 2006, 08:24:52 am
Hi there,

Just downloaded and installed CPG + bridgeModPack.

Installed CPG: good
Uploaded Modpack good
Run update.php: good
Run bridge wizzard (SMF 1.1 RC2 / w user groups): Good

Now if I click on an image to look at a picture it works fine, until I select "Yes" on the use watermark section. After that any time I try to look at a picture I CPG returns an error:

Code: [Select]
Critical error
There was an error while processing a database query

It keeps doing this even when I turn watermark back off! I've repeated this three times. It's always as soon as watermark (my main reason for using this mod) is turned on that view image goes screwy. It also seems to change the title of the thumb to Filename= and then the filename. Not sure if it's supposed to be like this.



Any ideas greatfully accepted!

System specs are as follows:

php 4.31
mysql
apache
running on linux (centOs)
GD2

Stramm, I've emailed you a URL to show what I mean. Thanks! :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 17, 2006, 09:19:00 am
check the config of the Watermark folder.

I had a lot of problem with that.
 :D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on March 17, 2006, 09:29:35 am
Do you mean the path in the CPG -> config -> Image Watermarking Menu?

Or is there a config file I haven't found yet..?

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 17, 2006, 09:36:35 am
No, that path...

:D

Are you sure it is right?

There is no config file.  :P
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on March 17, 2006, 10:41:14 am
Seems to be...

It's set to:
/home/{server_username}/public_html/{cpg_folder}/themes/{theme_folder}/images/{image_file_name}.png

when I go to mydomain.com/{cpg_folder}/themes/{theme_folder}/images/{image_file_name}.png
it's there.

I just found the debu notices option though and it's reporting:

Code: [Select]
While executing query "SELECT c.msg_id, c.msg_author, c.msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, c.author_id, c.author_md5_id, c.msg_raw_ip, c.msg_hdr_ip, c.pid, u.avatar AS avatar_url FROM cpg143_comments AS c LEFT JOIN `{smf_database}`.smf_members AS u ON c.author_id=u.ID_MEMBER WHERE pid='9' ORDER BY c.msg_id ASC" on Resource id #23

mySQL error: No Database Selected


File: /home/{server_username}/public_html/{cpg_folder}/include/functions.inc.php - Line: 248

Obviously I've replaced all the bits in {}'s.

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 17, 2006, 11:07:19 am
check this post:

http://forum.coppermine-gallery.net/index.php?topic=29153.0
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 17, 2006, 11:33:10 am
I had lots of trouble finding out what I had to put on the path...
Ended up being far easier than I expected.
Try using "./images/yourwatermark.png"... though that is a relative path, it worked just fine to me.

But the database error... that's probably not it. Like I said, I used several wrong paths before discovering the one that worked out... and never got any database errors in the process.

Try running update.php once more. Maybe you're missing some tables on your database...
Also, check if you have the latest Stramm mod... the last version was released some 5 days ago I think.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 17, 2006, 11:53:31 am
@Stramm - What exactly are those "Set color transparent x and y for GD only" on Image Watermarking in control panel?
It's like, you define the colors that are to be shown with transparency? Couldn't get it to work... though I don't really need it, it would be "prettier" if I had some transparency on the watermark. Pitty I have only GD2 to work with... :P
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 17, 2006, 04:58:46 pm
Please help me out People... I can't get the thing working.
could be because a couple of days ago a was a realy bIg nOOb but I've been reading me eyes squire and still I haven't found the answer.

I can't get the watermark turned no.. not in my thumbs middel or normal ... no nothing happends..
all the rest (as far as I can see) works fine.

where should I start to look ... because I'm a bid clueless right know.

thx in advance.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ysva on March 17, 2006, 06:38:18 pm
I've noticed something about the watermarks. (I also think it's the same as RobbenR tried to explain here above me,)
Every new picture that get's uploaded get's a watermark, but excisting pictures don't get a watermark.
I've tried to turn them or change there names but even then it doesn't get a watermark.
Is there a way for them to get watermarks apart from reuploading everything? (which I simply can't do because there are to many pictures)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 17, 2006, 08:54:01 pm
Nope,, not the same.... I don't get to see anything.
no watermark at all.. new or old files doesn't matter..

new issue raised aswel... don't know if it has something to do with this mod but i didn't had this problem before.
(could also be the rushed re-install of my gallery)

I can't login to my systems anymore from an external address..    >:(

ps,,,, must say that this is kickass software.. don't know much about webbing but you'll people keep me intrested by the day..

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 17, 2006, 09:48:18 pm
@RobbenR - Did you run update.php after copying the files? On watermarking, did you set the correct path to your watermark?
Check those first. Try running update.php again. Check your database to see if the necessary chages were made.

ysva - I'm not shure about that, since I didn't have the need to do that, but try checking the Admin Tools and updating the pictures... once again, not shure if that will help.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: suraj_bdcarz on March 17, 2006, 10:15:43 pm
Guys
I have installed Modpack v2 for CPG 1.4.4 bridge support on CPG 1.4.4. I inatalled it as said in the instrustion. After i run update.php every thing runs fine but after that when i run index.php it says "Fatal error :" on a bank page.

Please some 1 help me fast i'm in deep trouble. My gallery is visted by lots of ppl everyday if i don't get it fixed i will loose a lot of visitors. SO every second count. Please some 1 help me with this i'll be foreverehlpful.

Thanks 
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 18, 2006, 12:15:28 am
suraj_bdcarz - It's really hard to tell with this much info... after all, there are lots of things that could generate this "Fatal error".

Since you followed all the instructions correctly, a very common error is timeouts and corrupted uploads.
Try downloading the latest version of the mod, uploading all over again to your homepage server, and running update.php once more.

And I hope you made a backup to recover the previous state... this might be necessary if you have a frequented gallery.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on March 18, 2006, 12:27:50 am
Thx for your help Darkpolo!

I just re-installed CPG in the same DB as my forum and that seems to have fixed the bug. If I could give you Karma I would!

It's not actually adding the watermark, but the sql error is gone! On bug down... one to go!  8)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: suraj_bdcarz on March 18, 2006, 11:13:16 am
suraj_bdcarz - It's really hard to tell with this much info... after all, there are lots of things that could generate this "Fatal error".

Since you followed all the instructions correctly, a very common error is timeouts and corrupted uploads.
Try downloading the latest version of the mod, uploading all over again to your homepage server, and running update.php once more.

And I hope you made a backup to recover the previous state... this might be necessary if you have a frequented gallery.

Bro i can teel to only this much info coz i have only this much. I have the latest version of the mod pack and the latest version of Coppermine. First i tried with CPG MArk plugin and it did work there was no way that the pulgin used the wateramark. then i tried this one but noe it give me the error only "fetal error:" nothing else. Wat might be the prob ??
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 18, 2006, 12:19:38 pm
suraj_bdcarz - Let's wait for what Stramm has to say... I really can't think of anything else other than reinstalling things, checking files and database stuff...

Backup you database and system. If you can't solve it, maybe you'll have to re-install it all over again...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 18, 2006, 01:49:22 pm
Thx for your help Darkpolo!

I just re-installed CPG in the same DB as my forum and that seems to have fixed the bug. If I could give you Karma I would!

It's not actually adding the watermark, but the sql error is gone! On bug down... one to go!  8)

seems to be working now??
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 18, 2006, 01:51:04 pm
Bro i can teel to only this much info coz i have only this much. I have the latest version of the mod pack and the latest version of Coppermine. First i tried with CPG MArk plugin and it did work there was no way that the pulgin used the wateramark. then i tried this one but noe it give me the error only "fetal error:" nothing else. Wat might be the prob ??

you get a fatal error when the SQl doesn't get applied properly. But post a URL. Without it's hard to tell
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 18, 2006, 01:53:54 pm
Please help me out People... I can't get the thing working.
could be because a couple of days ago a was a realy bIg nOOb but I've been reading me eyes squire and still I haven't found the answer.

I can't get the watermark turned no.. not in my thumbs middel or normal ... no nothing happends..
all the rest (as far as I can see) works fine.

where should I start to look ... because I'm a bid clueless right know.

thx in advance.

you need to set the absolute path to the watermark file. No URL or similar but the absolute path. Looks on nix boxes something like eg. /usr/home/you/htdocs/coppermine/images/watermark.png
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 18, 2006, 01:58:27 pm
@Stramm - What exactly are those "Set color transparent x and y for GD only" on Image Watermarking in control panel?
It's like, you define the colors that are to be shown with transparency? Couldn't get it to work... though I don't really need it, it would be "prettier" if I had some transparency on the watermark. Pitty I have only GD2 to work with... :P

if the background transparency doesn't work you can set a point in your image to be used as transparent. If for example the point x1 y1 is black and you want black to be fully transparent you set x 1, y 1... however the result isn't really pretty.  It'S best to have a png with a transparent background.

If you want the entire watermark to be somehow transparent (so that the picture can be seen through it) and you use GD2 then use your paint program and set the layer transparency of your watermark image to 50%
If you use ImageMagick... then use the config setting 'Transparency 0-100 for entire image'
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 18, 2006, 02:02:29 pm
@RobbenR and ysva

of course the watermark gets only applied to newly uploaded images. If you want older images to get watermarked too you need to recreate normal and fullsized images using the admin tools
Same way you undo watermarks. Turn it off in config and use the admin tools to recreate them images
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 18, 2006, 04:12:37 pm
thx guys for the info but I'm re-installing it now for the 3th time... now first i will combine them and have a look what's wrong.... and that add the modd....
one buy one...

keep you posted..

having a small problem already.. can do everything from the outside.... but i can't logon to cp anymore... can login the phpbb2...  ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 18, 2006, 04:37:07 pm
Moving on.... problem was in config phpbb2.... i need to use localhost to see it at home... I had entered the external address... so now we can work localy and only look from the outside.. without loggin in then i mean.. SHoot... i feel someting growing.. Is it knowlegde... Naahhhhhhhh this UberNoob can't solve that mistery.

but Now where up to modtesting... realy need that watermark so test 74 comming up...  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 18, 2006, 05:15:12 pm
nope no watermark..

wat do you mean with absolute path... /bla bla  I don't know what that means..
my file is on my root better known for me as my localhost.... so it would be /olnev/watermark.png I guess

c:\apache2traid\httdocs\olnev\watermark.png (httdocs is my webroot)

"Hmmm the looks are already great of the mod, how will that watermark function be....:"

must be abnormaly good because I'm trying to get it alrdeady for so many hours..

keep up the good work..
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 18, 2006, 06:31:41 pm
c:\apache2traid\httdocs\olnev\watermark.png (httdocs is my webroot)

That's the absolute path to the watermark... maybe you want to use / instead of \ if you don't get it going (but it should work with the above path). Enable the watermark, upload a testfile and smile ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 18, 2006, 10:27:37 pm
@Stramm and RobbenR - I'm using relative path and it's working fine! In my configuration it's "./images/aoisora.png" being aoisora.png my watermark image I uploaded to the cpg144/images directory.

@Stramm - I completely forgot about the transparency setting on the whole image.. thinked only of the transparency color setting on export properties. Now it's working fine! :D Tks!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 19, 2006, 03:46:44 am
I will give it a new try Stramm.... thx so far....

do you know if you can use two dns names in one bridges combi.
now I use localhost or external ip address... need to swap for use at home.

second question: do you use one database or two databases voor de combi

 ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: opulence on March 19, 2006, 08:14:34 am
Having a slight problem

The avatar beside a comment link is broken, I think because my site is integrated with phpbb2

the link is almost correct, everything about it is correct except the link is:

/forum//545537374441ccf5f22400.jpg

instead of

/forum/images/avatars/545537374441ccf5f22400.jpg

Is there something I can edit in displayimage.php to fix the link path?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 19, 2006, 08:58:54 am
I will give it a new try Stramm.... thx so far....

do you know if you can use two dns names in one bridges combi.
now I use localhost or external ip address... need to swap for use at home.

second question: do you use one database or two databases voor de combi

 ;D

I'm afraid but you prolly can use only one domain name. But it's no problem to move everything and then switch
I'm using one, but it's working with two too. There's only one limitation. Use only one database user or apply the lil fix in this thread
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 19, 2006, 09:02:38 am
Having a slight problem

The avatar beside a comment link is broken, I think because my site is integrated with phpbb2

the link is almost correct, everything about it is correct except the link is:

/forum//545537374441ccf5f22400.jpg

instead of

/forum/images/avatars/545537374441ccf5f22400.jpg

Is there something I can edit in displayimage.php to fix the link path?

look in your bridge settings (run the bridge manager again), there you have to set 'images/avatars' for 'Path where avatars are stored'
(for phpbb 2.0.18+)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: opulence on March 19, 2006, 07:28:10 pm
ahh that was it! thanks!

I'm having one last problem but im not sure if this is just coppermine related or related to your mod

Even though under the group settings I have guests set as allowed to comment, when guests leave comments, though I can see them in review comments, they don't appear under pics...

look in your bridge settings (run the bridge manager again), there you have to set 'images/avatars' for 'Path where avatars are stored'
(for phpbb 2.0.18+)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 19, 2006, 08:24:45 pm
If anon comments do not appeare under pics then you run an older modpack. Update or apply the fix (somwhere on page 2-4)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: pietervdb on March 19, 2006, 09:03:22 pm
Hi i came across your mod pack. I have only one question:
If i am going to install the mod will it say

Powered by coppermine
Modded by Stramm

as seen at your demo page?

Thanks!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: xsportseeker on March 19, 2006, 09:05:45 pm
@pietervdb - Yes, at the page footer.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: pietervdb on March 19, 2006, 09:09:27 pm
@pietervdb - Yes, at the page footer.

wow thanks for the quick responce
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 19, 2006, 09:17:37 pm
Guys..... i'm about to quit....
U just can't figure it out why I can't get that watermark working.

I will list up the things i've done:

installed cpg 1.4.4
installed phpbb2
bridged them
applied the mod

turned on watermark
and watermark for custom thumbs

./olnev/watermerk.png
or
C:/apache2triad/htdocs/olnev

but nothing works..

any idea's.... ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 19, 2006, 09:33:18 pm
Give me a link... without it's not that easy to help you
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 19, 2006, 10:45:20 pm
Hey Stramm.. checked yure profile en ik kan nederlands praten merk ik..

olnev.mine.nu

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tedlow on March 20, 2006, 06:35:21 am
Yeah I am having trouble with the watermarking thing as well.  I reloaded and uploaded new pictures and it doesn't seem to work.
http://www.tedlow.com/cpg144/
I tried the relative path method too and it didn't quite work out.
I put the watermark under ./albums/tedlowWaterMark.png

Edit: Hmm I played around and it seemed that uploading the pictures work but the batch add files method doesnt.

Edit:: I think more specifically anything in the albums directory that you did a direct upload on.  I have watermarks on half my images.

Edit: No.  It has to do with batch updating.  Odd.  Cause when you do the update all images under admin tools it will apply your watermark on your old images.  Provided they were not batch updated.  Any solutions to this?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 20, 2006, 08:56:17 am
has been answered b efore. It's permission problems you have. In a standard coppemine the pics you upload don't get modified.. so they just need read permissions. When you apply a watermark the system needs write permissions too...
chmod the folder to 755 or 777. If that doesn't already work, then chmod the to batch pics to 666 (if that doesn't do the trick 755 or 777)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 20, 2006, 09:04:55 am
Hey Stramm.. checked yure profile en ik kan nederlands praten merk ik..

olnev.mine.nu



you can, just that others can follow it's better to write english
you've set wrong pathes to the watmark png. At least I can't find it
./olnev/watermerk.png won't work. If you use the relative path (not recommended) you don't consider the dir coppermine's located in
./watermerk.png would look for the file in the coppermine base dir
./images/watermerk.png in coppermines main image dir

absolute addressing
C:/apache2triad/htdocs/olnev/watermerk.png would look for the file in the coppermine base dir
C:/apache2triad/htdocs/olnev/images/watermerk.png ... in coppermine images dir

the solution... instead of watermerk.png (a typo)... use watermark.png
You see the difference !!!

./watermark.png
or
C:/apache2triad/htdocs/olnev/watermark.png
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 20, 2006, 02:29:43 pm
your so right stramm... let's keep it understandable for all people...

I have tried the change of name of the watermark file but without success.
I have changed te location of the watermark file but without success..
I gave all users mod rights on the album folder... no success..

BTW thx for explaining what a relative and absoluth path is.

Also i discconected the bridge to phpbb2 because that was giving me some extra problems..
Now i can focus on the gallery watermark issue which is giving me enough problems aleady.

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tedlow on March 20, 2006, 06:22:32 pm
has been answered b efore. It's permission problems you have. In a standard coppemine the pics you upload don't get modified.. so they just need read permissions. When you apply a watermark the system needs write permissions too...
chmod the folder to 755 or 777. If that doesn't already work, then chmod the to batch pics to 666 (if that doesn't do the trick 755 or 777)

Hmm I didn't recall seeing anything on the thread about permissions but anyway, I did originally set the directory to 777 that didn't work so I switched to 755 and I eventually switched to 666 (though it becomes 766) and all of those methods do not work.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 20, 2006, 06:29:55 pm
here's the link
http://forum.coppermine-gallery.net/index.php?topic=28367.msg134575#msg134575

if chmoding the folder doesn't work you might have to chmod the files too (to 666)

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 20, 2006, 10:44:27 pm
finaly i'm getting closer to the watermark problem. I have installed imagemagick and it's working fine BUT as stramm already point out to me with the watermark.png file .
I have installed in into mageMagick ... small typo error but big problem for watermarking I guess. I'm running now on GD2 en there it is.
will re-install ImageMagick to see if I'm correct.

Will keep you informed people.. next chapter in the land of coppermine & mods.. ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tedlow on March 20, 2006, 11:41:11 pm
here's the link
http://forum.coppermine-gallery.net/index.php?topic=28367.msg134575#msg134575

if chmoding the folder doesn't work you might have to chmod the files too (to 666)



Heh chmoding the files to 666 make's the pictures not viewable.
I managed to get all the files to have the watermark but one now.  I used filezilla to make them all 777.  I just did it a few times and kept reloading.  I don't know heh.  They are in the same folder and sometimes they get it sometimes they don't. 

Edit: Nevermind I guess I had to refresh my cache.  Silly me.

Don't scold me! *hides*
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 20, 2006, 11:48:54 pm
maybe a overloaded server
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 22, 2006, 04:21:09 pm
Guys I'm still having problems with my Watermark.
It only works with GD2 and not with Imagemagick.. 

same path,, same picture..

only swapping between ImageMagick and GD2

Imagemagick is tested and works fine becuase I can see the Logo if i do the test.
I have re-installed everyting just to make sure but still the problem persists

any Idea's...

ps, what is the difference between GD2 and Imagemagick.. I've been reading some stuff about how smooth the pictures wil be with imagemagick but Is it worthy to go on for days searching for my problem if the GD2 will do the same trick for me!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 22, 2006, 06:21:53 pm
There are some differences but it's not about the quality anymore. If you do not know them already, you probably won't care if I'd tell you. In most cases it's not worth to spend a few hours to make one working if the other already does.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 23, 2006, 07:10:17 pm
thx stramm for your answer..

I will give it a try with the GD2 option...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 24, 2006, 08:23:46 pm
Hi Stramm, i need you again  ::)

I have just finished the web page, but i noticed that Buddies doesnt work. It could be that i am using a SMF bridge?

Another question (more important for me than buddies :))

Is there any posibility to make that the normal_ pictures are stored in a separate folder of the thumbs and orig ones?
 
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 25, 2006, 08:27:04 am
Works smooth in my test environment. What's the actual problem and as usual link, test user account(s) etc ;)

And I'm pretty sure it's possible to store normal_  images in eg. a subfolder. However it's a lot of work and what for?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 25, 2006, 11:07:20 am
Buddies problem solved: Disabled XD
It was cause im using the CPG wrapped on the joomla, and set a code to avoid open the forum standalone. That disabled all the links from CPG to the forum. But i think i prefer that way. So nothing to do here.  ;D

About the folder, i have installed a joomla block that show up a random picture from a folder. I want it to pick the pictures from the album folder of cpg, but there is a lot of pictures there, thumbs, orig, etc. I want only the 150x150 (or similar) to show in the block, so i need to copy them to a new folder.

Do you understand? ???
Im doing my best with my english  ::)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 25, 2006, 11:43:08 am
far easier than to modify CPG (as I already mentioned that's a lot of work) is probably (although I do not know it at all) to modify that 'joomla block' and add a filter to it so it shows only what you want (preg_match the normal_ prefix)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 25, 2006, 11:53:14 am
That could be a good fix... :D

Thanks, i will go to search on the joomla forums :D

Thanks for your quickly answer... :D

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 25, 2006, 12:02:48 pm
Well, i know this is not a mambo or php forum, but i don´t know how to create that filter :S

(im just starting to learn php)
Could you help me?

This is the code to create the block:
Code: [Select]
$type = $params->get( 'type', 'jpg' );
$folder = $params->get( 'folder' );
$link = $params->get( 'link' );
$width = $params->get( 'width' );
$height = $params->get( 'height' );
$abspath_folder = $mosConfig_absolute_path .'/'. $folder;
$the_array = array();
$the_image = array();

if (is_dir($abspath_folder)) {
if ($handle = opendir($abspath_folder)) {
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..' && $file != 'CVS' && $file != 'index.html' ) {
$the_array[] = $file;
}
}
}
closedir($handle);

foreach ($the_array as $img) {
if (!is_dir($abspath_folder .'/'. $img)) {
if (eregi($type, $img)) {
$the_image[] = $img;
}
}
}

if (!$the_image) {
echo 'No images';
} else {

  $i = count($the_image);
  $random = mt_rand(0, $i - 1);
  $image_name = $the_image[$random];

  $i = $abspath_folder . '/'. $image_name;
  $size = getimagesize ($i);

  if ($width == '') {
  $width = 100;
  }
  if ($height == '') {
  $coeff = $size[0]/$size[1];
  $height = (int) ($width/$coeff);
  }

  $image = $mosConfig_live_site .'/'. $folder .'/'. $image_name;

}
  ?>
  <div align="center">
  <?php
   if (
$link) {
  
?>

  <a href="<?php echo $link?>" target="_self">
  <?php
   }
  
?>

  <img src="<?php echo $image?>" border="0" width="<?php echo $width?>" height="<?php echo $height?>" alt="<?php echo $image_name?>" /><br />
  <?php
   if (
$link) {
  
?>

  </a>
  <?php
   }
  
?>

  </div>
  <?php
}

I think i must to create somethin here:
Code: [Select]
if ($handle = opendir($abspath_folder)) {
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..' && $file != 'CVS' && $file != 'index.html' ) {
$the_array[] = $file;
}
}
}
closedir($handle);

foreach ($the_array as $img) {
if (!is_dir($abspath_folder .'/'. $img)) {
if (eregi($type, $img)) {
$the_image[] = $img;
}
}
}
But i dont know how to make it...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 25, 2006, 05:49:47 pm
yup, not the right forum and not the right thread...

Code: [Select]
if (eregi($type, $img) && eregi("normal_", $img)) {
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 25, 2006, 10:20:07 pm
Thanks, thank you very very much.. ::), and sorry  ::)

Would you like that i edit the post and delete the code?

 ::)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: thoxic on March 25, 2006, 11:06:21 pm
I´m using GD version 2 and my watermark is not working anymore :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 26, 2006, 02:40:57 am
Well.. it seems my problems cannot finish!!  :'(

I have everything working now (i thought) but when i want to use the batch tool to set the images into the album i found this problem:
Error executing ImageMagick - Return value: 1

If i use the upload feature it is working fine, so i think that imagemagick is fine...

Thanks again for your help.

http://todo-motos.es/public/
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 26, 2006, 02:59:36 am
Guys I'm still having problems with my Watermark.
It only works with GD2 and not with Imagemagick.. 

same path,, same picture..

only swapping between ImageMagick and GD2

Imagemagick is tested and works fine becuase I can see the Logo if i do the test.
I have re-installed everyting just to make sure but still the problem persists

any Idea's...

ps, what is the difference between GD2 and Imagemagick.. I've been reading some stuff about how smooth the pictures wil be with imagemagick but Is it worthy to go on for days searching for my problem if the GD2 will do the same trick for me!
I have got the same problem
The Imagemagik creates all the files, but it fail when must assign to the albums...
I have change into GD2 and is working fine.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 26, 2006, 10:27:00 am
I´m using GD version 2 and my watermark is not working anymore :(

Probably something on your server changed. Scripts don't tend to suddenly stop working. And with that less information it's hard to say more
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 26, 2006, 10:32:39 am
Well.. it seems my problems cannot finish!!  :'(

I have everything working now (i thought) but when i want to use the batch tool to set the images into the album i found this problem:
Error executing ImageMagick - Return value: 1

If i use the upload feature it is working fine, so i think that imagemagick is fine...

Thanks again for your help.

http://todo-motos.es/public/
HTaccess: user->motos
pass->motos

http://forum.coppermine-gallery.net/index.php?topic=28367.msg135990#msg135990
depending on your server setup gd2 may get treated as owner (so it may work without any problems) and imagemagick eg as grouo or anon. Then the above link applies. Either always chmod your batch folders/ files or change ImageMagick setup (so it runs under your name)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Goosemoose on March 27, 2006, 11:18:45 pm
I can't get the auto continue when resizing to work. I've installed this mod and looked through several threads and it seems like it worked with this mod at some point. Was this feature removed? Is there a place to turn it on that I'm missing? Thanks

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: darkpollo on March 27, 2006, 11:26:20 pm
Gd2 Is working fine...
I dont need more :D

Thanks anyway.
(CHMOD were right)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: helmand on March 28, 2006, 02:46:49 am

Edit: Nevermind I guess I had to refresh my cache.  Silly me.





Same goes for me.. ;D
This damn cache
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on March 28, 2006, 07:44:44 am
[Ctrl]+[F5] is your friend ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 28, 2006, 08:56:23 am
I can't get the auto continue when resizing to work. I've installed this mod and looked through several threads and it seems like it worked with this mod at some point. Was this feature removed? Is there a place to turn it on that I'm missing? Thanks



I had that in the modpack for 1.3x. Still not implemented in modpack 1.4x. Maybe I'll code that in the next few
('better admin tools')
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Juanito on March 28, 2006, 09:50:45 pm
I had that in the modpack for 1.3x. Still not implemented in modpack 1.4x. Maybe I'll code that in the next few
('better admin tools')

yea. i been waiting for this too. it'll be really helpful cuz i have a gallery 10,000 pics and i wanted to resize the intermediate pics for all of them. it's very time-consuming sitting down and having to keep clicking. i used this feature alot back in the modpack for 1.3. but no worries. i can wait.  :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 29, 2006, 10:12:38 am
Here's an updated util.php.
When you're recreating thumbs/ images in the admin tools then you can set an auto refresh flag. If set, the update process auto refreshes and you won't need to click 'continue' anymore.
The big advantage.... you can set the nuimber of images to process to a  low value eg (2-5). Now the chances the script times out are limited. Means you don't need to restart the entire process and sit in front of your monitor for hours clicking 'continue' (if you've a huge number of pics in your db)

You can turn auto refresh on/ and off on the admin tools page
Update thumbs and/or resized photos (1) - (checkbox) Auto refresh (no need to click continue button anymore)

The text on admin tools page is still hardcoded. This will be changed when I release the next modpack version and add the autorefresh hack to it.

edit: deleted the attachment and added the file to the modpack (modpack v3 for CPG 1.4.4)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 29, 2006, 10:56:06 am
new question:

Why does the watermark not auto resize on a smaller pictures..
On the big picture 800x600 or bigger there is no problem. It's on the bottom right.
but on a smaller picture it covers the picture itself.


bigg picture: http://olnev.mine.nu/olnev/albums/gallery/HappY%20BirThDay/2005%20-%20Verjaardag%20Arjan/Arjan_2005_-_kappen.jpg
small picture : http://olnev.mine.nu/olnev/albums/gallery/PartY%20PiCs/2001%20-%20Tunnelfeestje%20Utrecht%20%2820-06-01%29/tunnel101.jpg (http://olnev.mine.nu/olnev/albums/gallery/PartY%20PiCs/2001%20-%20Tunnelfeestje%20Utrecht%20%2820-06-01%29/tunnel101.jpg)
or even worsers: http://olnev.mine.nu/olnev/albums/gallery/PartY%20PiCs/2001%20-%20Tunnelfeestje%20Utrecht%20%2820-06-01%29/tunnel1.jpg (http://olnev.mine.nu/olnev/albums/gallery/PartY%20PiCs/2001%20-%20Tunnelfeestje%20Utrecht%20%2820-06-01%29/tunnel1.jpg)

The watermark should auto-adjust when the pictures is smaller or bigger.
Am I the only one who’s running into this problem or….  ???

Please tell me!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 29, 2006, 11:04:46 am
that's not how watermarking works.
You have a watermark 100x100 and you apply it to an 800x600 image. The size it takes is 100x100
If you aply the 100x100 watermark to a 3000x2000 image then the watermark size is still 100x100 and the size it takes on the final image is 100x100 as well. No resizing involved here. Expected behaviour

So if you want the watermark to be 200x80 on your normal image then make the watermark that size

Ever used a watermark prog? That's how they all work
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 29, 2006, 11:52:11 am
Nope,,, never been using a watermark tool before STramm so that's why I dindn't know.
I was using the arles stuff before I used the coppie gallery..
I will create a smaller watermark..

at least know I know that I don't have to search any longer.
thx for your fast reply.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 29, 2006, 12:07:55 pm
If you really need that functionality you can edit picmgmnt.inc.php
shouldn't be to hard

to make it autstanding you'd have to add a new config value that holds the the image width your watermark is designed for (eg 3000px). Then the script knows when/ if and the % to resize/ shrink the watermark
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on March 29, 2006, 02:17:42 pm
Hi Stramm,

I seem to be having the same problem referred to in the following two posts where batch upload returns errors instead of "OK":

http://forum.coppermine-gallery.net/index.php?topic=28367.msg134496#msg134496 (http://forum.coppermine-gallery.net/index.php?topic=28367.msg134496#msg134496)
http://forum.coppermine-gallery.net/index.php?topic=28367.msg135990#msg135990 (http://forum.coppermine-gallery.net/index.php?topic=28367.msg135990#msg135990)

In both cases you seemed to recommend CHMODing the ftp folder and files in it to 777 which fixed it in the two cases above. I've CHMODed these (albums, albums/ftp, albums/ftp/*) to 777 though and I'm still having the same problem.

I actually did a fresh install and went step by step in recreating my current install, tyrin batch add between each step. The wierd thing is it was even working AFTER I uploaded the mod files and went to update.php, but it only stopped working when I redid the bridge wizzard (with SMF) as per the install instructions. The link that says "Click to view erros or reload" just returns a blank screen.

I hadn't even gotten as far as changing any config stuff except for changing themes.

I'm on:

J! 1.08 (which I've heard has a different login stucture somehow...?)
SMF 1.1 RC2
Oristo's J!+SMF Bridge 3.20
CPG 1.44 (bridged to SMF)

I'll pm you a link.


Code: [Select]
USER:
------------------
Array
(
    [ID] => 1a0aca0898b5dfebdcfbbbc22c185900
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 21
            [1] => 14
            [2] => 19
            [3] => 18
            [4] => 16
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 5
    [user_name] => Piers
    [groups] => Array
        (
            [0] => 101
            [1] => 112
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrator
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 101
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
    [1] => select * from cpg143_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg143_bridge (0s)
    [3] => 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 cpg143_usergroups WHERE group_id in (101,112) (0.001s)
    [4] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 101 (0s)
    [5] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 5 (0.008s)
    [6] => SELECT count(*) FROM  cpg143_pms WHERE owner=5 (0.002s)
    [7] => SELECT count(*) FROM  cpg143_pms WHERE owner=5 AND showed='0' (0s)
    [8] => SELECT count(*) FROM  cpg143_buddy WHERE user_id=5 (0s)
    [9] => SELECT count(*) FROM  cpg143_buddy_req WHERE buddy_to=5 (0s)
    [10] => DELETE FROM cpg143_banned WHERE expiry < '2006-03-29 12:02:49' (0.001s)
    [11] => SELECT * FROM cpg143_banned WHERE (ip_addr='203.171.95.241' OR ip_addr='203.171.95.241' OR user_id=5) AND brute_force=0 (0s)
    [12] => SELECT aid, title FROM cpg143_albums WHERE 1 (0s)
    [13] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.003s)
)

==========================
GET :
------------------
Array
(
    [insert] => 1
    [archnew_php?insert] => 1
)

==========================
POST :
------------------
Array
(
    [d0000] => 1
    [pics] => Array
        (
            [0] => i0000
            [1] => i0001
            [2] => i0002
            [3] => i0003
            [4] => i0004
        )

    [album_lb_id_i0000] => d0000
    [picfile_i0000] => ZnRwL1BpZXJzLWFuZC1IYXJsZXktaW4tZm9hbS5qcGc=
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => ZnRwL1BpZXJzLWFuZC1IYXJsZXktaW4tZm9hbTIuanBn
    [album_lb_id_i0002] => d0000
    [picfile_i0002] => ZnRwL1BpZXJzLWFuZC1IYXJsZXktaW4tZm9hbTMuanBn
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => ZnRwL3N0cmF3YmVycnlfMDMwNTc1LmpwZw==
    [album_lb_id_i0004] => d0000
    [picfile_i0004] => ZnRwL3N1bnNoaW5lX29uX3RyZWVzLmpwZw==
    [insert] => Insert selected files
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.25-standard
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 2
Active Links 3
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/*******:/usr/lib/php:/usr/local/lib/php:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.367 seconds - 14 queries in 0.016 seconds - Album set : ; Meta set: ;

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 29, 2006, 02:49:30 pm
I've tried batch adding and it worked ??? (nice theme btw)
777 (folders) and 666 (files) are coppermine 1.4 standard. If apache's running under it's own username then this permission settings are necessary
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on March 29, 2006, 04:12:45 pm
That's odd... (thx for the compliment btw)

It DOES  seem to be working, even though it's giving errors for every file instead of the "OK" icon. One question though, is it supposed to be leaving all of the files (original, orig_,thumbs etc) in the ftp upload folder?

Viewing albums in Coppermine seems to work OK, but if I import a picture  into user #5's gallery I would assume the files would go into albums/userpix/1005, but they're just staying in ftp. When I delete them from the ftp folder, they're no longer viewable in CPG.

Is this normal?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Goosemoose on March 29, 2006, 08:45:43 pm
Here's an updated util.php.
When you're recreating thumbs/ images in the admin tools then you can set an auto refresh flag. If set, the update process auto refreshes and you won't need to click 'continue' anymore.
The big advantage.... you can set the nuimber of images to process to a  low value eg (2-5). Now the chances the script times out are limited. Means you don't need to restart the entire process and sit in front of your monitor for hours clicking 'continue' (if you've a huge number of pics in your db)

You can turn auto refresh on/ and off on the admin tools page
Update thumbs and/or resized photos (1) - (checkbox) Auto refresh (no need to click continue button anymore)

The text on admin tools page is still hardcoded. This will be changed when I release the next modpack version and add the autorefresh hack to it.

Could you post that file on your site or email it to me at webmaster@goosemoose.com ? I get an error when trying to download it.

Thanks!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 29, 2006, 09:32:02 pm
That's odd... (thx for the compliment btw)

It DOES  seem to be working, even though it's giving errors for every file instead of the "OK" icon. One question though, is it supposed to be leaving all of the files (original, orig_,thumbs etc) in the ftp upload folder?

Viewing albums in Coppermine seems to work OK, but if I import a picture  into user #5's gallery I would assume the files would go into albums/userpix/1005, but they're just staying in ftp. When I delete them from the ftp folder, they're no longer viewable in CPG.

Is this normal?

Expected (normal) behaviour
works the same way as in a not modded coppermine.
userpics is only for http upload
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 29, 2006, 09:39:30 pm
Could you post that file on your site or email it to me at webmaster@goosemoose.com ? I get an error when trying to download it.

Thanks!

soon there'll be a new modpack including the auto refresh hack
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: RobbenR on March 29, 2006, 09:48:43 pm
Stramm sorry but I'm a nOOb in php so I don't know how to do that..
I would realy like to have it but I have been looking to the file but I don't understand a thing. :o

any kind of support would be realy nice.

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: chican0 on March 30, 2006, 08:22:59 pm
Awsome ModPack! Thanks! Works great for me! I basicly only needed it for the watermarking but yeah, it's awsome!

I did run into a bit of a problem when trying to apply the watermark to previously updated items but I worked that issue out by modifying my php.ini. I had to increase the memory_limit a little so the util.php could properly work on images that were high resolution.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Goosemoose on March 30, 2006, 09:05:16 pm
Hi Stramm,
 I used the new util.php but there is a bug with the auto refresh. After the first refresh the setting changes to resizing thumbnails no matter what your original choice was.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on March 31, 2006, 05:18:40 pm
Hi Stramm,
 I used the new util.php but there is a bug with the auto refresh. After the first refresh the setting changes to resizing thumbnails no matter what your original choice was.

thanks, I'm just uploading a new modpack version, fixed version is included
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on April 02, 2006, 11:48:41 pm
well, i've uploaded all my images and i have installed this mod pack, and got everything working with stramm's help, but now a i have a wierd problem

i need my site in spanish, and when i select the language, nuthing happens, it stays in english. i've deactivated the language autodetect, but it still won't change

how can i fix this??????
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 03, 2006, 08:41:31 am
usually that's cookie problems... have you tried to clear them
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Senator on April 03, 2006, 06:26:15 pm
please ask modpack 1.4 questions here
http://forum.coppermine-gallery.net/index.php?topic=28367.0

to the broken thumbs... minithumbs are required in the avatar and subscribtion manager. I think you've turned them on already but haven't created them yet for old pictures (the ones that were already uploaded before you turned mini thumbs on, works only since you enabled)

emailing: I just tried with my installs.. working as it should. I can imagine problems if you / your users use other languages than english and you haven't copied the buddy lang stuff into the proper lang file (or you haven't turned on lang fallback - still that's not heavily tested with the buddy list). Please try with english only (to request/ accept)

I've the tried it in the english language, and ive copied to dutch. Same problem.

And is there a possibiliy to make the old uploads visable in avatar en subscribtion?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Senator on April 03, 2006, 06:27:12 pm
I've the tried it in the english language, and ive copied to dutch. Same problem.

And is there a possibiliy to make the old uploads visable in avatar en subscribtion?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on April 03, 2006, 06:59:25 pm
ok, i did the cookie thing and it worked perfectly, but now my question is the following, how do i translate this modpack? is there a spanish translation for this and if so where do i download it?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 03, 2006, 07:02:39 pm
ok, i did the cookie thing and it worked perfectly, but now my question is the following, how do i translate this modpack? is there a spanish translation for this and if so where do i download it?

no, there's only a french translation so far. You'll have to take the orig english coppermine lang file and the modpack english lang file. View both with a diff viewer (like WinMerge) and copy the differences to your spanish lang file and translate. I'd be more than happy if you'd publish the result here  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on April 03, 2006, 07:10:48 pm
ok i will do that
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on April 03, 2006, 07:14:58 pm
where do i find the entries that i'd have to translate?

could you please post the lines where i can find them, and i will translate to spanish for you
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 03, 2006, 07:44:45 pm
You'll have to take the orig english coppermine lang file and the modpack english lang file. View both with a diff viewer (like WinMerge) and copy the differences to your spanish lang file and translate. I'd be more than happy if you'd publish the result here  ;)

That'll show you the new, modpack related text that needs to be translated
http://winmerge.sourceforge.net/ (OpenSource software)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 03, 2006, 07:45:32 pm
I've the tried it in the english language, and ive copied to dutch. Same problem.

And is there a possibiliy to make the old uploads visable in avatar en subscribtion?

if anybody ever wonders... it started here http://forum.coppermine-gallery.net/index.php?topic=21469.msg138574#msg138574

of course it's possible to create mini thumbs for older pics.. as well as for everything else, thumbs, imtermediate, fullsized pics (for the modpack turning on/ off watermarking works the same)

dutch: (copied from config - Files and thumbnails settings  [Bestanden en thumbnails instellingen])
sorry, I've forgotten to add the two ** after the mini thumbs config entry ;)
(**) Als deze waarde wordt aangepast zullen alleen bestanden vanaf dit moment beinvloed worden. Het is aanbevolen deze waarden niet aan te passen als er al bestanden in de database zitten. Je kunt waardes aanpassen via het "beheerders gereedschappen menu (afbeeldinggrootte aanpassen)".

english:
(**) When changing this setting, only the files that are added from that point on are affected, so it is advisable that this setting must not be changed if there are already files in the gallery. You can, however, apply the changes to the existing files with the "admin tools (resize pictures)" utility from the admin menu.

The buddy list email problem... I can't replicate it. Really strange for me. All three use the same config setting as trigger and the same function to send the email. Just the text is different. If you don't mind, can you send me (PM) an admin login (URL, usr, pwd)? 
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 03, 2006, 08:15:08 pm
thanks for the login.. I've had a look and everything works for me like a charm. I've created 2 users stramm1 and stramm2. stramm1 requested to be friends with stramm2 (stramm2 reseives request email), stramm2 accepts and stramm1 receives the 'buddy request accepted' email. I've used the english lang file

Code: [Select]
Hello stramm1,

stramm2 accepted your request. You have added this user to your buddy list.
Please click here to check your buddy manager!
http://www.your_domain.nl/buddy_manage.php

Admin

I suspect that you haven't really added the user as buddy. Did you see a message on your screen after adding a user as buddy like (User has been added to your buddy list...)?? If not then you haven't added him and no email has been sent
I hope you have recognized the checkbox to the right of the user name. You have to check it (or if there are more entries, then you have to multi select the entries you wish to accept/ deny). Then go to the drop down and chose what you want to do with the selected entries. No hit the go button.

I hope that solves your problem
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Senator on April 03, 2006, 09:26:04 pm
It's look that the script not send to the webmasteradres, en an hotmailadres.

i.ve make two accounts test1 and test 2 ( test1 has a popmail (not same as webmasteradres** , and test 2 has an hotmail

1-- test1 do a request to test2 ( he send one e-mail to hotmail)
2--test2 accept( he send one mail to popmail)
So that's works

i clear both buddylist

3--test2 do a request to test1( he send a mail to popmail)
4--test1 accept ( but he sending nothing to hotmail) 

**it looks like it has the same problem as point 4  (webmasteradres = popmail.)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 03, 2006, 10:26:50 pm
I'd say the script sends out all mails as it should. Just some of your email providers block mail from your domain.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Senator on April 03, 2006, 11:12:29 pm
That's possible. maybe becausse the word "sex" is in the mail.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on April 04, 2006, 03:28:21 am
That'll show you the new, modpack related text that needs to be translated
http://winmerge.sourceforge.net/ (OpenSource software)

i haven't the slightest idea of how to use that program  ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on April 04, 2006, 07:49:07 am
then read the docs that come with it and are available online as well on the winmerge page.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: gringohh on April 04, 2006, 06:22:54 pm
well i tried using that program with no luck, so i was wondering if it is at all posible for you to send me te entries that you added for this mod, so that i can translate this for you and make it available for everyone that needs it

hiphopchile@gmail.com

please
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 04, 2006, 06:27:49 pm
that's I guess to much, lol... believe me, it's far easier with WinMerge
Start the prog , then file -> open
for 'left' browse to the original lang/english.php
for 'right' browse to the modpack lang/english.php
hit OK

all colored lines have been modified
copy them into your spanish langfile and translate away ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: shelt on April 09, 2006, 01:04:22 am
First, I would like to say thanks for a great mod. I have been able to get all of the features working with SMF+Bloc+Coppermine, and they exceeded my expectations.

My question is that I have no other troubles with uploading except with the "changethumb.php" file.
Whenever it is used, the user gets the message:

No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...


Running the debug I get the error:
/changeThumb.php
Notice line 29: Undefined variable: HTTP_POST_FILES


I have checked the phpinfo and do not see this as a listed environment variable. But then again, I could not say for certain it would show in this list.
Is there some coding that could be changed in "changethumb.php" to allow the uploading of image files so the user could select their thumbnails, as it would be a very useful feature.
My level of php coding is not very good, basically I can follow direction I get from these forums, and some very basic changes.
Thanks for any help, and thanks again for a great mod!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 10, 2006, 08:38:18 am
thanks,

either try
http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#httpPostVars

alternatively (> PHP 4.1) you may open changeThumb.php and avatar_manage.php and change all occurances of
Code: [Select]
$HTTP_POST_FILESto
Code: [Select]
$_FILES
(this'll go into the next version too)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: shelt on April 10, 2006, 10:38:01 pm
The link to change "init.inc.php" did not seem applicable as the line was already commented out.

Code: [Select]
//$PHP_SELF = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : $_SERVER['SCRIPT_NAME'];

$PHP_SELF = '';
$ORIGINAL_PHP_SELF = $_SERVER['PHP_SELF'];

I tried first to comment out the $PHP_SELF = '';
and recode the following line to $PHP_SELF = $_SERVER['PHP_SELF']; and I would not recommend that to any one reading this  ::)

But the alternate method worked like a charm! Thanks for the help.
I should have stated in my original post my host is using php version 4.4.2
Good job and thanks for the quick reply.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Castilla on April 11, 2006, 05:41:35 pm
Hello Stramm... I have a question...I just install coppermine whit your mod My server don´t want to install ImageMagick... they do have Gd2... Is that a problem??? I´m doing a big web gallery and I´m afraid that something go wrong!!!
Thank´s Adriana Castilla
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 11, 2006, 05:46:22 pm
no problem at all.. everything works works pretty yummy with both, GD2 and ImageMagick
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on April 12, 2006, 02:32:18 pm
Hi Stramm,

I'm getting an error any time I have the SMF bridge turned on with the MOD. I'm running cpg 1.4.4, SMF 1.1 RC2, the modpack. All are in the same DB. When I click on the thumbnail, the page that normally shows the intermediate image comes up with:

While executing query "SELECT c.msg_id, c.msg_author, c.msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, c.author_id, c.author_md5_id, c.msg_raw_ip, c.msg_hdr_ip, c.pid, u.avatar AS avatar_url FROM ******* AS c LEFT JOIN `*******`.******* AS u ON c.author_id=u.ID_MEMBER WHERE pid='351' ORDER BY c.msg_id ASC" on Resource id #22
mySQL error: No Database Selected



All *******'s are added.

It ONLY does this when the bridge is enabled. I couldn't find anything like it on the forums (or in 11 pages of this thread) so any help would be awesome. I'll PM you a link.

Here's the crazy long debug info thang:

Code: [Select]
USER:
------------------
Array
(
    [ID] => *******
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 275
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 5
    [user_name] => *******
    [groups] => Array
        (
            [0] => 101
            [1] => 112
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Administrator
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 101
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
    [1] => SELECT * FROM cpg143_bridge (0.008s)
    [2] => 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 ******* WHERE group_id in (101,112) (0s)
    [3] => SELECT group_name FROM  ******* WHERE group_id= 101 (0s)
    [4] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 5 (0s)
    [5] => SELECT count(*) FROM  cpg143_pms WHERE owner=5 (0.004s)
    [6] => SELECT count(*) FROM  cpg143_pms WHERE owner=5 AND showed='0' (0s)
    [7] => SELECT count(*) FROM  cpg143_buddy WHERE user_id=5 (0s)
    [8] => SELECT count(*) FROM  cpg143_buddy_req WHERE buddy_to=5 (0s)
    [9] => DELETE FROM cpg143_banned WHERE expiry < '2006-04-12 22:13:22' (0s)
    [10] => SELECT * FROM cpg143_banned WHERE (ip_addr='203.171.95.241' OR ip_addr='203.171.95.241' OR user_id=5) AND brute_force=0 (0s)
    [11] => SELECT title,keyword from cpg143_albums WHERE aid='2' (0s)
    [12] => SELECT COUNT(*) from cpg143_pictures WHERE ((aid='2'  ) )   (0s)
    [13] => SELECT * from cpg143_pictures WHERE ((aid='2'  ) )   ORDER BY filename ASC  LIMIT 0 ,1 (0.007s)
    [14] => SELECT title, comments, votes, category, aid FROM cpg143_albums WHERE aid='2' LIMIT 1 (0s)
    [15] => SELECT name, parent FROM cpg143_categories WHERE cid = '2' (0s)
    [16] => SELECT c.msg_id, c.msg_author, c.msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, c.author_id, c.author_md5_id, c.msg_raw_ip, c.msg_hdr_ip, c.pid, u.avatar AS avatar_url FROM cpg143_comments AS c LEFT JOIN `pleasure_joomsmf`.smf_members AS u ON c.author_id=u.ID_MEMBER WHERE pid='351' ORDER BY c.msg_id ASC (0.001s)
    [17] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.003s)
)

==========================
GET :
------------------
Array
(
    [album] => 2
    [pos] => 0
    [photos] =>
    [displayimage_php?album] => 2
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.25-standard
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 1
Active Links 2
Client API version 4.0.25
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -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/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | /home/pleasure:/usr/lib/php:/usr/local/lib/php:/tmp | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.206 seconds - 18 queries in 0.024 seconds - Album set : ; Meta set: ;
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 12, 2006, 04:16:54 pm
happens when using 2 db users
http://forum.coppermine-gallery.net/index.php?topic=28367.msg134948#msg134948
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on April 12, 2006, 04:33:51 pm
I saw that post, and only have the one DB user shared between CPG and SMF...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 12, 2006, 04:44:31 pm
have you tried the fix?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on April 12, 2006, 06:49:07 pm
Cool. That fix, seems to have worked a treat. Now my last challenge is to get the watermark (which I've had working before) working again...


Yet, still no watermark... This is the last fix (I know of) to get everything running smooooth so I can go to bed (with any luck before the sun comes up).
All help appreciated, as always... :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 12, 2006, 07:53:04 pm
mydomain.com... that doesn't help me much
and I guess same for my_theme
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fotomaniak on April 12, 2006, 08:10:22 pm
Call me security conscious. I've sent you a PM with the image link, and admin login details. Hope that helps more.  ;) Thx again
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 13, 2006, 08:55:04 am
everything is working as expected... I just readded the absolute path to the watermark image with the info you've given and did a testupload. Pretty perfect. You should recreate all thumbs, the intermediate and fullsized pics using the admin tools. With the new autorefresh feature it's a breeze. That will attach the watermark to all images that don't have one yet. Also it will fix some of your thumbs. Looks to me like if you've played with thumbs settings and now some are distorted.
And don't delete pics using your FTP clieant. To get rid of the database entries you'll have to directly edit the db
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: FIRST on April 14, 2006, 05:46:35 pm
hi
i have uploaded the mod in the coppermine folder.
than i runned update.php
than i runned the index.php and i get only a fatal error????
what is wrong
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 14, 2006, 06:05:45 pm
make sure you've uploaded all files (including the sql folder) leaving the dir structure intact
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: THoTH_2005 on April 16, 2006, 02:34:39 am
You're tireless Stramm, great to see you supporting this excellent work, can I ask how it would be possible to either or both

a) Have a checkbox on the upload to determine if that file is to be watermarked, else just upload and store as usual.
b) To have selectable albums that are watermarked, else just display and store as usual.


Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 16, 2006, 08:31:50 pm
for the old cpg 1.3.3 I had a watermark hack that allowed the admin to disable the watermark on upload
http://forum.coppermine-gallery.net/index.php?topic=16286.msg90883#msg90883

not tested and for 1.3x.. so it needs some modifications

to only watermark pics in sepecific albums...
1. alter the albums table, needs an entry watermark yes/ no
2. modify the album manager (modifyalb.php) so you can turn on/ off watermarking for each album (dropdown or checkbox would do)
3. modify upload.php and searchnew.php (functioncall add_picture needs to get enhanced with album watermark yes/ no )
4. modify picmgmnt.inc.php -> function add_picture so it doesn't watermark if album watermark is set to no

shouldn't be that hard ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: THoTH_2005 on April 17, 2006, 12:37:09 am
Shouldn't be hard for you Stramm, you wrote it ;)

As for me, it's like learning chinese and what the author was meaning at the same time. Appreciate you've not got the time my friend, and I'm only a newbie when it comes to modifying others code. Thanks for pointing me in the right direction though, some day I'll take a look see what I can do.

Title: Missing watermark on recreated intermediate size images
Post by: fotomaniak on April 17, 2006, 05:36:40 am
everything is working as expected...  You should recreate all thumbs, the intermediate and fullsized pics using the admin tools. With the new autorefresh feature it's a breeze. That will attach the watermark to all images that don't have one yet.

This is odd... the watermark does appear to be working with both file upload and batch add, yet recreating images with admin tools doesn't seem to be changing anything (thus why it looked like it wasn't working for me and it was for you). For testing purposes, all files and folders in the "Albums" directory have been chmodded to 777. Just to make sure I'm doing this right I'm:

1. Clicking on "Admin Tools"
2. Checking the radio button next to "Update thumbs and/or resized photos (1)"
3. Checking the radio button next to "Everything... full sized, resized and thumbs"
4. Changing the "Number of processed images per click" at 15 to avoid timeouts.
5. Selecting "All albums" at the bottom.
6. Clicking submit.
7. Clicking "Process More Images" each time the page refreshes until button disappears.
8. Looking at images in coppermine and refreshing the browser to make sure it's not cached.

I get a whole bunch of messages telling me that each file has "updated succesfully!". When I look at pictures in the albums, all of the intermediate images missing watermarks continue to be missing watermarks. They're also missing from most (to all) full size images in the pop ups, although I'm not fussed about this as I'll be installing the plugin to block these popups anyway. I'm not getting any kind of error message or timeout.

Thanks Stramm. I appreciate your help with this.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 17, 2006, 09:14:06 am
that's permissionm issues. Read the thread, it has been answered already (you'll have to chmod the files as well, mainly when you've upgraded from 1.3 and haven't done that already, ). New files (uploaded with 1.4) usually aren't affected.
Same for batch add files... if the php user isn't allowed to modify (write) your files. Cause then all works out, just the system isn't able to write the watermarked image to the disc.

Or just use the same user/ group for html/ php and ftp uploads
Title: [solved] Missing watermark on recreated intermediate size images
Post by: fotomaniak on April 17, 2006, 01:43:26 pm
that's permissionm issues. Read the thread, it has been answered already (you'll have to chmod the files as well

Hi Stramm Thanks for the reply,
All the files (along with the directories) in /albums were already chmodded to 777. Chgrp and chown were already set to the same as my ftp uploads.

After reading through every post on this board I could find with the search on permissions, the admin tool, chmod or the watermark and not finding anything that looked relevant (given that permissions were already 777) I finally got it figured out. It was actually soime wierd kind of caching problem. I thought it might have been because I was using Firefox, so I looked at it in IE and voila, the watermark was there. Wierd thing is that I'd already hit refresh in FF (with shift held down) a number of times. After I viewed the image in IE though, it showed up the very next time in FF. I can only guess that my ISP might have been caching it. Who knows.

Anyway, for anyone else having this kind of problem I guess I would just suggest something like viewing one of the images directly in multiple browsers and refreshing often and possibly trying to view the image via different indirect urls.

Anyway, thanks Stramm for the advice and for looking into this. In the words of Martin Luther King "Free at last, free at last, thank god almighty we are free at last!"  ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Impeerator on April 18, 2006, 10:38:20 am
Well, now I updated my Coppermine from 1.3.3 to 1.4.4 and installed your modpack (great work, by the way!). Now I have only two questions left:

I want the watermark to look like this (http://www.impeerator.de/coppermine/albums/01_test/normal_bild_004.JPG) (like it looked before I updated and installed you modpack), but I only get it like this (http://www.impeerator.de/coppermine/albums/01_test/normal_bild_010.JPG) or like that (http://www.impeerator.de/coppermine/albums/01_test/normal_bild_012.JPG). So have you got an idea how to get the whole watermark transparent and not only the white text?

Furthermore, I always had the klicks number below the thumbs of my gallery, now it's beside it. Can I get it back below the thumbs?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 18, 2006, 10:42:49 am
due to GD2 problems I've removed the config option 'transparency' for GD2... (as said in the docs)
to achieve your desired effect don't use feather x,y
but open your watermark file in your paint prog, set its layer transparency to ~50%, save, upload ... watermark a test image
(as mentioned in the docs, post2 in this thread)

for ImageMagick the transparency setting in config still is enabled and will exactly do what you've in mind
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Impeerator on April 18, 2006, 03:25:37 pm
due to GD2 problems I've removed the config option 'transparency' for GD2... (as said in the docs)
to achieve your desired effect don't use feather x,y
but open your watermark file in your paint prog, set its layer transparency to ~50%, save, upload ... watermark a test image

Well, but then I am again there where I was at the beginning: I can do with the png-file what I want, I never get the entire watermark transparent on the images. It just doesn't function. :( Your old mod on cpg133 did it like I wanted...

for ImageMagick the transparency setting in config still is enabled and will exactly do what you've in mind

I only can use GD2 :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 18, 2006, 05:05:43 pm
again... use your paint prog (eg. Photoshop) nd open your watermark with it. Now reduce layer transparency to ~50%, save, upload
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: terrorhawk on April 18, 2006, 06:54:18 pm
ok here is a quick fix on the online/offline status in the users profile..

THIS FIX ONLY WORKS WITH THE ONLINESTATS PLUGIN ( check this topic (http://forum.coppermine-gallery.net/index.php?topic=26532.0))

in profile.php find

Code: [Select]
if($onlinestats){
if ($user_data['isonline'] != "") {
$online = "<img src=\"{$THEME_DIR}images/useron.gif\" alt=\"\" border=\"0\" /> $lang_register_php[on]";
echo "";
} else {
$online = "<img src=\"{$THEME_DIR}images/useroff.gif\" alt=\"\" border=\"0\" /> $lang_register_php[off]";
}
} else {
$online = "";
}

And replace with this
Code: [Select]
if($onlinestats){
$CONFIG['TABLE_ONLINE'] = $CONFIG['TABLE_PREFIX']."mod_online";
$result = cpg_db_query("SELECT user_id FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id = '".addslashes($user_data[user_id])."'");
$user_data['isonline'] = mysql_num_rows($result);
mysql_free_result($result);
if ($user_data['isonline'] != "") {
$online = "<img src=\"{$THEME_DIR}images/useron.gif\" alt=\"\" border=\"0\" /> $lang_register_php[on]";
echo "";
} else {
$online = "<img src=\"{$THEME_DIR}images/useroff.gif\" alt=\"\" border=\"0\" /> $lang_register_php[off]";
}
} else {
$online = "";
}


As far as i have tested it this sould do the trick

*NOTE*
THIS DONT WORK FOR THE BUDDY LIST !
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Impeerator on April 18, 2006, 07:43:22 pm
again... use your paint prog (eg. Photoshop) nd open your watermark with it. Now reduce layer transparency to ~50%, save, upload

Yes, I understand what you tell me, but it just doesn't work! Coppermine (or GD2?) doesn't care at all what I do with this png. It's never 50 % transparent. I'm going crazy! I've tried many many many configurations of the png and the picmgmt.inc.php, it's never transparent as watermark. Either it just puts the entire watermark image normally without any transparence into my pictures, or it only put's the white Logo of the watermark image as watermark on the pictures, and the black background of the watermark isn't shown at all. But 50 % transparence... never. :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 19, 2006, 10:20:21 am
done with GD2 and the pngs layer transparency set to 50%
http://stramm.st.funpic.org/displayimage.php?album=7&pos=5
no further adjustments in config or picmgmnt.inc.php (nothing needs to be modified here)
leave 'Set color transparent x,y' to it's default 0
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Impeerator on April 19, 2006, 04:02:07 pm
It's okay. I modified something and now it works just as I wanted it :)

Maybe my paint program (Ulead PhotoImpact) is not good in creating png-files. Or I just can't handle with it.

But whatever, now it works correctly and I again have to say that your mod is very good. I'll try to create a German language-file for the functions you added.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: terrorhawk on April 19, 2006, 07:16:14 pm
i'm allready working in a dutch translation
i have added all changes intro the original dutch.php now i only have to translate it
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 19, 2006, 08:36:54 pm
I'd appreaciate to see both language files, the Dutch and the German one  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: opulence on April 20, 2006, 10:05:38 am
I'm loving this mod, I have a pretty practical request, tell me what you think

When integrated with a phpbb2 board, having a single profile page (not a seperate one on the forums and a seperate one on the CPG) that combines all the info from both the board and the CPG.  For instance, 1 profile page that Last uploaded File / Last Comment / etc + PM user , and all the user contact info
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on April 21, 2006, 09:50:14 am
...would require the modification of the code of the app you bridged coppermine with, so this would have to be done for each and every app you can bridge coppermine with. Would require in-depth knowledge not only of coppermine, but the bridged app as well. Impossible imo. This isn't something the dev team is up to. If you need it, you will have to code it.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Impeerator on April 22, 2006, 12:17:33 pm
Now I've finished the translation into German. But when I upload the language file, the whole gallery doesn't work anymore. There's just the followin error:

Parse error: parse error, unexpected '}' in /homepages/18/d107423735/htdocs/coppermine/lang/german.php on line 1290

But there's nothing in line 1290...  ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: terrorhawk on April 22, 2006, 01:53:48 pm
Send the file to me and i will have a look..
maby u dint close somthing propper
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 22, 2006, 03:53:54 pm
or post it here... I'd say you missed a bracket somewhere
first place to have a look at is the bracket after
if (defined('DB_INPUT_PHP'))
I think there wasen't one in the orig...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Impeerator on April 22, 2006, 03:57:36 pm
I found the mistake, now it works :)

You can find the German language file here (http://www.impeerator.de/coppermine/lang/german.php)

I hope I have translated it correctly and didn't make any mistakes...

Edit: I attached the language file to my post.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: terrorhawk on April 22, 2006, 08:29:50 pm
Nice one. but we cant download it from there.
attach it in you'r post sow stramm can add it to the pack

Dutch translation would be done this week
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 22, 2006, 09:21:18 pm
with the update for 1.4.5 there'll be one additional entry in the english lang file... you both may wish to already add it to your translations

after
Code: [Select]
  array('Transparency 0-100 for entire image', 'watermark_transparency', 0),
will be
Code: [Select]
  array('Downsize watermark if width of an picture is smaller than entered value. That is the 100% reference point. Resizing of the watermark is linear (0 to disable)', 'reduce_watermark', 0),
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: n3n on April 22, 2006, 11:38:26 pm
Hi Stramm, your mod still works very nice.
I have a question if you could help me with it, asked you before to point me in the right direction, but due to my
lack of knowledge didnt work out.

Would it be possible for the intermediate and fullscreen image to have different watermarks.

I use a pretty big watermark, and that would be taking up too much space on the intermediate images.

Think alot of users would really apreciate this feature.


Tnx alot and keep the mods coming.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 22, 2006, 11:39:27 pm
I found the mistake, now it works :)

You can find the German language file here (http://www.impeerator.de/coppermine/lang/german.php)

I hope I have translated it correctly and didn't make any mistakes...

Edit: I attached the language file to my post.

thanks, looks excellent ;)
Your lang file will get added to the 1.4.5 update
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 22, 2006, 11:44:22 pm
Hi Stramm, your mod still works very nice.
I have a question if you could help me with it, asked you before to point me in the right direction, but due to my
lack of knowledge didnt work out.

Would it be possible for the intermediate and fullscreen image to have different watermarks.

I use a pretty big watermark, and that would be taking up too much space on the intermediate images.

Think alot of users would really apreciate this feature.


Tnx alot and keep the mods coming.

I've just finished that function. Look at the post above yours and you'll see the new config entry
You can define a picture width where the watermark will be 100%. If an uploaded fullsized pic or an intermediate one's smaller then the watermark gets downsized accordingly (to the percentage of (uploaded or intermediate / new config setting * 100) )

you set eg 1280, upload a 640px picture -> watermark gets resized to 50%
set 1280, intermediate is 320 -> watermark resized to 25%

works with both, ImageMagick and GD2
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: n3n on April 23, 2006, 01:38:31 am
Tnx for the quick reply.

But what update for 1.45 do you mean ? Couldnt find it on your site.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 23, 2006, 08:17:46 am
not up yet, still working on some lil things and testing it right now.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 23, 2006, 10:46:33 am
announcing...
you all can download the modpack v1 for CPG 1.4.5 with bridge support on my demo site
http://stramm.st.funpic.org

please read the updated docs for the watermark and don't forget to run update.php
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Impeerator on April 23, 2006, 10:51:55 am
I added and translated the new watermark resize function for 1.4.5 to the german.php. The file is attached to this post. :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on April 24, 2006, 07:04:03 pm
thanks, have added it to the zip
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: sib on May 02, 2006, 07:14:30 am
thanks! luv it!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: mukoh on May 02, 2006, 08:50:23 am
My coppermine started asking for some plugin in order to view full pic with this plugin. What gives?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 02, 2006, 09:37:35 am
Don't start multiple therads and don't PM me unless asked. When you've registred you agreed to that (despite it's plain impolite).
http://forum.coppermine-gallery.net/index.php?topic=16286.msg143608#msg143608
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: julala on May 05, 2006, 07:20:34 pm
Thank you for this mod.  The buddy and PM systems are real gems for me.

At risk of being killed for asking for further features to the mod on this thread (I wasn't sure where else to put it)

Would it be possible to make it so that people could block certain members from sending messages to them or have it so that only people on their buddy list can send messages to them.

I have a sometimes roudy bunch on my site and whilst the messaging will be a fantastic and need addition I don't want them terrorising each other or have risk of potentially unwanted messaging that could put people off from visiting.

Many thanks

Julala

http://www.smileonthetiles.com (http://www.smileonthetiles.com)

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 05, 2006, 07:53:13 pm
this'll require another checkbox in the users profiles (-> only allow buddies to send me PMs)
not really hard to code.

The other option however sounds better to me but is far harder to do.
-> a new button 'block user' (when viewing the PM)... but that'll mean another table and another page where users can remove/ add to their block list

I'm mot sure yet if and what
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: julala on May 05, 2006, 10:46:12 pm
Happy to sponsor the additional coding - PM me if that sounds worthwhile Stramm


Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: julala on May 08, 2006, 11:56:04 am
One small problem I'm having with the buddy list.  When I bring up the buddy list in "my profile" with several buddies, only the first one is showing in the list of buddies.

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.smileonthetiles.com%2Fvids%2Fbuddylist.JPG&hash=fa79ee0ed67f3465455421bc17144eeb12da7e1d)

It is possible that I have mucked something up whilst developing my theme but maybe not.....

Also:  I have noticed that I don't have "block user" as an option, which I think should be there.

http://www.smileonthetiles.com/smiles

Test account:

username: testuser
password: temporary1

Thank you in advance.....
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 08, 2006, 12:42:00 pm
It's a bug. Happened when I've added support for Nibbler's online stats. Download the latest modpack and replace your buddy_manage.php with the new one.

There's no button or option 'block user' but there's a list 'blocked users'. If you don't accept a buddy request, then that not accepted user'll end up on your blocked users list. Means he won't be able to request friendship again till you remove him from that list.
Otherwise the buddy list is working like eg. ICQ. You can remove a user from your list but that'll not remove you from his list.
Hmm.. but blocking a user after having accepted the buddy request may be useful too (if connected with the PM functionality) (think, think)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: julala on May 08, 2006, 01:21:05 pm
Ah lovely.....thank you - works perfectly now.

I though I had installed the latest version - doh!

Many thanks straam
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on May 09, 2006, 10:08:02 pm
Hi Stramm

Is there anyway of adding any additional profile info to the top left corner where the welcome, pm & buddies is ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 10, 2006, 08:11:40 am
of course.. copy the function loginForm from themes.inc.php to the theme you're using (if not already existing there) and modify it to your needs
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on May 10, 2006, 08:47:47 pm
Great, thanks stramm  ;D
Title: Is mod made compatible with the CPMFetch?
Post by: cgc0202 on May 13, 2006, 01:29:26 am
Hi Stramm,

I have used your mod to create  square thumbnails.  The creation of thumbnails worked, but there are some glitches that I will present in the future.  Right now, I am more focused on a more critical issue that I discussed in greater detail in this link:

http://forum.coppermine-gallery.net/index.php?topic=19564.msg145627#msg145627

I posted this here to find out if your mod has been tested with the latest version of CPMFetch v1.6.2?  The posters there were able to solve the problem but they might be using the  earlier versions of CPG1.4.  I am trying to find the culprit.

Thanks.

cgc0202
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 13, 2006, 09:44:02 am
I haven't tested the mod with CPMFetch and I do not know if anyone's using these two together. The link you posted... that's a lot to read. Would be yummy if you could post a rundown here

If there are glitches with the square thumbs that I'm not aware off... tell me.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: cgc0202 on May 13, 2006, 04:21:24 pm
Hi Stramm,

Vuud was able to diagnose the problem on the CPMFetch, at least for one of them.  I did something very unconventional -- I placed the photos outside of the Coppermine Gallery itself, based from another thread.  It works that way also, but the CPMFetch was designed to recognize the photos to be in the default "albums". He suggested a patch to deal with the uncoventional placement of the pics -- and that solved the problem.

Anyway, in regard your mod, the "square pics" creation worked, as I told you in another thread. However,  certain things did not work properly.  Here are some of them:

(1) I opted for some features, like having the "mini-thumbs" in the slide show.  The mini-thumbs worked for the "Classic" theme but not for the "Hardwired" or the other themes I opted to keep -- all of them showed the standard larger thumbs.  So there must be something in the code of the Classic that was not in the others.

Because of the discrepancy, I cannot add as many thumbs at the bottom of the slide show. To illustrate this point: five (5) of "150pix thumbs" would almost fill  the reel in the slide show, but  five (5) of "75pix thumbs" in the working Classic would look odd -- it no longer looks like a film negative since only a portion of the simulated film reel was filled.

(2) Among the options also was ability to use the  "mini-thumbs" for the icon of the Album folders -- as was shown in your Demo website.  I double-checked several times that I "checked" the appropriate boxes in the "Config" in the "Album list view", i.e., I specified 75 pixels for size and checked "Yes" for "Use mini thumb as category lead image".

Here is what happened when I did that.  When I just created an album, the "mini thumb" size, as specified did indeed show;  but once I placed photos, mainly using the "batch load", the empty album image was then replaced with the standard thumb size.   In my case the standard thumb size is 150 -- so it is quite huge, and occupies much height space, especially if I have many albums.

I observed the above tansformation from mini to standard thumbs -- once the album is filled --  in all the themes, including the Classic.  So, I was not getting the same "mini thumbs" as shown in your Demo page.

(3) I think I observed this after I applied the "mod".  If I chose the default of "last uploaded" photo as the image showing in the "Album", the image in the Album folder would change, everytime I added a new photo.  I believe this was the case a long time ago -- not sure now -- before I added your mod.

Now, if I added say ten photos in one batch -- using the batch mode -- the last photo in that batch did indeed appear as the image in the Album.  However, the next time I added more, the last of the newly added set of photos would no longer replace the image in the album -- even if I still kept the default, "last photo:, as the option to apear in the Album image icon.

(4)  This is no longer a bug, but more on aesthetic appearance.  If I could get the "mini thumbs" to work, not only in the Classic but in all, the "reel" icon -- to simulate a film roll -- placed at the top and bottom of the pics in the slide show appear disproportionately large relative to the "mini thumbs".  Is there a way to proportionately reduce the "reel" icons?  The standard size of the "reel" icon did not appear nice in proportion to  "mini thumbs", so  I may opt to remove the icon if I cannot reduce it, proportionately.  I may just opt to replace it with a hairline, but thaat may look not as nice either.

(5)  Again, not a bug. I am not too fond of too many icons either, like the smilies in the comment box, so I removed those in the Config option.  Is there a more elegant alternative to the simulated "one star"  to "five stars" for the photo-rating?    I wish I could remove them -- because they detract with the elegant appearance of the photo in the slide show page.  Unfortunately, I need a democratic mode of rating the photos, since I am interested to give the visitors a chance to help select what photos to be kept, if the maximum number of photos in an album is fixed.



On the whole, I find the "squared thumbnail" as very useful.  I wish to commend you again for developing that mode. 

One possible advance in the "squared thumbnail" would be an option to manipulate specific photos that do not provide a good squared thumbnail. This is true for extreme disproportionate "vertical" or "horizontal" photos.

Again, thanks for the mod.

cgc0202
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 13, 2006, 07:10:59 pm
seems to be some work to answer your questions ;)

1. mini thumbs in the slideshow... I guess you mean the filmstrip.
-> I never have included such a feature. The one in the classic theme doesn't use mini thumbs but html resize. But I've posted a howto http://forum.coppermine-gallery.net/index.php?topic=28367.msg132651#msg132651

2. No, there's no feature mini thumbs as album lead image. There's only an option to use the mini thumbs as category lead. As you can see on teh demo site, the cat lead images are 65x65 or similar and the thumbs (also the ones for the albums) are 130x130

And yes, if you use fixed size thumbs then exactly that size is in the img tag for width and height. Means also mpg, avi or the empty folder icon will get resized to that dimension. I've added some squre gfx to the oranje and tentacle theme. Have a look or if you don't like them why not create some custom ones (and of course you're welcome to post them here).

If you switch back to max (width/ height) then the behvior will change back to what you're used.

Main reason for that is... why having fixed sized thumbs (or square thumbs) when a placeholder gfx breaks the layout?

3. No problem here. The last uploaded image in a album is the lead image for that album too. Double check album settings and check the datestamp in sql

4. I think you just need to use other gfx for the 'reel'
if you have a look at the samle theme (themes/sample/theme.php) you'll see how to do it
Code: [Select]
// ('THEME_HAS_FILM_STRIP_GRAPHICS', 1) : The location for the film strip graphics will
//    be directed to the themes images folder.
//    tile on the top      : images/tile1.gif
//    tile on the bottom   : images/tile2.gif
define that the theme has it's own filmstrip gfx, create some and place the two files in your themes images folder

but that's not a modpack related question, hehehe

5. I had posted a mod for that. Instead of the smilies there's a link 'click to add smilies' -> that link opens a a lil box with all the smilies in it. It was for 1.3. Means it needs to be modified to work with 1.4
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: sharif_aly on May 16, 2006, 12:45:37 am
the Watermark dosn't appear on config , when i press on config on admin it dosn't appear so what's wrong
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Dr Preacox on May 16, 2006, 10:03:56 am
For some reason the My Gallery link doesn't work

http://www.dc-6.com/gallery/
User: tester
Pass: tester

anyone have any clue why? it just doesnt' show any images, it has the headings, Most commented, Most viewed etc etc, but theres no images in there!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: BigMark on May 16, 2006, 10:43:28 pm
hmm, crazy, i've got following mistake:

Parse error: parse error, unexpected ';' in /var/www/html/web243/html/bm/cpg145/include/functions.inc.php on line 2911
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 17, 2006, 07:36:09 am
the Watermark dosn't appear on config , when i press on config on admin it dosn't appear so what's wrong

as written in the first post switch to english or update the lang file you're using
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 17, 2006, 07:37:39 am
For some reason the My Gallery link doesn't work

http://www.dc-6.com/gallery/
User: tester
Pass: tester

anyone have any clue why? it just doesnt' show any images, it has the headings, Most commented, Most viewed etc etc, but theres no images in there!
I can't see a problem. All looks smooth
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 17, 2006, 07:38:04 am
hmm, crazy, i've got following mistake:

Parse error: parse error, unexpected ';' in /var/www/html/web243/html/bm/cpg145/include/functions.inc.php on line 2911

try to reupload or post a link
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: sharif_aly on May 17, 2006, 01:52:18 pm
as written in the first post switch to english or update the lang file you're using

Yes i'm using english lan , and i choose english uk in site still the same .
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 17, 2006, 02:25:24 pm
use english us
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: sharif_aly on May 17, 2006, 07:12:42 pm
Yes i did that .. i use English US .. it's same thing i can't see it there can you make already made and modded version of coppermine that is already moded by you ?

thanks

use english us
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: BigMark on May 18, 2006, 07:24:50 pm
try to reupload or post a link

i've reuploaded it. but nothing.

First i hav installed cpg145, no problems, was easy.
then i have uploaded the mod pack files, and startet the update.php.

there comes "Upgrade completed"

So but then theres the mistake, my page you can find here:
http://bm.straightdurchdiedecke.de/cpg145/
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on May 19, 2006, 07:26:51 am
Hi Stramm

in future there will be an Italian language?

thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on May 19, 2006, 07:33:17 am
if you translate it: yes. Otherwise: probably not.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 19, 2006, 07:40:49 am
i've reuploaded it. but nothing.

First i hav installed cpg145, no problems, was easy.
then i have uploaded the mod pack files, and startet the update.php.

there comes "Upgrade completed"

So but then theres the mistake, my page you can find here:
http://bm.straightdurchdiedecke.de/cpg145/

post line 2911 +-10 of the functions.inc.php on your server (not the one on your local PC)

That's a part of functions.inc.php that hasn't been modified (or better, the last ~1000 lines haven't been touched). So I still think the file or the archive you downloaded is corrupted
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: BigMark on May 19, 2006, 07:26:10 pm
i cant believe, that the files were corrupt, i have it from the official homepage of cpg.  but i also cant understand the problem. very mysterious
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on May 19, 2006, 08:39:14 pm
files can get corrupted during download or un-archiving. Having broken files doesn't necessarily mean that the download files on the server are broken.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 20, 2006, 01:11:24 am
i cant believe, that the files were corrupt, i have it from the official homepage of cpg.  but i also cant understand the problem. very mysterious

the modpack archive can be found on my site, not on 'the official homepage of cpg'. The only versions you can download here are way outdated
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: doggystyle on May 20, 2006, 08:31:28 am
cool mod-pack!  :)

thx
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: BigMark on May 20, 2006, 01:14:39 pm
the modpack archive can be found on my site, not on 'the official homepage of cpg'. The only versions you can download here are way outdated

so now its ok, pooh.

its really nice this pack, thx a lot. is there any guestbook also in this pack
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tacitus on May 21, 2006, 01:17:54 pm
Hi!

I just installed the modpack, but now I have to folowing problem (my site is http://www.korsettforum.de/korsett-bilder/index.php):

When you try to start a thumbnail view or to display a random image to linked URL is for example:
http://www.korsettforum.de/korsett-bilder/displayimage-lastup-0-0.html
and should be
http://www.korsettforum.de/korsett-bilder/displayimage.php?album=lastup&cat=0&pos=0

or
http://www.korsettforum.de/korsett-bilder/thumbnails-22.html
and should be
http://www.korsettforum.de/korsett-bilder/thumbnails.php?album=22
(and also the same mistake when you try to display images from the thumbnail view!)

What is wrong, where can I change it?!

THANKS!

Philipp
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Nibbler on May 21, 2006, 02:01:45 pm
If you don't want the SEF urls plugin then disable it.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 22, 2006, 11:53:30 am
so now its ok, pooh.

its really nice this pack, thx a lot. is there any guestbook also in this pack

no, but there's a mini forum and a shoutbox somewhere in this forum. The guy with the lil forum intended to integrate it into the modpack but I haven't heard back from him yet
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: esdee51 on May 22, 2006, 05:25:05 pm
I've installed your MOD and it is working very well http://www.thedutts.com (http://www.thedutts.com)
Thank you for the effort that you and others have put into this.
I see that you have posted an update (1.4.6) on your site. I would like to know what changes have been made so that I could patch/update the required files instead of uploading the entire thing.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 22, 2006, 05:39:02 pm
only a lil fix that doesn't show the clickable username in comments when the commenter was a guest (anonymous)
changes in themes.inc.php, oranje/tentacle themes.php

otherwise all changes that have been introduced in 1.4.6 have been added to the modpack files.. that's basically 50% of the files

to update you go the usual way
1.) backing up your files/ db (especially your theme(s) if you use custom ones)
2.) upload 1.4.6
3.) upload the modpack for 1.4.6
4.) run update.php
5.) restore your theme(s)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: esdee51 on May 22, 2006, 06:38:30 pm
only a lil fix that doesn't show the clickable username in comments when the commenter was a guest (anonymous)
changes in themes.inc.php, oranje/tentacle themes.php

otherwise all changes that have been introduced in 1.4.6 have been added to the modpack files.. that's basically 50% of the files

to update you go the usual way
1.) backing up your files/ db (especially your theme(s) if you use custom ones)
2.) upload 1.4.6
3.) upload the modpack for 1.4.6
4.) run update.php
5.) restore your theme(s)
Thanks for the fast reply.
I am already on cpg 1.4.6 with your mod 1.4.5.
I'll do what is required though this means major work for me  :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: doggystyle on May 23, 2006, 03:32:29 pm
hi,

installed your latest pack and have a problem with password protected albums. After typing the password to get access to the album i get a "no image to display" but when i reload the page, the pictures are shown.

greets

doggy
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 24, 2006, 09:14:54 am
congrats, you found a lil bug. Solution is pretty easy.. just moving a bracket a line up. Unfortunately a bunch of other functions is dependent on this. So I have to do some testing before I can update the pack
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 24, 2006, 10:48:23 am
Tested the fix and had to add some lines of code. For me it works pretty smooth and I wasn't able to spot any problems. Still you should have a look at private user albums with permissions set to visible by 'me and my buddies' and do some testing.

In include/functions.inc.php replace the function get_private_album_set with

Code: [Select]
function get_private_album_set($aid_str="")
{
        if (GALLERY_ADMIN_MODE) return;

        global $CONFIG, $ALBUM_SET, $USER_DATA, $FORBIDDEN_SET, $FORBIDDEN_SET_DATA;

        $FORBIDDEN_SET_DATA = array();

        if ($USER_DATA['can_see_all_albums']) return;

                //Stuff for Album level passwords
        if (isset($_COOKIE[$CONFIG['cookie_name']."_albpw"]) && empty($aid_str)) {
          $alb_pw = unserialize($_COOKIE[$CONFIG['cookie_name']."_albpw"]);
          $aid_str = implode(",",array_keys($alb_pw));
          $sql = "SELECT aid, MD5(alb_password) as md5_password FROM ".$CONFIG['TABLE_ALBUMS']." WHERE aid IN ($aid_str)";
          $result = cpg_db_query($sql);
          $albpw_db = array();
          if (mysql_num_rows($result)) {
            while ($data = mysql_fetch_array($result)) {
              $albpw_db[$data['aid']] = $data['md5_password'];
            }
          }
          $valid = array_intersect($albpw_db, $alb_pw);
          if (is_array($valid)) {
            $aid_str = implode(",",array_keys($valid));
          } else {
            $aid_str = "";
          }
        }

        $sql = "SELECT aid FROM {$CONFIG['TABLE_ALBUMS']} WHERE visibility != '0' AND visibility !='".(FIRST_USER_CAT + USER_ID)."' AND visibility NOT IN ".USER_GROUP_SET;
        if (!empty($aid_str)) {
          $sql .= " AND aid NOT IN ($aid_str)";
                }

                $result = cpg_db_query($sql);
        if ((mysql_num_rows($result))) {
                $set ='';

if ($CONFIG['enable_buddy_private_view'] && USER_ID) {
$buddies = cpg_db_query("SELECT a.aid FROM {$CONFIG['TABLE_ALBUMS']} as a INNER JOIN {$CONFIG['TABLE_BUDDY']} AS b on a.category=b.buddy_id + ". FIRST_USER_CAT ." WHERE b.user_id = ".USER_ID." AND a.visibility = '-1' AND buddy_ok = 'YES' OR category = ".(USER_ID + FIRST_USER_CAT));
while(list($allowed_list[]) = mysql_fetch_row($buddies));

while($album=mysql_fetch_array($result)){
if (!in_array ($album['aid'], $allowed_list)) {
                    $set .= $album['aid'].',';
$FORBIDDEN_SET_DATA[] = $album['aid'];
}
            }
if ($set){
                $FORBIDDEN_SET = "p.aid NOT IN (".substr($set, 0, -1).') ';
                $ALBUM_SET .= 'AND aid NOT IN ('.substr($set, 0, -1).') ';
} else {
                  $FORBIDDEN_SET_DATA = array();
                  $FORBIDDEN_SET = "";
                  $ALBUM_SET = "";
}
} //end if buddy and USER_ID
else { // if not buddy list enabled or guest
        while($album=mysql_fetch_array($result)){
                    $set .= $album['aid'].',';
                    $FORBIDDEN_SET_DATA[] = $album['aid'];
            } // while
                $FORBIDDEN_SET = "p.aid NOT IN (".substr($set, 0, -1).') ';
                $ALBUM_SET = 'AND aid NOT IN ('.substr($set, 0, -1).') ';
}//end else
        }
        mysql_free_result($result);
}
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: doggystyle on May 25, 2006, 07:38:38 am
jep, this works.

thx
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: BigMark on May 25, 2006, 11:29:14 am
is there any chance to mail a mass pn? I want to mail the same pn, too all my users. or  mass email is ok,too., any chance?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Davide Renda on May 25, 2006, 02:57:37 pm
in there any known bug/problem in modding a Coppermine install with a massive use of the MiniCMS plugin?
I mean, I have an existing and working installation and I've been using MiniCMS almost everywhere and wouldn't like to find all my contents lost....
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 25, 2006, 03:21:38 pm
is there any chance to mail a mass pn? I want to mail the same pn, too all my users. or  mass email is ok,too., any chance?

I think I've posted a massmail mod for 1.3 2 years ago. With some work it should work with 1.4 too
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 25, 2006, 03:22:52 pm
in there any known bug/problem in modding a Coppermine install with a massive use of the MiniCMS plugin?
I mean, I have an existing and working installation and I've been using MiniCMS almost everywhere and wouldn't like to find all my contents lost....

Don't know.. I've never used that plugin. You need to try to find out. I suggest a local test install
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Dr Preacox on May 27, 2006, 08:06:03 am
Heres an easy one I hope, trying to make the Memberlist public so all can view, because on my website DC-6.com i have an artists page which is essentially a list of my artists, and its becoming a pain, it would be easier if I could like directly to http://www.dc-6.com/gallery/usermgr.php and make it so anyone can view it
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 27, 2006, 09:21:36 am
that's not modpack related but easy to do. Please use the CPG 1.4 support forum for that question
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Dr Preacox on May 27, 2006, 09:34:08 am
iv beeb told to post there and back again, but okay
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on May 27, 2006, 10:19:11 am
Who said so? Your question (http://forum.coppermine-gallery.net/index.php?topic=31938.0) got answered. Please respect board rules (http://forum.coppermine-gallery.net/index.php?topic=22469.0)!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on May 27, 2006, 12:30:40 pm
Hi,

do i need to use the bridge option or to install something else for some of the options that are in the modpack?
(in 1.4.6)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 27, 2006, 12:38:27 pm
no, if you don't have bridged your coppermine with a forum you don't need to do the bridge setup. Bridge support only for smf and PhpBB 2.0.18, 19... new version soon

all features of the modpack require only the modpack itself. The modpack enhances Nibblers onlinestats plugin with an option to see the online status of a registered member in the profile and buddy list. For that you need to have installed mentioned plugin
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on May 27, 2006, 01:34:29 pm
the experimental plugin you mean?
http://forum.coppermine-gallery.net/index.php?topic=26532.0

i need it for private messaging?

about the watermark, i know that it takes lots of CPU, will a permanent watermark take less of CPU & is there an option for this in the modpak?

thank you
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 27, 2006, 01:42:26 pm
yes, that experimental plugin... and it's not needed for PM. It's just needed to show 'who is online'

the modpack uses a permanent watermark to save resources. Therefore it only uses extra CPU cycles when applying the watermark, ie when uploading the image. It is not a 'on the fly watermark'. That's the reason why you need to recreate images (using the admin tools) if you want your already uploaded images to get the watermark too. For recreating masses of images the admin tools have been modified so you can do that unattend.

The modpack makes a backup of the uploaded image when watermarking is enabled. With that backup you can undo the watermark (of course not you would do all the work undoing the watermark but the admin tools will do that for you).
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on May 27, 2006, 01:59:38 pm
cool...

can i choose to not backup the pictures that are watermarked?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 27, 2006, 02:30:49 pm
there's no config option but you can modify picmgmnt.inc.php. In one of the modpack threads I've described how to do it. Sorry, but I've forgotten where. You'll have to search
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Davide Renda on May 28, 2006, 09:11:45 pm
works fine and (apparently) no bug/problem with MiniCMS plugin.  ;)

PS. I'd like to translate into italian, which one/s is/are the files to modify? I'll of course post here the translation when it's finished!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on May 29, 2006, 12:09:51 am
the mod is cool :)

1 more thing...
can you add an option that let me limit the upload pictures to 1 picture per user?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 29, 2006, 07:48:21 am
works fine and (apparently) no bug/problem with MiniCMS plugin.  ;)

PS. I'd like to translate into italian, which one/s is/are the files to modify? I'll of course post here the translation when it's finished!

I'd appreciate an italian translation :)
http://forum.coppermine-gallery.net/index.php?topic=31907.msg147991#msg147991

see if you understand what I mean. It's the easiest way to compare files
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 29, 2006, 07:52:40 am
the mod is cool :)

1 more thing...
can you add an option that let me limit the upload pictures to 1 picture per user?

I don't think that's an option a lot of users would profit from. So better would be a 'standalone' hack
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on May 29, 2006, 10:37:23 am
ok so how do i do it?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 29, 2006, 01:24:42 pm
you should ask that in the CPG 1.4x support forum
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on May 29, 2006, 03:21:29 pm
As per your request, Stramm, I've come here to continue the thumb issue I'm having:

I ran "Update thumbs and/or resized photos" in Admin Tools since I already have uploaded images, as you suggested. However, although the thumbnail images are now at 120x120, they now appear distorted. Am I going to have to edit every single thumb (manually) created in order for this to work?

BTW, where are the "modpack docs" located? There wasn't anything in the download...or did I miss them here somewhere?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 29, 2006, 03:29:41 pm
http://forum.coppermine-gallery.net/index.php?topic=28367.msg131255#msg131255

And please post a link to your gallery.

Update thumbs and/or resized photos is necessary when you already have pics up.
Select - Update thumbs and/or resized photos (1)
Select - Only thumbnails (mini and regular)
check - Auto refresh (no need to click continue button anymore)
Set to 5 - Number of processed images per click

Scroll down and find 'Select album'
In the dropdown box select 'All albums' and click 'submit'

Now wait till all thumbs have been recreated
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: macsimoin on May 29, 2006, 03:40:24 pm
Quote
Select - Only thumbnails (mini and regular)
This is the step I missed. Problem SOLVED, and thank you for all you help (and for the ModPack).

My CPG (so far, still polishing things up a bit):MacSimoin's Kilt Photos (http://www.macsimoin.com/coppermine/index.php)

Cheers. ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on May 29, 2006, 03:56:10 pm
Sorry, forgot this bit: I tried the following (in the Kubrick .css) but it didn't work:

p img {
        padding: 0;
        max-width: 100%;
        border-width: 1px; <---added
        border-style: solid; <---added
        border-color: #515528; <---added
        }
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 29, 2006, 04:02:44 pm
for the thumbs?? For them try something
Code: [Select]
img.image {
padding: 0px;
margin: 0px 0px 0px 0px;
display: inline;
float: center;
border-style: solid;
border-width:1px;
border-color: #515528;
}
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on May 29, 2006, 04:13:46 pm
You're quick...that was it. Thanks again!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on May 29, 2006, 04:28:20 pm
Last one, I swear ;)...

Just added this and increased the border to 3px ('fits' the site better than a 1px border):

a:visited img.image {
border-color: #E1EB8D;
}

a:hover img.image {
border-color: #C0C977;
}

The a: colors match the overall look of the site. :D

Again, thanks for all your help, Stramm.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: doggystyle on May 31, 2006, 12:27:56 am
hi,

im not shure if it's the modpack or the file extension mod, but if the extension for 3gp (or any others?) files is written in capital letters (3GP), you can't upload a custom thumbnail. it just doesn't appear.

greets

doggy
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on May 31, 2006, 05:52:43 am
It's Coppermine core. The modpack just adds a frontend to an existing Coppermine feature
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#cust_thmb
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on June 01, 2006, 07:38:41 pm
Hi Stramm

Is there any reason why the small box on the right of the image placed on the main page as dissappeared on the tentacle theme. Updated to 1.4.6 and all text is below the thumbnail.

Heres my link: http//cdcoverhideout.com/gallery

Any help will be great ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 02, 2006, 12:44:55 am
it's a config setting.. just enable it

from the modpack docs
http://forum.coppermine-gallery.net/index.php?topic=28367.msg131255#msg131255
Move info from below the thumb to the right of it (default off)
Config -> Thumbnail view -> Display info right of thumb (or below)
yes --> info on the right, no (default) --> below
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: rongxanhnet on June 02, 2006, 09:33:35 am
 :'( any mirror.
I'm from vietnam so I don't connect to your website.
tell me a mirror plz
Thx
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on June 02, 2006, 10:01:54 am
@Stramm: should I upload the modpack to the sf.net download repository?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 02, 2006, 02:01:16 pm
GauGau... yes, please do so
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: rongxanhnet on June 02, 2006, 05:02:28 pm
@Gaugau: Did you upload the modpack to the sf.net download repository?
Thx gg and stramm
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: will on June 02, 2006, 05:51:40 pm
Thanks Stramm for you reply

Regards, will ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on June 03, 2006, 01:58:24 am
http://prdownloads.sourceforge.net/coppermine/cpg1.4.6_modpack_stramm_1.zip?download
[Edit]
The link has changed - to make it "bullet-proof" for future upgrades, here's the link to the parent folder for the download:
http://sourceforge.net/project/showfiles.php?group_id=89658&package_id=98542
[/edit]
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: rongxanhnet on June 03, 2006, 07:27:37 am
Thanks Gaugau and Stramm. It's the best stuff for me :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on June 04, 2006, 04:54:42 am
I cannot seem to get the minithumbs to display for my categories...I'ved used the update thumbs tool (I updated everything, and watched the page refresh with all the new minithumbs being created) but I still can't get them to show.

Minithumbs are enabled for avatars/subscriptions and I have "Use mini thumb as category lead image" set to "Yes" in Config. What am I missing here?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 04, 2006, 08:04:06 am
to assign thumbs (or mini thumbs) to a category use the category control panel (standard CPG)
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#cat_cp
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on June 04, 2006, 08:10:18 am
Stramm,

That's the very first thing I tried---but no minithumbs show up in the drop-down selection (although they definitely do exist). Anything else?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 04, 2006, 08:17:51 am
in the category control panel you won't see anything about minithumbs but at the bottom a dropdown with all the images in that category (if there are no pics in that cat then you can't chose an image). Pick one and the mini thumbs of that pic will appeare next to the cat caption on the index. I've changed nothing in the cat manager. That's Coppermine standard. I just changed what to take as category lead image... the regular thumb or the mini thumb
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: football-pics.com on June 04, 2006, 11:34:37 am
Thanks for this great mod. I love the Watermark feature.

But I am having trouble with the PM and Buddy System. I can´t send any E-Mail with my test-user account and I can´t set up any buddys. All I see is the PM Inbox and the Buddy System with the Buddy lists.
I also got the code into the fruity theme, but even with your own themes the PM and Buddy systems don´t seem to work. (see: http://www.football-pics.com (http://www.football-pics.com)
What am I doing wrong?

Thanks,
Marc
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: macsimoin on June 04, 2006, 01:51:26 pm
in the category control panel you won't see anything about minithumbs but at the bottom a dropdown with all the images in that category
Thiis  is what I was talking about...there are no minithumbs available in that drop down menu (at the bottom of catmgr.php). I checked the directories and all the created minithumbs are in the right place...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 04, 2006, 08:30:08 pm
Thanks for this great mod. I love the Watermark feature.

But I am having trouble with the PM and Buddy System. I can´t send any E-Mail with my test-user account and I can´t set up any buddys. All I see is the PM Inbox and the Buddy System with the Buddy lists.
I also got the code into the fruity theme, but even with your own themes the PM and Buddy systems don´t seem to work. (see: http://www.football-pics.com (http://www.football-pics.com)
What am I doing wrong?

Thanks,
Marc

it uses standard CPG functions. If you use another language than english then add the email stuff to that lang file as well. What else should I say... can't test it!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 04, 2006, 08:30:59 pm
Thiis  is what I was talking about...there are no minithumbs available in that drop down menu (at the bottom of catmgr.php). I checked the directories and all the created minithumbs are in the right place...

as said... there's nothing about minithumbs there... just pick an image (fullsize name) in the dropdown
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: football-pics.com on June 04, 2006, 08:54:42 pm
it uses standard CPG functions. If you use another language than english then add the email stuff to that lang file as well. What else should I say... can't test it!

Even if I switch back to english I can´t send E-Mails or arrange a buddy list. I have a feeling that there are functions missing somehow.
I installed the stramm_mod1.4.6.bridge.1 pack yesterday but I don´t see anything like a "send mail to" button or so...
Did I set it up wrong or what do I have to install in addition?
Thanks,
Marc
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 04, 2006, 09:00:21 pm
there's no special 'email function'. If you want to add some other user to your buddy list, then open that guys profile. On top you'll see an image 'Become friends'... click it. That user needs to accept your request and voila

eg. http://stramm.st.funpic.org/profile.php?uid=1

If you're missing the images copy them from tentacle, oranje or classic theme to the theme you're using or create your own.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: football-pics.com on June 04, 2006, 09:54:26 pm
there's no special 'email function'. If you want to add some other user to your buddy list, then open that guys profile. On top you'll see an image 'Become friends'... click it. That user needs to accept your request and voila

eg. http://stramm.st.funpic.org/profile.php?uid=1

If you're missing the images copy them from tentacle, oranje or classic theme to the theme you're using or create your own.

Got it. Thanks. And it is working or almost. Because if I send an E-Mail and it has German Umlauts in it (ü, ö, ä, ß) it screws up the whole text. How can I fix this?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 04, 2006, 10:09:17 pm
There's a thread about that on the german sub board
http://forum.coppermine-gallery.net/index.php?topic=31337.0
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: macsimoin on June 04, 2006, 11:18:25 pm
as said... there's nothing about minithumbs there... just pick an image (fullsize name) in the dropdown
Stramm,

I misunderstood your previous post...my apologies.

But, I also failed to mention that even after updating everything and enabling minithumbs in Config, shouldn't the minithumbs appear on the front page next to the category description? As it is, they do not. Maybe I misunderstood the purpose of enabling minithumbs for categories as well?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 05, 2006, 12:40:35 pm
yep, that's the way how it should work.

You enable minithumbs and you set  'Use mini thumb as category lead image' to yes
Now you pick an image in the dropdown in the category control panel

If that doesn't work I suspect you haven't uploaded all files of the modpack
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: macsimoin on June 05, 2006, 12:51:14 pm
...If that doesn't work I suspect you haven't uploaded all files of the modpack.
I can't imagine what would be missing since I uploaded everything as instructed.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 05, 2006, 01:06:49 pm
important code for that function is in index.php
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 05, 2006, 09:31:47 pm
@macsimoin... looks like that was your problem. Would be nice if you could report back next time ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: macsimoin on June 06, 2006, 12:15:48 am
...Would be nice if you could report back next time ;)
Stramm,

Regardless of you assumption being correct: There was absolutly no need for this remark...was there?  Shouldn't patience apply to you just as it's supposed to apply to the rest of us CPG users? If you look at the rest of my posts, you can see I readily admit fault if I make a mistake or misinterpret things...you'll also notice that I do reply to posts by people answering questions I may have.

No matter your intention behind this, I'll say it anyway...thank you helping me fix the problem. :D

Consider this problem solved.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 06, 2006, 12:35:35 am
You bumped your other thread after my last answer here without reporting back. So I assumed you took this issue as solved.

Nevertheless I'm glad all worked out for you

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: macsimoin on June 06, 2006, 12:42:55 am
You bumped your other thread after my last answer here without reporting back. So I assumed you took this issue as solved.

Nevertheless I'm glad all worked out for you



That comment seemed a bit 'off' to me but thanks for the clarity, no hard feelings...you do very well by me. You, GauGau and others like you are the reason why CPG is appreciated by its users. Can't ask for much better, can we?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 07, 2006, 11:09:49 am
I've uploaded the modpack with all changes included in CPG 1.4.7...
upgrading is mandatory

howto upgrade:
follow the instructions for the standard CPG upgrade (1.4.x to 1.4.x usually only uploading the new files)
now upload the modpack 1.4.7 files. Eventually yoh have to run update.php

Finished
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on June 07, 2006, 11:58:37 pm
Stramm,

I already applied the hotfix from GauGau (not the full v1.4.7 upgrade---my CPG site/theme is heavily modified)...do I still need this new modpack upgrade? I can't unzip the download anyway...Winzip can't open it.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 08, 2006, 12:17:47 am
hmm.. strange, opens for me... clear your cache and try to download again. The modpack has a modified usermgr.php. If you hesitate to upgrade use the usermgr.php from the modpack 1.4.7 zip
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on June 08, 2006, 12:21:59 am
I used the Hotfix link GauGau supplied in his post about this upgrade...do I need the one in your new modpack?

Even my usermgr.php is heavily modified so I made the appropriate changes (being very careful, going line-by-line) in the new version, uploaded it and then ran update.php and versioncheck.php. Everything looks good from here.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 08, 2006, 12:38:19 am
If you've added the changes all should be good
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on June 08, 2006, 12:57:32 am
Cheers.

Well, that ought to do it...I submitted my CPG to the Contrib area so everything looks good to go. Thank you for all your help. :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 09, 2006, 02:12:57 am
Hi Stamm,

in the Users in: Active friends
i saw that in english(US) its ok but when i change it to a diffrent language theres nothing there...
it's not falling back to the english lang.
what is wrong?

p.s.
why do i need 2 english lang's (us/uk) can i leave the us?

thnx
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 09, 2006, 07:38:55 am
For PM and buddylist no lang fallback options are available.
Same for admin and the welcome/ login box on top

The english UK / US ... better ask that on the CPG support forum, but I'd say simply cause there are differences
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on June 09, 2006, 07:46:32 am
Updated the sf.net download repository with the latest version, see http://forum.coppermine-gallery.net/index.php?topic=28367.msg149596#msg149596
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Dr Preacox on June 10, 2006, 10:26:11 am
I was looking around, and I was wondering if its possible that people on your buddy list get emails or pms when say I upload a pic, or vise versa,
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: rongxanhnet on June 10, 2006, 12:10:21 pm
Hi Stramm,
I think in your update miss some field.
When i check your code and database ... miss some field for mod such as:
$CONFIG['randpos_interval']
$CONFIG['enable_avatar']
...
So there mods not working correct.
EN not good   :'(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: rongxanhnet on June 10, 2006, 12:20:56 pm
Sorry about that post
I'm wrong...  :'(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 10, 2006, 08:48:38 pm
I was looking around, and I was wondering if its possible that people on your buddy list get emails or pms when say I upload a pic, or vise versa,

no, there's no built in function for that
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 10, 2006, 08:49:27 pm
Sorry about that post
I'm wrong...  :'(

OK... I was already wondering ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Dr Preacox on June 11, 2006, 08:33:49 am
no, there's no built in function for that

I was wondering if you could aid me in making this :) I can probably code it but I might need some guidance, if you dont mind, if your busy dont worry about it :)

Thanxs, Sam
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 11, 2006, 08:47:36 am
hmm... look in picmgmnt.inc.php
here I've added a part of the function for 'notification on comments'. If a user uploads a file, then he's on the 'notification' list (no emails sent before a comment). You probably can learn from that function and somewhere there add your own that just reads the buddy list and sends out emails to the posters buddies (maybe a good idea to combine it with some profile switch to enable/ disable that behaviour)
oh, how to call the mail function... for the notification on comments it's in db_input.php
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Dr Preacox on June 11, 2006, 03:24:50 pm
This is working well, once I have finished and got the code debugged, I'll add it here for everyone
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Steffen on June 15, 2006, 11:34:50 pm
Uhm... I also can't get the watermark-feature to work, even though I tried out what was discussed here.

Situation is following:
-Installed the latest coppermine-version today, tested, worked ok.
-Installed the latest version of Stramm's mod, but after configuring the settings, realized that watermark-function doesn't work.

-I switched to english language and used both templates Stramm delivered with the mod to avoid having a non-working template
-I tried both batch upload and single/web upload, after that set the folders and images to 666, 755, 777, didn't work.
-Checked that the path to watermark.png works (chmod to 666, 777 as well), tried absolute and relative path (./images/watermark.png and /home/strato/www/ag/www.xyz.de/htdocs/zero/images/watermark.png) - yes, I'm using Strato as provider.
Means I only have GD1-support. I heard there's a possibility to use GD2 using a .htaccess-file, would this be worth a try? But it should work with GD1...
-I also checked if it's a caching problem, but there's no watermark, whatever I do.
-Tried another batch run with the admin tools, no success.

Currently, I'm clueless. Any advice what else I might try?

Also, another problem I have with the tentacle-template mod, the filmstrip and the exif data isn't displayed properly (only 1 pixel height it seems). Anyone stumbled over this bug? (I didn't change anything in the source code)

Oh and hm, if I'm allowed to ask that question here, too: On Stramm's sandbox, there's kind of a shopping cart/payment mod for purchasing pictures. Is that a public mod or a commercial one? Or asked differently; where may I obtain it? ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 16, 2006, 07:22:32 am
The watermark only works with GD2 and Image Magick. GD1 is kinda relict. Still supported by CPG but not by the modpack. That's mentioned in the first post in this thread
Quote
-Watermark (transparent) with undo possibility (GD2, ImageMagick)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Steffen on June 16, 2006, 09:05:16 am
Damn! Sorry, I somehow must have missed that somehow :(
Okay, then I'll have a look for this possibility to use GD2 on a Strato-Server. Grrr...

(Thanks for the quick reply by the way!)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: tibu on June 16, 2006, 08:09:55 pm
Oh and hm, if I'm allowed to ask that question here, too: On Stramm's sandbox, there's kind of a shopping cart/payment mod for purchasing pictures. Is that a public mod or a commercial one? Or asked differently; where may I obtain it? ;)

It's a plugin available to everyone, you can find it here: http://forum.coppermine-gallery.net/index.php?topic=32231.0
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: JCMoD on June 18, 2006, 07:06:56 pm
I´m very sorry that i didnt read the whole thread ... 19 pages...

I hope my probleme wasnt told before...


I really love your modpack and the tantacle Theme is fantastic...

but as setting it up as the default theme, everytime i look it up, it has been changed to "fruity"

Whats the problem

Thx already vor your help

JCMoD
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 18, 2006, 08:45:25 pm
clear your cookie... just setting a theme as default not necessarily changes the theme for all users if they have set a valid cookie. Not modpack related though but a general coppermine behaviour
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 19, 2006, 11:06:38 am
Hi Stamm,

There is a problem in the subscribtions/subscriptions.
i think that if a user uploads 10 pics & delete 9 it will show him that he has a subscription of 10
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 19, 2006, 11:26:22 am
so how do i add translation for it?
For PM and buddylist no lang fallback options are available.
Same for admin and the welcome/ login box on top

The english UK / US ... better ask that on the CPG support forum, but I'd say simply cause there are differences
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 19, 2006, 02:39:25 pm
Hi Stamm,

There is a problem in the subscribtions/subscriptions.
i think that if a user uploads 10 pics & delete 9 it will show him that he has a subscription of 10

can't reproduce your problem. Please try to be more specific. Tell me exactly what you're doing.
I've uploaded 5 pics and deleted 4 of them using 'edit files' next to the album I uploaded the pics into. Then I called the subscription manager and that user was subscribed to one pic... as it should be

how to translate... I've described that 2 times somewhere in this thread
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 19, 2006, 03:12:15 pm
i cannot delete them also...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 19, 2006, 03:18:31 pm
can't reproduce your problem. Please try to be more specific. Tell me exactly what you're doing.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 19, 2006, 03:33:21 pm
Ok...

i think i know what is the problem...
its a problem that was at the begining that no one told me how to solve & now it came back & bite me in the ass.

1) i created a test user.
2) test uploaded a pic.
3) admin approved it.
4) admin deleted the pic.
4.5) pic attach shows the problem that i think is making the new problem.
5) subscription still 1 pic.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 19, 2006, 09:56:16 pm
my bad
in delete.php find
Code: [Select]
//$query = "DELETE FROM {$CONFIG['TABLE_NOTIFY']} WHERE picture_id='$pid'";
    //$result = db_query($query);
and replace with
Code: [Select]
$query = "DELETE FROM {$CONFIG['TABLE_NOTIFY']} WHERE picture_id='$pid'";
    $result = cpg_db_query($query);

the pics that are still in the notify table and didn't get wiped out need to be removed manually
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: docgonzo on June 19, 2006, 10:57:52 pm
what modifications do i need to do to the theme to show Mini thumbs in film strips ?

thanks for the wonderfull mod :)

Hi there, i know it's a bit late, but i cannot seem to find the sample theme that is referred to in the answer to your post.
Could you please share how you solved it?
I'd like to use minithumbs in my theme too.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: docgonzo on June 19, 2006, 11:08:57 pm
Also, i do not find any of what is below in any theme.php file.
(i'm sorry for the 2nd post, but it seems i can't edit my previous post.)

copy over the function theme_display_film_strip from themes/sample/theme.php to the theme.php you're using
find in that theme....
Code: [Select]
    foreach($thumb_list as $thumb) {
        $i++;
and below add
Code: [Select]
if ($CONFIG['enable_mini_thumbs']){
        $thumb['image']=preg_replace('/'.$CONFIG['thumb_pfx'].'/',$CONFIG['mini_pfx'],$thumb['image']);
        $thumb['image']=preg_replace('/height="[^"]*"/','height="'.$CONFIG['mini_thumb_height'].'"',$thumb['image']);
        $thumb['image']=preg_replace('/width="[^"]*"/','width="'.$CONFIG['mini_thumb_width'].'"',$thumb['image']);
}
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 20, 2006, 11:52:46 am
It works thnx.

but its ok just for new users, how do i reset the old users like admin...?
(the pictures that the notify write - cannot be deletet is deleted but the warning is wrong)

my bad
in delete.php find
Code: [Select]
//$query = "DELETE FROM {$CONFIG['TABLE_NOTIFY']} WHERE picture_id='$pid'";
    //$result = db_query($query);
and replace with
Code: [Select]
$query = "DELETE FROM {$CONFIG['TABLE_NOTIFY']} WHERE picture_id='$pid'";
    $result = cpg_db_query($query);

the pics that are still in the notify table and didn't get wiped out need to be removed manually
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 20, 2006, 12:41:13 pm
i cannot find how to translate users language... ???
where can i get the "stuff" for translating it for other user languages?
is there a file that i take the stuff from it & translate it?
Quote
Everything can be switched on and off in admin, you'll need to use the english language to make changes in config (or you translate stuff and add it to your language file)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 22, 2006, 01:19:53 pm
hey i was woundering if the avatar what shows in posted comments, profile. i would like it to be shown on another page beacause i would like to create a userpanel. and at the top would like the user to see the avatar and link under it saying "change avatar"
can anybody help me please?

thanks , justttt
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 22, 2006, 07:05:47 pm
Hi there, i know it's a bit late, but i cannot seem to find the sample theme that is referred to in the answer to your post.
Could you please share how you solved it?
I'd like to use minithumbs in my theme too.

have you read that post??
http://forum.coppermine-gallery.net/index.php?topic=28367.msg132651#msg132651
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 22, 2006, 07:06:52 pm
It works thnx.

but its ok just for new users, how do i reset the old users like admin...?
(the pictures that the notify write - cannot be deletet is deleted but the warning is wrong)


you'll have to browse the table with a tool like phpmyadmin and manually delete all entries where you've deleted the pics
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 22, 2006, 07:08:54 pm
i cannot find how to translate users language... ???
where can i get the "stuff" for translating it for other user languages?
is there a file that i take the stuff from it & translate it?

basically you use a program like winmerge. That program can compare files and shows differences. Compare the original english.php with the modpack english.php. The differences you copy to the lang file you want to edit and translate them.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 22, 2006, 07:16:29 pm
hey i was woundering if the avatar what shows in posted comments, profile. i would like it to be shown on another page beacause i would like to create a userpanel. and at the top would like the user to see the avatar and link under it saying "change avatar"
can anybody help me please?

thanks , justttt

avatar path and name are stored for the logged in user in a named constant. You just need to include init.inc.php and then can call the avatar image with AVATAR_PATH.AVATAR_URL

if it's not the logged in user who's avatar you want to display you need to grab the file name of his avatar
Code: [Select]
$user_data = $cpg_udb->get_user_infos($uid);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";

where $uid is that users id
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 22, 2006, 07:35:55 pm
Ok, I think I need help.  I've upgraded to 1.4.8 from 1.4.6, and installed this modpack (which has awesome features, btw), and am getting this error any time I click on a thumbnail (i.e go to displayimage.php):

Code: [Select]
Fatal error: Call to undefined function: get_comments() in /home/*****/public_html/jax/portfolio/include/themes.inc.php on line 2432
I've tried reuploading themes.inc.php, as well as displayimage.php, and I've run update.php several times (and it keeps finding more stuff to do).  Any ideas?

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 22, 2006, 07:42:29 pm
please reupload all files. get_comments is defined in udb_base.inc.php
But if that's missing there's a high possibility more got lost while uploading. Also interesting would be if you use a bridged coppermine
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 22, 2006, 10:40:20 pm
Hmmm...ok, reuploading everything in the mod pack from the bridge folder worked.  I'm no longer getting the error, thanks!  But...I've set it so that both resized and original images should be watermarked, and I'm not seeing anything.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 22, 2006, 11:31:59 pm
Ok...

can i put the translated stuff at the end of my file altogether?
basically you use a program like winmerge. That program can compare files and shows differences. Compare the original english.php with the modpack english.php. The differences you copy to the lang file you want to edit and translate them.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 22, 2006, 11:49:13 pm
my knowledge in phpmysql is not so good.
i do not know what to look for & where in the database  :-\
you'll have to browse the table with a tool like phpmyadmin and manually delete all entries where you've deleted the pics
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Vargha on June 23, 2006, 04:00:43 am
Hi Stramm
you know with your mod
when i go to my theme.php
to add somelines so users cant edit their comments
the function 'Send PM' will disappear, i dont know what to do

this is the lines that i add into my theme.php to disable comment edit

Code: [Select]
EOT;
// HTML template for the display of comments
$template_image_comments = <<<EOT
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">

        <tr>
                <td>
                        <table width="100%" cellpadding="0px" cellspacing="0px">
                           <tr>
                                <td class="tableh2_compact" nowrap="nowrap">
                                        <b>{MSG_AUTHOR}</b><a name="comment{MSG_ID}">&nbsp;</a>
<!-- BEGIN ipinfo -->
                                                                                 ({IP})
<!-- END ipinfo -->
</td>


                                <td class="tableh2_compact" align="right" width="100%">
<!-- BEGIN report_comment_button -->
     <a href="report_file.php?pid={PID}&amp;msg_id={MSG_ID}&amp;what=comment" title="{REPORT_COMMENT_TITLE}"><img src="images/report.gif" width="16px" height="16px" border="0px" align="middle" alt="{REPORT_COMMENT_TITLE}" /></a>
<!-- END report_comment_button -->


<!-- BEGIN buttons -->
EOT;
if (GALLERY_ADMIN_MODE) {
$template_image_comments .= <<<EOT
                                        <a href="javascript:;" onclick="blocking('cbody{MSG_ID}','', 'block'); blocking('cedit{MSG_ID}','', 'block'); return false;" title="{EDIT_TITLE}"><img src="images/edit.gif" border="0px" align="middle" alt="" /></a>
                                        <a href="delete.php?msg_id={MSG_ID}&amp;what=comment"  onclick="return confirm('{CONFIRM_DELETE}');"><img src="images/delete.gif" border="0px" align="middle" /></a>
EOT;
}
$template_image_comments .= <<< EOT
<!-- END buttons -->
                                </td>
                                <td class="tableh2_compact" align="right" nowrap="nowrap">
                                        <span class="comment_date">[{MSG_DATE}]</span>
                                </td></tr>
                        </table>
                </td>
        </tr>
        <tr>
                <td class="tableb_compact">
                        <div id="cbody{MSG_ID}" style="display:block">
                                {MSG_BODY}
                        </div>
                        <div id="cedit{MSG_ID}" style="display:none">
<!-- BEGIN edit_box_smilies -->
                                <form name="f{MSG_ID}" method="post" action="db_input.php">
                                    <table width="100%" cellpadding="0px" cellspacing="0px">
                                        <tr>
                                            <td valign="top">
                                                <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
                                                <input type="hidden" name="event" value="comment_update" />
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
                                            </td>
                                            <td width="70%">
                                                <textarea cols="40" rows="2" class="textinput" name="msg_body" onselect="storeCaret_f{MSG_ID}(this);" onclick="storeCaret_f{MSG_ID}(this);" onkeyup="storeCaret_f{MSG_ID}(this);" style="width:99%;">{MSG_BODY_RAW}</textarea>
                                            </td>
                                            <td align="right">
                                                <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <img src="images/spacer.gif" width="1px" height="2px" />
                                                <br />
                                            </td>
                                        </tr>
                                    </table>
                                </form>
                                {SMILIES}
<!-- END edit_box_smilies -->
<!-- BEGIN edit_box_no_smilies -->
                                <form name="f{MSG_ID}" method="post" action="db_input.php">
                                    <table width="100%" cellpadding="0px" cellspacing="0px">
                                        <tr>
                                            <td valign="top">
                                                <input type="hidden" name="event" value="comment_update" />
                                                <input type="hidden" name="msg_id" value="{MSG_ID}" />
                                                <input type="text" name="msg_author" value="{MSG_AUTHOR}" class="textinput" size="25" />
                                            </td>
                                            <td width="70%">
                                                <textarea cols="40" rows="2" class="textinput" name="msg_body" style="width:99%;">{MSG_BODY_RAW}</textarea>
                                            </td>
                                            <td align="right">
                                                <input type="submit" class="comment_button" name="submit" value="{OK}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3">
                                                <img src="images/spacer.gif" width="1px" height="2px" />
                                                <br />
                                            </td>
                                        </tr>
                                    </table>
                                </form>
<!-- END edit_box_no_smilies -->
                        </div>
                </td>
        </tr>
</table>
EOT;






Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:03:25 am
But...I've set it so that both resized and original images should be watermarked, and I'm not seeing anything.

use http upload and see if that works
have you enabled watermarking
does a watermark file exist on your server, is the path set correctly
eventually you need to change permissions
a watermark only gets applied for new files (files that get uploaded after you enabled watermarking). As mentioned several times you'll need to run the admin tools to watermark 'old' pics
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:04:33 am
Ok...

can i put the translated stuff at the end of my file altogether?

new additions... yes
I don't recommend it where original coppermine stuff has been changed
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 23, 2006, 09:06:36 am
I don't know if it's here but i have found that if i use the resize option it shows it like this:

i upload a 300kb picture & the system resize it to 30kb but in the info about the pic it shows that the pic is 300kb & when i save it it's 30kb
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:08:39 am
my knowledge in phpmysql is not so good.
i do not know what to look for & where in the database  :-\

it's difficult cause the pics already have been deleted and you don't know the ids of them. So best would be to empty the notify table (only empty that table and don't delete it). All notifications would be gone afterwards and your users would have to subscribe again

Of course you could write a lil proggy that checks if a notifiocation pid is existing in the pictures table and if not deletes that entry
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:10:20 am
I don't know if it's here but i have found that if i use the resize option it shows it like this:

i upload a 300kb picture & the system resize it to 30kb but in the info about the pic it shows that the pic is 300kb & when i save it it's 30kb

the original still has that size (that file that got uploaded and exists as backup on the server). The watermarked image gets processed by either GD2 or ImageMagick and therefore gets recompressed. Check the orig file and you'll see
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Justttt on June 23, 2006, 09:11:14 am
avatar path and name are stored for the logged in user in a named constant. You just need to include init.inc.php and then can call the avatar image with AVATAR_PATH.AVATAR_URL

if it's not the logged in user who's avatar you want to display you need to grab the file name of his avatar
Code: [Select]
$user_data = $cpg_udb->get_user_infos($uid);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";

where $uid is that users id


hi stramm,
 when i do what you say it says error at the top of the page :S

 
Code: [Select]
<?
define('IN_COPPERMINE', true);
include('include/init.inc.php');
pageheader('User Panel');

echo '<table width="100%"><tr><td width="50%">';
starttable("100%", "Avatar",2);

$user_data = $cpg_udb->get_user_infos($uid);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";

endtable();



pagefooter();

?>

can you help please
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:15:21 am
when i go to my theme.php
to add somelines so users cant edit their comments
the function 'Send PM' will disappear, i dont know what to do

cause the modpack already uses a modified version of $template_image_comments, if you modify an original version of it then you overwrite the modpack changes. Don't copy it from themes/sample/theme.php but from include/themes.inc.php and without the leading
Code: [Select]
if (!isset($template_image_comments)) { and the ending
Code: [Select]
}
or from the oranje or tentacle theme
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:16:49 am

hi stramm,
 when i do what you say it says error at the top of the page :S

can you help please

you haven't defined the uid... means you haven't told your script what users avatar you want to display
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Vargha on June 23, 2006, 09:17:41 am
oh yeah thnx problem solved  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 23, 2006, 09:21:34 am
O...
i see, but if i disabled the original backup?
the original still has that size (that file that got uploaded and exists as backup on the server). The watermarked image gets processed by either GD2 or ImageMagick and therefore gets recompressed. Check the orig file and you'll see
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:23:00 am
O...
i see, but if i disabled the original backup?
there's no option for that. Of course you could write that feature
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 23, 2006, 09:44:06 am
your talking to me like i'm a programmer (i wish)
in the Admin utilities i can delete original pics but not as they upload, so will it still stay the size of the original or change to the other?
there's no option for that. Of course you could write that feature
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 23, 2006, 09:45:58 am
it dose not show no avatar :S

Code: [Select]
<?
define('IN_COPPERMINE', true);
include('include/init.inc.php');
pageheader('User Panel');

starttable("100%", "Avatar",2);

$user_data = $cpg_udb->get_user_infos(1);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";

endtable();



pagefooter();

?>

and user 1 (me) has an avatar uploaded any ideas what i am doing wrong ?.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:52:44 am
your talking to me like i'm a programmer (i wish)
in the Admin utilities i can delete original pics but not as they upload, so will it still stay the size of the original or change to the other?

please post a link to your gallery and give me some more details.
- do you auto resize uploaded images
- exists a normal and fullsized image
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 09:53:57 am
it dose not show no avatar :S

and user 1 (me) has an avatar uploaded any ideas what i am doing wrong ?.

of course you would need to tell your script to also output what you just calculated and not only hold it in a variable
Code: [Select]
echo $avatar_url;
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: ymca on June 23, 2006, 09:59:10 am
just to click the cpg_notify link & press empty & thats it or to press at the left of cpg_notify?
it's difficult cause the pics already have been deleted and you don't know the ids of them. So best would be to empty the notify table (only empty that table and don't delete it). All notifications would be gone afterwards and your users would have to subscribe again

Of course you could write a lil proggy that checks if a notifiocation pid is existing in the pictures table and if not deletes that entry

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 10:03:58 am
just to click the cpg_notify link & press empty & thats it or to press at the left of cpg_notify?
click cpg_notify and then 'Empty' in the top menu (the one you've marked red)
Note that all subscribtions for all users will be gone
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 23, 2006, 10:06:36 am
sorry for being a pain stramm but i did what u sed and still no look  ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 10:14:05 am
sorry for being a pain stramm but i did what u sed and still no look  ???

hehehe.... Ok, Ok
Code: [Select]
<?
define('IN_COPPERMINE', true);
include('include/init.inc.php');
pageheader('User Panel');

starttable("100%", "Avatar",2);
$uid = isset($_GET['uid']) ? (int)$_GET['uid'] : -1;
$user_data = $cpg_udb->get_user_infos($uid);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";
echo $avatar_url;
endtable();

pagefooter();
?>
I assume you save this as test.php in your CPG main dir.
Call it with domain.com/CPG_path/test.php?uid=xxx
where xxx is the uid of the user who's avatar you want to display
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 23, 2006, 10:41:17 am
ohhh lol sorry i forgot to call the script (?uid=1) yeah works thanks and you where saying about to vew your own avatar what would you do for that
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 11:14:12 am
ohhh lol sorry i forgot to call the script (?uid=1) yeah works thanks and you where saying about to vew your own avatar what would you do for that

I've added that for you in my last post (the ?uid=1 functionality), you just forgot to echo

the logged in users avatar you display simply with
Code: [Select]
echo AVATAR_PATH.AVATAR_URL;
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 23, 2006, 11:30:51 am
thanks very much stramm . you have sorted all i need   ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 23, 2006, 11:34:37 am
on your oranje theme i would like to change the style.ccs on the index page where it has who is online and last comments last additions etc. what ccs what i change .
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 11:46:27 am
tableh1
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 23, 2006, 11:53:53 am
i cant see that in the css stramm  ::) what i want to do is make the font bold , on header text such as, who is online etc..
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 12:01:10 pm
yup, sorry, for oranje it's 'h2_nomargin'
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: justbishop on June 23, 2006, 03:55:40 pm
use http upload and see if that works
have you enabled watermarking
does a watermark file exist on your server, is the path set correctly
eventually you need to change permissions
a watermark only gets applied for new files (files that get uploaded after you enabled watermarking). As mentioned several times you'll need to run the admin tools to watermark 'old' pics

Aha!  Ok...what admin tool do I need to run?

And thanks so much for all your help :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 08:10:47 pm
in your admin menu... click admin tools
http://forum.coppermine-gallery.net/index.php?topic=28367.msg148544#msg148544
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 23, 2006, 08:49:08 pm
Quote
Update thumbs and/or resized photos is necessary when you already have pics up.
Select - Update thumbs and/or resized photos (1)
Select - Only thumbnails (mini and regular)
check - Auto refresh (no need to click continue button anymore)
Set to 5 - Number of processed images per click

Scroll down and find 'Select album'
In the dropdown box select 'All albums' and click 'submit'

Now wait till all thumbs have been recreated

Ok, I did all of the above steps.  Still not seeing a watermark  :-\

I know that it's there.  I made a new png and uploaded it in place of the sample png, so nothing about the path should have changed.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 23, 2006, 10:16:36 pm
First make it work with new uploads. Use the sample watermark to exclude all possible mistakes and use http upload and not batch add
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 23, 2006, 11:13:33 pm
Ok, I uploaded a picture via upload.php, and the sample watermark DID show up: http://a-pathetic.net/jax/portfolio/displayimage.php?album=lastup&cat=0&pos=0

So I went ahead and replaced watermark.png with the one that I want to use (named it watermark.png also and uploaded it to the same place the sample one was at).  Then I did the admin tool steps (though I couldn't find anywhere to check "auto refresh").

The sample watermark is still on the one picture, and none of the other pictures have anything on them.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: ymca on June 23, 2006, 11:44:07 pm
Maybe the watermark.png is not formated right.
maybe it has a mask that blocks something...
Ok, I uploaded a picture via upload.php, and the sample watermark DID show up: http://a-pathetic.net/jax/portfolio/displayimage.php?album=lastup&cat=0&pos=0

So I went ahead and replaced watermark.png with the one that I want to use (named it watermark.png also and uploaded it to the same place the sample one was at).  Then I did the admin tool steps (though I couldn't find anywhere to check "auto refresh").

The sample watermark is still on the one picture, and none of the other pictures have anything on them.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 24, 2006, 12:47:12 am
idk...all I did was take the original watermark.png from the download, open it in PSP, erase the text, and add new text.  I kept the transparent bg and everything.   ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 24, 2006, 11:01:14 am
you need to save it as png. Renaming it to jpg doesn't work
Also if you don't see the auto refresh checkbox you probably haven't uploaded all files. At least util.php isn't working then as it should. -> Reupload all files -> read the docs again (first + second post)

All seems to work except for your own wm file and/ or admin tools. I've showed you the two possibilities
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 24, 2006, 12:58:03 pm
hey stramm, i have checked the css and canot find out ow to change just the heading text of who is online, and such :S. can you change that font size on its own or is it linked with the rest of the text.?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 24, 2006, 05:07:38 pm
in my css I can find something like
Code: [Select]
.h2_nomargin {
font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Arial, Sans-Serif;
font-weight: bold;
font-size: 1.6em;
color: #333;
}

if you're unsure what to change there are browser extensions that dispaly what css is used for certain html. Use that if you're going to modify themes/ css
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: justbishop on June 24, 2006, 11:32:02 pm
you need to save it as png. Renaming it to jpg doesn't work
Also if you don't see the auto refresh checkbox you probably haven't uploaded all files. At least util.php isn't working then as it should. -> Reupload all files -> read the docs again (first + second post)

All seems to work except for your own wm file and/ or admin tools. I've showed you the two possibilities
I DID save it as a png.  All I did was open the png that came with the download, erase the text, add my own, and hit save, so it just saved OVER the original watermark.png as watermark.png.

And I know I've uploaded every file that came in the download, but sometimes SmartFTP messes up and doesn't upload something completely.  I've never seen the working admin tools page for this thing, so I just didn't know that something was wrong with it (and even if I had, it would have been pretty difficult for me to narrow the problem down to util.php). 

Anyway, thanks for the tip, I'll upload that file once more.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 25, 2006, 02:07:43 pm
hmmm sorry to be a pain i have done wht you sed and still noo look

i edited .h2_nomargin {
   
   font-size: 1.6em; << changed that to font-size: 2.6em;

just to see if the font size would change and still no look  :-\
   
is it possible to change what i am asking for ?.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 25, 2006, 08:31:31 pm
works for me... Last additions got bigger when changing font-size to 2.6em in the h2_nomargin class definition

as I've already suggested use eg. the firefox developer toolbar to find out what css you need to change to achive a certain effect
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 25, 2006, 08:33:01 pm
Anyway, thanks for the tip, I'll upload that file once more.

Issue solved then??
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 25, 2006, 08:36:26 pm
Ok, one step at a time, slowly but surely.  I've got my watermark to work, and I've updated all the image sizes multiple times, but for some reason, the original size files are not being watermarked.  Is there a certain way that things should be set up in the image watermarking section of the config screen?  I do have it set to "both" where it asks which files to wwatermark...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 25, 2006, 08:45:29 pm
Don't let me always guess what you're doing...
if you batch upload -> then permissions aren't set correctly (I've explained that 2-3 times in this thread). Therefore I asked you to http upload. You haven't reported back if that works.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 25, 2006, 11:47:23 pm
hmmm av done it over nd over i used dreamweaver with the css editor and even though its so simple to change the font size when saving and re-uploading it to themes/oranje/. it just dont change at all which is strange . since it works for you.  :-\

and another error i get when i go to config and tic Display info right of thumb (or below) on instead of it working it just shows {caption 2}. i dont no if this has anything to do with your modded version, theme or what so sorry if it dosnt
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 03:47:01 pm
{CAPTION2} is for the modpack version of the oranje them. So if you haven't installed the modpack you will see that. If you see {CAPTION2} then you're asking your questions in the wrong thread.
But use a txt editor to do the changes make sure you upload into the correct dir and clear your cache
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 04:08:20 pm
yes i am running your latest version of your modpack erm if you want to have a log with my admin account to see , it also dose not show pm in comments :S

and i have turned debug nd notices and get sum erros to the theme

i will pm u a admin account and if you have time you can check it  ;)
, thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 04:12:46 pm
i have sent you it .
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 04:22:12 pm
then you probably have edited the theme.php with non modpack compatible code from sample/theme.php

function theme_display_thumbnails
or
$template_thumbnail_view
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 04:29:43 pm
i have downloaded your modpack again and uploaded themes/oranje/theme.php again . and stil no look :S
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 04:36:17 pm
reupload functions.inc.php and themes.inc.php as well
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 04:48:36 pm
right well i have found out it has somthing to do with a plugin , Avanced Thumbnail Caption . i dont no why i had that installed or what it is but i think that was the problem :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 04:53:41 pm
;) k, prolly it changes $template_thumbnail_view
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 04:59:06 pm
a right i found another aswel (add thubmnails to light box) so would this be easy to edit stramm to get it to work with your modded version ?.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 05:09:08 pm
it still dose not show pm in comments with oranje theme even when plugins turned off , but i am not going to borther because i no you wil be sick of me now lol , and it feels like i am hogging this thread .

but before i turn debug nd notices off is this anything to wory about .

Notices
/themes/oranje/theme.php
Notice line 593: Use of undefined constant AUTHOR_ID - assumed 'AUTHOR_ID'
Notice line 793: Undefined variable: charset
Notice line 951: Undefined variable: tile1
Notice line 952: Undefined variable: tile2
/lang/english.php
Notice line 1181: Undefined index: user_field_num
/include/functions.inc.php
Notice line 88: Undefined variable: cpg_show_private_album
/include/themes.inc.php
Notice line 2228: Undefined index: uid
/displayimage.php
Notice line 321: Undefined variable: meta_keywords
 

 
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 05:26:43 pm
maybe that some plugin also modifies $template_image_comments ... then you won't see avatars and the PM link in comments

if these notices don't mean anything to you just turn them off
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 26, 2006, 06:18:58 pm
ok then thanks for all your help Stramm there was only one mystery how i cant change the .h2_normargin font size in the  css i can change every other font headers singley bar that 1 lol . aww well.

and  them notice errors that i posted  are not so bad then . and i can live with them , Right ?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: justbishop on June 26, 2006, 08:05:06 pm
Don't let me always guess what you're doing...
if you batch upload -> then permissions aren't set correctly (I've explained that 2-3 times in this thread). Therefore I asked you to http upload. You haven't reported back if that works.
Sorry, I forgot to tell you that I did use http upload for one image to test everything.  There were already more images in the gallery than I care to reupload until I see this working perfectly. 

Anyway, same problem with my http uploaded test image: I have a watermark (the correct watermark.png) on the intermediate sized image, but when you click on it to get the full sized one (the one that pops up), there is no watermark. 

But before we go any further, is the site owner going to have to use http upload for all pictures she wants watermarked?  Like, ALWAYS?!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 08:27:20 pm
no, of course you won't have to use http upload... that's just to troubleshoot.
you did set 'watermark both, fullsize and intermediate' ?

edit: link and testuser account would come in handy
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 26, 2006, 08:34:32 pm
Yes, it is set to watermark both, and I've done the admin tools process numerous times.  Here's a link to the gallery.  Did you need an admin account or something?

http://www.a-pathetic.net/jax/portfolio/index.php
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 26, 2006, 08:42:00 pm
yes, please by PM... your CPG doesn't create a backup file of the orig. So something goes wrong here. I'll have a look when I have time again. Will be off for today and not around tomorrow
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: DrUnKtAnK on June 26, 2006, 10:21:54 pm
First of Stramm - work on the mod pack.  Hope for more to come.

I recently upgraded to cpg 1.4.8 (fresh install) and then added your mod pack.
Everything installed fine, ran update, versioncheck, etc.  no problems.

Then I started to batch add images (w/o watermarking) and then Added new files to the gallery.

As the page loads - under each result was "click for details or to reload" clicked the link and I'm now getting the following errors.

"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4096 bytes) in /home/XXXXX/public_html/images/include/picmgmt.inc.php on line 434

Strange thing is that the first gallery I added had no problems, now this is the error I get constantly.

Thanks for the help in advance.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on June 27, 2006, 10:12:47 pm
Hi Stramm

This as probably been asked before, sorry if it has

Is there a way of adding the following to a custom theme:

Welcome back will
Private Messages: 0 unread, total 3
Friends: 0 request(s), active 0

Thanks for any help ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 28, 2006, 04:00:02 pm
Yes, it is set to watermark both, and I've done the admin tools process numerous times.  Here's a link to the gallery.  Did you need an admin account or something?

http://www.a-pathetic.net/jax/portfolio/index.php

all looks good to me... I've created a personal album and uploaded a pic. Works for both, orig and resized. Just one settiung was wrong (cause maybe missleading). Transparency needs to be set to > 0. 0 means fully transparent. I've set it to 50 now
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 28, 2006, 04:01:20 pm
Hi Stramm

This as probably been asked before, sorry if it has

Is there a way of adding the following to a custom theme:

Welcome back will
Private Messages: 0 unread, total 3
Friends: 0 request(s), active 0

Thanks for any help ;D

yes it has been asked before... you need to add {LOGIN_FORM} to your template.html
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 28, 2006, 04:02:55 pm
First of Stramm - work on the mod pack.  Hope for more to come.

I recently upgraded to cpg 1.4.8 (fresh install) and then added your mod pack.
Everything installed fine, ran update, versioncheck, etc.  no problems.

Then I started to batch add images (w/o watermarking) and then Added new files to the gallery.

As the page loads - under each result was "click for details or to reload" clicked the link and I'm now getting the following errors.

"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4096 bytes) in /home/XXXXX/public_html/images/include/picmgmt.inc.php on line 434

Strange thing is that the first gallery I added had no problems, now this is the error I get constantly.

Thanks for the help in advance.

This means the images you try to add are to big in size. Search the board for more details or just reduce the images size (width/ height).
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on June 28, 2006, 04:15:08 pm
Hello stramm I have cpg 1.4.6 with yours mod.
Why some my users receive the notification email comments without text?

TNX
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 28, 2006, 04:25:19 pm
they probably don't use the english language file
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on June 28, 2006, 06:21:24 pm
they probably don't use the english language file

I use english usa, but only some my users have this problem. Others normally receive them complete of text and link to the pic.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 28, 2006, 06:30:15 pm
yup, as said, these users probably don't use the english lang file. You'll need to translate the emails and update all language files
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on June 28, 2006, 07:44:14 pm
yup, as said, these users probably don't use the english lang file. You'll need to translate the emails and update all language files

Thanks stramm, but I used English language usa like only choice and I have disabled autodetect from admin tool. the users cannot choose other languages. is it possible that some of they still visualize the old language for a cookies problem?

I have the same problem when I receive the notify email from some of they

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 28, 2006, 08:03:01 pm
I guess so. If you do not use and your users shouldn't use any other language than english (us), you can delete all the other lang files.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on June 28, 2006, 08:11:56 pm
Thanks stramm. this is a good idea.  will try to make it

Hi
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 28, 2006, 10:07:17 pm
stramm everything on your modd is now working great but having problem with the watermarking, it works fine but when i upload from batch add files it dont add no watermark image is i doing somthing wrong ?.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 28, 2006, 10:45:00 pm
sorry about posting again its just i cant modify my post, i would like to no if you could help me out i would like to show the users usergroup undernieth the users avatar in there comments.


thanks ,justttt
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 05:37:43 am
copy function theme_html_comments from themes.inc.php to your theme.php if it's not already there
USER_GROUP holds the usres group name. Add it where you need it. You even can define a new placeholder but you have to modify then $template_image_comments also
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on June 29, 2006, 12:32:07 pm
I guess so. If you do not use and your users shouldn't use any other language than english (us), you can delete all the other lang files.

Hi Stramm

I have made as you have said and now works all  ;D. Some my old users conserved the cookie before your mod has been applied. Only leaving the english (us) language the problem is resolved

Sorry for my bad english...  :(

Many TNX
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on June 29, 2006, 12:38:48 pm
hmmm i done what you sed stramm and it still dose not users user group under the avatar in posted comments :S
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on June 29, 2006, 04:28:57 pm
Hi Stramm

Is there anyway of adding any additional profile info to the top left corner where the welcome, pm & buddies is ;D

Hi Stramm

Going back to my earlier post (see above) I want to add the users pic count to the LOGIN_FORM but when I take the loginForm info from themes.inc.php and place it into my theme.php I get a parse error ???

Just wanted to see if you know a way of making this work ;D

Thanks, will
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 04:53:33 pm
hmmm i done what you sed stramm and it still dose not users user group under the avatar in posted comments :S

works exactly as I told you... just verified
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 04:55:19 pm
Hi Stramm

Going back to my earlier post (see above) I want to add the users pic count to the LOGIN_FORM but when I take the loginForm info from themes.inc.php and place it into my theme.php I get a parse error ???

Just wanted to see if you know a way of making this work ;D

Thanks, will

don't copy the starting
Code: [Select]
if (!function_exists('loginForm')) { and one ending
Code: [Select]
}
that's what you need
Code: [Select]
function loginForm($logged=1) {

global $CONFIG, $lang_loginform, $REFERER;

//if (!$CONFIG['enable_loginform']) return $loginFormHtml = "";

if (!USER_ID && $CONFIG['enable_loginform']) {
  $loginFormHtml = <<<EOT
<ins>
    <form action="login.php?referer=$REFERER" method="post" name="loginbox" style="margin:0; padding:0;">
        <table cellpadding="0" cellspacing="3" border="0">
        <tr>
            <td><input type="text" class="textinput" name="username" size="10" /></td>
            <td><input type="password" class="textinput" name="password" size="10" /></td>
            <td><input name="submitted" type="submit" value="Login" />
            <input name="remember_me" type="hidden" class="checkbox" value="1" checked="checked" /></td>
        </tr>
        <tr>
        <td class="smallfont">$lang_loginform[user]</td>
        <td class="smallfont">$lang_loginform[pass]</td>
        <td></td>
</tr>
        </table>
        </form>
</ins>
EOT;
}

if (USER_ID) {

$loginFormHtml = "<div align=\"right\" class=\"smallfont\">".$lang_loginform['welcome']." <strong>".(USER_NAME)."</strong><br />";

if ($CONFIG['display_pms_status']){
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_PMS']} WHERE owner=".(USER_ID));
list($tot_all_messages) = @mysql_fetch_array($result);
mysql_free_result($result);
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_PMS']} WHERE owner=".(USER_ID)." AND showed='0'");
list($tot_new_messages) = @mysql_fetch_array($result);
mysql_free_result($result);

if ($CONFIG['pms_enabled']) {
$loginFormHtml .= "<a href='pms.php'>".$lang_loginform['pms']."</a> ".$tot_new_messages.$lang_loginform['unread_total'].$tot_all_messages."</div>";
}
}

if ($CONFIG['display_buddy_status']){
// get some buddy data
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_BUDDY']} WHERE user_id=".(USER_ID));
list($tot_all_buddies) = @mysql_fetch_array($result);
mysql_free_result($result);
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_BUDDY_REQ']} WHERE buddy_to=".(USER_ID));
list($tot_new_buddies) = @mysql_fetch_array($result);
mysql_free_result($result); 

if ($CONFIG['enable_buddy']){
$loginFormHtml .= "<div align=\"right\" class=\"smallfont\"><a href='buddy_manage.php'>".$lang_loginform['friends'].":</a> ".$tot_new_buddies." ".$lang_loginform['request'].", ".$lang_loginform['active']." ".$tot_all_buddies."</div>";
}
}

}
  return $loginFormHtml;
}
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 04:56:20 pm
Hi Stramm

I have made as you have said and now works all  ;D. Some my old users conserved the cookie before your mod has been applied. Only leaving the english (us) language the problem is resolved

Sorry for my bad english...  :(

Many TNX

good to hear ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on June 29, 2006, 05:11:35 pm
Thanks Stramm

Worked fine, where would I get the pic count info to place in the loginForm function, I've tried profile & user manager bt couldn't find it ???

Thanks, will ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Justttt on June 29, 2006, 05:32:03 pm
works exactly as I told you... just verified

i edited the themes.php and next to  {AVATAR} put echo USER_GORUP 
and nothing shows when i post a comment  ::)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 05:46:51 pm
read again.. I told you to edit function theme_html_comments. Or, if you want to work with a placeholder in $template_image_comments you need to modify then you need to define that. Just adding USER_GROUP here won't work

also this is the modpack support thread and isn't ment for general theming and template help
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: will on June 29, 2006, 05:52:44 pm
Sorry Stramm, I'll post on the relevant forum, thanks for your help again ;D
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 29, 2006, 06:25:16 pm
Stramm, thanks for the help, but I've updated everything several times, and am still not getting watermarks on the original sized images in the popup.  I don't know what else to do aside from deleting and reuploading all of the pictures that are already in the gallery, which I'm not going to do. 

We've actually been talking about disabling the large size image viewing altogether (clicking on the intermediate pic wouldn't do anything.)  Since we're not having a problem watermarking the intermediate pictures, and there's no need for anyone to need to see them bigger than that, that seems like it's going to be the easiest route.  Anyone know how to do that?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 06:55:06 pm
justbishop, wasn't everything working when I tried?? At least http upload.

So where exactly do you still have problems. To watermark already uploaded images you'll have to run the admin tools. Sometimes (especially if you once upgraded from 1.3) you'll need to chmod all fiiles/ folders to what you use now

Same for batch add... chmoding is necessary for certain setups
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 29, 2006, 07:58:30 pm
Yes, the pictures that just won't watermark for some reason are the already uploaded, full sized images.  I have run the admin tools several times, in various configurations (only thumbnails, full sized and resized, all, etc.)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 29, 2006, 08:24:24 pm
you'll need to chmod all fiiles/ folders to what you use now

as already mentioned a few times. Check your config to see what your actual settings are (I'd guess [folder/ files] 755/ 644)... but you may have to set this to (777/666 or 755/666 or ...). That's due to exotic server setups
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: justbishop on June 29, 2006, 08:51:51 pm
Ok, when I installed CPG, I'd CHMODed everything the way it said to.  When it gave me a choice between 755 and 777, I believe I chose 777 every time.  I would be happy to check again, but I'm confused about what folders and files should be set to what for this all to work.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on June 30, 2006, 02:16:21 pm
I'm working to the translation of your beautiful Mod in Italian language and I would ask a question to you.
Is it possible to make the following two modifications?


Visual notification on the new comments receipts with link to the "Last comments page"

Red or yellow numbers coloration when the values are not equal to zero

 an you help me? See the attached image please

TNX

angeldevil
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 30, 2006, 02:41:04 pm
Ok, when I installed CPG, I'd CHMODed everything the way it said to.  When it gave me a choice between 755 and 777, I believe I chose 777 every time.  I would be happy to check again, but I'm confused about what folders and files should be set to what for this all to work.

folders should be fine with 777, chmod all files to 666 and try if it works. As said, some setups are exotic. I've explained that several times in modpack and/ or watermark threads
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on June 30, 2006, 02:51:40 pm
I'm working to the translation of your beautiful Mod in Italian language and I would ask a question to you.
Is it possible to make the following two modifications?


Visual notification on the new comments receipts with link to the "Last comments page"

Red or yellow numbers coloration when the values are not equal to zero

 an you help me? See the attached image please

TNX

angeldevil

I'll give you an example for the PMs...
in themes.inc.php find function loginForm and copy it over to the theme you're using (don't include the last bracket } before the ending ?>)

now you can experiment with that function as you wish.
after
Code: [Select]
list($tot_new_messages) = @mysql_fetch_array($result);
mysql_free_result($result);
add
Code: [Select]
($tot_new_messages == 0) ? $tot_new_messages = "<span style=\"color: green\">$tot_new_messages</span>": $tot_new_messages = "<span style=\"color: red\">$tot_new_messages</span>" ;
do something similar for  buddies.

The number of comments since the last login/ visit
probably possible but resource hungry. You can just enhance the function you just copied. You need to query the user table for the last visit date/ time and the query the comments table for comments added later than the last visit date. You even could make that a config option ;)

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on June 30, 2006, 06:34:52 pm
Hello Stramm! the various coloration works perfectly!  ;D
Now I try to experiment on the visual notification on comments

Many thanks!!!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fovsports on July 07, 2006, 06:55:34 pm
Hello Stramm,
Very powerfull piece of code you have written. Community based sites have been the rage for awhile now.
Here is my question.... I would like to be able to have the profile.php page for my members have the link "click here to view {users_id} buddies".  See attached picture.

Thanks for your help on all that you have done. I hope this is not to much to request.
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.shoiecast.com%2Fstramm%2Fprofilelink.jpg&hash=eba0b48b2c03186bd9e22fa5e557531388d32c26)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: antisa33 on July 08, 2006, 02:36:05 am
Please can you help me, the mod is ok for all the theme but not with mine : i need the Digital_Flow theme  :-\
I try to add {LOGIN_FORM} on my template.html but now i have a blanck page !
Please help
Thanks!!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: antisa33 on July 08, 2006, 02:52:30 am
i have this error
Failed to find block 'my_friends'
thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 08, 2006, 08:53:43 am
i have this error
Failed to find block 'my_friends'
thanks

http://forum.coppermine-gallery.net/index.php?topic=24341.msg112180#msg112180
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 08, 2006, 08:58:04 am
Hello Stramm,
Very powerfull piece of code you have written. Community based sites have been the rage for awhile now.
Here is my question.... I would like to be able to have the profile.php page for my members have the link "click here to view {users_id} buddies".  See attached picture.

Thanks for your help on all that you have done. I hope this is not to much to request.
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.shoiecast.com%2Fstramm%2Fprofilelink.jpg&hash=eba0b48b2c03186bd9e22fa5e557531388d32c26)

haven't you asked taht before??
adding a link to the profile is easy. To modify the buddy_manage.php to work for the owner of the buddy list and users viewing other members buddy ists isn't that trivial. Would require to rewrite some crucial parts of that file. An easier solution would be to just copy the code that only shows and doesn't administer the buddy list into a new file and call that.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 08, 2006, 10:55:01 pm
Hello,

after installing it, i get database error when click on the pictures :


http://www.friendsterforum.com/gallery/displayimage.php?album=lastup&cat=0&pos=0


Please kindly assist me. Thanks

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 12:16:32 am
for me it doesn't look like a problem when viewing an intermediate image but a problem with the smf settings (can't be loaded). Try to fix the smf settings table
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 02:32:08 am
for me it doesn't look like a problem when viewing an intermediate image but a problem with the smf settings (can't be loaded). Try to fix the smf settings table

Hello,

how can i fix it? Please advice me. Thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 08:44:20 am
ask that on the integrating/ bridging board. Not related to the modpack. And stick to one thread.
http://forum.coppermine-gallery.net/index.php?topic=33647.0

edit:
now you have another error message but GauGau already told you in this thread what to do
http://forum.coppermine-gallery.net/index.php?topic=33645.msg156956#msg156956
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 12:09:55 pm
Hello,

how can i fix it? Please advice me. Thanks

I hope you finally stick to one thread now.
After you finally enabled debug mode I was able to see the problems you have. It's a known issue. Happens when bridged and with avatars enabled. In addition to that the db users of the forum and cpg need to be different. A link to the fix has also been posted several times in this thread
http://forum.coppermine-gallery.net/index.php?topic=29153.msg135084#msg135084
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on July 09, 2006, 01:24:48 pm
hey stramm , i have 2 copies of your modpack uploaded /album, /ladies ... when i install ladies gallery i would like it to use its own database prefix ladies_, but use the cp4_users table from album so i have all members on both. how would i do this

thanks,
   Justttt
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 01:31:31 pm
easiest solution... bridge both with a forum (same forum)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Justttt on July 09, 2006, 01:48:40 pm
aww thats what i was trying to avoid. :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 03:26:33 pm
Hello,

the other issue has already been solve but i notice that the "buddy" or "add friends" is also getting an error.

http://www.friendsterforum.com/gallery/buddy_manage.php?event=make&id=16781
http://www.friendsterforum.com/gallery/buddy_manage.php
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 06:25:10 pm
testuser account please?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 07:02:01 pm
testuser account please?

Hello,

Username : x
pass : test

Please kindly help me on this issue :)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: fovsports on July 09, 2006, 07:22:52 pm
haven't you asked taht before??
adding a link to the profile is easy. To modify the buddy_manage.php to work for the owner of the buddy list and users viewing other members buddy ists isn't that trivial. Would require to rewrite some crucial parts of that file. An easier solution would be to just copy the code that only shows and doesn't administer the buddy list into a new file and call that.
Stramm I can not code php like you ( but maybe someday I can get close ). However I can copy paste and read/understand most of this code. Could you please direct me to the lines of code that needs my attention in the buddy_manage.php and profile.php files. Like find this.... and replace with this....
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 07:53:45 pm
Hello,

Username : x
pass : test

Please kindly help me on this issue :)

the reason why it won't work out of the box is the same as with your issue before... different db users for bbs and cpg. If you'd change settings to use the same db user to access the mysql db all should work smooth.
If you don't want to do that then some 'hardcoding' of the queries is necessary.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 07:57:59 pm
the reason why it won't work out of the box is the same as with your issue before... different db users for bbs and cpg. If you'd change settings to use the same db user to access the mysql db all should work smooth.
If you don't want to do that then some 'hardcoding' of the queries is necessary.

Hello,

how can i change settings to use the same db user to access the mysql db?

sorry im a noob :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 08:00:40 pm
in include/config.inc.php the settings for the mysql db access are stored (for CPG). Use the same username / password here as you use for your bbs (not your admin etc login but for the mysql db access). This should work but of course I can't be 100% sure. Depends on your server setup.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 08:01:46 pm
Stramm I can not code php like you ( but maybe someday I can get close ). However I can copy paste and read/understand most of this code. Could you please direct me to the lines of code that needs my attention in the buddy_manage.php and profile.php files. Like find this.... and replace with this....

I'll need to check the code myself too. So this'll need a while till I find a free minute. Sorry, it's not really on my priority list ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 08:17:46 pm
I notice that some of the photo table are uncorrect :

http://www.friendsterforum.com/gallery/displayimage.php?album=random&cat=0&pos=-520
http://www.friendsterforum.com/gallery/displayimage.php?album=random&cat=0&pos=-82


is there anything i can do?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 08:38:25 pm
I notice that some of the photo table are uncorrect :

http://www.friendsterforum.com/gallery/displayimage.php?album=random&cat=0&pos=-520
http://www.friendsterforum.com/gallery/displayimage.php?album=random&cat=0&pos=-82


is there anything i can do?

your other issues have been resolved?
I'm not sure what you're asking now. Can you please rephrase
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 08:49:32 pm
your other issues have been resolved?
I'm not sure what you're asking now. Can you please rephrase

Hello, as for the "buddy" issue i disable it, so save the headache :)

how can i fix those broken table?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 08:52:49 pm
broken table... ?? You mean the filmstrip with that? Cause its 'bigger' than the other tables?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 09:01:04 pm
broken table... ?? You mean the filmstrip with that? Cause its 'bigger' than the other tables?

here it's :

http://www.friendsterforum.com/gallery/displayimage.php?album=random&cat=0&pos=-520
http://www.friendsterforum.com/gallery/displayimage.php?album=random&cat=0&pos=-82


Please kindly help me on this one. Thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 09, 2006, 09:25:12 pm
in filmstrip just don't display filenames below thumbs (that's a config option)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on July 09, 2006, 09:27:25 pm
in filmstrip just don't display filenames below thumbs (that's a config option)

works like charms. Thanks :)

I love this great mods  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 12, 2006, 04:15:53 pm
Hi Stramm!

I've a new question for you:

is it possible insert a photographer name under the pic with PM possibility?

Please see the attacched image

TNX
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 12, 2006, 04:39:16 pm
For the uploader name it is possible... and already done... check the classic, oranje or tentacle theme
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 12, 2006, 04:48:56 pm
Thanks Stramm
but in your Hardwired modded theme is it possible?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: rongxanhnet on July 12, 2006, 06:17:29 pm
another demo for Mods pack:
www.congai.org

It's great to me...  ;)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: Sami on July 12, 2006, 06:25:39 pm
You remove coppermine copyright and it's not great
please put it back
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 13, 2006, 09:00:58 pm
Thanks Stramm
but in your Hardwired modded theme is it possible?

of course it's possible... either modify the plugin I've posted recently (and add the PM button) or just copy/ past the template from oranje or tentacle theme.php (make sure you don't overwrite anything in your own theme.php)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on July 13, 2006, 11:04:04 pm
of course it's possible... either modify the plugin I've posted recently (and add the PM button) or just copy/ past the template from oranje or tentacle theme.php (make sure you don't overwrite anything in your own theme.php)

Hi Stramm


I've copied & paste this code in theme.php (hardwired)

Code: [Select]
// HTML template for the image navigation bar



$template_img_navbar = <<<EOT

        <tr>
<td colspan="8" align="center">
<br />titolo:<strong>{PIC_TITLE}</strong> autore: <a href="profile.php?uid={OWNER_ID}"><strong>{OWNER_NAME}</strong></a>
EOT;

if ($CONFIG['pms_enabled']) {
$template_img_navbar .=  "<a href=\"".(PM_LINK)."{OWNER_ID}\"><img src=\"themes/hardwired/images/pm.gif\" width=\"16\" height=\"11\" border=\"0\" alt=\"Send PM\" /></a><br><br>";
}

When I'm logged all correctly work, but if I'm unlogged receive this withe error page  :(


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

        <tr>
            <td colspan="8" align="center">
               <strong><br />{PIC_TITLE}</strong> from <a href="profile.php?uid={OWNER_ID}"><strong>{OWNER_NAME}</strong></a> <a href="pms_send.php?id={OWNER_ID}"><img src="themes/hardwired/images/pm.gif" width="16" height="11" border="0" alt="Send PM" /></a><br><br>

what I can make?  ???
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 14, 2006, 12:28:58 am
that's not all... copy few lines more
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on July 14, 2006, 07:02:48 am
that's not all... copy few lines more

OK Stramm

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.5
  $Source: /cvsroot/coppermine/stable/themes/hardwired/theme.php,v $
  $Revision: 1.19 $
  $Author: gaugau $
  $Date: 2006/03/02 08:25:18 $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had redundant CORE items removed                           //
// ------------------------------------------------------------------------- //
define('THEME_HAS_RATING_GRAPHICS'1);
define('THEME_HAS_NAVBAR_GRAPHICS'1);
define('THEME_HAS_NO_SYS_MENU_BUTTONS'1);
define('THEME_HAS_NO_SUB_MENU_BUTTONS'1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);  // Remove this if you edit this template until
                                            // you have validated it. See docs/theme.htm.




// HTML template for the image navigation bar

$template_img_navbar = <<<EOT

        <tr>
<td colspan="8" align="center">
<br />titolo:<strong>{PIC_TITLE}</strong> autore: <a href="profile.php?uid={OWNER_ID}"><strong>{OWNER_NAME}</strong></a> 
EOT;

if (
$CONFIG['pms_enabled']) {
$template_img_navbar .=  "<a href=\"".(PM_LINK)."{OWNER_ID}\"><img src=\"themes/hardwired/images/pm.gif\" width=\"16\" height=\"11\" border=\"0\" alt=\"Send PM\" /></a><br><br>";
}



// HTML template for sys menu

$template_sys_menu = <<<EOT

                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN home -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleftmy" src="themes/hardwired/images/buttonleftmy.gif" width="17" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/hardwired/images/buttoncenter.gif);">
                                                <a href="{HOME_TGT}" title="{HOME_TITLE}">{HOME_LNK}</a>
                                        </td>
                                        <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0"  alt="" /></td>
<!-- END home -->
<!-- BEGIN my_gallery -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleftmy" src="themes/hardwired/images/buttonleftmy.gif" width="17" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/hardwired/images/buttoncenter.gif);">
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a>
                                        </td>
                                        <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0"  alt="" /></td>
<!-- END my_gallery -->
<!-- BEGIN my_friends -->

TNX for any help!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 14, 2006, 07:32:53 am
what I meant was, that you haven't copied enough into your theme.php... not the entire template_img_navbar var

Code: [Select]
$template_img_navbar = <<<EOT

        <tr>
<td colspan="8" align="center">
<strong><br />{PIC_TITLE}</strong> from <a href="profile.php?uid={OWNER_ID}"><strong>{OWNER_NAME}</strong></a>
EOT;
if ($CONFIG['pms_enabled']) {
$template_img_navbar .=  "<a href=\"".(PM_LINK)."{OWNER_ID}\"><img src=\"themes/tentacle/images/pm.gif\" width=\"16\" height=\"11\" border=\"0\" alt=\"Send PM\" /></a>";
}

$template_img_navbar .= <<<EOT
<br><br></td>
</tr>
        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;


you'll need to adapt thge path to the PM image. And maybe think about modifying the plugin. I consider that to be the better solution
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 14, 2006, 08:32:58 am
Hi stramm.
I appreciate a lot your job and your aid. This is my gallery (hardwired theme modded by Stramm) with the small modifications that I have make with your aid (see pic). Now I have nearly completed the Italian language translation.
 
Many thankses

angeldevil
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Hythshade on July 15, 2006, 10:46:17 am
Hi,
I am wondering if it is possible to get this mod to work in coppermine bridged with Joomla? I really am just wondering if you could point me to which files need to be changed to have everything point to the Joomla db. Thanks for any help you can provide.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 17, 2006, 02:48:25 pm
Hi Stramm, many TNX for all your helps!

Unfortunately I have some problems and new questions for you:

yesterday I've used watermarking feature and the intermediate image for the first time. I've changed value of PNG trasparency in admin tool (0 - 100) without some appreciable variation. The watermark.png image is always opaque in all new uploaded file. My server use GD 2.x

The last question is watermark not disactivable problem, EXIF data read problem and non-requested files compression:
 
After I've activated "watermark" and "create intermediate image" @ 800x600 pixels, my gallery doesn't read more the EXIF data from all new image uploaded, even if the "Read EXIF data in jpg" function is set @ "Yes".
At the same time, in all new original image files uploaded, cpg introduced a not requested compression @ 50% or more.
For example the original file size of xxx.jpg of the user yyy before post= 221,9 KBytes @ 1000x750 pixels. After post,in http://...gallery/albums/userpics/yyy/...  the size of the same file is: xxx.jpg = 94Kbytes @ 1000x750 pixels, normal_xxx.jpg = 55,4 Kbytes @ 800x600 pixels.
what happened?
 
When my users has reported this problems I've immediately set @ "NO" "Create a intermediate image" and "watermark" from admin panel, but I cannot disabled watermark anyway. Finally I've had renamed the watermark.png file in NOwatermark.png in order to stop the process. Finally I've stopped it but The EXIF data still not be read and all new uploaded image file are being compressed anyway!!

Can you help me please?




Other question:

I've a new idea for improve my small custom modifications (see at the top of this page 27) and/or your pic_poster plugin.
The real question is:
Is it possible to add, near uploader name, the user on/offline status, using a part of the function "Who is online" included in your very great modpack ?
I think that my suggestion can be a very useful feature.

See two attacched example pics. (in order: pic title, uploader name, status on/off, PM) see also comments box in "cmnts_box" pic attacched


TNX
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 17, 2006, 05:53:17 pm
Quote
yesterday I've used watermarking feature and the intermediate image for the first time. I've changed value of PNG trasparency in admin tool (0 - 100) without some appreciable variation. The watermark.png image is always opaque in all new uploaded file. My server use GD 2.x

please read the docs

Quote
After I've activated "watermark" and "create intermediate image" @ 800x600 pixels, my gallery doesn't read more the EXIF data from all new image uploaded, even if the "Read EXIF data in jpg" function is set @ "Yes".

yes, I see, should be easy to fix. Instead of reading the exif from the watermarked file it needs to read it from the original backup

Quote
At the same time, in all new original image files uploaded, cpg introduced a not requested compression @ 50% or more.
For example the original file size of xxx.jpg of the user yyy before post= 221,9 KBytes @ 1000x750 pixels. After post,in http://...gallery/albums/userpics/yyy/...  the size of the same file is: xxx.jpg = 94Kbytes @ 1000x750 pixels, normal_xxx.jpg = 55,4 Kbytes @ 800x600 pixels.
that's how watermarking works. JJust try it with your favourite image editing software! How do you proceed? I bet you open the image in question, into a second layer you paste your watermark and then you save the picture. And that's exactly what the watermark mod's doing. With resaving there's compression (exactly the one you set in your coppermine config as qality for the thumbs and intermediate images)


Quote
When my users has reported this problems I've immediately set @ "NO" "Create a intermediate image" and "watermark" from admin panel, but I cannot disabled watermark anyway.

once watermarked the pictures are watermarked. To undo that you musn't have deleted the image backup files. Turn watermarking off in config and then recreate intermediate and fullsized pics in the admin tools. Please read the docs and the mod pack/ watermark mod threads. I've explained that numerous times already. After recreating the pics the exif should be readable again. In some free min I'll have a look and fix that.

Quote
s it possible to add, near uploader name, the user on/offline status, using a part of the function "Who is online" included in your very great modpack ?
I think that my suggestion can be a very useful feature.
It's possible and not that difficult to do cause it's already done for the profile and buddy list. Basically copy the code from there and make it usable where you need it. Within the comments I wouldn't do it. Either some table joins are necessary or a query for each comment. Performancewise not the best idea if you have a lot of comments
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 17, 2006, 06:14:08 pm
exif + iptc fix:
in displayimage.php find
Code: [Select]
    $path_to_pic = $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];below add
Code: [Select]
if ($CONFIG['enable_watermark'] ) {
if (is_file($CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CONFIG['orig_pfx']. $CURRENT_PIC_DATA['filename'])) {
$path_to_pic = $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CONFIG['orig_pfx']. $CURRENT_PIC_DATA['filename'];
}
}

haven't tested in detail but it should work quite well
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 17, 2006, 09:39:06 pm
Many TNX Stramm!

OK, I've set @ 90 instead 80 the quality for JPEG files and the extra-compression problem is solved!  ;)

I've tried your solution for EXIF data problem fix . I've add your code in displayimage.php but it fixed nothing. The rewriting and resaving system of gallery delete all EXIF data in the image file anyway.  I had the same problem in past, using the auto-resize image feature of cpg, but by disabling it, the exif data read function is turned OK

Now I can't stop the work of watermark process. I alredy turned off from the admin panel but the process continued to work. then I've also renamed the watermark.png file in order to phisically block the watermarker image writing process, but the relative function continues to work and rewriting and resave the image file  without watermarker image and this continued to deleting all exif data.  :(

How to fix it?

Hi
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 17, 2006, 10:09:54 pm
Quote
I've tried your solution for EXIF data problem fix . I've add your code in displayimage.php but it fixed nothing. The rewriting and resaving system of gallery delete all EXIF data in the image file anyway.  I had the same problem in past, using the auto-resize image feature of cpg, but by disabling it, the exif data read function is turned OK

the code is written to only interfere if you have enabled watermarking... as already said. If you disabled it run the admin tools to undo the watermarks. This is expected behaviour. The exif is still avail in the backup files. Reread what I've written before and the modpack docs.
Just turning off the watermark in config doesn't 'unwatermark' the images. It's no watermarking on the fly... it's a permanent watermark function.
Enabling/ disabling only has an effect on newly uploaded pics. For images already in your db -> run the admin tools.

So there are now two possibilities...
1. Enable watermarking in config, run admin tools and recreate intermediate and fullsized pics, apply the code in my last post and you'll have your exif data
2. Disable watermarking in config, run admin tools and recreate intermediate and fullsized pics and you'll have your exif data
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 17, 2006, 11:31:25 pm
Quote
1. Enable watermarking in config, run admin tools and recreate intermediate and fullsized pics, apply the code in my last post and you'll have your exif data

Problem solved!!  ;D

Many, many tanks!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 18, 2006, 03:15:07 pm
My old question:

Quote
is it possible to add, near uploader name, the user on/offline status, using a part of the function "Who is online" included in your very great modpack ?
I think that my suggestion can be a very useful feature.

Your answer:

Quote
It's possible and not that difficult to do cause it's already done for the profile and buddy list. Basically copy the code from there and make it usable where you need it.

Hi Stramm, I've tried your suggestion but the modification doesn't work. After I've tried some little variations in your code but it doesn't work. The result to db query is always zero (offline)

Have you any suggestion?

TNX

This is a my last tried (I've add it in theme.php):


Code: [Select]
$result_online = cpg_db_query("SELECT user_id FROM {$CONFIG['TABLE_PREFIX']}mod_online WHERE user_id =

'{OWNER_ID}'");
$user_data = mysql_num_rows($result_online);
mysql_free_result($result_online);
$template_img_navbar .= $user_data;
if ($user_data != 0) {
$online = "<span class=\"small_font\"> <img src=\"themes/hardwired/images/useron.gif\" alt=\"\"

border=\"0\" /></span>";
echo "";
} else {
$online = "<span class=\"small_font\"> <img src=\"themes/hardwired/images/useroff.gif\"

alt=\"\" border=\"0\" /> </span>";
}
$template_img_navbar .= $online;
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 18, 2006, 03:27:55 pm
hmmm...now, it seems to work...it, in a strange way, works... i changed if ($user_data != 0) in if ($user_data == 0) ... i can't figure out why that thing works...anyway...

TNX
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: angeldevil on July 18, 2006, 07:13:35 pm
Quote
hmmm...now, it seems to work...it, in a strange way, works... i changed if ($user_data != 0) in if ($user_data == 0) ... i can't figure out why that thing works...anyway...

TNX

oops! the status is casually "ON" or "OFF" without a logic reason  :o :(
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 18, 2006, 07:47:59 pm
this can't work... {OWNER_ID} is a placeholder and doesn't contain any data.
Haven't I mentioned that it might be better to write this as plugin? And haven't I directed you to the already published plugin (displaying the pic posters name above the intermediate image). It's really easy to add a PM link here (with a check if PM is enabled) and your online status (again with a check if Nibblers plugin is enabled). That plugin even a non modpack user can use and you won't have to mess around with your theme once you want to disable the PM feature/ onlinestats.

You install it like every other plugin. useron.gif, useroff.gif, pm.gif need to be in your themes images directory. If you use more themes, they need to be in every themes images directory -> customizable for each theme
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on July 18, 2006, 09:09:19 pm
Quote
Haven't I mentioned that it might be better to write this as plugin?

I will try it

Many TNX
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: udgang99 on July 25, 2006, 03:37:25 am
Hey STRAMM ...

I like the "oranje"-theme, but I'd like to change the size of the font for the name of the albums... it's WAAAY too big. Where and how do I do that???
I have been looking around in template, style and theme, but I just can't find it... will you help me, please? :)

-Kim
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on July 25, 2006, 07:51:17 am
Use the Web Developer Extension (http://forum.coppermine-gallery.net/index.php?topic=31423.msg145984#msg145984) or similar to find out.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: eruss on July 27, 2006, 05:52:21 am
Stramm,

Great mod.  I'm really enjoying it!

My gallery will have photographs from different people in shared galleries.  It's a hobby site where people freely trade photographs and the common understanding is that credit will be given to the original photographer even if someone else uploads it.  For example, a photograph might be marked:  "Bob Jones Photo" even if "Joe Davis" uploads it.

What I would like:  A way to add a text field at the bottom of the image using the content of a Custom Field such as Field Name 1.  An example of how it would look can be seen here:

http://p.airliners.net/photos/photos/3/3/2/1045233.jpg

The bar at the bottom is added to the image instead of being a 100% watermark overlay.  This way, if someone already adds their own watermark before uploading, it is not overwritten.  Example:

http://64.246.11.82/images/images2/b/BNSF_5430_35_072206.jpg.36837.jpg

Is this possible?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: roobok on July 28, 2006, 03:19:29 am
Hi,

Am reading thru all threads I can possibly find to try and sort a problem out we are experiencing.

We use, CP ver 1.4.8 and Stramms modpack, and oranje theme.

I just cannot get the download link plugin to work.

When we enable it, it either stuffs up our thumb images. For files other than images , is wav files.

Also doesnt appear as required under the image in gallery view as expected.

Any help please.

Site www.roobok.com
Sample login
user = test
pass = 12345

Thankyou Steve
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 29, 2006, 11:30:26 am
For example, a photograph might be marked:  "Bob Jones Photo" even if "Joe Davis" uploads it.

What I would like:  A way to add a text field at the bottom of the image using the content of a Custom Field such as Field Name 1.  An example of how it would look can be seen here:

Is this possible?

Of course possible but not that trivial cause the dimension of the image will change -> Coppermine calculates width height in the img html tags for thumbs and normal images from the originals dimensions -> probably the 'mark' will be then everywhere (thumb/ normal/ fullsized image) or some border etc.
However I'm not able to code that right now. Maybe a freelancer has some spare time...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 29, 2006, 11:38:25 am
I just cannot get the download link plugin to work.

I do not know the download link plugin nor what it's doing. So I can't be from much help here
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: eruss on July 29, 2006, 07:30:00 pm
Of course possible but not that trivial cause the dimension of the image will change -> Coppermine calculates width height in the img html tags for thumbs and normal images from the originals dimensions -> probably the 'mark' will be then everywhere (thumb/ normal/ fullsized image) or some border etc.
However I'm not able to code that right now. Maybe a freelancer has some spare time...

Stramm, thanks for your reply.  If the bottom bar was added as an overlay, like a watermark, but with adding the data from a custom field, would that be easier?  Then the image dimensions don't change.  I understand you don't have time right now.  I have no expectations.  I just want to understand which is more complicated.

Since an overlay would really be a watermark (maybe an image 2000px x 15px) I guess the only missing part is the option to add the text from a field.  But maybe this is the complicated part if the watermark process is done during upload, before the custom data is entered.

I may look into your freelance suggestion.

Thanks!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 30, 2006, 09:27:02 pm
If you don't have much visitors ---> easiest would be an 'on the fly' solution. However this uses a lot of CPU/ mem

The data gets added to the database after the pic has been processed. To add the text from a form field isn't a problem at all. If you add your 'bar' to the fullsized image and don't mind having a 'shrinked' version on the intermediate and the thumb it's possible without a lot of big problems.

Then before all the pic processing starts you grab the temporary (the just uploaded) image, add your bar and save it again. After that you run the creation of intermediate and thumb and then save the pic data into the db (means the new image dimensions get stored)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: eruss on July 31, 2006, 04:13:23 am
If you don't have much visitors ---> easiest would be an 'on the fly' solution. However this uses a lot of CPU/ mem

The data gets added to the database after the pic has been processed. To add the text from a form field isn't a problem at all. If you add your 'bar' to the fullsized image and don't mind having a 'shrinked' version on the intermediate and the thumb it's possible without a lot of big problems.

Then before all the pic processing starts you grab the temporary (the just uploaded) image, add your bar and save it again. After that you run the creation of intermediate and thumb and then save the pic data into the db (means the new image dimensions get stored)

Stramm, thank you for explaining when the data gets added to the database (after image processing).  Another image gallery calls this process "Annotating".  It is similar to watermarking because it adds data to an image using ImageMagick, but it is different because it adds a bar at the bottom of the image.  The twist I need is to have it look at a database field to get data for the text.

Since my topic is becomming a "feature request" I will stop posting on this thread unless I have a specific watermark or modpack question.  Since the features are similar, I started here.

Thanks again!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on July 31, 2006, 08:07:16 am
As said, the form data is available all the time
watermarking means adding an image to a picture
annotating: adding text (ttf) to your pic. Most other progs don't add the bar to the existing image but just overwrite parts of the image (exactly not what you want). You want to create a new image (height > than orig), copy the origs content in the new image and then start the annotate process. This is similar to watermarking and I described above how to best implement it into CPG.

Good luck
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: DaRichMan on August 04, 2006, 09:30:27 am
Maybe a stupid question but how do i make a transparent watermark file ??
Now i've made this:
http://www.tafkas.nl/fotos/displayimage.php?album=random&cat=0&pos=-4 (http://www.tafkas.nl/fotos/displayimage.php?album=random&cat=0&pos=-4)

But i don't like it. Is there a beter way?

Thanks
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 04, 2006, 09:42:52 am
from the modpack docs
http://forum.coppermine-gallery.net/index.php?topic=28367.msg131255#msg131255

Quote
Watermark... (default off)
The transparency settings in config will make the entire watermark transparent to the image background (ImageMagick only).
....
If you use GD2 then the transparency setting in config has no function. If you want the watermark to be transparent against the background, then reduce layer transparency of your watermark image in your paint proggy to eg. 50 (this I did for the sample watermark)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: stang95guy on August 04, 2006, 09:31:26 pm
Got everthing installed and it's working great! I really like the mods. I only have one thing that I am not sure about. I have it creating the intermed image with the watermark, but when you click the image to view the origional it is not getting the watermark. I have it set to watermark both. Any ideas why one would get the mark and the other wouldn't? Thanks...
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 04, 2006, 09:51:34 pm
you're batch adding I guess... then chmod the uploaded folder to 777 and the files to 666 (depending on your server setup)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: stang95guy on August 07, 2006, 11:51:13 pm
you're batch adding I guess... then chmod the uploaded folder to 777 and the files to 666 (depending on your server setup)

I do have the folders and files setup with those permissions. I am attaching a screen print of the premissions for each folder.  Permissions (http://www.berradesign.com/cpg/ps001331.jpg)

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 08, 2006, 06:34:57 am
try http upload and tell me if that works
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: stang95guy on August 08, 2006, 09:15:56 pm
try http upload and tell me if that works

Sweet the http upload works! That is cool. Is there a fix to get it working for the bulk upload?

BTW: Thanks for the help! Your Mods Rock!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 08, 2006, 09:26:59 pm
it's def permission problems. Depending on your server setup just chmodding might not be enough. Eventually you need to chown
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 11, 2006, 12:11:44 pm

Hi Stramm, my questions are:

1) how to display the pic name, pic poster name and uploaded pic date in a right side of the thumbnails? I've set "YES" a "Display info right of thumb" and info is effectivly shown at the right side but the pic name and the pic pubblished date are always below a pic. See my pics portfolio in this site for example http://www.fotocommunity.it/pc/pc/mypics/670087/startpic/8

2) I've fixed the max number of PM storage at 200 in the PM admin panel but when my PM stored are more than 200 no warning is shown. I receive one error message in a blank page only

3) in the my PM user page the PM storage indicator bar is always blank and my PM store are 97 (see attacched pic please) how to fix it?


Sorry for may poor english

Many tnx Stramm

Best regards
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 11, 2006, 12:42:34 pm
1. copy $template_thumbnail_view from include/themes.inc.php to the theme.php you're actually using and modify it to your needs
{CAPTION2} contains the right side adjusts... so it should be enough to move the {CAPTION} placeholder from a few lines below next to it
Code: [Select]
                        <tr>
                                <td align="right" width="50%" valign="top">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                </td>
                                <td align="left" width="" valign="top">
<p class="album_stat">
                                        {CAPTION2}{CAPTION}
</p>
                                </td>
                        </tr>
<tr>
                                <td align="center" colspan="2">
                                         {ADMIN_MENU}
                                </td>
</tr>

2. yes, if someone sends you a PM with your inbox beeing full he'll get an error message
3. you'll have to add that to your css.. have a look at either the classic, oranje or tentacle css
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 11, 2006, 04:12:04 pm
1. copy $template_thumbnail_view from include/themes.inc.php to the theme.php you're actually using and modify it to your needs
{CAPTION2} contains the right side adjusts... so it should be enough to move the {CAPTION} placeholder from a few lines below next to it
Code: [Select]
                        <tr>
                                <td align="right" width="50%" valign="top">
                                        <a href="{LINK_TGT}">{THUMB}<br /></a>
                                </td>
                                <td align="left" width="" valign="top">
<p class="album_stat">
                                        {CAPTION2}{CAPTION}
</p>
                                </td>
                        </tr>
<tr>
                                <td align="center" colspan="2">
                                         {ADMIN_MENU}
                                </td>
</tr>

2. yes, if someone sends you a PM with your inbox beeing full he'll get an error message
3. you'll have to add that to your css.. have a look at either the classic, oranje or tentacle css

Many thanks Stramm! now all work fine!

1) I didn't copy the functions "$template_thumbnail_view" in theme.php but I just modified it in theme.include.inc.php and it works! :D
2) is not possible fix the problem? white page with error message seems like a gallery crash :(
3) I've just copied the value from oranje.css in my customized style.css and it works! :D

Best regards

angeldevil
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 11, 2006, 07:07:39 pm
1. I know but it's not recommended at all (thinking about future upgrades). Please undo the changes and do as suggested
2. I'll check somewhen later on my test gallery
3. perfect
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 11, 2006, 07:17:13 pm
1. I know but it's not recommended at all (thinking about future upgrades). Please undo the changes and do as suggested
2. I'll check somewhen later on my test gallery
3. perfect

OK

1) undo my changes now

2) I'll be up your test

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 11, 2006, 08:09:24 pm
new pms_send.php
replace the existing one with the attached version
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: stang95guy on August 11, 2006, 09:11:57 pm
it's def permission problems. Depending on your server setup just chmodding might not be enough. Eventually you need to chown

You got it! I see where the issue is now! Now to only get my host to let me make the mods to the files and not one by on though the file manager in cpanel. Thank you again for all the help. Great mod!
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 11, 2006, 09:37:19 pm
new pms_send.php
replace the existing one with the attached version

Thank Stramm,
what you have modified?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 12, 2006, 06:50:23 am
You got it! I see where the issue is now! Now to only get my host to let me make the mods to the files and not one by on though the file manager in cpanel. Thank you again for all the help. Great mod!

good to hear that it's working for you
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 12, 2006, 06:51:56 am
Thank Stramm,
what you have modified?

When writing the mod I had placed some test functions and forgotten to replace one with the proper CPG function. So there was no txt output
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 12, 2006, 10:52:32 am
When writing the mod I had placed some test functions and forgotten to replace one with the proper CPG function. So there was no txt output

Stramm, thanks for your untiring and grat job! I've very appreciated it
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: tandiono on August 18, 2006, 11:30:58 pm
hello,

Is there anyway that my members can upload pic onto the gallery :

http://www.friendsterforum.com/gallery/index.php


Im using the "kubrick" themes..


Best Regards,
Tandiono
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on August 19, 2006, 05:19:46 pm
As per GauGau's 'suggestion', I've upgraded my site to CPG1.4.8. However, doing so fixed one problem I was having and created a ton of others...like breaking minithumbs.

Anyone else experience this or know how to fix it?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on August 19, 2006, 05:57:07 pm
Just to clarify some things (RE my previous post):

1. I ran update.php and everything was already 'OK' or updated as it should (but most of the files still show up red...that's probably best addressed elsewhere).
2. I've updated all photos, checked permissions and even downloaded some updated photos just to be sure that was still working (it is).
3. Minithumbs are enabled (in the backend) for use as the category images.

So what happened? How do I fix this?
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 19, 2006, 08:16:44 pm
Quote
Mini thumbs (default off)
Config -> Files and thumbnails settings - Enable Mini Thumbs, Mini Thumb Width - Mini Thumb Height
They are used for the comment notification system, the avatars, the buddy list and, if you want they'll replace the huge category lead image with thumbs of a size you like. If you want to use the avatar you'll have to enable the mini thumbs to get the full functionality (if not then only user uploaded avatars will work, if enabled, users can pick one of their uploaded pics and make them their avatar). There's a lot of more you can do with them. Eg. replacing the normal thumbs in filmstrip with the mini thumbs (need theme modification). This way you can dispaly a huge bunch more without messing with your layout.....

Use mini thumb as category lead image (default off)
Config -> Album list view - Use mini thumb as category lead image

mini thumbs get auto generated for all pics uploaded after you enabled them. For pics already existing in the db you'll have to run the admin tools
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 19, 2006, 08:17:40 pm
hello,

Is there anyway that my members can upload pic onto the gallery :

http://www.friendsterforum.com/gallery/index.php


Im using the "kubrick" themes..


Best Regards,
Tandiono

please read the docs http://coppermine-gallery.net/demo/cpg14x/docs/index.htm
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on August 19, 2006, 10:22:48 pm
2. I've updated all photos, checked permissions and even downloaded some updated photos just to be sure that was still working (it is).
I RAN the admin tools...about ten different times. It didn't work.

Anyway, nothing worked until I uploaded my old config.inc.php---now the minithumbs are back but the aspect ratio is way off, i.e. they're all fuzzy.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 19, 2006, 11:57:26 pm
Hi Stramm

In the first time I've installed the multiline comments V 1.0 plugin by Nibbler whit your modpack and all works fine

After I've installed a multiline comments V 1.1 and I've found a little incompatibility whit the subscribe/unscribe comments control of your modpack:

in the edit comments box below the pics, the clickable text (subscribe/unscribe) is disappeared

How to fix it?

Sorry for my poor english  :(

best regards
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: angeldevil on August 20, 2006, 02:28:36 pm
in the edit comments box below the pics, the clickable text (subscribe/unscribe) is disappeared

Sorry.. in the write comments box below the pics...

best regards
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...
Post by: macsimoin on August 21, 2006, 01:38:21 am
Okay, after re-upgrading CPG1.4.8 and the ModPack 1.4.8 (ran update, checked permissions for albums---set at 777---etc, and all is well therein), the minithumbs, etc are working fine now.

However, no matter what I try to do I cannot get the square thumbnails back. I've tried time and time again using the various settings of max aspect, height, width and exact (minithumbs are set at 65px by 65px and thumbs are 120px by 120px), updated the album I was using to test the changes and still NOTHING.

I'm lost and need help fixing this, please.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 21, 2006, 07:33:14 am
a link would help...
- the minithumbs don't have to do with anything with the cropped thumbs
   => you set the aspect to exact and the width hight to what you like. After that you run the admin tools
- if you batch added a lot of files and if apache is running under a different user than your own name it's possible that you need to chmod the folders to 755/ 777 and/ or (for watermarking) to chmod the files to 666

back to the square thumbs... as soon as you set exact and a width/ height of eg. 120px they should dispaly immediately square, however distorted. If that's working, then just run the admin tools for thumbs

Usually you're testing if all's running smooth with the http upload. If you like the result, then you run thg admin tools. A common problem is what you mentioned, the mini or fullsize pic doesn't get generated. But that's covered several times in this and the watermark thread.
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 21, 2006, 07:35:06 am
After I've installed a multiline comments V 1.1 and I've found a little incompatibility whit the subscribe/unscribe comments control of your modpack:

I do not know the plugin but I've included one (I guess the 1.0) to the modpack that's working. If you don't like that, I'd say you'd have to look up the comment template and see what changes have been done there (in include/themes.inc.php) and then port the changes to the plugin
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on August 21, 2006, 07:36:44 am
Do not post your questions in this thread anymore but start your own thread on the modpack board http://forum.coppermine-gallery.net/index.php?board=86.0
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on October 04, 2006, 11:25:39 am
Announcement: new version Modpack v2 for CPG 1.4.9 available
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on October 04, 2006, 12:51:55 pm
Announcement:
Uploaded a fix for v2 1.4.9
- if you use thumb cropping then system thumbs usually got stretched to the cropping size. Now they get displayed in their own size. No more distortion
- It's now possible to resize album thumbs in config again when using thumb cropping (as in a standard CPG)
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on October 10, 2006, 08:53:44 am
Update: Stramm has released v3 of the modpack for cpg1.4.9. It can be downloaded from the download link in the first posting or our download section http://prdownloads.sourceforge.net/coppermine/cpg1.4.9_modpack_stramm_3.zip?download

Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on October 30, 2006, 01:19:46 pm
Announcement:
Modpack v1 for CPG 1.4.10 available for download

http://stramm.st.funpic.org
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Joachim Müller on October 31, 2006, 05:40:57 am
Updated package on the sf.net download page as well: http://prdownloads.sourceforge.net/coppermine/cpg1.4.10_modpack_stramm_1.zip?download
Title: Re: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumb
Post by: Stramm on September 20, 2007, 05:57:21 pm
Announcement:
Modpack v1 for CPG 1.4.13 available for download
http://stramm.st.funpic.org/displayimage.php?pos=-231