Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Wed Mar 17, 2004 3:49 pm Reply with quote

For some reason when I activate this coppermine block I modded a bit, it makes my last member dissapear from the User_Info block. At a glance can you see what is wrong?

Code:
<?php 


if (eregi("block-CPG-center-Last_pictures_thumb.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
define('NO_HEADER', true);
global $prefix, $db, $CONFIG, $Version_Num, $cpg_dir, $lang_pagetitle_php;
$cpg_dir = "coppermine";
$cat = is_numeric($cat) ? $cat : 0;
$cpg_block = true;
require("modules/" . $cpg_dir . "/include/load.inc.php");
$cpg_block = false;
$length =3; //number of thumbs
// $length=3; //number of thumbs
$content = "";
$result = $db->sql_query("SELECT pid, filepath, filename, p.aid, p.title FROM ".$cpg_prefix."pictures AS p INNER JOIN ".$cpg_prefix."albums AS a ON (p.aid = a.aid AND ".VIS_GROUPS.") WHERE approved='YES' GROUP BY pid ORDER BY pid DESC LIMIT $length");
$content .= '<br /><table width="100%" cols="' . $length . '" border="0" cellpadding="0" cellspacing="0" align="center"><tr align="center">';
while ($row = $db->sql_fetchrow($result)) {
    if ($CONFIG['seo_alts'] == 0) {
        $thumb_title = $row['filename'];
    } else {
        if ($row['title'] != '') {
            $thumb_title = $row['title'];
        } else {
            $thumb_title = substr($row['filename'], 0, -4);
        }
    }
    stripslashes($thumb_title);
    $content .= '<td align="center" valign="baseline"><a href="' . $CPG_M_URL . '&file=displayimage&pos=-' . $row["pid"] . '"><img src="' . $row["filepath"] . $CONFIG["thumb_pfx"] . $row["filename"] . '" border="0" alt="' . $thumb_title . '" title="' . $thumb_title . '" style="filter:alpha(opacity=20)" onMouseover="high(this)" onMouseout="low(this)"></a></td>';
}
$content .= '</tr></table>';

?>


Rolling Eyes
 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Mar 17, 2004 4:30 pm Reply with quote

See this thread. It looks like it could be the same issue.

http://www.ravenphpscripts.com/postxf1126-0-15.html


Last edited by Raven on Wed Mar 17, 2004 5:00 pm; edited 1 time in total 
View user's profile Send private message
GanjaUK







PostPosted: Wed Mar 17, 2004 4:41 pm Reply with quote

What thread?
 
Raven







PostPosted: Wed Mar 17, 2004 5:04 pm Reply with quote

Sorry. I corrected the previous post.
 
GanjaUK







PostPosted: Wed Mar 17, 2004 5:06 pm Reply with quote

Thanks, I will look into that.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©