Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 184
Total: 184

Author Topic: Show Description on SubCats  (Read 5119 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: 16436
    • 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: 16436
    • 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
3683 Views
Last post October 29, 2007, 12:59:31 pm
by catchpen
3 Replies
6121 Views
Last post February 19, 2008, 08:25:28 pm
by SMFHacks
3 Replies
5526 Views
Last post March 19, 2008, 07:29:08 pm
by SMFHacks
0 Replies
4035 Views
Last post February 04, 2010, 09:23:38 am
by petesky
5 Replies
4278 Views
Last post August 07, 2015, 03:05:03 pm
by SMFHacks

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal