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 22nd, 2007, 10:27 PM   #1 (permalink)
Member
Verified Customer
 
rcull's Avatar
 
Join Date: Dec 2004
Posts: 230
latest upload code for cmps

I was lucky enough that a young fellow was nice enough to write this bit for my cmps page to bring up my most recent showroom additions. Unfortunaly, it brings up private albums too...

Is there anyone who would like to modify it to not bring up the private albums?

I expect there are quite a few who would like it!...


************

<table align="center" border="0" cellpadding="6" cellspacing="1" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="4">
<a href="#top" onclick="return toggle_collapse('module_26')" style="float:right"><img alt="" border="0" id="collapseimg_module_26" src="http://www.yoursite.com/forums/images/buttons/collapse_tcat.gif" /></a>
<span class="smallfont"><strong>&raquo;Photopost Uploads</strong></span></td>
</tr>
</thead>
<tbody id="collapseobj_module_26" bgcolor="fffceb">
<td class="$getbgrow" width="100%"><center><br><table><tr>

<?php
function pp_get_ext( $filename ) {
return substr($filename, strrpos($filename,"."));
}

$result = mysql_query('SELECT p.id, p.cat, p.user, p.userid, p.bigimage, p.title FROM pp_photos p WHERE p.bigimage LIKE \'%.jpg\' ORDER BY date DESC LIMIT 0, 4');
while($row = mysql_fetch_array($result,MYSQL_NUM))
{
$photo = $row[4];
$photolen = strlen($photo);
$theext = pp_get_ext($photo);
$photo_name = str_replace( $theext, "", $photo );

echo '<td width="25%"><a href=http://www.yoursite/photopost/showphoto.php?photo='.$row[0].'>'.
// '<img src=http://www.yoursite/photopost//data/'.$row[1].'/'.$row[3].$photo_name.'-thumb'.$theext.' border=0></a>'.
'<img src=http://www.yoursite/photopost/data/'.$row[1].'/thumbs/'.$photo_name.''.$theext.' border=0></a>'.


'<br>'.$row[5].
'<br><b>'.$row[2].'</b><br></td>';
}

?>
</tr></table></center>
</td>
</tbody>
</table>
<br />



************


Thanks!
rcull is offline   Reply With Quote
Old February 23rd, 2007, 08:29 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,938
You need to upgrade immediately as older versions like yours have serious security holes.

Maybe this in your query

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   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
vbaGallery 1.0.1, vB3.5, CMPS 2.0 - Random images on CMPS homepage StuartDH How Do I? - vBulletin 3.5.X 5 October 23rd, 2005 06:45 AM


All times are GMT -5. The time now is 04:53 PM.

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