SMFHacks.com
SMF Gallery Pro => Support => Topic started by: mashby on May 11, 2008, 02:03:41 pm
-
Hey, I'm trying to display the description of a gallery and I'm obviously not getting it. Here's what I have:
echo '<br /><table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<tr class="catbg"><td align="center" colspan="', $maxrowlevel, '">', @$context['gallery_cat_name'], '</td>
</tr>
<tr class="catbg"><td align="center" colspan="', $maxrowlevel, '">', @$context['gallery_cat_description'], '</td>
</tr>';
gallery_cat_description obviously needs to be something else, but I cannot for the life of me figure it out.
Thanks,
mashby
-
I'll try explaining it in English, I'm trying to show the description under the title when viewing a specific gallery. I think I have the right DB call, but it's obvious that it's not working. Any ideas?
-
You would need to set the context and adjust the query in Sources/Gallery.php
-
Whoa! Wicked. How can that function then allow BBCCode? Worse case scenario is that we just store text, but man, that little tidbit EXTREMELY helped me. THANKS!!!
-
You need to use the parse_bbc function
@parse_bbc($context['gallery_cat_description'])
-
OK...next, what is your home address so that I can kidnap you? J/K, man, that is flipping sweet. I really appreciate your guidance.