SMFHacks.com

SMF Gallery Pro => Support => Topic started by: mashby on May 11, 2008, 02:03:41 pm

Title: Show Description on SubCats
Post 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:
Code: [Select]
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
Title: Re: Show Description on SubCats
Post by: mashby on May 12, 2008, 08:34:46 pm
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?
Title: Re: Show Description on SubCats
Post by: SMFHacks on May 12, 2008, 08:39:52 pm
You would need to set the context and adjust the query in Sources/Gallery.php
Title: Re: Show Description on SubCats
Post by: mashby on May 12, 2008, 08:57:13 pm
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!!!
Title: Re: Show Description on SubCats
Post by: SMFHacks on May 12, 2008, 09:22:31 pm
You need to use the parse_bbc function

@parse_bbc($context['gallery_cat_description'])
Title: Re: Show Description on SubCats
Post by: mashby on May 12, 2008, 09:28:33 pm
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.