PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old February 1st, 2005, 10:19 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
Question photo total on VB index page

Hi,

I want to have a $totalphotos add to the bottom of the vbulletin index page
where it says
Threads: 123467, Posts: 500, Members: 94049, photos:$totalphotos

How do I do this?

I've been looking for it on photopost forums, photodev, vbulletin.org nowhere to find this.

Vbulletin.org has some kind of script that adds lots of stats of the forum itself but nothing of photopost.

Thanks for helping out
cognaccola is offline   Reply With Quote
Old February 1st, 2005, 11:22 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
you would need to add a query in the vb index to grab the totalphotos and define it
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 1st, 2005, 06:35 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
How would this look like?
cognaccola is offline   Reply With Quote
Old February 1st, 2005, 07:24 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Open up your vb files or photopost files to see how a mysql query is structured

You can ask hacking questions at http://www.photopostdev.com
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 1st, 2005, 08:04 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
Ok and watch it sit for let's say 1 year?

As I've told i've been looking on dev, vbulletin.org and this forum, and the ones the ones close to what I want dated somewhere back jan 2004 and were still unanswered.

Some effort on your side would be very much appreciated as always....
cognaccola is offline   Reply With Quote
Old February 1st, 2005, 08:35 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,947
Here is the forum guidelines for our How Do I forum

http://www.photopost.com/members/for...d.php?t=111057

As stated we do not answer hacking questions. That is one thing I do strictly adhere to. We officially as a company do not support hacking

I gave you a very big hint above and thats about the extent of my help when someone asks how to modify the code.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old February 1st, 2005, 09:03 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
That's not hacking that's improving...lol
cognaccola is offline   Reply With Quote
Old February 1st, 2005, 09:05 PM   #8 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
But I could ask a general php mysql question to a connaiseur like you right?

Well let's assume we have wanted to bring out a number on a php page from a database table id count? how would you approach it?
cognaccola is offline   Reply With Quote
Old February 1st, 2005, 09:11 PM   #9 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
adding following line to the inc_features.php (must be used ofcourse free included as of PP 4.86 )

$photoquery = "SELECT COUNT(id) FROM {$pp_db_prefix}photos";
$totalphotos = mysql_query($photoquery);

Gave me something like this Photos: Resource id #19
cognaccola is offline   Reply With Quote
Old February 1st, 2005, 09:51 PM   #10 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
Thumbs up

found it

Posted solution over here
http://www.photopostdev.com/showthre...=4905#post4905

Last edited by cognaccola; February 1st, 2005 at 10:09 PM.
cognaccola is offline   Reply With Quote
Old February 2nd, 2005, 07:43 AM   #11 (permalink)
PhotoPost Developer
Verified Customer
 
Join Date: Jan 2002
Posts: 11,834
The last few weeks have been unusually busy for us - a huge influx of new customers, several new updates and a new BETA - while it doesn't excuse any shortness on our part, ir should explain why we are trying to stay focused on those customers who have problems that need our attention.

PhotoPostDev.Com is a forum that I haven't really figured out what to do with yet; I didn't want an "Ask Mike" forum like we tried before, but the level of activity seems to be largely by those who need help - not from those offering to help. Maybe that will change with time, but seems like its better to have it than not right now.

Your contribution, and others, can make it a useful resource and I hope more people will get involved on the development side.
__________________
Please do not PM me for support or sales questions. Thank you for your understanding.
Michael P is offline   Reply With Quote
Old September 11th, 2005, 03:48 AM   #12 (permalink)
Member
Verified Customer
 
Join Date: Sep 2003
Posts: 127
Cool

Quote:
Originally Posted by cognaccola

Hello Michael,

Since this was a neat hack (showed number of views and pics on a vbulletin index page) is it possible to get this one somewhere on this forum?

Thanks
cognaccola is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to show photo info in the index page majed Photopost Pro How Do I...? 5 October 30th, 2005 03:18 AM
Index Page martell Photopost Pro How Do I...? 1 October 26th, 2005 08:15 AM
How do I setup the Featured Photo / Random Image on index vB page? Fenriz Photopost Pro How Do I...? 5 March 4th, 2005 04:53 PM
Need SQL just to pull total photo views Swanny Photopost Pro Installation & Upgrades 2 December 13th, 2004 11:33 AM


All times are GMT -5. The time now is 06:35 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0