Announcements like IPB's

Started by Jim R, June 13, 2006, 01:33:57 PM

Previous topic - Next topic

HecKel

Hi!

I've got this error when I tried to install this last release...



My forum is in Portuguese, só the (bad)translation is: Error on modification

How the error is on install.xml I don't known what could be...

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

K_4_kelly

#81
Quote from: Jay The Code Monkey on July 26, 2006, 03:00:48 PM
Ok forget that.  Use this file

Hello Jay,

I have uploded the second file u attached
and it works great now! the chinese word is appearing correctly now!  :) thanks a lot
see the photos:




K_4_kelly

#82
QuoteDo you get the same error when making a post in the Post screen not quick reply?

sorry, i just saw your question and notice the problem..
yes, there's no quick reply function and even the reply button in the post...

haha, another headache for you  ;)

------
oh yes, i tried the functions, and there's the check list... hope can have the fully working GA mod soon^_^
i dont know how to write a mod, this is only what i can do, hope it helps ^^ thx anyway!

+ Added entries for Who's Online. (Who.php, Modifications.english.php) DONT KNOW
+ Added BBC and Smileys to template. (Subs-GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php, GlobalAnnouncementsAdmin.php) YES
+ Added status indicator to admin page to indicated if mod is disabled or not. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php)YES
+ Added ability to quick enable/disable Global Announcement. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php) YES
+ Added ability to send a newsletter for Global Announcement. (ManageNews.php, GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php) NONE
+ Added spellcheck support. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php) NONE
+ Added a "preview" link.  This will link to the actual announcement.  The preview feature is still not in. (GlobalAnnouncementsAdmin.php, GlobalAnnouncementsAdmin.template.php) YES



JayBachatero

Heckel what package are you using?  Use this one.

K_4_kelly,  The question about errors with posting was because the post page uses $func but later on I found out that I was using something thst is only in RC3.  That's whe happens when you use CVS build :P.
Follow me on Twitter

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

JayBachatero

Ok I just found out that the spellcheck support was not working dues to a few things that I missed.  It will be fixed inthe next release 0-3.  Not sure when that will be since I still have to add the order stuff.  Hopefully I can get it out by this weekend.
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!

Jay, the error continue here...

I tried to perform the install.xml and I find that this operation(in Subs.php) fails:

<operation>
<search position="before"><![CDATA[
if (!empty($modSettings['modlog_enabled']))
$context['admin_areas']['maintenance']['areas']['view_moderation_log'] = '<a href="' . $scripturl . '?action=modlog">' . $txt['modlog_view'] . '</a>';
}
]]></search>
<add><![CDATA[

//A new mods section for the Global Announcements.
if (allowedTo('global_announcements_admin'))
{
$context['admin_areas']['ga_admin'] = array(
'title' =>  $txt['global_announcements_mods'],
'areas' => array(
'ga_admin' => '<a href="' . $scripturl . '?action=globalAnnouncementsAdmin">' . $txt['global_announcements_admin'] . '</a>',
),
);
}
]]></add>
</operation>


And I find that $modSettings['modlog_enabled'] don't exist in my Subs.php..., any idea?

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

JayBachatero

Ummm weird.   You are on RC2 right?
Follow me on Twitter

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

HecKel

Yes..., I upgraded last week.

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

JayBachatero

Can you post up the Subs.php file?
Follow me on Twitter

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

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

colleenbbr

I was just browsing this forum and came across this post. I just wanted to say YOU ROCK Jay! Thank you for another awesome mod :D

colleenbbr

Ok, I *thought* this installed properly. It shows up just as you posted here in my admin section, yet when I add an announcement it is not showing up on my forums? I checked and it is enabled...am I missing something somewhere in my cpanel maybe?

Any advice would be greatly appreciated :D

JayBachatero

What theme are you using?  If your theme has a custm MessageIndex.template.php you need to edit that to add the theme stuff to it.
Follow me on Twitter

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

HecKel

Jay, any ideia about my problem?

Sorry be boring :(

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

colleenbbr

Thanks for the reply :D

I am using the Classic theme. Can you tell me what I need to add/change?

Thanks, you rock!

JayBachatero

Sorry about that HecKel.  I totally forgot about that.  I looked at the file before I went to work and forgot to reply.  The file is imcomplete.  Just email it to me.  [email protected]

lisaTFG in MessageIndex.template.php for the classic theme.
Code (find) Select

if (!empty($options['show_board_desc']) && $context['description'] != '')
{
echo '
<table width="100%" cellpadding="6" cellspacing="0" border="0" class="tborder" style="border-width: 1px 1px 0 1px;">
<tr>
<td align="left" class="catbg" width="100%" height="24">
<span class="smalltext">', $context['description'], '</span>
</td>
</tr>
</table>';
}


Code (add after) Select

// Global Announcements...
if (isset($context['globalAnnouncements']) && count($context['globalAnnouncements']) != 0)
{
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr>
<td colspan="7" class="titlebg">Global Announcements</td>
<tr>
<tr>
<td class="catbg3" width="9%" colspan="2"></td>
<td class="catbg3">', $txt[70], '</td>
<td class="catbg3" width="14%">', $txt[109], '</td>
<td class="catbg3" width="4%" align="center">', $txt[110], '</td>
<td class="catbg3" width="4%" align="center">', $txt[301], '</td>
<td class="catbg3" width="22%">Time</td>
</tr>';

// Loop through the Global Announcements
foreach ($context['globalAnnouncements'] as $globalAnnouncement)
{
echo '
<tr class="windowbg2">
<td align="center">
<img src="', $settings['images_url'], '/post/' .$globalAnnouncement['ga']['icon']. '.gif" alt="" />
</td>
<td align="center">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td ' ,$globalAnnouncement['ga']['enabled'] == 0 ? 'style="background-color: #e9e9e9; color: #8d8d8d;"' : 'class="windowbg"', '>
<a href="' ,$globalAnnouncement['ga']['href'], '" >', $globalAnnouncement['ga']['subject'], '</a>
</td>
<td>
', $globalAnnouncement['member']['link'], '
</td>
<td align="center" class="windowbg">
--
</td>
<td align="center" class="windowbg">
', $globalAnnouncement['ga']['views'], '
</td>
<td>
', $globalAnnouncement['ga']['time'], '
</td>
</tr>';
}

echo '
</table>
</div><br />';
}

Follow me on Twitter

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

colleenbbr

Thank you so much Jay!!! It is working perfectly now, you are the best!!

HecKel

I allready email you my Subs.php, my real name is Gil Sousa, so that's not spam :p

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

JayBachatero

Actually you posted he file to a pastebin site :P.  I'll look at it in a bit the one you sent me.
Follow me on Twitter

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

JayBachatero

HecKel I just looked at the Source file and everything looks ok.  Not sure why it's not installing.  Can you PM 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

Advertisement: