View Full Version : BBCode in title?
June 20th, 2006, 07:39 PM
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:
(I already have it working in vBulletin).
So this is all I need:
 How to make the TITLE field parse BBcode?
 How to display the TITLE field on showphoto?
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?
$title = convert_markups($title);
$extra1 = convert_markups($extra1);
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?
June 20th, 2006, 08:26 PM
Hello Chuck. I tried your suggestion, but it does not work. It just displays the raw code (http://www.mydomain.com/banners/rotate-banner.php). :(
Some other things I've tried that do not work either:
 Regular HTML hyperlink in title (<a href="http://www.yahoo.com">LINK</a>)
 BBCode in extra field as you suggested.
 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?
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
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.
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.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.