News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Yet Another Global Announcements Mod (YAGAM)

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

Previous topic - Next topic

Özgür

Quote from: NIBOGO on June 23, 2009, 04:21:53 PM
Quote from: [Daydreamer] on June 23, 2009, 04:12:50 PM
This version still have permission problem. (I have clean install.)

I forgot it, now has been fixed please install the new version uploaded
I replace old files to new files, but files are same. And issue still same.
So Long

Sudhakar Arjunan

Hi,

I have tied to uninstall v 1.1.7.2.

Error on Message index file.

Actual logout code on unistall page is ,



Find [Select]
// If there are children, but no topics and no ability to post topics... $context['no_topic_listing'] = !empty($context['boards']) && empty($context['topics']) && !$context['can_post_new'];// YAGAM was here $dbresult = $smcFunc['db_query']('', ' SELECT a.id_announcement, a.enable, a.date, a.author, m.real_name, a.permissions, a.title, a.views, a.id_boards, a.can_comment, a.comment_total FROM {db_prefix}announcements AS a LEFT JOIN {db_prefix}members AS m ON (a.author = m.ID_MEMBER) WHERE a.enable = {int:enable} ORDER BY id_announcement DESC', array( 'enable' => '1', ) ); // Load the Announcements $context['announcements'] = array(); while ($row = $smcFunc['db_fetch_assoc']($dbresult)) $context['announcements'][] = $row; $smcFunc['db_free_result']($dbresult); // YAGAM End`s Here

Replace [Select]
// If there are children, but no topics and no ability to post topics... $context['no_topic_listing'] = !empty($context['boards']) && empty($context['topics']) && !$context['can_post_new'];



But Actual code my MessageIndex.php file is,


// If there are children, but no topics and no ability to post topics...
$context['no_topic_listing'] = !empty($context['boards']) && empty($context['topics']) && !$context['can_post_new'];// YAGAM was here
    $dbresult = $smcFunc['db_query']('', "
SELECT
a.id_announcement, a.enable, a.date, a.author, m.real_name, a.permissions, a.title, a.views, a.id_boards, a.can_comment, a.comment_total
FROM {db_prefix}announcements AS a
LEFT JOIN {db_prefix}members AS m  ON (a.author = m.ID_MEMBER)
    WHERE a.enable = '1'
ORDER BY id_announcement DESC  ");

    // Load the Announcements
$context['announcements'] = array();
while ($row = $smcFunc['db_fetch_assoc']($dbresult))
$context['announcements'][] = $row;
$smcFunc['db_free_result']($dbresult);

// YAGAM End`s Here


Now how do i proceed further.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Özgür

Uninstall and remove this code
// YAGAM was here
    $dbresult = $smcFunc['db_query']('', "
   SELECT
      a.id_announcement, a.enable, a.date, a.author, m.real_name, a.permissions, a.title, a.views, a.id_boards, a.can_comment, a.comment_total
   FROM {db_prefix}announcements AS a
   LEFT JOIN {db_prefix}members AS m  ON (a.author = m.ID_MEMBER)
    WHERE a.enable = '1'
   ORDER BY id_announcement DESC  ");
   
    // Load the Announcements
   $context['announcements'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($dbresult))
   $context['announcements'][] = $row;
   $smcFunc['db_free_result']($dbresult);
   
   // YAGAM End`s Here
So Long

edi67

Installed but hen i try to enter in announcements i rceive this error:

Fatal error: require_once() [function.require]: Failed opening required '/home/crazyzone/data/www/crazyzone.biz/Sources/AnnouncementView.php' (include_path='.:/usr/local/share/pear') in /home/crazyzone/data/www/crazyzone.biz/index.php on line 483

u can fix it?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

drhamad

Has anyone had any success with YAGAM 2 (final)?  For me, it simply redirects users back to the index now.  At least it doesn't error, but it also doesn't WORK.
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

Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

Grinch843

Hi, just downloaded and installed and got this error when trying to view an announcement

Fatal error: require_once() [function.require]: Failed opening required '/home/beaufort/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/beaufort/public_html/forum/index.php on line 346

Running on SMF 2.0 RC1.2 with the default theme.

I removed and reinstalled several times but nothing changed.

Thanks,
Grinch843...


Grinch843

Quote from: Grinch843 on July 20, 2009, 10:33:53 PM
Fatal error: require_once() [function.require]: Failed opening required '/home/beaufort/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/beaufort/public_html/forum/index.php on line 346

Any update on this?

Thanks,
Grinch843


Atomic Blaze

When I go to ?action=announcements I get this:

QuoteAn Error Has Occurred!
Unable to load the 'main' template. 

I have looked through both Announcements.template and AnnoiuncementView.template and there is no main.

Error in custom theme and default theme.
Trick number one, looketh over there. Doth endeth the trick.

Follow me on Twitter!

Party Llama || GitHub

plusev

Got the same error as the poster above:

Fatal error: require_once() [function.require]: Failed opening required '/xxxxxxxxxxxxxxxxxxx/web/Sources/AnnouncementView.php' (include_path='.:/xxxxxxxxxxxxxxxxxxxxxx) in /xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/index.php on line 405


Please advise, Thx

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


devil_jin

Hi NIBOGO,

Thanks for this wonderful mod...

I installed it today and everything was fine I made a GA but forgot to change the Topic so it showed Global Announcement the default. The problem is I went to edit it and did the correction and when I clicked to submit it the page just turns blank.. I checked and see the name changed to the one I wanted but when I click to open it again the page turns blank.. By this I mean nothing shows all the other pages on the forum are ok but the GA does not open..

Please help.

PS : I am sorry if the same question has been asked before and I didn't check it. Also I am a noob with coding so if you could please explain in details if there are any changes to be made to the template to make it work.


Thanks for your help in advance..

leonardus

the mod is ok. installation ok. announcement ok.

but i click above the "global announcement" in all board, i receive thi error:

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxxxx/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/forum/index.php on line 406

can you help me?

thanks

[A-US]James246

Will this work with 1.1.10? Or is there another Global Announcements mod out there?

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

leonardus

Quote from: leonardus on August 02, 2009, 03:09:53 AM
the mod is ok. installation ok. announcement ok.

but i click above the "global announcement" in all board, i receive thi error:

Fatal error: require_once() [function.require]: Failed opening required '/home/xxxxxxxx/public_html/forum/Sources/AnnouncementView.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxx/public_html/forum/index.php on line 406

can you help me?

thanks

nobody can help me? thx

drhamad

Are you sure /forum/Sources/AnnouncementView.php is there?
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: