News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Yet Another Global Announcements Mod (YAGAM)

Started by Nibogo, February 11, 2009, 12:47:15 AM

Previous topic - Next topic

drhamad

FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

Özgür

QuoteI really need a bug tracker for YAGAM
Ehehe =)
All url bug looks solved. But guest permission bug unsolved. Thank for hard work, NIBOGO.
So Long

Nibogo

Glad to see of YAGAM is working , All that bugs appear just because I don't make a good testing of the mod for the next release I will check everything before upload.

I am currently looking for a website to have an issue tracker and svn for this and my others mods

I can make of the guest create comments ;)

Antes

Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>


'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),

mgrmgr

Quote from: NIBOGO on February 23, 2009, 07:31:24 PM
...

I really need a bug tracker for YAGAM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)


edi67

Quote from: Gnoll on February 24, 2009, 04:55:44 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>


'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),


for you is wrong because you have installed mod hidetagspecial that is not DEFAULT of smf ;)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Antes

Quote from: edi67 on February 24, 2009, 06:16:17 AM
Quote from: Gnoll on February 24, 2009, 04:55:44 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>


'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),


for you is wrong because you have installed mod hidetagspecial that is not DEFAULT of smf ;)

This is awsome Thx ! :) Some of mods giving that error ... i'll delete it now ... ( And let me say , When you made this Working as well with HTSpecial )

Edit : After UnInstall HTSpecial Giving same Error Too ( Some mods like in Past )

edi67

Quote from: Gnoll on February 24, 2009, 06:24:56 AM
Quote from: edi67 on February 24, 2009, 06:16:17 AM
Quote from: Gnoll on February 24, 2009, 04:55:44 AM
Hello ,

Frist of all Very Very Good Mod ! :) ... But 1 Thing Wrong in Install.xml ( When Installing @ SMF2.0 RC1 ( Admin.php Change )

<![CDATA['postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),]]>


'postsettings' => array(
'label' => $txt['manageposts'],
'file' => 'ManagePosts.php',
'function' => 'ManagePostSettings',
'permission' => array('admin_forum', 'moderate_forum'),
'icon' => 'posts.gif',
'subsections' => array(
'posts' => array($txt['manageposts_settings'], 'admin_forum'),
'hidetagspecial' => array($txt['manageposts_hidetagspecial_settings'], 'admin_forum'),
'bbc' => array($txt['manageposts_bbc_settings'], 'admin_forum'),
'censor' => array($txt['admin_censored_words'], 'moderate_forum'),
'topics' => array($txt['manageposts_topic_settings'], 'admin_forum'),
),
),


for you is wrong because you have installed mod hidetagspecial that is not DEFAULT of smf ;)

This is awsome Thx ! :) Some of mods giving that error ... i'll delete it now ... ( And let me say , When you made this Working as well with HTSpecial )

Edit : After UnInstall HTSpecial Giving same Error Too ( Some mods like in Past )

for make it work make this:

change the last part inside file Install.xml with this one, save and reinstall mod
<file name="$sourcedir/Admin.php">
<operation>
<search position="after"><![CDATA[ 'managecalendar' => array(
'label' => $txt['manage_calendar'],
'file' => 'ManageCalendar.php',
'function' => 'ManageCalendar',
'icon' => 'calendar.gif',
'permission' => array('admin_forum'),
'enabled' => in_array('cd', $context['admin_features']),
'subsections' => array(
'holidays' => array($txt['manage_holidays'], 'admin_forum', 'enabled' => !empty($modSettings['cal_enabled'])),
'settings' => array($txt['calendar_settings'], 'admin_forum'),
),
),]]></search>
<add><![CDATA[
      'announcements' => array(
'label' => $txt['yagam_admin'],
'file' => 'Announcements.php',
'function' => 'AnnouncementsAdmin',
'custom_url' => $scripturl . '?action=announcements;sa=admin',
'icon' => 'yagam.gif',
                    'subsections' => array(
    'add' => array($txt['yagam_admin'], 'admin_forum'),
'admin' => array($txt['yagam_admin_add'], 'admin_forum'),
),
),]]></add>
</operation>
</file>


============================================================

Italian Language NIBOGO ;)

// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Annunci Globali';
$txt['yagam_topics'] = 'Topics Normali';
$txt['yagam_created'] = 'Creato il';
$txt['whoall_announcements'] = 'Sta guardando un Annuncio Globale';
$txt['permissionname_yagam_manage'] = 'Gestisci Annunci Globali';
$txt['permissionhelp_yagam_manage'] = 'Imposta se l\'utente può gestire gli annunci globali.';
$txt['permissionname_yagam_comment'] = 'Commenta gli Annunci Globali';
$txt['permissionhelp_yagam_comment'] = 'Imposta se l\'utente può commentare gli annunci globali e di abilitare commenti.';
$txt['yagam_edit2'] = 'Modifica';
$txt['yagam_edit'] = 'Modifica Annuncio';
$txt['yagam_remove'] = 'Cancella Annuncio';
$txt['yagam_remove2'] = 'Cancella';
$txt['yagam_admin_add'] = 'Aggiungi Annuncio Globale';

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

fords8

NIBOGO, Can I PM you about a mod I have a idea for? Just wondering if you would be interested in doing it and releasing it to the public.

fotografo74

Hi NIBOGO, thanks for this nice MOD!  :)
I have a problem, like screenshot attached.

Can you help me?
Thanks!
Antonio

edi67

Nibogo, listen how i could separate the sticky topic from normal one and announcements too usgin your method?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Xepernas

Quote from: NIBOGO on February 18, 2009, 09:03:42 PMYAGAM v1.5 will have Babylon and Classic theme support ;)

Uh, sure ? Seems like v1.6 announcements still won't show on Babylon and Babylon-based themes.  :(

See, I'd gladly yagamize those themes myself, but I'm forced to do it a bit blindly, as these codes don't mean much to me. The problem is, instead of finding the

// No topics.... just say, "sorry bub".
if (empty($context['topics']))
echo '
<tr class="windowbg2">
<td class="catbg3" colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><strong>', $txt['msg_alert_none'], '</strong></td>
</tr>';
foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?


that I'm supposed to replace with your code, I find something like :

// No topics.... just say, "sorry bub".
      else
         echo '
               <td width="100%" colspan="7"><b>', $txt['msg_alert_none'], '</b></td>';
      echo '
            </tr>';
      // If this person can approve items and we have some awaiting approval tell them.
      if (!empty($context['unapproved_posts_message']))
      {
         echo '
            <tr class="windowbg2">
               <td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '">
                  <small>
                     <span class="alert">!</span> ', $context['unapproved_posts_message'], '
                  </small>
               </td>
            </tr>';
      }


and I don't have enough knowledge to adapt your code to this configuration. It seems to be the standard Babylon-theme and Babylon-family code, so if you could give hints as to what to type there, it'll probably allow the manual yagamization of a whole series of themes for a lot of people. 

Nibogo

Quote from: mgrmgr on February 24, 2009, 06:03:33 AM
Quote from: NIBOGO on February 23, 2009, 07:31:24 PM
...

I really need a bug tracker for YAGAM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)



I know that mod but the website?? hosting?? Domain??

Quote from: edi67 on February 24, 2009, 06:31:14 AM
============================================================

Italian Language NIBOGO ;)

// YAGAM - Admin and MessageIndex Strings
$txt['yagam_admin'] = 'Annunci Globali';
$txt['yagam_topics'] = 'Topics Normali';
$txt['yagam_created'] = 'Creato il';
$txt['whoall_announcements'] = 'Sta guardando un Annuncio Globale';
$txt['permissionname_yagam_manage'] = 'Gestisci Annunci Globali';
$txt['permissionhelp_yagam_manage'] = 'Imposta se l\'utente può gestire gli annunci globali.';
$txt['permissionname_yagam_comment'] = 'Commenta gli Annunci Globali';
$txt['permissionhelp_yagam_comment'] = 'Imposta se l\'utente può commentare gli annunci globali e di abilitare commenti.';
$txt['yagam_edit2'] = 'Modifica';
$txt['yagam_edit'] = 'Modifica Annuncio';
$txt['yagam_remove'] = 'Cancella Annuncio';
$txt['yagam_remove2'] = 'Cancella';
$txt['yagam_admin_add'] = 'Aggiungi Annuncio Globale';



Thanks , I will add that in the next release

Quote from: fords8 on February 24, 2009, 10:42:37 AM
NIBOGO, Can I PM you about a mod I have a idea for? Just wondering if you would be interested in doing it and releasing it to the public.

Feel free to do it!

Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Hi NIBOGO, thanks for this nice MOD!  :)
I have a problem, like screenshot attached.

Can you help me?
Thanks!
Antonio


Just add a colspan="2" to the td on the title when the board have the first attachment screenshot

Quote from: edi67 on February 25, 2009, 04:10:33 AM
Nibogo, listen how i could separate the sticky topic from normal one and announcements too usgin your method?

Oh , I forget that , I will try to create the mod in this week with YAGAM support ;)

Quote from: Xepernas on February 25, 2009, 09:05:33 AM
Quote from: NIBOGO on February 18, 2009, 09:03:42 PMYAGAM v1.5 will have Babylon and Classic theme support ;)

Uh, sure ? Seems like v1.6 announcements still won't show on Babylon and Babylon-based themes.  :(

See, I'd gladly yagamize those themes myself, but I'm forced to do it a bit blindly, as these codes don't mean much to me. The problem is, instead of finding the

// No topics.... just say, "sorry bub".
if (empty($context['topics']))
echo '
<tr class="windowbg2">
<td class="catbg3" colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '"><strong>', $txt['msg_alert_none'], '</strong></td>
</tr>';
foreach ($context['topics'] as $topic)
{
// Do we want to seperate the sticky and lock status out?


that I'm supposed to replace with your code, I find something like :

// No topics.... just say, "sorry bub".
      else
         echo '
               <td width="100%" colspan="7"><b>', $txt['msg_alert_none'], '</b></td>';
      echo '
            </tr>';
      // If this person can approve items and we have some awaiting approval tell them.
      if (!empty($context['unapproved_posts_message']))
      {
         echo '
            <tr class="windowbg2">
               <td colspan="' , !empty($options['display_quick_mod']) ? '8' : '7' , '">
                  <small>
                     <span class="alert">!</span> ', $context['unapproved_posts_message'], '
                  </small>
               </td>
            </tr>';
      }


and I don't have enough knowledge to adapt your code to this configuration. It seems to be the standard Babylon-theme and Babylon-family code, so if you could give hints as to what to type there, it'll probably allow the manual yagamization of a whole series of themes for a lot of people. 

I will NOT add Babylon and Classic Support , why??

Because on SMF 2.0 RC2 this themes will be removed so is not neccesary to add this and require some time (yep some minutes) only curve support will be added later

Xepernas

Quote from: NIBOGO on February 18, 2009, 09:03:42 PM
YAGAM v1.5 will have Babylon and Classic theme support ;)
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
I will NOT add Babylon and Classic Support

Hm. Okkkkkay...

Well I can only wait and hope for a Babylon (or New Babylon 2, etc) user to decide to use Yagam himself, dedicate "some minutes" to it, and post the result here.  Because, to be honest, I'm not totally absolutely certain RC2 is for tomorrow - nor that people will cease to update the babylonic themes.


fotografo74

Quote from: NIBOGO on February 25, 2009, 06:06:57 PM

Quote from: fotografo74 on February 24, 2009, 02:36:02 PM
Quote
Hi NIBOGO, thanks for this nice MOD!  :)
I have a problem, like screenshot attached.

Can you help me?
Thanks!
Antonio


Just add a colspan="2" to the td on the title when the board have the first attachment screenshot


Thanks NIBOGO!
Sorry but I don't know where it's possible to insert the code  ( <td colspan="2">  it's ok ? )
In announces' title?
Thanks
Antonio

mgrmgr

Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: mgrmgr on February 24, 2009, 06:03:33 AM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)


I know that mod but the website?? hosting?? Domain??



Website? Your forum (main menu "projects")

Hosting? Your forum hoster (also localhost for a local installation)

Domain? Same as your forum. You can see it in action also on my test-forum:

http://forum.michgeyer.de.

It is fully integrated in your forum, does not need seperate hosting like mantis (as an example).


Xepernas

Let's just mention 2 little unimportant bugs I've encountered on SMF2.0RC1, theme Core, Yagam 1.1.6.2, IE7 :

1) When setting the announcements, I didn't touch the "permissions" at all (on the announcement create/edit page), and left them as default : guest off, regular members on, moderator off, admin off. I realised then that the announcements would only be visible by admins, but not by guests and regular members. So, I went back to edit the announcements, and checked all permissions "on". Guests, regular members, mods, admins. Now announcements are visible by everyone.

The procedure didn't make much sense (as "regular members" was already "on"), but at least it works now. Maybe this part needed an input/save to be initialized or write over a false, misleading "default" ?


2) On the menu : "Announcements" sends to the "add an announcement" panel. "Add an announcement" sends to the list of announcements. Again, doesn't really matter...

Nibogo

Quote from: mgrmgr on February 26, 2009, 06:27:54 AM
Quote from: NIBOGO on February 25, 2009, 06:06:57 PM
Quote from: mgrmgr on February 24, 2009, 06:03:33 AM

LOL - Try the Project tools modification http://custom.simplemachines.org/mods/index.php?mod=1490

Works ok for me even if it is still in an early phase :)


I know that mod but the website?? hosting?? Domain??



Website? Your forum (main menu "projects")

Hosting? Your forum hoster (also localhost for a local installation)

Domain? Same as your forum. You can see it in action also on my test-forum:

http://forum.michgeyer.de.

It is fully integrated in your forum, does not need seperate hosting like mantis (as an example).



My website about Sony Ericsson?? in Spanish too?? Using my little and ugly Hosting for this and my other projects?? I don't think so ;)

Quote from: Xepernas on February 26, 2009, 12:01:12 PM
Let's just mention 2 little unimportant bugs I've encountered on SMF2.0RC1, theme Core, Yagam 1.1.6.2, IE7 :

1) When setting the announcements, I didn't touch the "permissions" at all (on the announcement create/edit page), and left them as default : guest off, regular members on, moderator off, admin off. I realised then that the announcements would only be visible by admins, but not by guests and regular members. So, I went back to edit the announcements, and checked all permissions "on". Guests, regular members, mods, admins. Now announcements are visible by everyone.

The procedure didn't make much sense (as "regular members" was already "on"), but at least it works now. Maybe this part needed an input/save to be initialized or write over a false, misleading "default" ?


2) On the menu : "Announcements" sends to the "add an announcement" panel. "Add an announcement" sends to the list of announcements. Again, doesn't really matter...


I will check the second bug

Nibogo

Hi everybody , I am working in the next release of YAGAM with:

- Sort Options based on the Same Topics Sort Options [DONE]
- Fixed bugs with the new url style [DONE]
- Cleaned the code on the messageindex and messageindex.template [DONE]
- Fixed some additional minor bugs [DONE]
- Added Support for Member Color Link Mod on MessageIndex [DONE]

- Who is viewing the Global Announcement Feature [Require a lot of Work and Code so maybe will not be implemented]

I just want to know if do you want any extra feature??

Thanks

drhamad

I'd really like the ability to make GA's with comments into regular threads when they're un-GA'd.  That's a major thing for me, as just because I no longer wish to announce something, it doesn't mean I want to eliminate the thread.
FMVperformance:  3.51m posts, 63k members, 11 boards, 1 database

Mazda3Forums - SmallVolvos - MazdaSpeeders Mazda Club - FordFusionClubMazda CX-7 Club - MyMazda6
Now introducing: MKSdrivers.com - FocusDrivers - TaurusDrivers

Advertisement: