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 August 31st, 2005, 08:57 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 18
Grabbing data from the Statistics form

My site is at www.ebasin.com.

If you'll notice, I have included statistics on the home page and would like to grab the code that displays the number of active ads to the home page statistics. Can someone please tell me where this particular section of code is and if I can just copy and paste it into the existing code on the home page, changing the paths and what not? I paid to have the index page created but am trying to learn all of this on my own.

thanks.

Last edited by Nurofreeze; September 12th, 2005 at 09:00 PM.
Nurofreeze is offline   Reply With Quote
Old August 31st, 2005, 09:09 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
You can find the statistics query in index.php and the statistics template has the html so you can find out how to do it via looking at this.
__________________
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 August 31st, 2005, 09:36 AM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 18
thanks omega.
Nurofreeze is offline   Reply With Quote
Old September 12th, 2005, 03:15 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 18
Just got back on this. Is the statistics template statspal.tmpl?
Nurofreeze is offline   Reply With Quote
Old September 12th, 2005, 06:47 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
yes thats the template
__________________
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 September 12th, 2005, 08:48 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: May 2005
Posts: 18
Ok. I'm doing the best I can but I'm having trouble finding which code to put in. I keep getting SQL errors. Which block of code do I use from each file?

I'm assuming this is the correct block in statspal
Quote:
<tr>
<td class="{$Style['tddetails']}" align="left"><span class="{$Style['small']}">{$Globals['pp_lang']['activeads']}</span></td>
<td class="{$Style['tddetails']}" align="right"><span class="{$Style['small']}">$totalproducts</span></td>
</tr>
And this the correct querry in index.php?
Quote:
$query = "SELECT SUM(views), count(*) FROM {$Globals['pp_db_prefix']}products WHERE approved=1";
$totalv = ppmysql_query($query,$link);
list( $totalviews, $totalproducts ) = mysql_fetch_row($totalv);
ppmysql_free_result($totalv);
With
Quote:
$totalproducts = number_format( $totalproducts );
But how do I query it on an index page independant of the classifieds?
What files do I need to include?

Thanks again.

Last edited by Nurofreeze; September 12th, 2005 at 09:41 PM.
Nurofreeze 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
unregistered users and contact form rcull Classifieds Suggestions 0 August 3rd, 2005 09:13 AM
What does this form box do? POSSIBLE BUG h2ojunkie Classifieds Bug Reports 9 May 23rd, 2005 09:13 AM
Bulk Upload Form tunaman vBGallery Suggestions 3 January 17th, 2005 08:12 AM
Upload form Simplicity vBGallery Suggestions 4 December 12th, 2004 12:47 AM


All times are GMT -5. The time now is 11:27 AM.

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