View Single Post
Old 08-30-2010, 12:38 PM  
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by kryptx View Post
Hmm... Can you describe precisely what this feature would do? I'm having trouble visualizing a feature that seems like it'd be widely useful and which isn't best accomplished by an external script.
I already have php script where i can put which galleries i want to see in text format url|description by selecting sponsor id.And i want that function integrated into control panel instead changing which sponsor i want every time when i want to export new galleries.
I got that script from arock.
And here is content of that script:
PHP Code:
<?php
   
//SELECT GALLERIES  
 
$dbh=mysql_connect ("localhost""baseuser""basepassword") or die ('I cannot connect to the database because: ' mysql_error());
    
$site1_domain "http://www.domain.com";  
$site1_q mysql_query("SELECT galleryName,createDate,galleryUrl,description FROM dbname.builder_galleries WHERE siteId=5 ORDER BY createDate DESC") or die('Could not connect: ' mysql_error()); 
?>
 

<?php
//DISPLAY GALLERIES 
while($site1 mysql_fetch_array($site1_q)) 

$url $site1_domain $site1['galleryUrl']; 
$name $site1['galleryName']; 
$date $site1['createDate']; 
$description1 $site1['description'];
$thumbUrl substr($url0strrpos($url"/")) . "/thumbs/preview.jpg";
print 
"$thumbUrl|$url|$name|$description1<br>"

?>
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote