Author Topic: RSS Feed: All new comments | Alle neuen Kommentare  (Read 4530 times)

0 Members and 1 Guest are viewing this topic.

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
RSS Feed: All new comments | Alle neuen Kommentare
« on: December 06, 2007, 02:31:53 PM »
Hi!
I search for a MOD or a code:
- RSS Feed for all new comments in the hole galerie.
But not for all new comments from one image.
Can anybody help me with this? 
Thanks in advance.
Greetings!



Hallo Leute!
Ich suche einen MOD oder einen Code:
- RSS Feed für alle neuen Kommentare
Aber nicht nur die eines Bildes, sondern alle möglichen neuen Bilder in der gesamten Galerie.
Könnte mir bitte jemand dabei helfen?
Wäre sehr dankbar!
Grüsse

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: RSS Feed: All new comments | Alle neuen Kommentare
« Reply #1 on: December 06, 2007, 02:59:13 PM »
... ich habe mal einen MOD veröffentlicht, der die Website-News als RSS-Feed präsentiert ...
... zu finden als [MOD] News-RSS-Feed V.1.2 hier : http://www.4homepages.de/forum/index.php?topic=10715.0 ...
... durch Änderung des Sql-Query ist eine Anpassung als Kommentar-RSS-Feed problemlos möglich ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: RSS Feed: All new comments | Alle neuen Kommentare
« Reply #2 on: December 06, 2007, 03:40:33 PM »
Er funktioniert mit den Kommentaren bei mir.
Vielen Dank!

Aber wie könnte ich anstatt:
- "$news_image = SCRIPT_URL."/news.jpg"; // URL News Image"
das Thumbnail vom Bild des jeweiligen Kommentar anzeigen?

- "domain" => SCRIPT_URL."/index.php",
den Link des Bildes vom Kommentar?

- nur die Kommentare anzeigen, welche alle Gäste sehen können?

Danke im Voraus.
Grüsse

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: RSS Feed: All new comments | Alle neuen Kommentare
« Reply #3 on: December 09, 2007, 11:57:52 AM »
Hat niemand einen Lösungsvorschlag? Mit den Sql-Query komme ich nicht ganz zu schlage resp ich weiss nicht mehr weiter.
Was müsst ich bei dem SQL Befehl abändern, sodass nur die Kommentare angezeigt werden, welche alle Gäste lesen dürfen (nicht auch die privaten, welche nur die angemeldeten User lesen können)

Code: [Select]
//--- Start: Part for News-MOD by Fugaziman ------------------
$sql = "SELECT user_name, comment_headline, comment_text, comment_date, image_id
        FROM ".COMMENTS_TABLE."
        ORDER BY comment_date DESC
        LIMIT $num_news";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
$w3c_date_time_format="Y-m-d\TH:i:s+00:00";
while($comment_row = $site_db->fetch_array($result)){
  $news_user = format_text($comment_row['user_name']);
  $news_date = format_date($w3c_date_time_format, $comment_row['comment_date']);
  $news_date2 = format_date($w3c_date_time_format2, $comment_row['comment_date']);
  $news_head = format_text($comment_row['comment_headline'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']);
  $news_text = format_text($comment_row['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']);
//:.................................................

Wie kann ich mit Hilfe der Image_id die URL (....details.php?image_id=XXX) in die genaue URL für das Thumbnail (....data/thumbnails/XX/YYY.jpg) umwandeln?

Ich bin auch dankbar für eure Hilfe.
Schönen Tag & Gruss

Offline shadowhunter

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • Fotogalerie & Fotocommunity scluzern.com
Re: RSS Feed: All new comments | Alle neuen Kommentare
« Reply #4 on: December 30, 2007, 12:32:50 PM »
Hallo!
Ich bin kein SQL-Guru und darum bitte ich um Hilfe:
Wie lautet einen SQL-Befehl für diesen Kommentar-RSS Feed, sodass sich damit alle öffentliche Kommentare anzeigen lassen. Die Kommentare, welche der Gast normalerweise nicht lesen kann/darf, dürfen auf keinen Fall angezeigt werden. Der vorherige gepostete SQL-Befehl zeigt eben leider alle Kommentare.
Wäre euch sehr dankbar dafür.
Guten Rutsch ins Neue Jahr!
Gruss

Hi!
I look for a SQL-command for this comment RSS Feed, whitch can all public comments show (only all public comments for every guest, not all public + private comments)
Can anybody help me with this?
Thanks in advance.
A happy New Year!
Greetings!