Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 344
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 226
Total: 226

Author Topic: License expired? (and a formatting question)  (Read 4954 times)

0 Members and 1 Guest are viewing this topic.

Offline treasurenet

  • Member
  • *
  • Posts: 42
    • View Profile
License expired? (and a formatting question)
« on: June 06, 2009, 07:07:34 am »
I just looked under "Licenses" and see that my Gallery Pro license has expired.  Does that mean I should no longer use the software? Or - that I am no longer eligible for updates?

On another note...

I would like to show the gallery descriptions in the template_userlist function.....

Code: [Select]

function template_userlist()
{
global $txt, $scripturl, $db_prefix;

echo '<table cellspacing="0" cellpadding="5" border="0" align="center" width="100%" class="tborder">
<tr class="titlebg">
<td align="center">' . $txt['gallery_user_index'] . '</td>
</tr>
<tr class="catbg">
<td align="center">' . $txt['gallery_app_membername'] . '</td>
</tr>';

$dbresult = db_query("SELECT DISTINCT m.realName, m.ID_MEMBER FROM {$db_prefix}gallery_usercat AS c, {$db_prefix}members as m WHERE c.ID_MEMBER = m.ID_MEMBER", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($dbresult))
{
echo '<tr class="windowbg">
<td align="center"><a href="' . $scripturl . '?action=gallery;su=user;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a></td>
<td>
XXXXXXXXXXXXXXXXXX GALLERY DESCRIPTION HERE XXXXXXXXXXXXXXXXXXXXXXXXXXX
</td>
</tr>';
}
mysql_free_result($dbresult);
echo '
<tr class="titlebg">
<td align="center"><a href="', $scripturl, '?action=gallery">', $txt['gallery_text_returngallery'], '</a></td>
</tr>

</table>';




I tried, as is done in the template_main function with....

Code: [Select]

' . doUBBC($row['description']) . '


But that doesn't work.

How would I display the gallery descriptions there? (actually the users avatar, total files in the gallery, and last additions date would be cool too   8) )

Thanks in advance

« Last Edit: June 06, 2009, 07:23:35 am by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: License expired? (and a formatting question)
« Reply #1 on: June 06, 2009, 09:50:03 am »
You can still use the gallery if the update license is expired but you just will not have access to the new versions of the Gallery.

To get a description to show
Change
Code: [Select]
SELECT DISTINCT m.realName, m.ID_MEMBER
To
Code: [Select]
SELECT DISTINCT m.realName, m.ID_MEMBER, c.description
But it will show a random user category of that user with it's description.
That query is basically only displaying users that have created a user category otherwise it would be a list of empty members.

I added the total files in a later release to the user galleries. User's avatar is a good idea will see what I can do.
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/

 

Related Topics

  Subject / Started by Replies Last post
17 Replies
23203 Views
Last post February 01, 2008, 11:03:26 pm
by Miyagi
1 Replies
4747 Views
Last post May 07, 2008, 06:59:52 pm
by SMFHacks
2 Replies
5092 Views
Last post October 09, 2008, 09:18:04 pm
by DarkAngel612
1 Replies
4288 Views
Last post November 22, 2008, 08:31:21 pm
by SMFHacks
1 Replies
3476 Views
Last post October 16, 2012, 03:06:40 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

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

Powered by EzPortal