Page Index Toggle Pages: [1] 2 3 ... 22 Send TopicPrint
Very Hot Topic (More than 25 Replies) News Script v2.0 for SP1.3 (Read 49906 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
News Script v2.0 for SP1.3
May 9th, 2003 at 2:28pm
Print Post  
Here is an updated version of the good old news script mod. Besides of beeing compatible with 1.3/1.3.1/1.3.2/1.4 (for SP1-SP1.2 please download v1.3) it also contains a lot of new features.

This mod has successfully been tested, if you have problems, you might want to check the thread in the beta board for already solved issues.



Description:
Need a news script but already have a YaBB board installed? No problem with this mod you can turn one of your boards, a category or even the whole forum into a news page.

How it works:
The script will interpret all topics on the news board as news and the replys as comments. You can easily edit and delete news just by using the normal yabb functions. It is HIGHLY recommented that you install something like the "announcement" or the "MBC2" (More Board & Category Options v2.0) mod to restict posting to that board to admins and moderators.


Installation:
There are different ways to add these news to your homepage. With this mod, you can add it via SSI, PHP, Iframes or JavaScript.

ChangeLog for v2.0:
  • added topic cache => speeds things up A LOT!!!
  • rewrote large parts of the mod. Now opens a lot less files => speed up!!!
  • you can now use your whole forum as news page! Simply remove 'board=...' or 'cat=...' from your url
  • added new tags:
        - <yabb print>
        - <yabb cat_id>
        - <yabb cat_name>
  • updated default template to make use of new tags
  • updated documentation
  • moved language definitions to language file
  • all subs and vars now have a 'news_' prefix => less conflicts with other mods


ChangeLog for v1.3:
  • fixed <yabb lastposter> not showing if last poster is a guest
  • added <yabb send_topic_url> tag


ChangeLog for v1.2:
  • compatible to SP1.3
  • a lot of code has been rewritten
  • now work with javascript & iframe
  • added new tags:
        - <yabb views>
        - <yabb replies>
        - <yabb comments_text>
        - <yabb viewcomments_url>
        - <yabb writecomment_url>
        - <yabb icon_src>
        - <yabb lastposter>
        - <yabb size>
        - <yabb boardname>
        - <yabb userpic>
        - <yabb userpic_src>
        - <yabb link_target>
  • new options:
        - sort posts by last reply or creation time
        - cut message text after a set amount of words
        - cut message text after first paragraph
  • support for multiple news templates
  • can load all topics under a category (multiple boards)
  • fixed / me tag not displaying properly
« Last Edit: Dec 19th, 2004 at 12:04am by Administrator »  

The Administrator.
Back to top
WWW  
IP Logged
 
SuBZer0
New Member
*
Offline


:/

Posts: 6
Location: Costa Mesa
Joined: May 5th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #1 - May 9th, 2003 at 11:05pm
Print Post  

Sounds very cool.

I did a search in the mods for "announcement" and didn't get any results for anything compatable with 1.3

Can you recomend something specific?

thanks!
  
Back to top
WWW  
IP Logged
 
Grendel_Artemis
New Member
*
Offline


Hi.

Posts: 22
Location: Boston, MA
Joined: Jul 18th, 2002
Gender: Female
Re: News Script v1.2 for SP1.3
Reply #2 - May 10th, 2003 at 4:12am
Print Post  
installed great, i love it Smiley

I had a news page in the past, but when i switched servers, i never put it back up. This makes everything so much easier Smiley

Thank you!
  
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #3 - May 10th, 2003 at 11:34am
Print Post  
Quote:
I did a search in the mods for "announcement" and didn't get any results for anything compatable with 1.3

Can you recomend something specific?

Try the MBC2 mod (More Board & Category Options v2.0).
  

The Administrator.
Back to top
WWW  
IP Logged
 
louisle
God Member
*****
Offline


With a little bit of love
everything goes better

Posts: 1124
Location: Muenchen
Joined: Apr 9th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #4 - May 10th, 2003 at 2:31pm
Print Post  
hello michael prager ,

do you have an example of this mod ?

greetings
louisle
  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #5 - May 10th, 2003 at 4:13pm
Print Post  
sure, take a look at our frontpage Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
Iceberg
Full Member
***
Offline



Posts: 211
Joined: Mar 19th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #6 - May 11th, 2003 at 6:28am
Print Post  
Great mod. Thank you Wink Smiley
  

There is no similarity between the word "Iceberg" and me, but it sounds right for me and that's why I'm using it
Back to top
 
IP Logged
 
Iceberg
Full Member
***
Offline



Posts: 211
Joined: Mar 19th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #7 - May 11th, 2003 at 6:50am
Print Post  
But one question - the "/me"-tag doesn't works there. It don't displays the name of poster in news. Sad What do you think about it? Wink
  

There is no similarity between the word "Iceberg" and me, but it sounds right for me and that's why I'm using it
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #8 - May 11th, 2003 at 12:13pm
Print Post  
Great, now people start finding bugs...

No it's ok I've fixed the problem in News.pl, please redownload and upload the new News.pl to your server. Wink
  

The Administrator.
Back to top
WWW  
IP Logged
 
Spikecity
God Member
*****
Offline


Beer anyone ?

Posts: 2630
Location: New York
Joined: Apr 16th, 2002
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #9 - May 11th, 2003 at 12:18pm
Print Post  
Quote:
Great, now people start finding bugs...

No it's ok I've fixed the problem in News.pl, please redownload and upload the new News.pl to your server. Wink

Michael,

Actually have added a few tags to the old version you have to make stuff like jump to last post work.

Here's the list of tags I use now.
# tags: 
# (for news_template.html) 
# <yabb title> - news title 
# <yabb date> - news date 
# <yabb lastdate> - last message date 
# <yabb lastposter> - last message poster 
# <yabb author> - news author 
# <yabb message> - news contents 
# <yabb category> - boards name which contains the news (for 'cat=' option) 
# <yabb boardid> - board ID name which contains the news 
# <yabb newsnum> - number of news order 
# <yabb replies> - number of comment replies 
# <yabb views> - number of comment views 
# <yabb messagesize> - bytes of news contents 
# <yabb userpic> - news author's userpic (no picturesize limitation) 
# <yabb boardurl> - message index URL which contains the news 
# <yabb commentsurl> - threads URL which contains the news 
# <yabb newcommenturl> - URL to reply message 
#
  

Nothing to add here Smiley
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #10 - May 11th, 2003 at 12:45pm
Print Post  
Quote:
Michael,

Actually have added a few tags to the old version you have to make stuff like jump to last post work.
I don't think so, if someone wants to read the comments, it doesn't make sense to jump to the last comment.


Quote:
Here's the list of tags I use now.
# tags:  
# (for news_template.html)  
# <yabb title> - news title  
# <yabb date> - news date  
# <yabb lastdate> - last message date  
# <yabb lastposter> - last message poster  
# <yabb author> - news author  
# <yabb message> - news contents  
# <yabb category> - boards name which contains the news (for 'cat=' option)  
# <yabb boardid> - board ID name which contains the news  
# <yabb newsnum> - number of news order  
# <yabb replies> - number of comment replies  
# <yabb views> - number of comment views  
# <yabb messagesize> - bytes of news contents  
# <yabb userpic> - news author's userpic (no picturesize limitation)  
# <yabb boardurl> - message index URL which contains the news  
# <yabb commentsurl> - threads URL which contains the news  
# <yabb newcommenturl> - URL to reply message  
#

The only tags which aren't available in this version here are
# <yabb boardid> - board ID name which contains the news 
# <yabb newsnum> - number of news order 
I don't think there is much use for those anyway Tongue
  

The Administrator.
Back to top
WWW  
IP Logged
 
Iceberg
Full Member
***
Offline



Posts: 211
Joined: Mar 19th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #11 - May 11th, 2003 at 3:02pm
Print Post  
Quote:
Great, now people start finding bugs...

Yeah, there is the same situation with my "Top and bottom links"-mod too... Wink
Quote:
No it's ok I've fixed the problem in News.pl, please redownload and upload the new News.pl to your server. Wink

Ok. Thank you.
  

There is no similarity between the word "Iceberg" and me, but it sounds right for me and that's why I'm using it
Back to top
 
IP Logged
 
louisle
God Member
*****
Offline


With a little bit of love
everything goes better

Posts: 1124
Location: Muenchen
Joined: Apr 9th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #12 - May 18th, 2003 at 9:44am
Print Post  
hello michael prager ,

is it possible to make a shoutbox with this mod ?

greetings
louisle
  

I LIKE SAUSAGE FINGERS:2thumbsup::2thumbsup::2thumbsup::2thumbsup::2thumbsup:
Back to top
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #13 - May 18th, 2003 at 10:53am
Print Post  
I wouldn't think so, I've had a few ideas for making a perl shoutbox, using YaBB, there are a few mods out there that could be modified into a shoutbox mod (namely the 'never ending story' mod, combined with the 'quick reply mod' - and using the mod that makes posts on certain boards not show up in your main post count)

It's possible, but it's a big job, why not make another thread about it somewhere? Wink - If I had time, I'd do it myself.
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
TJMaxxX
Full Member
***
Offline



Posts: 144
Location: Jacksonville
Joined: May 12th, 2003
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #14 - May 27th, 2003 at 8:27am
Print Post  
::cough:: ::cough:: Plz excuse me for anyone that has already read this post.. I have my stupid attacks now and then lol... omg.. ::kicks himself::
« Last Edit: May 27th, 2003 at 10:17pm by TJMaxxX »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 22
Send TopicPrint