 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
October 27th, 2005, 04:25 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
| Alowing HTML
Can someone please help me to enable HTML Im just trying to put a text link in the description field.
Thanks
Mark
|
| |
October 27th, 2005, 05:30 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
what do you mean example what product? Need more info here to assist you. By default we do not allow html for security reasons obviously
|
| |
October 27th, 2005, 05:35 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
I am uising photpost and awhile ago I was able to place Text HTML link in the description field under a photo. I dont remember what code I changed to allow this. Do you know what I can do to get this working for me?
Thanks
Mark
|
| |
October 27th, 2005, 05:46 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
Yes I will post the change although I feel strongly to let you know the potential danger there is in letting people post html on your system
In showphoto.php find this line
$desc = convert_returns( $desc );
change it to this
$desc = un_htmlspecialchars( $desc );
|
| |
October 27th, 2005, 05:50 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
I am not going to allow other people to post so this should work for me, after I change this is there anything else I have to do, Like enable it somewhere? Also I am not integrated with VBulletin
Thanks
Mark
Last edited by Markmusicman; October 27th, 2005 at 05:52 PM.
|
| |
October 27th, 2005, 06:05 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
Here is what Im trying to do. When I click Admin options under a photo and choose edit and then place the HTML text code in the description field this should show up as a text link . It doesnt I remember before I use to have to enable something to allow HTML but cant find that setting . I made the change that you suggested but it stoill does not work for me. Any more ideas would be greatly appreciated.
Thanks
Mark
|
| |
October 27th, 2005, 06:36 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
Your in admin options? edit photo?
Sorry I dont follow where your at. The only place to edit a photo description is through editphoto.php
If you upload a photo and enter html and have the code I noted in showphoto it will work clearly
Take note you must be running 5.21 of Photopost for any of these suggestions to work
|
| |
October 27th, 2005, 09:15 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
Once you have uploaded a photo you can got to edit photo below the photo if log in as admin. I was able to do this about a year ago but cant remeber how I did it. All you do is put HTML code in the photo description field and then hit submit changes. Right now when I do that it shows up as the text information inputed but not as a text link. I thought before I could change something in the admin section to say allow HTML. I do not see this now .
See below edit phot.
Add to Favorites · Post a Comment · Report Photo · Print View · Receive Email Updates
Admin Options: Edit Photo · Hide Image · Make Sticky · Make Index Thumb
|
| |
October 27th, 2005, 09:26 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
There was never an option in our program to allow html as it is a security risk
You may allow the display of html with the edit I have provided otherwise if all your looking to do is add a clickable link our program does that be default with the convert_markups code already in the program http://www.omegatron.net/gallery/sho...o=37&nocache=1
So your really losing me here on what your exactly trying to do as you say placing a link does not work. Clickable links are easily shown as I posted above example without any code modification. Now if you want to display html in the program as in putting in <img tags <a href tags <table etc you need to alter the line I posted to allow the display of html.
|
| |
October 28th, 2005, 06:33 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
I am just trying to do what your example demonstrates , but it wouldnt work for me. I must be doing something wrong.
Mark
|
| |
October 28th, 2005, 07:45 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
No my example is I simply type this on upload or edit script http://www.domain.com and enter it
|
| |
October 28th, 2005, 09:49 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
Chuck
I was able to do what you showed me with a hyperlink. I am trying to place a text link in the same feild so you do not see the entire hyperlink. I am sorry for he confusion just trying to solve my issue.
Thanks
Mark
|
| |
October 28th, 2005, 10:02 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
What like so
<a href="http://www.domain.com">Here</a>
Then you do the simple one line change I noted in showphoto.php and type in a hyperlink in html like I showed
|
| |
October 28th, 2005, 10:53 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
I was able to put a link i like this http://www.domain.com
but I can not put the link in like this
<a href="http://www.domain.com">Here</a>
or it just shows up as text.
Mark
|
| |
October 28th, 2005, 11:09 AM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
Sorry man
I made that change and it still did not work for me!
|
| |
October 28th, 2005, 11:16 AM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,801
|
well then I can not say what your doing.
I am using Photopost 5.21 and that is the correct change needed in showphoto.php to show html
Line 609 of showphoto
$desc = convert_markups( $desc );
becomes this
$desc = un_htmlspecialchars( $desc );
Nothing more I can say on this subject.
|
| |
October 28th, 2005, 11:17 AM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
Ill take another look at it tonight, sorry for any confusion.
Mark
|
| |
October 29th, 2005, 08:05 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Mar 2005
Posts: 46
|
Chuck
Thanks, that did finally work for me, it might have been the way I was editing the file on the server. I edited locally and then uploaded it and it fixed my issue. Appreciate your help.
Mark
|
| |
April 4th, 2006, 09:13 AM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Sep 2002 Location: Long Beach, CA
Posts: 157
|
Thanks Chuck.
Works for me as well. Made changes to classifieds so I could enter html in a specific category where only admins can post our own products. Only problem I now have is that for the category with HTML enabled, it strips out all of the blank lines you get when you press enter. They still appear when you edit the product but not when displayed. Is there a way I can change this so blank lines will display on showproduct, as it does with Reviewpost with html turned on?
Would be a really nice feature enhancement for all products if we could "allow html" by category within admin panel. This would really improve classified, photopost and reviewpost flexibility for product owners.
Scott
Last edited by SHalliday; April 4th, 2006 at 09:36 AM.
|
| | |
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 12:01 PM. | |