Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Pages: 1 2 3 [4] 5 6

Author Topic: sNews 1.4 RC1 (Release Candidate 1)  (Read 53136 times)

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #45 on: February 11, 2006, 09:35:33 pm »

Hehe...just noticed what I wrote ealier:
Quote
I will chew the RSS feature up and spit it out my arse....*

I think that was funny :)...That last word should be pronounced in Irish, if you wonder :)

I'm much calmer now, as I know that upon the return of the PHP-guru's of this forum this will be solved. The crack in the arse (;)) here is that I can't fix it myself. That bothers me...Being dependent on other's for everything codewise is like a booger (that green stuff from the nose) slipping into one's mouth without having anything to say about it, hehe...

Ok, always complaining about having to much coffe to drink as an excuse for my ramblings, I now accelerate into blaiming beer...This is not me, but the beer talking ;)..

Patric.
Logged
"It's only dead fish that goes with the flow... "
Updated

bryn

  • Hero Member
  • *****
  • Karma: 2
  • Posts: 934
    • http://www.cssugly.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #46 on: February 11, 2006, 10:05:08 pm »

 ;D sure sounds like your having a good night there Patric..I'm stuck on tea and chocolate..driving tomorrow so no booze for this bad boy

have a good time mate ;)
Logged
Over 1,000 posts of joy, sNews is not only brilliant, but fun too! thanks guys :D

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #47 on: February 11, 2006, 10:18:10 pm »

You too, brynnie ;)... Tea and chocolate ? Mhmm, kind of mysterious blend don't you say ? I have a tendency to mix beer and tequila tonight....





Nope, that's a big fat "no-truth" ;) I've just had a cupla lager's while designing a tad...Have a safe drive, bryn and a fun one aswell.

Over and out - P
Logged
"It's only dead fish that goes with the flow... "
Updated

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #48 on: February 12, 2006, 12:23:37 pm »

Ok...First post of today guys...feeling goooooooooood ;).

I have the RSS feature before my eye's yet again. I went over to solucija.com and checked that RSS feed in my "Owl", that don't work either. Is solucija running RC ? I think we have to do something 'bout this darn RSS feed thingy.

Ok, I say "we", but what can I do, but sitting here looking sweet ;)... Nada, nothing, njetski, ingenting. I'm kind of relying on you guy's...Sorry, I can't help :(
Logged
"It's only dead fish that goes with the flow... "
Updated

Mario

  • Newbie
  • *
  • Karma: 0
  • Posts: 43
sNews 1.4 RC1 (Release Candidate 1)
« Reply #49 on: February 12, 2006, 03:25:27 pm »

Quote from: Patric
@bryn ;)...just kidding.

@everybody - RSS feed. Ok So I must be dumb...Hear me out. The rss.xml should be generated when pressing the link for the first time, eh ?

I went to your site yesterday and clicked the rss link on the bottom of your page and I got an 404 error. I saw that the link points to rss.xml ... after that I went to the rss/ dir on your site - after which the rss.xml was generated by the script and the 404 error on rss.xml disappearred. Hope this helps.
Logged

bryn

  • Hero Member
  • *****
  • Karma: 2
  • Posts: 934
    • http://www.cssugly.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #50 on: February 12, 2006, 04:03:41 pm »

this is very frustrating  ???

Patric could you try changing your rss link to index.php?action=rss please? just to see what happens?
Logged
Over 1,000 posts of joy, sNews is not only brilliant, but fun too! thanks guys :D

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #51 on: February 12, 2006, 04:36:22 pm »

yupp, Mario...I've now got an XML...But it does only contain:
Code: [Select]




P-ahlqvist.com
P-ahlqvist.com
http://p-ahlqvist.com/sNews/patric_6/
Copyright P-ahlqvist.com


Nothing else, and never has done. I tried out someother RSS code from the mods section on an earlier version and made it work. But that don'r work with RC since it's SEF's and all that...

@Gareth. Did it, and noooope, no difference at all, the same actually.
Logged
"It's only dead fish that goes with the flow... "
Updated

bryn

  • Hero Member
  • *****
  • Karma: 2
  • Posts: 934
    • http://www.cssugly.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #52 on: February 12, 2006, 04:58:29 pm »

ok I have my rss working now..but not sure why it does..it just does ;D

I changed to this line in my .htaccess file

Code: [Select]
RewriteRule ^rss/$ index.php?action=rss [L,QSA]

had this link in my index.php file

Code: [Select]
rss/

hit the link..refreshed my Firefox browser [CTRL+F5]..and zap there it was!

but this is a localhost test so not actually tested this live yet..try it and give me feedback please guys ok?
Logged
Over 1,000 posts of joy, sNews is not only brilliant, but fun too! thanks guys :D

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #53 on: February 12, 2006, 05:02:58 pm »

Ok even I have reach some higher grounds here, hehe...not knowing a thing what I'm doing but hey...something is done and it shows...I do, howener miss links in the RSS reader...

My global settings code:
Code: [Select]
$s['RSS_description'] = "The p-ahlqvist.com news feed"; // RSS: Brief description for RSS feed
$s['RSS_language'] = "en-us"; // RSS: Language of RSS Feed
$s['RSS_char_encoding'] = "ISO-8859-15"; // RSS Character encoding for feed (default ISO-8859-15)
$s['RSS_ttl'] = "480"; // RSS: Time-To-Live (recommended refresh interval for readers, minutes)
$s['RSS_date_format'] = "r"; // Date and time format for RSS (PHP syntax, eg. "Y-m-d H:i:s")
$s['RSS_no_of_items'] = "10"; // Number of articles in RSS feed
$s['rss_limit'] = "5"; // Limit RSS feed to a number of articles
//$s['rss_date_format'] = "l dS of F Y h:i:s A"; // RSS date format (DATE_RFC822)

And the RSS function:

Code: [Select]
function rss()
{
   $db = mysql_connect(s('dbhost'),s('dbuname'),s('dbpass'));
   mysql_select_db(s('dbname')) or die(s('dberror'));
   $query = "SELECT * FROM " .s('prefix'). "articles WHERE position = 1 ORDER BY date DESC LIMIT 0 , " . s(RSS_no_of_items);
   $result = mysql_query($query);
   $filename = "rss.xml";

   $header = "n";
   $header .= "";
   $header .= "";
   $header .= "" . s(website_title) . "";
   $header .= "http://" . s(website) . "/";
   $header .= "" . s(RSS_description) . "";
   $header .= "" . s(RSS_language) . "";
   $header .= "" . s(RSS_ttl) . "";

   $footer = "
";
   $footer .= "
";

   $items  = "";
   while ($r = mysql_fetch_assoc($result))
   {
      $patterns[0] = "/&/";
      $patterns[1] = "/      $patterns[2] = "/>/";

      $replacements[0] = "&";
      $replacements[1] = "<";
      $replacements[2] = ">";

      $description = preg_replace($patterns, $replacements, stripslashes($r['text']));

      $date = date(s('RSS_date_format'), strtotime($r['date']));

      $items .= "";
      $items .= "". $r['title'] ."";
      $items .= "". $date ."";
      $items .= "". $description ."";
 $item .= "". s(website) . find_cat_sef($r['category']). "/" .$r['seftitle']. "/";
      $items .= "
";
      }

   $theFullFeed = $header . $items . $footer;
   $fh = fopen($filename, "w+");
      fwrite($fh, $theFullFeed);
   fclose($fh);

   echo "";
}

Could somebody see what is missing here to make the links to the actual article show up in the RSS reader. that is the only thing I seem to miss...

Patric.
Logged
"It's only dead fish that goes with the flow... "
Updated

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #54 on: February 12, 2006, 05:11:15 pm »

PS. this isn't me by the way...like someone would think that, hehe...This is clcs's code from the mods section, that I have tampered with in some place...Can't hardly remember where ;)...

Just thought I would state that if it wasn't obvious.
Logged
"It's only dead fish that goes with the flow... "
Updated

bryn

  • Hero Member
  • *****
  • Karma: 2
  • Posts: 934
    • http://www.cssugly.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #55 on: February 12, 2006, 06:21:11 pm »

Hey Patric I see you got your rss working too..except for the links going nowhere..I wonder did you manage to try my solution above..or anyone else for that matter? ;D
Logged
Over 1,000 posts of joy, sNews is not only brilliant, but fun too! thanks guys :D

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #56 on: February 12, 2006, 06:50:59 pm »

Nope, as I posted I did it another way, but since the links aren't working I'll try yours instead ;)
Logged
"It's only dead fish that goes with the flow... "
Updated

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • “I'm a self-made man and worships my creator.”
    • p-ahlqvist.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #57 on: February 12, 2006, 07:11:54 pm »

Ok, tried it your way, garrrr'. Didn't do nothing for me. I get the xml file, but nichts in it...As it has been for some time now. My way atleast gave me som news in that F***ing rss reader...I'm going bananas here ;).
Logged
"It's only dead fish that goes with the flow... "
Updated

bryn

  • Hero Member
  • *****
  • Karma: 2
  • Posts: 934
    • http://www.cssugly.com
sNews 1.4 RC1 (Release Candidate 1)
« Reply #58 on: February 12, 2006, 07:39:21 pm »

ggggrrrrr..sorry then mate I'm stuck and don't know what the problem is for you..I will be trying an online version later tonight..so I'll see if I can replicate the problem and find some kind of solution  :rolleyes:
Logged
Over 1,000 posts of joy, sNews is not only brilliant, but fun too! thanks guys :D

albert

  • Sr. Member
  • ****
  • Karma: 0
  • Posts: 405
    • http://www.oswt.co.uk/
sNews 1.4 RC1 (Release Candidate 1)
« Reply #59 on: February 12, 2006, 07:39:45 pm »

Hi Patric

link to web site with link please ?

On my site rss feed works ok sNews1.4rc
Note: did you see my stuff on the index.php file for sNews1.4rc ?

have you seen this with rss feed:
Code: [Select]

Support
[include]xxx.php[/include]
Sunday 12th of February 2006 09:52:35 AM


i have also added this: rss feed " .s('rss_order'). "  asc desc
Code: [Select]

$query = "SELECT * FROM articles WHERE position = 1 ORDER BY date " .s('rss_order'). " LIMIT 0, $limit";

contect:
Quote
$l['contact_text_message'] = "Please complete the form below to contact us. We welcome any questions or feedback and are happy to help should you experience any difficulties. We will get back to you as soon as possible.";

Quote
// CONTACT
function contact() {
if ($_POST['contactform'] == "") {?>
   




contact headers need to be added for apachi


Albert
Logged
Albert
http://snews.awddesign.co.uk/snews/ site: v1.3
http://snews.awddesign.co.uk/           site: v1.2 http://www.awddesign.co.uk/
“Putting together the largest collection of sNews 1.5 designs. Coming very soon :)”
Pages: 1 2 3 [4] 5 6