 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
December 16th, 2007, 04:51 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
| Problem with Long Titles
My gallery has 2,500 photos imported successfully from coppermine. The problem is that in every photo that didn't have a title, its filename is being used in its place.
This causes a big problem, because some filenames are pretty long, and some gallery pages appear very very wide - so that they can fit the loooong titles.
1. Is there a way to tell Photopost not to use the filenames as titles?
2. Can I put a maximum character condition to the titles when users upload images?
3. Can I make the title field mandatory when uploading?
|
| |
December 16th, 2007, 05:05 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
1. all depends where your talking.
2. all depends where your talking
All your questions concern code modifications to varying degrees so knowing where your talking about helps.
3. Possibly in your uploadphoto template maybe add this in bold Code: Content visible to verified customers only.
|
| |
December 16th, 2007, 05:22 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
|
Thanks for your reply Chuck.
What do you mean "where I'm talking" ? If you are asking in which pages I want this, I need it in the showgallery page mostly, check this out: http://www.travelstories.gr/photo/sh...ery.php?cat=26 |
| |
December 17th, 2007, 02:41 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
|
Chuck,
Please check below the first block of photos, to the second block that resides exactly below it. This shows the recent photos, and as you see it does not truncate them, as it does in the above block. The same thing happens if the photos with the long titles (those with underscores) appear in the random photos block on the left sidebar.
So my original question remains; how can I tell photopost not to use filenames as photo titles in showgallery? If there is no title, it should be left empty. Is this possible?
Last edited by dakis; December 17th, 2007 at 02:49 AM.
|
| |
December 17th, 2007, 10:08 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Those would also be shown on the index you are talking featured photos. Thats pp-inc.php the display_gallery function.
You can try adding around line 1206 in pp-inc.php where noted the bold line below. Code: Content visible to verified customers only.
|
| |
December 17th, 2007, 12:54 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
|
Ok Chuck this solved the problem, by cutting off the title if longer than some characters.
This solves my practical problem (pages no longer stretch) but not my aesthetic problem, because I have tons of photos with no titles -for example they only have description- and they show up with their filename as title, which is really ugly.
Is there a way to tell photopost not to use the filename if no title exists?
Once again, thanks for your response, if there is a way to do this extra thing I need I would appreciate it.
Cheers.
|
| |
December 17th, 2007, 01:45 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
Again it all depends where as I pointed out again. By default we will always use a filename if there is no title makes perfect sense.
So where are you talking? We do have code mod forums outside support for you to ask questions like this which fall outside support. I dont mind answering small code questions like these as long as one is very specific where they are talking.
|
| |
December 17th, 2007, 04:17 PM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
|
Ok Chuck understood about the questions outside the support procedure.
If making the title photo mandatory is easier or has been coded already, that would work too -for the next photos- (for the ones I have, I will manually edit the titles).
|
| |
December 17th, 2007, 04:25 PM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
like I said if you tell me where I may be able to assist like I did above if its something simple but I need to know where.
|
| |
December 17th, 2007, 04:37 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
|
Chuck, I'm sorry I don't understand. I need to make either or both of these two things;
1. Make the field "title" when a user uploads a photo, mandatory. This means users can't upload photos if they don't enter a title.
2. In showgallery pages, if titles are not present, photopost displays no title, instead of posting filenames which is the present status.
Again, if you believe I'm crossing support lines here please let me know. I would like to do both these things, but I will be happy even with one.
EDIT: Ok Chuck forget about number 1. , I found the way to do it in an old 2005 post of yours
Last edited by dakis; December 17th, 2007 at 05:03 PM.
|
| |
December 17th, 2007, 05:05 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,794
|
1. this i already posted on above.
2. this is how things are suppose to work
Any further mod questions you are free to post in our mod forums.
|
| |
December 17th, 2007, 05:22 PM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Oct 2007
Posts: 64
|
Ok cool. Thanks for your fast responses. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:17 AM. | |