Hello again ,In an attempt to run the "latest pictures uploaded" image gallery to my forum index I TRIED TO DO THE FOLLOWING... I hate to keep asking questions about this issue but Im so LOST ... I uploaded an rss.php file to my cpg132 directory, I modified it to the best of my ability , the file is here >
<?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery - RSS Feed //
// ------------------------------------------------------------------------- //
// Copyright (C) Dr. Tarique Sani //
// http://tariquesani.net/ //
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
// Just put into the same directory as your coppermine installation //
// ------------------------------------------------------------------------ //
define('IN_COPPERMINE', true);
define('INDEX_PHP', true);
require('include/init.inc.php');
//Change these variables to reflect your choices
$album = 'lastup';
$thumb_count = 8;
$album_name = "";
$lower_limit = 0;
$thumb_per_page = 12;
//Changes these to point to your site
$link_url = "http://www.ohfishing.com/stl-web/bulletin/phpBB2/cpg132/rss.php?pos=-";
$image_url = "http://www.ohfishing.com/stl-web/bulletin/phpBB2/cpg132/albums/";
get_private_album_set();
$data = get_pic_data($album, $thumb_count, $album_name, $lower_limit, $thumb_per_page);
header ("content-type: text/xml");
$rssHeader = <<<EOT
<?xml version="1.0"?>
<rdf:RDF
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
>
<channel>
<title>$CONFIG[gallery_name]</title>
<link>http://mermaid.sanisoft.com/coppermine/</link>
<description>$CONFIG[gallery_description] - $album_name</description>
<dc:creator>Tarique Sani</dc:creator>
<dc:language>en-us</dc:language>
</channel>
EOT;
echo $rssHeader;
foreach($data AS $picture) {
$thumb_url = "$image_url$picture[filepath]$CONFIG[thumb_pfx]$picture[filename]";
$description = '<a href="' . $link_url . $picture['pid'] . '"><img src="' . $thumb_url . '" border="1" vspace="2" hspace="2" align="left" ></a>'.$picture[caption].$picture[caption_text];
$description = htmlentities($description);
$item = '<item rdf:about="' . $link_url . $picture['pid'] . '">
<dc:date>' . date('Y-m-d H:i:s', time()) . '</dc:date>
<title>'.$picture[title].'</title>
<link>' . $link_url . $picture[pid] . '</link>
<description>'.$description.'</description>
</item>';
echo $item;
}
$rssFooter = <<<EOT
</rdf:RDF>
EOT;
echo $rssFooter;
?> I then installed zfeed/newsfeeds to my cpg132 directory chmode 777 , After that I inserted this code
<? include ('newsfeeds/zfeeder.php'); ?> <? http://ohfishing.com/stl-web/bulletin/phpBB2/cpg132/rss.php ?>
to my index_body.tpl as so ...
]<table align="right"> {SOW}
<tr>
<td><span class="nav"><a href="{U_VIEW_OLDER_TOPIC}" class="nav">{L_VIEW_PREVIOUS_TOPIC}</a> :: <a href="{U_VIEW_NEWER_TOPIC}" class="nav">{L_VIEW_NEXT_TOPIC}</a></span></td>
</tr>
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td><td align="center" valign="bottom"><span class="gensmall">
{L_HAPPY_ANNIVERSARY}
<!-- BEGIN joined_date -->
{joined_date.USERNAME} ({joined_date.YEARS}),
<!-- END joined_date -->
</span>
</td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<!-- END switch_user_logged_in -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
</tr>
</table>
<div class="forumlinemain">
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<!-- BEGIN catrow -->
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap" align="left"> ¤ <a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<? include ('newsfeeds/zfeeder.php'); ?> <? http://ohfishing.com/stl-web/bulletin/phpBB2/cpg132/rss.php ?>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50" width="10%"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row2" width="90%" height="50"><img src="templates/SoftBlue/images/icon_mini_faq.gif" border="0" alt="" hspace="3" /><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row3" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
</div>
<br />
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<div class="forumlinemain">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle" height="28"><span class="gensmall">{L_USERNAME}:
<input class="post" type="text" name="username" size="10" />
{L_PASSWORD}:
<input class="post" type="password" name="password" size="10" maxlength="32" />
{L_AUTO_LOGIN}
<input class="text" type="checkbox" name="autologin" />
<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
</span> </td>
</tr>
</table></div>
</form>
<!-- END switch_user_logged_out -->
<div class="forumlinemain">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="2" height="28"><table width="100%">
<tr>
<!--
<td class="row1" align="center" valign="middle" rowspan="2"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
-->
<td class="row1" align="center" valign="middle" rowspan="2"><span class="mainmenu">{L_NAME_WELCOME}</span><BR /><span class="mainmenu">{U_NAME_LINK}</span><BR /><BR />{AVATAR_IMG}</td>
<td width="50%" align="right"><span class="cattitle"><a href="{U_MARK_READ}" class="cattitle">{L_MARK_FORUMS_READ}</a></span></td>
</tr>
</table></td>
</tr>
<tr>
<td class="row1" align="left" colspan="2"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{L_ONLINE_EXPLAIN}</span></td>
</tr>
<tr> <td class="catHead" colspan="3" height="28"><span class="cattitle">Board Statistics - Forum Legend</span></td>
</tr>
<tr>
<td class="row2" align="left"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}<br />{L_RANDOM_USER} {RANDOM_USER_LINK}<br /></span></td>
<td class="row1" align="right"><table cellspacing="3" border="0" align="center" cellpadding="0">
<tr>
<td width="20" align="center"><img src="templates/SoftBlue/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/SoftBlue/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td> </td>
<td width="20" align="center"><img src="templates/SoftBlue/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td><!-- Clock Code: Start -->
<br />
<table align="center" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" colspan="1" align="center">
<span class="cattitle">{CLOCK_NAME}</span>
</td>
</tr>
<tr>
<td align="center" valign="middle">
<div align="center"><embed width="170" height="150" src="./Clock.swf">
</div>
</td>
</tr>
</table>
<!-- Clock Code: End -->
</tr>
</table>
</td>
</tr>
</table>
</div>
<br clear="all" />
I must be missing something, can someone please help me out, 3 days working on this ....... what could be my mistake?
