Code for total number of tube videos in db?

Post Reply
xxxtreme
Posts: 6
Joined: Sun Nov 18, 2012 12:11 am

Code for total number of tube videos in db?

Post by xxxtreme »

I would like to add a piece of code reflecting the total number of tube videos in the db on my index page. Is this possible? If yes, what would be the code to obtain this?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Code for total number of tube videos in db?

Post by admin »

Do you have any thumbs at your index page except category thumb ?
Don't forget to run script update
xxxtreme
Posts: 6
Joined: Sun Nov 18, 2012 12:11 am

Re: Code for total number of tube videos in db?

Post by xxxtreme »

No, only category thumbs. The site is: http://www.tubenator.com
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Code for total number of tube videos in db?

Post by admin »

Basically - no, sorry

But you have 2 options:

1. output any amount of thumbs at index page + navigation and you'll get TOTAL_ITEMS tag
2. or you can just write any number, nobody really cares about that number and nobody's gonna count galleries there. This way you'll save as bit of your server performance caz it won't count actual amount
Don't forget to run script update
xxxtreme
Posts: 6
Joined: Sun Nov 18, 2012 12:11 am

Re: Code for total number of tube videos in db?

Post by xxxtreme »

Thanks for your reply...
I have been able to work my way around the problem thanks to your answer: I created a row of thumbs + navigation at the bottom of the index page, but made them invisible for surfers.
That way I have been able to insert the TOTAL_ITEMS tag at the top of my index page
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Code for total number of tube videos in db?

Post by admin »

Great, that was option 1 :)
Don't forget to run script update
Post Reply