SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 07:47:00 am

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 81
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 77
Total: 79
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: show number of total images in gallery  (Read 2633 times)
mrijs
Newbie
*
Offline Offline

Posts: 4


View Profile
« on: May 05, 2007, 10:14:49 am »

Hey, I want to show the total number of images in my gallery in the default stats box of TP.
Well I found out that can be done by editing the TPortalBlocks.template.php....

But.... the problem is I dont know the string function whatever its called for the total images in the gallery.

Someone PLEASE help me.

Thanks Smiley

Maarten
Logged
Renegd98
Newbie
*
Offline Offline

Posts: 26


View Profile
« Reply #1 on: May 05, 2007, 10:21:50 am »

You can make a phpbox and put the following in it and it will show what you want and more:

ssi_gallerystats($output_method = 'echo');

It shows:

Total Pictures xxx
Total Views xxxx
Total Gallery Filesize xxx.xx kb
Total Comments xxx

Logged
mrijs
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #2 on: May 05, 2007, 10:48:14 am »

thanks a lot!
are you sure it isnt possible to just show the total images? my users are probably not interested in the total file size of the folder.

thanks a lot though, ill probably use it Smiley

- Maarten
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.351 seconds with 18 queries.