 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
February 1st, 2005, 10:19 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 127
| 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
|
| |
February 1st, 2005, 11:22 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
February 1st, 2005, 06:35 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 127
|
How would this look like?
|
| |
February 1st, 2005, 07:24 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
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 |
| |
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....
|
| |
February 1st, 2005, 08:35 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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
|
| |
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?
|
| |
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
|
| |
February 1st, 2005, 09:51 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 127
|
Last edited by cognaccola; February 1st, 2005 at 10:09 PM.
|
| |
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. |
| |
September 11th, 2005, 03:48 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Sep 2003
Posts: 127
| 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
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 06:35 AM. | |