Yet Another Global Announcements Mod (YAGAM)

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

Previous topic - Next topic

iPhoneDestek

the new version is something that has not changed. problem continues. See picture


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


DirtRider

Quote from: ® SirtLan on November 26, 2009, 06:41:26 AM
the new version is something that has not changed. problem continues. See picture

I must admit it is far better than what it was  ;)
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

iPhoneDestek

Quote from: DirtRider on November 26, 2009, 06:50:46 AM
Quote from: ® SirtLan on November 26, 2009, 06:41:26 AM
the new version is something that has not changed. problem continues. See picture

I must admit it is far better than what it was  ;)

agree with you. After installing the theme, if not broken.


$$  Q u a l i t y    I n f o r m a t i o n    L i n e  for iPhone $$



<   M O D  |  T R A N S L A T O R  |  TO  |  TUR  |  A N D   |  G E R   >


karanima


MrCreatoR

Quote from: karanima on November 26, 2009, 06:59:24 AM
mod is great, but the problem continues
be seen in the picture
I also have posted this issue, but NIBOGO sais we should "manually modify the MessageIndex.template.php" :(. Now we need to do it on every update? I think this mod could be compatible with the column numbers that is used on specific boards.

DirtRider

For me it is not such a big issue as only the admin sees it like that. I would like it fixed but hey I can live with it  ;D
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

Nibogo

As I told you I was on a PC without a localhost so I can't test it, I already see the error in the code and I'll fixed as soon as I can, excuse me for the issues.

Btw the idea of automatically find the columns in the message index please tell me how a mod can do it because as far as I know this isn't doable ;)



DirtRider

Quote from: NIBOGO on November 26, 2009, 11:54:39 AM
New Package Uploaded, fixing that issue ;)

Hu is that 2.3 as that was the one I download earlier and it still had the issue but it was better, or is this a later version of 2.3  ;D ;D ;D
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "


DirtRider

Quote from: NIBOGO on November 26, 2009, 01:59:15 PM
Quote from: DirtRider on November 26, 2009, 01:58:07 PM
Quote from: NIBOGO on November 26, 2009, 11:54:39 AM
New Package Uploaded, fixing that issue ;)

Hu is that 2.3 as that was the one I download earlier and it still had the issue but it was better, or is this a later version of 2.3  ;D ;D ;D

This is a later version of the 2.3 let's call it 2.3.2

lol thanks I will download it now  :D
http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

DirtRider

http://www.triumphtalk.com

"The real question is not whether machines think but whether men do. "

social

SMF v2.0RC2 ==>>Simple Portal v2.3.1
WWW.TUREDSOCIALPR.COM

Analogiker

Sorry, but i get an error if somebody views an announcement.

Quote
.../index.php?action=announcement;aid=1
8: Undefined index: can_send_pm
Datei: .../TEST/Themes/default/AnnouncementView.template.php
Zeile: 160

Quote from: AnnouncementView.template.php// Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            .......
            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                              <li><a href="', $scripturl, '?action=pm;sa=send;u=', $context['announcement']['author']['id'], '" title="', $context['announcement']['author']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($context['announcement']['author']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($context['announcement']['author']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" border="0" />' : ($context['announcement']['author']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';

            echo '
                           </ul>
                        </li>';
         }
Theme: default
Version: SMF2 RC2

Analogiker

If i put this '$context['can_send_pm'] = allowedTo('pm_send');' on the top of the function template_announcement_view() under 'global' there ist the next error:
Quote
.../TEST/index.php?action=announcement;aid=1
8: Undefined variable: Online
Datei: .../TEST/Themes/default/AnnouncementView.template.php
Zeile: 40
Is there something wrong with the Variable $context?

Analogiker

The mod is now running without errors. I made two changes:

1. add at the end before } ?>   
Code (AnnouncementView.php) Select

// Some people can't send personal messages...
$context['can_send_pm'] = allowedTo('pm_send');


2. change line 38
Code (AnnouncementView.template.php) Select

....$$context['announcement']['author']['online']['label'].....
to
....$context['announcement']['author']['online']['label']....

dkharp

This is a great mod! I was wondering is there a way for it to be counted as a topic and posts?

Spoogs

it does have an option to make the announcement into a topic, just choose the board you want it to be on.... i created a news and announcements board specifically for that.


Advertisement: