PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Change Delimiter from space to comma for keywords (http://www.photopost.com/forum/photopost-pro-how-do-i/136125-change-delimiter-space-comma-keywords.html)

Joppe111 April 6th, 2008 12:24 PM

Change Delimiter from space to comma for keywords
 
Is it possible to change the delimiter for keywords in Photopost Pro from a space to a comma? So that "James Bond" is one keyword? Right now it would turn it into two, "james" "bond".

Chuck S April 6th, 2008 12:56 PM

You can try changing this in showphoto.php

Code:

Content visible to verified customers only.
To this

Code:

Content visible to verified customers only.

Joppe111 April 6th, 2008 04:45 PM

That appears to be working! Thanks!

Chuck S April 6th, 2008 08:04 PM

Not a problem enjoy your weekend.

skidpics June 8th, 2008 09:51 PM

Can we cahnge the code to do this for Spaces and Commas?

MrDaniel September 11th, 2008 02:03 PM

Honestly I think we should be able to set this in admin! So one can use a phrase as a keyword!

skidpics September 22nd, 2008 08:51 AM

I think you are right. Coppermine has a delimiter for the titles and files, which will convert whatever characters you choose to spaces.

Either way, since there is not batch option for keywords to categories,

How can we show the keywords entered AND the Title as a keyword also? I tried a few veriations, but couldn't get it to work.

This would help in searches..

skidpics September 22nd, 2008 09:16 AM

I got it work partially by assigning by this:

in showphoto.php:

Quote:

$keylinks2 = null;
$title2= $title;

$keylinks2 .= "<a rel=\"nofollow\" href=\"{$Globals['maindir']}/search.php?keywords=$title2\">$title2</a> ";

In showphoto.tmpl

<b>{$Globals['pp_lang']['keywords']}:</b> $keylinks $keylinks2
But, there must be an easier way to get the $title added to the original $keylink, right?

Chuck S September 22nd, 2008 06:45 PM

Not without some code modification in some manner.


All times are GMT -5. The time now is 08:37 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97