Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

RSS Feed for Pending Submissions

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic
Author Message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6292
Location: Washington Township, NJ, USA

PostPosted: Mon Nov 01, 2004 12:36 pm    Post subject: RSS Feed for Pending Submissions Reply with quote

After a request for such a feature, here it is. Add this line to your header.php:
PHP: › <?php if(is_admin($admin)) {
            echo 
"<link href=\"$nukeurl/backendpending.php\" rel=\"alternate\" type=\"application/rss+xml\" t
itle=\"$sitename Pending Submissions\" />\n\n\n"
;        
    } 
?>


underneath:
PHP: › <?php include("includes/meta.php");
    include(
"includes/javascript.php"); ?>


You also have to add $admin to the global list of the head() function in header.php.

The RSS generator can be downloaded here [nukedgallery.net]. Just put it into the same directory as your mainfile.php.
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: RSS Feed for Pending Submissions  

Back to top
ghirsch

Beginner
Beginner


Joined: Jul 01, 2005
Posts: 1

PostPosted: Fri Jul 01, 2005 11:49 am    Post subject: Re: RSS Feed for Pending Submissions Reply with quote

Im having a hard time getting this script to work. I did as the instructions said and get no error but dont see where to enter my rss feeds. Any help would be greatly appreciated. Please have mercy on me, im a newb.

Heres what my header.php looks like.


Code: ›
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.html");
    die();
}
require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    include("includes/ipban.php");
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";
    include("includes/meta.php");
    include("includes/javascript.php");
   
    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
   echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"backend.php\">\n";
    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    if (file_exists("includes/custom_files/custom_head.php")) {
     include_once("includes/custom_files/custom_head.php");
    }
    echo "\n\n\n</head>\n\n";
    if (file_exists("includes/custom_files/custom_header.php")) {
     include_once("includes/custom_files/custom_header.php");
    }
if(is_admin($admin)) {
    echo "<link href=\"$nukeurl/backendpending.php\" rel=\"alternate\" type=\"application/rss+xml\" title=\"$sitename Pending Submissions\" />\n\n\n";         
    }
    include("includes/meta.php");
    include("includes/javascript.php");
    themeheader();
}

online();
head($admin);
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6292
Location: Washington Township, NJ, USA

PostPosted: Fri Jul 01, 2005 3:14 pm    Post subject: Re: RSS Feed for Pending Submissions Reply with quote

you can now use firefox or some other RSS reader to read your feeds.
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Other PHPNuke Issues View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationAustralian Web HostingNeckermannLook For GadgetsSwag Listings

10th year online! 2003-2013
Legal Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion Works SourceForge.net Logo Theme by TonicMedia