Jump to content


[Snippet] Add PHPnews headlines in Etomite


1 reply to this topic

#1 Ed Headset

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 194 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Etomite, PHP, Ajax.
    3D imaging

Posted 31 May 2007 - 05:40 PM

File Name: Add PHPnews headlines in Etomite
File Submitter: Ed Headset
File Submitted: 31 May 2007
File Updated: 24 Feb 2011
File Category: Blogs & News

/* homepage_headlines --snippet
* for use with PHPnews 1.3.X

* Snippet version 2.0
* © 2007 - 2011 Ed Headset
* All rights reserved.
*
*Use [!PHPnews-headlines!] for all listed news or
* use [!PHPnews-headlines?cat=!]
* to display new for one of your catagories,
For catagory numbers see your catagory settings menu in PHPnews manager.
*********************************************/

Click here to download this file

Attached Files


Edited by Ed Headset, 24 February 2011 - 07:14 AM.


#2 Ed Headset

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 194 posts
  • Gender:Male
  • Location:The Netherlands
  • Interests:Etomite, PHP, Ajax.
    3D imaging

Posted 31 May 2007 - 05:47 PM

Just one quick note, something I've missed :blush:

At the bottom of the file:
$headline= $headline."<font color=red> > </font>$time <strong> <a href="".$Settings['siteurl']."?action=fullnews&showcomments=1&id=$mid">$subject</a> </strong>";

To get valid code You should change it in
$headline= $headline."<font color=\"red\"> > </font>$time <strong> <a href="".$Settings['siteurl']."?action=fullnews&amp;showcomments=1&amp;id=$mid">$subject</a> </strong>";

Somehow I've messed it up in the editor :blush:

Edited by Ed Headset, 31 May 2007 - 06:07 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users