TinyPortal

Development => Support => Topic started by: AmazinAzn on June 07, 2007, 05:59:17 PM

Title: Help if you don't mind.
Post by: AmazinAzn on June 07, 2007, 05:59:17 PM
I installed the Global Announcements mod and when I did I got a bunch of unnecessary text at the top of my site.

This is what it says:
//Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

I uninstalled the mod and it's still there, any idea why it's there?
Title: Re: Help if you don't mind.
Post by: Lesmond on June 07, 2007, 06:11:51 PM
This is something best asked at SMF, or the mod developer.
Title: Re: Help if you don't mind.
Post by: AmazinAzn on June 07, 2007, 06:15:30 PM
Ok, will do.
Title: Re: Help if you don't mind.
Post by: pvcblue on June 07, 2007, 09:27:25 PM
Quote from: AmazinAzn on June 07, 2007, 05:59:17 PM
I installed the Global Announcements mod and when I did I got a bunch of unnecessary text at the top of my site.

This is what it says:
//Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement'; //Global Announcements adminIndex text strings. $txt['global_announcements_admin'] = 'Global Announcements'; $txt['global_announcements_mods'] = 'Mods'; $txt['whoallow_globalAnnouncementsAdmin'] = 'Managing the Global Announcements.'; $txt['whoall_globalAnnouncements'] = 'Viewing a Global Announcement';

I uninstalled the mod and it's still there, any idea why it's there?

in your default theme folder go to the language folder, open the english.index.php and look t othe bottom of the file. Sometimes when MODs change this file they don't put the changes inside the php tags. At the bottom of the file it should show this closer - "?>"
sometimes the mod puts the new text after it, just move it to the end of the file, and all should be right.
Title: Re: Help if you don't mind.
Post by: AmazinAzn on June 07, 2007, 09:59:16 PM
There's no text after it. G6 told me to "To remove the code, download the mod again and look in the mods XML file for where it adds the code, then remove it from that file." would that work?

[EDIT] Found it in Modifications.english.php, thanks for the help.
Title: Re: Help if you don't mind.
Post by: pvcblue on June 07, 2007, 10:06:41 PM
Quote from: AmazinAzn on June 07, 2007, 09:59:16 PM
There's no text after it. G6 told me to "To remove the code, download the mod again and look in the mods XML file for where it adds the code, then remove it from that file." would that work?


Yes you could do as G6 says, or just unzip the mod on your computer open the xml see which files it changes and fix them from that by opening each php as the xml says and checking where it changed them, instead of reapplying the MOD.
Title: Re: Help if you don't mind.
Post by: AmazinAzn on June 07, 2007, 10:10:10 PM
It's alright I found where it was thanks for the help.