Welcome, Guest. Please Login or Register.
May 10, 2025, 06:01:25 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  News Feed Mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: News Feed Mod  (Read 720 times)
phin
Noobie
*
Posts: 8


I'm a llama!

News Feed Mod
« on: March 18, 2003, 05:36:53 PM »
Reply with quote

Question, i am currently working on a script to post news to my front page.  i currently have it working correctly, whut i did was made a hidden forum that only mods can see or designated ppl, and they post the news.  then a script on my front page goes in and pulls the post.  this works well.  but there are a few issues i am having.

1) how do i get the times to display right? i included the Subs.php file so i could use the timeformat function but it just displays a defualt of December 31, 1969.  any way to fix?

2) is it possible for me to make a forum that only mods can post in, BUT anyone can reply?  so i can add comments to my news post.

thouse are the only 2 issues i have for now.  i am making this mod userfreindly so i can post the code to whoever wants it.

thanks in advance

--phin
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:News Feed Mod
« Reply #1 on: March 18, 2003, 05:56:53 PM »
Reply with quote

YaBB SE has a built in news script (kinda): read the NewsPHP_ReadMe.txt file or -> http://www.yabbse.org/community/NewsPHP_ReadMe.txt

what u can do is set up an annoucement board, and let the posters post there
currently only Admins and Global Mods can post in an annoucement board, but there's a mod from nemesis to allow another membergroup (News Poster) to post there. i think the mod is made for 1.4.1 tho...

another alternative (besides the news poster mod) is to use a hidden board (like the one u're using now), and let the posters post there, then the admin moves the topics to the announcement board
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #2 on: March 18, 2003, 06:18:34 PM »
Reply with quote

im not talking about the front page of my yabb board. im talking about the home page of my site in general.
Logged
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #3 on: March 18, 2003, 06:21:07 PM »
Reply with quote

oh sh!t i see now thanks alot! thats sweet :)
Logged
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #4 on: March 18, 2003, 06:22:23 PM »
Reply with quote

wish there was a way to allow it so only a certain group can start a thread but anyone can reply, that would work out great.
Logged
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #5 on: March 18, 2003, 07:01:02 PM »
Reply with quote

ok one last thing.  anyone know why i get this error...

Warning: main() [function.main]: stream does not support seeking in http://www.blah.com/forums2/index.php?action=news;board=4;limit=7 on line 0

??
Logged
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #6 on: March 18, 2003, 08:19:28 PM »
Reply with quote

ok sorry to keep posting but the readme for news.php needs to be updated.  the include will not work it seems for alot of newer php setups.  i did figure out a fix thou.


<? include("http://www.yabbse.org/community/index.php"); ?>


should now be


<?
$news = file_get_contents("http://www.yabbse.org/community/index.php");
echo $news;
?>
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:News Feed Mod
« Reply #7 on: March 18, 2003, 08:24:46 PM »
Reply with quote

Quote from: phin on March 18, 2003, 08:19:28 PM
ok sorry to keep posting but the readme for news.php needs to be updated.  the include will not work it seems for alot of newer php setups.  i did figure out a fix thou.

It works as-is for me.  I'm running PHP 4.3.0, IIS 6.0.  Is that not newish?

-[Unknown]
Logged
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #8 on: March 18, 2003, 09:04:50 PM »
Reply with quote

hmmm not sure then..

but i know i was having problems no matter whut i tried

my setup is freebsd apache/php 4.3.1

so who knows... but the way i put it works 100% and it seems to be the way it should be done now, according to all the googleing i did.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:News Feed Mod
« Reply #9 on: March 18, 2003, 09:28:36 PM »
Reply with quote

Quote from: phin on March 18, 2003, 09:04:50 PM
hmmm not sure then..

but i know i was having problems no matter whut i tried

my setup is freebsd apache/php 4.3.1

so who knows... but the way i put it works 100% and it seems to be the way it should be done now, according to all the googleing i did.

We can't put that way in the readme anyway, file_get_contents() only exists in 4.3.x.  (riht now, PHP 4.1.0 is the minimum requirement...)

-[Unknown]
Logged
phin
Noobie
*
Posts: 8


I'm a llama!

Re:News Feed Mod
« Reply #10 on: March 18, 2003, 09:57:37 PM »
Reply with quote

ahh ok then, well maybe offer it as an alternitive, but either way it is now in this board for ppl looking for help on it :)
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:News Feed Mod
« Reply #11 on: March 19, 2003, 12:16:26 AM »
Reply with quote

Quote from: phin on March 18, 2003, 06:22:23 PM
wish there was a way to allow it so only a certain group can start a thread but anyone can reply, that would work out great.
Annoncement boards ;)
Logged

Tenkoy
Jr. Member
**
Posts: 76


WWW
Re:News Feed Mod
« Reply #12 on: March 19, 2003, 08:51:27 AM »
Reply with quote

Quote from: Spaceman-Spiff on March 18, 2003, 05:56:53 PM
YaBB SE has a built in news script (kinda): read the NewsPHP_ReadMe.txt file or -> http://www.yabbse.org/community/NewsPHP_ReadMe.txt

what u can do is set up an annoucement board, and let the posters post there
currently only Admins and Global Mods can post in an annoucement board, but there's a mod from nemesis to allow another membergroup (News Poster) to post there. i think the mod is made for 1.4.1 tho...

another alternative (besides the news poster mod) is to use a hidden board (like the one u're using now), and let the posters post there, then the admin moves the topics to the announcement board

Is there a way to make this script organize into pages. I'm going to use it to list reviews for stories as a list and it would be great if I could make it have a way to go page to page instead of seeing it all at once.
« Last Edit: March 19, 2003, 11:26:40 AM by Tenkoy » Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:News Feed Mod
« Reply #13 on: March 19, 2003, 07:37:47 PM »
Reply with quote

u can do that if u alter the LIMIT statement
example. if u want it to show 10 news item every page, use:
LIMIT 0, 10; (where 0 is the start of the record, and 10 is the limit)
then at the next page:
LIMIT 10, 10;
u'll need to code the page where u show the news a bit if u want to do it automatically
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Tenkoy
Jr. Member
**
Posts: 76


WWW
Re:News Feed Mod
« Reply #14 on: March 19, 2003, 09:38:03 PM »
Reply with quote

Thanks, however, I have no idea how I would go about doing that. Thanks anyway, I'll look into php and see if I can figure it out.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  News Feed Mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.016 seconds with 20 queries.