RSS-Feed der kompletten FAQ

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

shinobix
Posts: 5
Joined: Mon Mar 07, 2005 10:35 am

RSS-Feed der kompletten FAQ

Post by shinobix »

Hallo,

welche Anpassungen müsste ich vornehmen, um die komplette FAQ als RSS-Feed zu exportieren?

Besten Dank im Voraus.

Ralf
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hallo Ralf,

welche Version nutzt du?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
shinobix
Posts: 5
Joined: Mon Mar 07, 2005 10:35 am

Post by shinobix »

Hallo Thorsten,

vielen Dank für Deine Rückmeldung.

Gegenwärtig setze ich Version 1.4.8 ein.

Viele Grüße
Ralf
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

man kann zwei Sachen machen:

- die RSS Feeds der Top10 oder der neuesten Artikel umbauen

- einen weiteren Feed einfügen.

Was ist dir lieber?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
shinobix
Posts: 5
Joined: Mon Mar 07, 2005 10:35 am

Post by shinobix »

Hi Thorsten,

ein weiterer Feed wäre praktisch.

Viele Grüße
Ralf
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

hier ist eine getpatchte export.main.php:

Code: Select all

<?php
/******************************************************************************
 * File:				export.main.php
 * Description:			RSS and FAQ export - main page
 * Author:				Thorsten Rinne <thorsten@phpmyfaq.de>
 * Contributor:         Peter Beauvain <pbeauvain@web.de>
 * Date:				2003-04-17
 * Last change:			2005-03-12
 * Copyright:           (c) 2001-2005 phpMyFAQ Team
 * 
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 * 
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 ******************************************************************************/
?>
	<h2><?php print $PMF_LANG["ad_menu_export"]; ?></h2>
<?php
if (isset($_REQUEST["submit"])) {
	$submit = $_REQUEST["submit"];
	}

if (isset($submit[0])) {
	// RSS feed from news
	$result = $db->query("SELECT datum, header, artikel, link, linktitel, target FROM ".SQLPREFIX."faqnews ORDER BY datum desc LIMIT 0,".$PMF_CONF["numNewsArticles"]);
	
	$output = "<?xml version=\"1.0\" encoding=\"".$PMF_LANG["metaCharset"]."\" standalone=\"yes\" ?>\n<rss version=\"2.0\">\n<channel>\n";
	$output .= "<title>".$PMF_CONF["title"]."</title>\n";
	$output .= "<description>".$PMF_CONF["metaDescription"]."</description>\n";
	$output .= "<link>http://".$_SERVER["HTTP_HOST"]."</link>";
	if ($db->num_rows($result) > 0) {
		while ($row = $db->fetch_object($result)) {
			$output .= "\t<item>\n";
			$output .= "\t\t<title>".$row->header."</title>\n";
			$output .= "\t\t<description>".stripslashes(htmlspecialchars($row->artikel))."</description>\n";
			$output .= "\t\t<link>http://".$_SERVER["HTTP_HOST"].str_replace ("admin/", "", $_SERVER["PHP_SELF"])."</link>\n";
			$output .= "\t</item>\n";
		    }
	    }
	$output .= "</channel>\n</rss>";
	$fp = @fopen(PMF_ROOT_DIR."/xml/news.xml", "w");
	if ($fp != FALSE) {
		fputs($fp, $output);
		print "<p>".$PMF_LANG["ad_export_1"]." <em><a href=\"../xml/news.xml\" target=\"_blank\">../xml/news.xml</a></em> ".$PMF_LANG["ad_export_2"]."</p>";
		fclose($fp);
		}
	else {
		print "<p>".$PMF_LANG["ad_export_file"]."</p>";
		}
	}

if (isset($submit[1])) {
	// RSS feed from top ten
	$result = $db->query("SELECT DISTINCT ".SQLPREFIX."faqdata.id, ".SQLPREFIX."faqdata.lang, ".SQLPREFIX."faqdata.thema, ".SQLPREFIX."faqdata.rubrik, ".SQLPREFIX."faqvisits.visits FROM ".SQLPREFIX."faqvisits, ".SQLPREFIX."faqdata WHERE ".SQLPREFIX."faqdata.id = ".SQLPREFIX."faqvisits.id AND ".SQLPREFIX."faqdata.lang = ".SQLPREFIX."faqvisits.lang AND ".SQLPREFIX."faqdata.active = 'yes' ORDER BY ".SQLPREFIX."faqvisits.visits DESC LIMIT 0,10");
	
	$output = "<?xml version=\"1.0\" encoding=\"".$PMF_LANG["metaCharset"]."\" standalone=\"yes\" ?>\n<rss version=\"2.0\">\n<channel>\n";
	$output .= "<title>".$PMF_CONF["title"]."</title>\n";
	$output .= "<description>".$PMF_CONF["metaDescription"]."</description>\n";
	$output .= "<link>http://".$_SERVER["HTTP_HOST"]."</link>";
	if ($db->num_rows($result) > 0) {
		$i = 1;
		while ($row = $db->fetch_object($result)) {
			$output .= "\t<item>\n";
			$output .= "\t\t<title>[".$i.".] ".$row->visits." ".$PMF_LANG["msgViews"].":</title>\n";
			$output .= "\t\t<description>".stripslashes(htmlspecialchars(makeShorterText($row->thema, 8)))."</description>\n";
			$output .= "\t\t<link>http://".$_SERVER["HTTP_HOST"].str_replace ("admin/", "", $_SERVER["PHP_SELF"])."?action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."</link>\n";
			$output .= "\t</item>\n";
			$i++;
			}
		}
	$output .= "</channel>\n</rss>";
	$fp = fopen(PMF_ROOT_DIR."/xml/topten.xml", "w");
	if ($fp != FALSE) {
		fputs($fp, $output);
		print "<p>".$PMF_LANG["ad_export_1"]." <em><a href=\"../xml/topten.xml\" target=\"_blank\">../xml/topten.xml</a></em> ".$PMF_LANG["ad_export_2"]."</p>";
		fclose($fp);
		}
	else {
		print "<p>".$PMF_LANG["ad_export_file"]."</p>";
		}
	}

if (isset($submit[2])) {
	// RSS feed from five latest records
	$result = $db->query("SELECT DISTINCT ".SQLPREFIX."faqdata.id, ".SQLPREFIX."faqdata.lang, ".SQLPREFIX."faqdata.rubrik, ".SQLPREFIX."faqdata.thema, ".SQLPREFIX."faqdata.datum, ".SQLPREFIX."faqvisits.visits FROM ".SQLPREFIX."faqdata, ".SQLPREFIX."faqvisits WHERE ".SQLPREFIX."faqdata.id = ".SQLPREFIX."faqvisits.id AND ".SQLPREFIX."faqdata.lang = ".SQLPREFIX."faqvisits.lang AND ".SQLPREFIX."faqdata.active = 'yes' ORDER BY ".SQLPREFIX."faqdata.datum desc LIMIT 0,5");
	
	$output = "<?xml version=\"1.0\" encoding=\"".$PMF_LANG["metaCharset"]."\" standalone=\"yes\" ?>\n<rss version=\"2.0\">\n<channel>\n";
	$output .= "<title>".$PMF_CONF["title"]."</title>\n";
	$output .= "<description>".$PMF_CONF["metaDescription"]."</description>\n";
	$output .= "<link>http://".$_SERVER["HTTP_HOST"]."</link>";
	if ($num = $db->num_rows($result) > 0) {
		while ($row = $db->fetch_object($result)) {
			$output .= "\t<item>\n";
			$output .= "\t\t<title>".stripslashes(htmlspecialchars(makeShorterText($row->thema, 8)))." ...</title>\n";
			$output .= "\t\t<description>".stripslashes(htmlspecialchars($row->thema))." (".$row->visits." ".$PMF_LANG["msgViews"]." - makeDate($row->datum))</description>\n";
			$output .= "\t\t<link>http://".$_SERVER["HTTP_HOST"].str_replace ("admin/", "", $_SERVER["PHP_SELF"])."?action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."</link>\n";
			$output .= "\t</item>\n";
			}
		}
	$output .= "</channel>\n</rss>";
	$fp = fopen(PMF_ROOT_DIR."/xml/latest.xml", "w");
	if ($fp != FALSE) {
		fputs($fp, $output);
		print "<p>".$PMF_LANG["ad_export_1"]." <em><a href=\"../xml/latest.xml\" target=\"_blank\">../xml/latest.xml</a></em> ".$PMF_LANG["ad_export_2"]."</p>";
		fclose($fp);
		}
	else {
		print "<p>".$PMF_LANG["ad_export_file"]."</p>";
		}
	}

if (isset($submit[3])) {
	// Full PDF Export
	define("FPDF_FONTPATH", PMF_ROOT_DIR."/font/");
	require (PMF_ROOT_DIR."/inc/fpdf.php");
	$tree = new Category();
	$arrRubrik = array();
	$arrThema = array();
	$arrContent = array();
	
    class PDF_Bookmark extends FPDF
    {
        var $outlines = array();
        var $OutlineRoot;
        
        function Bookmark($txt, $level = 0, $y = 0)
        {
            if ($y == -1) {
                $y = $this->GetY();
                }
            $this->outlines[] = array("t" => $txt, "l" => $level, "y" => $y, "p" => $this->PageNo());
        }
        
        function _putbookmarks()
        {
            $nb = count($this->outlines);
            if ($nb == 0) {
                return;
                }
            $lru = array();
            $level = 0;
            foreach ($this->outlines as $i=>$o) {
                if ($o['l'] > 0) {
                    $parent = $lru[$o['l']-1];
                    $this->outlines[$i]['parent'] = $parent;
                    $this->outlines[$parent]['last'] = $i;
                    if ($o['l'] > $level) {
                        $this->outlines[$parent]['first'] = $i;
                        }
                    }
                else
                    $this->outlines[$i]['parent']=$nb;
                if($o['l']<=$level and $i>0)
                {
                    //Set prev and next pointers
                    $prev=$lru[$o['l']];
                    $this->outlines[$prev]['next']=$i;
                    $this->outlines[$i]['prev']=$prev;
                }
                $lru[$o['l']]=$i;
                $level=$o['l'];
            }
            //Outline items
            $n=$this->n+1;
            foreach($this->outlines as $i=>$o)
            {
                $this->_newobj();
                $this->_out('<</Title '.$this->_textstring($o['t']));
                $this->_out('/Parent '.($n+$o['parent']).' 0 R');
                if(isset($o['prev']))
                    $this->_out('/Prev '.($n+$o['prev']).' 0 R');
                if(isset($o['next']))
                    $this->_out('/Next '.($n+$o['next']).' 0 R');
                if(isset($o['first']))
                    $this->_out('/First '.($n+$o['first']).' 0 R');
                if(isset($o['last']))
                    $this->_out('/Last '.($n+$o['last']).' 0 R');
                $this->_out(sprintf('/Dest [%d 0 R /XYZ 0 %.2f null]',1+2*$o['p'],($this->h-$o['y'])*$this->k));
                $this->_out('/Count 0>>');
                $this->_out('endobj');
            }
            //Outline root
            $this->_newobj();
            $this->OutlineRoot=$this->n;
            $this->_out('<</Type /Outlines /First '.$n.' 0 R');
            $this->_out('/Last '.($n+$lru[0]).' 0 R>>');
            $this->_out('endobj');
        }
    
    function _putresources()
    {
        parent::_putresources();
        $this->_putbookmarks();
    }
    
    function _putcatalog()
    {
        parent::_putcatalog();
        if(count($this->outlines)>0)
        {
            $this->_out('/Outlines '.$this->OutlineRoot.' 0 R');
            $this->_out('/PageMode /UseOutlines');
        }
    }
    }


class PDF extends PDF_Bookmark {
	var $B;
	var $I;
	var $U;
	var $SRC;
	var $HREF;
	var $PRE;
	var $CENTER;
	var $issetfont;
	var $issetcolor;
	
	// PDF-Header
	function Header() {
		global $rubrik, $thema, $tree;
		$title = stripslashes($tree->categoryName[$rubrik]["name"]).": ".stripslashes($thema);
		$this->SetFont("Arial", "B", 14);
		$this->SetDrawColor(182,195,203);
		$this->SetFillColor(239,239,239);
		$this->SetTextColor(0,0,0);
		$this->SetLineWidth(1);
		$this->MultiCell(0, 6, $title, 1, 1, "C", 1);
		$this->Ln(8);
		$this->Bookmark(makeShorterText($thema, 5));
		
		}
	
	// PDF-Footer
	function Footer() {
		global $PMF_LANG, $PMF_CONF, $rubrik;
    	$this->SetY(-25);
    	$this->SetFont("Arial", "I", 10);
    	$this->SetTextColor(0,0,0);
    	$this->Cell(0, 10, $PMF_LANG["ad_gen_page"]." ".$this->PageNo()."/{nb}",0,0,"C");
		$this->SetY(-20);
    	$this->SetFont("Arial", "B", 8);
		$this->Cell(0, 10, "(c) ".date("Y")." ".$PMF_CONF["metaPublisher"]." ",0,1,"C");
	}
	

function txtentities($html){
    $trans = get_html_translation_table(HTML_ENTITIES);
    $trans = array_flip($trans);
    return strtr($html, $trans);
}

	
	// PDF Konstruktor
	function PDF ($orientation = "P", $unit = "mm", $format = "A4") {
		$this->FPDF($orientation, $unit, $format);
		$this->B = 0;
		$this->I = 0;
		$this->U = 0;
		$this->PRE = 0;
		$this->CENTER = 0;
		$this->SRC = "";
		$this->HREF = "";
		$this->issetfont=false;
    		$this->issetcolor=false;
		}
	
	// HTML-Parser
	function WriteHTML($html) {
		//$html = str_replace('"','"',$html);
		//$html = str_replace('<','‹',$html); //sonst wird HTML-CODE innerhalb des [pre] Tags im PDF unterschlagen
		//$html = str_replace('>','›',$html); // '›' = chr155,'‹' = chr139 habe keine besseren Zeichen gefunden
		//$html = str_replace('&nbsp;',' ',$html);
		//$html = str_replace('&','&',$html);
		$html = str_replace("\n", "<br />", $html);
		$html = str_replace('images/','../images/',$html);    
		$a = preg_split("/<(.*)>/U", $html, -1, PREG_SPLIT_DELIM_CAPTURE);
		foreach($a as $i => $e) {
			if ($i % 2 == 0) {
				if ($this->HREF) {
					$this->PutLink($this->HREF,$e);
				        }
				
				elseif ($this->SRC) {
					$this->AddImage($this->SRC);
                                        $this->SRC = "";
                                     }
				elseif ($this->CENTER) {
					$this->MultiCell(0, 1, $e, 0, "L");
					}
            	else {
                	$this->Write(5,$e);
					}
        		}
        	else {
				if ($e{0} == "/") {
					$this->CloseTag(strtoupper(substr($e,1)));
					}
				else {
					$a2 = explode(" ",$e);
					$tag = strtoupper(array_shift($a2));
					$attr = array();
					foreach ($a2 as $v) {
						if (ereg('^([^=]*)=["\']?([^"\']*)["\']?$',$v,$a3)) {
                        	$attr[strtoupper($a3[1])]=$a3[2];
							}
						}
                	$this->OpenTag($tag,$attr);
            		}
        		}
    		}
		}
	
	function OpenTag($tag, $attr) {
		
		if ($tag == "B" or $tag == "I" or $tag == "U") {
			$this->SetStyle($tag,true);
			}
		/* Text in blau, Courier wenn CODE */
		if ($tag == "PRE") {
			$this->SetFont("Courier", "", 10);
			$this->SetTextColor(0,0,255);
			}
		if ($tag == "A") {
			$this->HREF = $attr["HREF"];
			}
		if ($tag =="FONT") {
                if (isset($attr['COLOR']) and $attr['COLOR']!='') {
                $color=hex2dec($attr['COLOR']);
                $this->SetTextColor($color['R'],$color['G'],$color['B']);
                $this->issetcolor=true;
            			}
		}
		
		if ($tag == "IMG") {
			$this->SRC = $attr["SRC"];
			}
		if ($tag == "DIV") {
            if ($attr["ALIGN"] != "justify") {
                $this->CENTER = $attr["ALIGN"];
                }
			}
         if ($tag == "UL") {
            $this->SetLeftMargin($this->lMargin+10);
            }
         if ($tag == "LI") {
            $this->Ln();
            $this->SetX($this->GetX()-10);
            $this->Cell(10,5,chr(149),0,0,'C');
            }
		if ($tag == "BR") {
			$this->Ln(5);
			}
        if ($tag == "P") {
            $this->Ln(5);
        }
	}
	
	function CloseTag($tag) {
		
		if ($tag == "B" or $tag == "I" or $tag == "U") {
			$this->SetStyle($tag,false);
			}
		if ($tag == "PRE") {
			$this->SetFont("Arial", "", 12);
			$this->SetTextColor(0,0,0);
			}
		if ($tag == "A") {
			$this->HREF = "";
			}
		if ($tag == "DIV") {
			$this->CENTER = "";
		}
		 if($tag=='FONT'){
        if ($this->issetcolor==true) {
            $this->SetTextColor(0);
        }
        if ($this->issetfont) {
            $this->SetFont('arial');
            $this->issetfont=false;
        }
    }
         if ($tag == "UL") {
            $this->SetLeftMargin($this->lMargin-10);
            $this->Ln();
            }
        if ($tag == "P") {
            $this->Ln(5);
        }
	}
	
	function SetStyle($tag,$enable) {
		
		$this->$tag += ($enable ? 1 : -1);
		$style = "";
		foreach (array("B", "I", "U") as $s) {
			if ($this->$s > 0) {
				$style .= $s;
				}
			}
		$this->SetFont("", $style);
			}
	
	function PutLink($URL, $txt) {
		$this->SetTextColor(0, 0, 255);
		$this->SetStyle("U", true);
		$this->Write(5, $txt, $URL);
		$this->SetStyle("U", false);
		$this->SetTextColor(0);
		}
	
	function AddImage($image) {
		$image = dirname(PMF_ROOT_DIR).$image;
        $info = GetImageSize("$image");
        if ($info[0] > 555 ){
        $w = $info[0] / 144 * 25.4;
        $h = $info[1] / 144 * 25.4;
        }
        else {
        $w = $info[0] / 72 * 25.4;
        $h = $info[1] / 72 * 25.4;
         }
        $hw_ratio = $h / $w;
		$this->Write(5,' ');
		if ($info[0] > $this->wPt) {
			$info[0] = $this->wPt - $this->lMargin - $this->rMargin;
            if ($w > $this->w) {
                $w = $this->w - $this->lMargin - $this->rMargin;
                $h = $w*$hw_ratio;
                }
		}
		
	$x = $this->GetX();
		
		if ($this->GetY() + $h > $this->h) {
			$this->AddPage();
			}
	 $y = $this->GetY();
	 $this->Image($image, $x, $y, $w, $h);
         $this->Write(5,' ');
		//$this->Ln();
	
		$y = $this->GetY();
        $this->Image($image, $x, $y, $w, $h);
        if ($y + $h > $this->hPt) {
            $this->AddPage();
            }
        else {
         if ( $info[1] > 20 ) {
           
            $this->SetY($y+$h);
            }
            $this->SetX($x+$w);
            
        }
       
		}
	
	}

	
	$result = $db->query("SELECT rubrik, thema, content, datum, author FROM ".SQLPREFIX."faqdata WHERE active = 'yes' ORDER BY rubrik, id");
	if ($db->num_rows($result) > 0) {
		$i = 0;
		while ($row = $db->fetch_object($result)) {
			$arrRubrik[$i] = $row->rubrik;
			$arrThema[$i] = stripslashes($row->thema);
			$arrContent[$i] = $row->content;
			$arrDatum[$i] = $row->datum;
			$arrAuthor[$i] = $row->author;
			$i++;
			}
		}
	
	$pdf = new PDF();
	$pdf->Open();
	$pdf->AliasNbPages();
	$pdf->SetDisplayMode("real"); 
	
	foreach ($arrContent as $key => $value) {
		$rubrik = $arrRubrik[$key];
		$thema = $arrThema[$key];
		$date =  $arrDatum[$key];
		$author = $arrAuthor[$key];
		$pdf->AddPage();
		$pdf->SetFont("Arial", "", 12);
    	$pdf->WriteHTML(unhtmlentities(stripslashes($value)));
    	}
	
	$pdfFile = PMF_ROOT_DIR."/pdf/faq.pdf";
	$pdf->Output($pdfFile);
	
	print "<p>".$PMF_LANG["ad_export_full_faq"]."<a href=\"../pdf/faq.pdf\" target=\"_blank\">".$PMF_CONF["title"]."</a></p>";
    }
    
if (isset($submit[4])) {
	// RSS feed from five latest records
	$result = $db->query("SELECT DISTINCT ".SQLPREFIX."faqdata.id, ".SQLPREFIX."faqdata.lang, ".SQLPREFIX."faqdata.rubrik, ".SQLPREFIX."faqdata.thema, ".SQLPREFIX."faqdata.datum, ".SQLPREFIX."faqvisits.visits FROM ".SQLPREFIX."faqdata, ".SQLPREFIX."faqvisits WHERE ".SQLPREFIX."faqdata.id = ".SQLPREFIX."faqvisits.id AND ".SQLPREFIX."faqdata.lang = ".SQLPREFIX."faqvisits.lang AND ".SQLPREFIX."faqdata.active = 'yes' ORDER BY ".SQLPREFIX."faqdata.rubrik");
	
	$output = "<?xml version=\"1.0\" encoding=\"".$PMF_LANG["metaCharset"]."\" standalone=\"yes\" ?>\n<rss version=\"2.0\">\n<channel>\n";
	$output .= "<title>".$PMF_CONF["title"]."</title>\n";
	$output .= "<description>".$PMF_CONF["metaDescription"]."</description>\n";
	$output .= "<link>http://".$_SERVER["HTTP_HOST"]."</link>";
	if ($num = $db->num_rows($result) > 0) {
		while ($row = $db->fetch_object($result)) {
			$output .= "\t<item>\n";
			$output .= "\t\t<title>".stripslashes(htmlspecialchars(makeShorterText($row->thema, 8)))." ...</title>\n";
			$output .= "\t\t<description>".stripslashes(htmlspecialchars($row->thema))." (".$row->visits." ".$PMF_LANG["msgViews"]." - makeDate($row->datum))</description>\n";
			$output .= "\t\t<link>http://".$_SERVER["HTTP_HOST"].str_replace ("admin/", "", $_SERVER["PHP_SELF"])."?action=artikel&cat=".$row->rubrik."&id=".$row->id."&artlang=".$row->lang."</link>\n";
			$output .= "\t</item>\n";
			}
		}
	$output .= "</channel>\n</rss>";
	$fp = fopen(PMF_ROOT_DIR."/xml/complete.xml", "w");
	if ($fp != FALSE) {
		fputs($fp, $output);
		print "<p>".$PMF_LANG["ad_export_1"]." <em><a href=\"../xml/latest.xml\" target=\"_blank\">../xml/latest.xml</a></em> ".$PMF_LANG["ad_export_2"]."</p>";
		fclose($fp);
		}
	else {
		print "<p>".$PMF_LANG["ad_export_file"]."</p>";
		}
	}
    
if (!emptyTable(SQLPREFIX."faqdata")) {
?>
	<form action="<?php print $_SERVER["PHP_SELF"].$linkext; ?>" method="post">
	<input type="hidden" name="aktion" value="export" />
	<p><strong><?php print $PMF_LANG["ad_export_news"]; ?></strong></p>
    <p align="center"><input class="submit" type="submit" name="submit[0]" value="<?php print $PMF_LANG["ad_export_generate"]; ?>" /></p>
	<p><strong><?php print $PMF_LANG["ad_export_topten"]; ?></strong></p>
    <p align="center"><input class="submit" type="submit" name="submit[1]" value="<?php print $PMF_LANG["ad_export_generate"]; ?>" /></p>
	<p><strong><?php print $PMF_LANG["ad_export_latest"]; ?></strong></p>
    <p align="center"><input class="submit" type="submit" name="submit[2]" value="<?php print $PMF_LANG["ad_export_generate"]; ?>" /></p>
	<p><strong><?php print $PMF_LANG["ad_export_pdf"]; ?></strong></p>
    <p align="center"><input class="submit" type="submit" name="submit[3]" value="<?php print $PMF_LANG["ad_export_generate_pdf"]; ?>" /></p>
    <p><strong>Complete RSS </strong></p>
    <p align="center"><input class="submit" type="submit" name="submit[4]" value="Generate complete RSS feed" /></p>
	</form>
<?php
    }
else {
    print $PMF_LANG["err_noArticles"];
    }
Der komplette Feed heisst dann xml/complete.xml

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
shinobix
Posts: 5
Joined: Mon Mar 07, 2005 10:35 am

Post by shinobix »

Hi Thorsten,

super! Werde ich gleich ausprobieren.

Besten Dank für Deine Bemühungen.

Viele Grüße
Ralf
ddorf
Posts: 6
Joined: Wed Apr 20, 2005 3:23 pm

Post by ddorf »

Hi zusammen,

feine Anpassung. Genau so etwas habe ich gesucht.

Aber gibt es auch die Möglichkeit, den kompletten Artikelinhalt in den RSS-Feed zu exportieren?

Bilder sind in meiner FAQ nicht enthalten, nur HTML. Wäre es unter den Voraussetzungen möglich?

CU
Phil
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

das geht auch, man muss dass dann halt auch anpassen und den Artikeltext in CDATA-Tags einschließen.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddorf
Posts: 6
Joined: Wed Apr 20, 2005 3:23 pm

Post by ddorf »

Thorsten,

hast du da vielleicht einen Tipp für mich, wie ich da vorgehn kann?

CU
Phil
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich kann das mal die Tag posten...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddorf
Posts: 6
Joined: Wed Apr 20, 2005 3:23 pm

Post by ddorf »

Hi Thorsten,

dass wäre super!

CU
Phil
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

wenn ich bis zum Sonntag nicht geantwortet hab, einfach hier noch mal ne Erinnerung posten... bin derzeit ein wenig im Stress und somit vergesslich... ;-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ddorf
Posts: 6
Joined: Wed Apr 20, 2005 3:23 pm

Post by ddorf »

Hi Thorsten,

hast Du vielleicht eine kleine Info für uns? :lol:

Grüße
Phil
Thorsten
Posts: 15759
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

ich hatte dieses WE leider keine Zeit, ich hoffe morgen abend wird das mal was... :?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply