Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kjeld

Pages: 1 [2]
16
V@no,

I never had a good look at this mod until now. It is a beaut. I have installed it and it works great. THANKS. I now also finally understand the comment you made at http://www.4homepages.de/forum/index.php?topic=12583.msg67700#msg67700

I have one question.

You have a very elegant solution for including or excluding the iptc data:

Code: [Select]
  $auto_iptc_default = 1; //auto insert IPTC (0 or 1)
  $date_iptc_default = 1; //auto insert date from IPTC (0 or 1)

I would like the option to include or exclude the iptc name as well. Something like this:

Code: [Select]
  $auto_iptc_default = 1; //auto insert IPTC (0 or 1)
  $name_iptc_default = 0; //auto insert name from IPTC (0 or 1)
  $date_iptc_default = 1; //auto insert date from IPTC (0 or 1)

How do I do this?

17
V@no,

You are the king! Wonderful. It works like a charm. The result is beautiful.  :D

I knew there had to be an easy solution. I didn't imagine it was THIS easy.
Man, I really have to buy myself a good book about PHP and mySQL!

Thanks again, V@no.

18
Thanks, mawenzi.

I actually have been using that mod for years.

But I am afraid that it is not what I meant with my question.

I want the keywords on details.html sorted.

19
Would it be possible to automatically order the keywords alphabetically?

This way the data will be correct even when the data entry person makes mistakes.

Either done globally on the whole database once every often by the administrator clicking a 'sort' link.
Or automatically done in the array that prints the keywords on the page.

20
Feedback & Suggestions / [MOD] Newsletter template
« on: April 19, 2006, 12:49:44 AM »
I just wanted to share this little code change to add a newsletter template.

I believe it is important to have consistency in the newsletters I send out, so I use a template. I used to just copy it into the subject and message boxes of 'send email' in the administration. But this little, and super easy, modification does that for you.

It is not really a mod, but I don't know what to label it, and where to post it... I think people will find it very helpful though. And I'd like to give something back after all the help and advice I received on this forum!

[MOD] Newsletter template
- This mod inserts a lay-out template that you designed into the 'send email' message and subject of the admin control panel
- It is different from the files in /lang/english/email/ in that you can see and adjust the text when you send an e-mail from the admin control panel
- tested with 4images 1.7.2

FILES
Files to be modified: (please take a backup copy of all of these!)
  • /admin/email.php
  • /lang/english/main.php

Find in /admin/email.php:
Code: [Select]
show_input_row($lang['send_emails_subject'], "subject", "", 45);
show_textarea_row($lang['send_emails_message'], "message", "", 60, 20);

Change to:
Code: [Select]
show_input_row($lang['send_emails_subject'], "subject", $lang['newsletter_subject'], 45);
show_textarea_row($lang['send_emails_message'], "message", $lang['newsletter_message'], 60, 20);

Add to /lang/english/main.php
Code: [Select]
$lang['newsletter_subject'] = "TYPE SUBJECT HERE";
$lang['newsletter_message'] = "TYPE MESSAGE HERE";

Don't forget to change the text in "TYPE SUBJECT HERE" and "TYPE MESSAGE HERE"

21
Yes, I use the detailed view so that I can click on the IPTC buttons for caption and keywords. Now I will also need to check 'yes' if an image has a model or property release.

V@no, I have one more question that I can't seem to find an answer for in the forum.

After adding the new fields and following your excellent advice above, I have added this to details.html:

Code: [Select]
{if image_property}YES{endif image_property}
But I get no results... Do I perhaps have to change another file as well?

Must have been a caching problem of my browser...

22
Yes, I upload by ftp and then use 'Check new images'. You still have to click the appropriate buttons for each image, right? Or is there another method?

23
Thanks, V@no! That did the trick. I also had to make a tiny change in the code.

WAS
Code: [Select]
show_additional_fields("image", array("field1 => 0", "field2" => 0), IMAGES_TABLE, $i);
SHOULD BE (the quotation mark for 'field1' has been moved)
Code: [Select]
show_additional_fields("image", array("field1" => 0, "field2" => 0), IMAGES_TABLE, $i);
Thanks a lot.

This is a small change code wise, but it has a huge result in the work load. When uploading hundreds of images at a time, each click counts.

24
try this:
in admin/images.php find:
Code: [Select]
    show_additional_fields("image", array(), IMAGES_TABLE, $i);
Replace with:
Code: [Select]
    show_additional_fields("image", array("field1" => 0, "field2" => 0), IMAGES_TABLE, $i);

In admin/admin_functions.php find:
Code: [Select]
        show_radio_row($val[0], $field_name, ($value == "") ? 1 : $value);
Replace with:
Code: [Select]
        show_radio_row($val[0], $field_name, ($value === "") ? 1 : $value);

I dont know how these changes will affect other radio buttons (including none-custom)

Thanks a lot for helping, V@no. I am always amazed at all your helpful advice in this forum.

I followed the instructions above exactly, but it doesn't change the settings of the radio buttons.

I noticed you used "field1 => 0" but "field2" => 0

Was this on purpose?

Also, should I change 'field1' and 'field2' with the field names that I use?

25
I just changed the wording of my original question as I am getting no response.

Noboby knows how to do solve this? Please help.

26
It seems this should be eays to solve... I can' figure it out, though. Please help.

27
I have just created 2  to $additional_image_fields.
One is for 'Model release', the other for 'Property release'.
When I added the new fields to the MySQL database, I set the default to '0' in the database.

The new fields are displayed correctly in the administration for entering new images.
However, they show 'yes' as the default selection. I want 'no' as the default.

I have spent many hours searching the forum and trying out solutions, but can't figure it out...   :?
I imagine that a solution for this issue would help lots of people. And I really need the help.

Please help. How do I set the default to 'no' for these 2  $additional_image_fields?

PS
I am using 4images version: 1.7.2

Pages: 1 [2]