Advertisement:

Author Topic: Yet Another Global Announcements Mod (YAGAM)  (Read 210428 times)

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,943
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
« Reply #580 on: June 09, 2013, 05:52:03 PM »
You updated the mod page but that confuses people, please remove those versions from mod page or update the mod with range.

Thanks :)
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]

RMensen

  • Guest
Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
« Reply #581 on: December 03, 2013, 07:33:37 PM »
Hello,

I'm getting an "Unable to load the 'main' template." error on my forum. I'm currently running SMF 2.06.

I've tried all of the above "fixes" but none have worked.

Any help is appreciated.


Edit:

I use Pretty URL for Board & Topic

Error log:

Quote
http://pc.ihavetoget.it/index.php?action=announcements;aid=1
8: Undefined variable: sa
File: /htdocs/public/pc/Sources/Announcements.php
Line: 60
&
Quote
http://pc.ihavetoget.it/index.php?pretty;action=announcements&aid=1
8: Undefined variable: sa
File: /htdocs/public/pc/Sources/Announcements.php
Line: 60
« Last Edit: December 03, 2013, 08:08:20 PM by RMensen »

Offline Nolt

  • Language Moderator
  • Full Member
  • *
  • Posts: 497
  • Gender: Male
  • /dev/null
    • smfpolska on Facebook
    • nolt on GitHub
    • Wizzi
Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
« Reply #582 on: December 18, 2013, 05:10:38 PM »
Hello,

We got an issue with YAGAM at non default theme (default theme works fine).
Announcemnets rows are oversized and look awful, I've seen similar issues reported in this topic but without any fix.
Here you can check how it looks on live site: http://www.smf.pl/index.php/board,37.0.html

Any ideas how to fix this?


//EDIT
FIXED
« Last Edit: December 20, 2013, 11:12:42 AM by Nolt »

Offline Shyam09

  • Semi-Newbie
  • *
  • Posts: 22
Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
« Reply #583 on: January 21, 2014, 01:07:24 AM »
Hello,

We got an issue with YAGAM at non default theme (default theme works fine).
Announcemnets rows are oversized and look awful, I've seen similar issues reported in this topic but without any fix.
Here you can check how it looks on live site: http://www.smf.pl/index.php/board,37.0.html [nofollow]

Any ideas how to fix this?


//EDIT
FIXED
could you please share how to fix this. I'm also stuck on this too. Thanks

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
« Reply #584 on: January 30, 2015, 10:28:01 AM »
How to give Global Moderator the permission to post an announcement?

Hi! I the below post from Illori enabled me to assign the functionality to other Permission Groups

I edited ../Source/ManagePermissions.php.

Search for:
Code: [Select]
$permissionList = array(
'membergroup' => array(

And add :
Code: [Select]
'yagam_manage' => array(false, 'maintenance', 'administrate'),
Right under the entry:
Code: [Select]
'yagam_comment' => array(false, 'general', 'view_basic_info'),
Seems to have worked for me!

I dont know if this was on purpose but i dont see yagam_manage declared in the $permissionList array I added it to my array and it can now be assigned as a permission

Code: [Select]
'yagam_manage' => array(false, 'maintenance', 'administrate'),

Offline shazoo!

  • Jr. Member
  • **
  • Posts: 129
  • Gender: Female
Re: Yet Another Global Announcements Mod (YAGAM) [Supporting 2.0 Final]
« Reply #585 on: January 30, 2015, 10:30:18 AM »
...still unable to convert a topic to an announcement, though.
anyone figure that out?

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,663
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Yet Another Global Announcements Mod (YAGAM)
« Reply #586 on: November 17, 2017, 09:05:01 AM »
Version 2.7.5 - November 17, 2017
* Better installation.

No need to upgrade if you already have it working.

Offline jsx

  • Jr. Member
  • **
  • Posts: 339
  • Gender: Male
Re: Yet Another Global Announcements Mod (YAGAM)
« Reply #587 on: February 12, 2019, 04:56:22 AM »
@Nibogo

Can not uninstall YAGAM with the selected option "Remove all data associated with this modification" because there is such an error:

Fatal error: require(): Failed opening required '/home/XXX/domains/XXX/public_html/smf/Packages/temp/db_install.php' (include_path='.:/usr/local/php/p56/lib/php') in /home/XXX/domains/XXX/public_html/smf/Sources/Packages.php on line 952

SMF is clean, newly installed for the test.

And there is a mistake in this line in the Announcements.english-utf8.php file:

Code: [Select]
$txt['yagam_no_cotent'] = 'Announcement content is required';
"cotent" the letter "n" is missing.

In all language files there is a mistake in this code. This text line will not be displayed by this mistake.