News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Global Announcements

Started by JayBachatero, August 15, 2006, 02:39:18 PM

Previous topic - Next topic

PrizeLive.com

Thanks Jay!!

Your the man!!!
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Vinspire

Quote from: Jay The Code Monkey on August 19, 2006, 01:56:56 PM
Surf use this

<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg3"', '>
<img src="' . $settings['images_url'] . '/icons/show_sticky.gif" align="right" alt="" style="margin: 0;" />
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>


Thanks Jay. I've edited it to this too ... Looking different  ;D

L.G.S

Shall I just screen print it? If that doesn't help I will make the account for you

http://img319.imageshack.us/img319/1432/adminpm9.jpg
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JayBachatero

Ummm LGS it's there just that you are missing the language string for that theme.  Edit Modifications.english.php and add the language strings for your theme.


//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

L.G.S

My theme relies on the default languages theme so I don't think it could be that, because I could view the page itself with all the words on it
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JayBachatero

Umm that theme has a custom Modifications.english.php file.  Edit it.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Vinspire

Quote from: L.G.S on August 19, 2006, 04:05:44 PM
My theme relies on the default languages theme so I don't think it could be that, because I could view the page itself with all the words on it

Please follow what Jay told you to do so L.G.S ... If not ur problem would not be solve. If there isn't such a file in ur helios theme languages folder. create one called "modifications.english.php" then put in

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

L.G.S

Quote from: Jay The Code Monkey on August 19, 2006, 10:57:13 PM
Umm that theme has a custom Modifications.english.php file.  Edit it.

No it doesn't, it doesn't even come with a languages folder.


Quote from: Vinspire on August 20, 2006, 12:35:55 AM
Quote from: L.G.S on August 19, 2006, 04:05:44 PM
My theme relies on the default languages theme so I don't think it could be that, because I could view the page itself with all the words on it

Please follow what Jay told you to do so L.G.S ... If not ur problem would not be solve. If there isn't such a file in ur helios theme languages folder. create one called "modifications.english.php" then put in

//Global Announcements adminIndex text strings.
$txt['global_announcements_admin'] = 'Global Announcements';
$txt['global_announcements_mods'] = 'Mods';
$txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the <a href="' . $scripturl . '?action=globalAnnouncementsAdmin">Global Announcements</a>.';
$txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';


I'm using Aa New Damage, not Helios.
I don't exactly want to create the file because then any modifications made in the package manager I will have to make on the custom theme as well
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Assistance

how does your board function with out a language?
~playing poker~

L.G.S

I said my custom theme doesn't have languages, not the entire board.

If the custom theme has no languages then it uses the default ones, that's how my board is functioning with them
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JayBachatero

Switch to the default theme and check if the language strings load there.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

L.G.S

Nope, I tried that and same as custom theme
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JayBachatero

Ok edit Modifications.english.php for your theme and add the language strings.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

L.G.S

They are already there.

Remind me again where the link itself is supposed to appear? Remember I am referring to the link to modify announcements?
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


JayBachatero

Can you send me a test Admin account?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

SleePy

Hey Jay,

It would be a cool feature to do a Name override. So instead of my Name I can put like Admin or Another Users name..
Of course things like post count would not be able to display but thats ok...
Maybe have it act like a guest user?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

Well for now this mod is feature frozen unless a bug appears.  I have a whole list of other mods to make so I need the time.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

SleePy

#57
ahh.. dang.. ok..

going to go mess with it and see how I can do this myself then..
Thinking I just need to add a field into the database for it. Then add add a override check box with a field to put a custom user name. And then when it submits it sets id member to 0 and sets username.

Thanks though. Was hoping to get an official release from you..

--Edit--
lol.. I like the feature you added for people who change the id to 0 :) needs a better vid though.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

JayBachatero

You can just edit the template I believe and change the ID_MEMBER.  Or source code.

???  change id to 0?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

HecKel

Hi!

Finally I installed this mod :D

Some questions/ideas:

  • When we disabled an announcement (red circle) we should can see that announcement?
  • I use fast moderation (checkboxs), can this be applied to GA too?

    HecKel
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Advertisement: