The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

19.06.13 at 01:10:20, Welcome, Guest. Please Login or Register

Choose Language:
Page Index Toggle Pages: 1
NewsIndex 0.4 beta (Read 7233 times)
Curtiss Grymala
Hacker God
*****
Offline

Posts: 1314



25.11.07 at 21:41:37  
NewsIndex 0.4

This mod is Y2.2 Compatible

Please read the included Readme.html file.  It contains some very important information on this mod

German translation can be found here

This is my attempt at re-creating Michael Prager's old NewsScript mod.  This mod allows you to display various information from one specific board in your YaBB forums on any page of your site, through use of SSI, PHP includes, and possibly javascript includes (I haven't tested it with javascript includes).

To Use This Mod:
  • Install the mod manually or with BoardMod
  • Upload all of the files in the "cgi-bin" directory that came with this mod in ASCII mode
  • Upload all of the modified files in ASCII mode
  • Go to your Admin Center, and click on "NewsIndex Settings"
  • Set the various options for this mod

To Display NewsItems On Your Site:
  • Open the HTML, PHP, ASP, etc. file that you wish to include your topics in
  • Add an include statement to execute the following CGI action: "http://pathtoyourYaBB/YaBB.pl?action=newsindex" (replacing "pathtoyourYaBB" with the actual URL to your YaBB board)
  • The include statement could look something like
    Code:
    <!--#include virtual="/cgi-bin/YaBB.pl?action=newsindex" --> 
    
    

    OR
    Code:
    <?php virtual('/cgi-bin/YaBB.pl?action=newsindex'); ?> 
    
    

    OR
    Code:
    <script language="javascript" src="/cgi-bin/YaBB.pl?action=newsindex;type=java">
    </script>
  • Make sure you do some research on using include statements if you haven't used them before.
  • Make sure you include "type=java" in your URL if you are using javascript includes
  • Edit the newsTemplate.html file to suit your needs.  The following YaBB variables are available for use in the template file:
    • <yabb windowbg> - This alternates back and forth between windowbg and windowbg2 classes.  This should be placed like: class="<yabb windowbg>"
    • <yabb newsSub> - This is the subject of the post.  In the Admin Center settings, you can choose whether this should link back to the original topic or not.
    • <yabb newsDate> - This is the date and time that the topic was originally created.
    • <yabb newsMessage> - This is the content of the original topic.
    • <yabb newsPoster> - This is the Display Name of the person that started the topic.  In the Admin Center settings, you can choose to wrap this display name with a link to the user's email address, a link to the user's profile, or no link at all.
    • <yabb newsComments> - This will show a number indicating how many replies have been posted in the topic.  In the Admin Center settings, you can choose whether this number should link back to the original topic or not.
    • <yabb newsposter_txt> - This is linked to $news_txt{'12'} in the language file.
    • <yabb newscomment_txt> - This is linked to $news_txt{'13'} in the language file.
  • Be sure that all of your style elements are defined somewhere in a style sheet that's linked to the page on your site.
  • Be certain that the windowbg and windowbg2 style definitions are included wherever the rest of your style definitions are made.


Known Limitations:
  • There is no way, as of yet, to verify Board Permissions, so everyone will be able to see your news topics, whether they are supposed to or not.


Please report any bugs in this topic, and I will try to take a look at them.

Please post any translations in this topic as well, and I will do my best to include them in the next version.

Thanks to Michael Prager for the idea, and for BoardMod.  Thanks to all of the YaBB devvers for putting together such great software.

Changelog:
From 0.3 beta:
  • Added code boxes in the Admin Center area so that you can copy and paste the include code.
  • Fixed javascript support, so that you can definitely use javascript includes now.
  • Added a lot of language strings to the language file.  You will need to either translate those yourself, or search for new translations in the original BoardMod topic in order to use this mod in languages other than English.

From 0.2 beta
  • Included a new German translation, thanks to JetLi
  • Fixed the minor cosmetic issue with the last table row of the Admin settings
  • Added the option to choose specific boards and specific templates, in order to allow the user to use this mod for more than one board, and with more than one template.

From 0.1 beta:
  • Fixed small bug that made link from topic work incorrectly.
  • Added option to link to last post in topic, or first unread post in topic from the comment link.
  • Added two new variables to the template, so that all text can be multi-lingual
  • Added German translation, thanks to JetLi
  • Fixed bug with link to email

    Link to the mod.
  • « Last Edit: 09.01.08 at 01:10:15 by Curtiss Grymala »  
    IP Logged
     

    Currently using Y2.3 With no mods (though that will hopefully change, soon).

    Click Here To See A List Of All The Mods I've Written
    Jeff
    Moderator
    *****
    Offline

    , Netherlands
    Posts: 2552



    Reply #1 - 25.11.07 at 22:17:28  
    Hi
    works on YaBB 2.2  Cheesy
     
    IP Logged
     

    greetings
    Jeff
    Captain John
    Hacker Expert
    ****
    Offline

    Reno Beach, Ohio, USA
    Posts: 264



    Reply #2 - 30.11.07 at 04:18:26  
    Curtiss  Could you update the Top Post to include a description of the MOD, so users don't have to jump to the 2.1 MOD, Please
     
    IP Logged
     

    Love to live and love on the water
    qersys
    Moderator
    *****
    Offline

    SF, California, USA
    Posts: 342



    Reply #3 - 01.12.07 at 16:51:25  
    Is there a way to use this in boardindex.template just using the  <news tags> and not an include?

    or maybe just call the newstemplate.html from boardindex.template

    Thanks for any help  Smiley
     
    IP Logged
     
    mattcch
    Bloody Novice
    *
    Offline

    Posts: 45



    Reply #4 - 05.01.08 at 05:27:30  
    Thank a lots.
    It works and I like it much.  Smiley
     
    IP Logged
     
    D0T-C0M
    Hacker God
    *****
    Offline

    Tracadie, New Brunswick, Canada
    Posts: 806



    Reply #5 - 08.01.08 at 17:34:12  
    wooohooo thanks curtis
     
    IP Logged
     
    Curtiss Grymala
    Hacker God
    *****
    Offline

    Posts: 1314



    Reply #6 - 09.01.08 at 00:57:40  
    qersys wrote on 01.12.07 at 16:51:25:
    Is there a way to use this in boardindex.template just using the  <news tags> and not an include?

    or maybe just call the newstemplate.html from boardindex.template

    Thanks for any help  Smiley


    @qersys - That's a completely different mod, unfortunately.  This mod is designed to allow you to include your latest posts on a page of your Web site, it's not meant to syndicate posts into a different part of your forum.

    I think there's a different mod for that, but I don't know if it's been updated for Y2.2, yet.

    @Cap'n John - I'll take care of that in just a moment.  Thanks for the tip.
     
    IP Logged
     

    Currently using Y2.3 With no mods (though that will hopefully change, soon).

    Click Here To See A List Of All The Mods I've Written
    mattcch
    Bloody Novice
    *
    Offline

    Posts: 45



    Reply #7 - 18.01.08 at 08:18:36  
    Any upgraded new version?

    Smiley Smiley
     
    IP Logged
     
    multikon
    Fulltime Hacker
    ***
    Offline

    Posts: 240



    Reply #8 - 25.01.08 at 03:58:12  
    Quote:
    Known Limitations:

       * There is no way, as of yet, to verify Board Permissions, so everyone will be able to see your news topics, whether they are supposed to or not.


    Any new idea for this problem ?

    thx & cya
     
    IP Logged
     

    beware ... yabb goes wbb ^^
    mattcch
    Bloody Novice
    *
    Offline

    Posts: 45



    Reply #9 - 27.06.08 at 13:27:57  
    Updated:

    Work ok on yabb2,2,2,
    thanks for a usefulmod, Smiley

    mattcch
     
    IP Logged
     
    mattcch
    Bloody Novice
    *
    Offline

    Posts: 45



    Reply #10 - 14.07.08 at 23:10:43  
    Updated:

    Works on on YaBB 2.2.3 , great!

    Smiley
    Mattcch2007
     
    IP Logged
     
    toonces
    Bloody Novice
    *
    Offline

    Posts: 4



    Reply #11 - 17.11.08 at 22:19:20  
    Is there a way to display news from more than one board?  I have used this mod for about 8 months and it works great, but I am finding I need to display news from several boards to keep my homepage looking fresh.  Thanks
     
    IP Logged
     
    Scudd
    Bloody Novice
    *
    Offline

    Posts: 1



    Reply #12 - 01.02.09 at 04:16:30  
    After manually installing this mod (twice) on a 2.3.1 board, the NewsIndex Settings page works fine, but the links (http://URL/cgi-bin/yabb2/YaBB.pl?action=newsindex) displays the following error:

    Error: Untrapped Error :
    Undefined subroutine &main::header called at ./Sources/NewsIndex.pl line 185.

    anyone seen this before? Being a bit of a CGI novice, I'm stuck.

    The code it seems to get hung up on is:

               else {
                   print header(-status  => '200 OK',
                   -charset => $yycharset);
               }
    « Last Edit: 01.02.09 at 05:25:22 by Scudd »  
    IP Logged
     
    Jeff
    Moderator
    *****
    Offline

    , Netherlands
    Posts: 2552



    Reply #13 - 01.02.09 at 10:52:41  
    Scudd wrote on 01.02.09 at 04:16:30:
    anyone seen this before? Being a bit of a CGI novice, I'm stuck.

    because not updated for 2.3.1 Tongue
     
    IP Logged
     

    greetings
    Jeff
    MurphyPrecht
    Bloody Novice
    *
    Offline

    Posts: 1



    Reply #14 - 24.02.09 at 00:06:50  
    Yup kinda noticed that, sounds good though.
    Any plans on having this work on the latest release Curtiss?

    Thanks in advance
     
    IP Logged
     
    Page Index Toggle Pages: 1
    © 2000-2012 by - All rights reserved.

    Project website hosting proudly sponsored and provided by UK2 Hosting
     The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum