PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   BBCode in title? (http://www.photopost.com/forum/photopost-pro-how-do-i/125664-bbcode-title.html)

Braintangle June 20th, 2006 07:39 PM

BBCode in title?
 
Photopost 5.31 question...

I am the only person with upload permissions (admin). So security is not an issue.

I need to display a banner under each individual photo (on showphoto.php).

I would like to do this by inserting BBCode into the TITLE field of each photo (bulkupload.php).

This BBCode inserts a 468x80 iframe banner for me:
[ad]http://www.mydomain.com/banners/rotate-banner.php[/ad]
(I already have it working in vBulletin).

So this is all I need:
====================================
[1] How to make the TITLE field parse BBcode?
[2] How to display the TITLE field on showphoto?

Thank you.

Chuck S June 20th, 2006 07:52 PM

The title field displays on showphoto but it is not parsed for bbcode. You could edit showphoto.php and add this line in bold however why not show ad in one of the extra fields you can setup?

Code:

Content visible to verified customers only.

Braintangle June 20th, 2006 08:03 PM

Thank you Chuck! I shall give it a try. The reason I prefer not to use the custom fields is that they're not shown on bulkupload.php... so if I populate the gallery with a few hundred photos, I have to go in to showphoto.php and "edit photo" one-by-one. Total drag. Am I wrong?

Braintangle June 20th, 2006 08:26 PM

Hello Chuck. I tried your suggestion, but it does not work. It just displays the raw code ([ad]http://www.mydomain.com/banners/rotate-banner.php[/ad]). :(

Some other things I've tried that do not work either:
[1] Regular HTML hyperlink in title (<a href="http://www.yahoo.com">LINK</a>)
[2] BBCode in extra field as you suggested.
[3] HTML in extra field.

None of these things produced satisfactory results. Just shows the raw HTML or BBCode. Do I have to enable or disable something somewhere else?

Thank you.

Chuck S June 20th, 2006 08:42 PM

html is not allowed to be shown and is proper as it is a huge security risk to display html

Braintangle June 20th, 2006 08:53 PM

*Sigh* I know that. That's why I was asking about BBCode! I just tested HTML to see if it would work.

As I clearly stated above, "I am the only person with upload permissions (admin). So security is not an issue."

I believe I've discovered a work-around that will work for me.

But just so you know the proposed solution above does not work.

Chuck S June 21st, 2006 01:36 PM

The solution I gave clearly cause the convert_markups function which works on every other field so I do not know what else to tell you

Now ad is not a normal bbcode in vbulletin that I know so if that specific code needs to use html then thats your issue.


All times are GMT -5. The time now is 05:22 PM.

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