Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11790
Latest: ButtKoWitz
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 41408
Total Topics: 7255
Most Online Today: 80
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 87
Total: 88

Author Topic: Show Description on SubCats  (Read 3814 times)

0 Members and 1 Guest are viewing this topic.

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Show Description on SubCats
« 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

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Show Description on SubCats
« Reply #1 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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15662
    • View Profile
Re: Show Description on SubCats
« Reply #2 on: May 12, 2008, 08:39:52 pm »
You would need to set the context and adjust the query in Sources/Gallery.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Show Description on SubCats
« Reply #3 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!!!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15662
    • View Profile
Re: Show Description on SubCats
« Reply #4 on: May 12, 2008, 09:22:31 pm »
You need to use the parse_bbc function

@parse_bbc($context['gallery_cat_description'])
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline mashby

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
    • ChopPix.com
Re: Show Description on SubCats
« Reply #5 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.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2717 Views
Last post October 29, 2007, 12:59:31 pm
by catchpen
3 Replies
4770 Views
Last post February 19, 2008, 08:25:28 pm
by SMFHacks
3 Replies
4670 Views
Last post March 19, 2008, 07:29:08 pm
by SMFHacks
0 Replies
2950 Views
Last post February 04, 2010, 09:23:38 am
by petesky
5 Replies
2761 Views
Last post August 07, 2015, 03:05:03 pm
by SMFHacks

+- Recent Topics

Import downloads by mickjav
September 25, 2021, 04:47:13 am

Errors with 5.0.6 version by Hatshepsut
September 24, 2021, 10:21:24 pm

Forum ToolBox by mickjav
September 23, 2021, 03:20:07 pm

Ads Description is running into Ad Location by Shades
September 23, 2021, 09:56:42 am

S3 System For SMF Attachments by SMFHacks
September 21, 2021, 05:46:38 pm

Boards Icon by mickjav
September 18, 2021, 02:13:43 pm

Search Word Limit by SMFHacks
September 17, 2021, 08:41:01 pm

Item not appearing in category by SMFHacks
September 17, 2021, 08:39:45 pm

Undefined index: gallery_ad_seller by Shades
September 17, 2021, 01:23:10 pm

What happens if? by SMFHacks
September 14, 2021, 10:25:07 pm

Powered by EzPortal