[MODDB] ACP Announcement Centre 1.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
Locked
User avatar
PSPDM
Registered User
Posts: 72
Joined: Sun Oct 07, 2007 12:40 am
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by PSPDM »

Code: Select All

// Generate birthday list if required ...


i couldnt find that can you help thanks
Image
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by lefty74 »

its around line 79

here is some code before and after

Code: Select all

		$legend .= (($legend != '') ? ', ' : '') . '<a' . $colour_text . ' href="' . append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=group&g=' . $row['group_id']) . '">' . (($row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $row['group_name']] : $row['group_name']) . '</a>';
	}
}
$db->sql_freeresult($result);

// Generate birthday list if required ...
$birthday_list = '';
if ($config['load_birthdays'] && $config['allow_birthdays'])
{
	$now = getdate(time() + $user->timezone + $user->dst - date('Z'));
	$sql = 'SELECT user_id, username, user_colour, user_birthday
		FROM ' . USERS_TABLE . "
		WHERE user_birthday LIKE '" . $db->sql_escape(sprintf('%2d-%2d-', $now['mday'], $now['mon'])) . "%'
			AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')';
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
PSPDM
Registered User
Posts: 72
Joined: Sun Oct 07, 2007 12:40 am
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by PSPDM »

:o i didnt have

// Generate birthday list if required ...

on my index.php and now it works but it shows double!

Image

EDIT:
lol nevermind i added <!-- INCLUDE announcement_centre.html --> twice!

thanks for help
Image
necer_cheniki
Registered User
Posts: 118
Joined: Sat Oct 06, 2007 10:45 am

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by necer_cheniki »

Hi
It is verry Nice mod .
but there is a problem in arabic language .
when i enter a arabic letters the page dislpay error SQL what is the solution . :mrgreen:
yaw_pakhtoon
Registered User
Posts: 107
Joined: Wed Sep 12, 2007 12:18 am

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by yaw_pakhtoon »

thanks really good mod.. gona try it asap..

:D
Image
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by lefty74 »

necer_cheniki wrote:Hi
It is verry Nice mod .
but there is a problem in arabic language .
when i enter a arabic letters the page dislpay error SQL what is the solution . :mrgreen:
hmm, i am not really sure.

you could try thiswhich is what i wanted to do in a future release anyway:

Code: Select all

ALTER TABLE `phpbb_announcement_centre`  DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
ALTER TABLE `phpbb_announcement_centre` CHANGE `announcement_desc` `announcement_desc` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL;
ALTER TABLE `phpbb_announcement_centre` CHANGE `announcement_value` `announcement_value` TEXT CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL;
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by lefty74 »

yaw_pakhtoon wrote:thanks really good mod.. gona try it asap..

:D
:mrgreen: cool
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
necer_cheniki
Registered User
Posts: 118
Joined: Sat Oct 06, 2007 10:45 am

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by necer_cheniki »

lefty74 wrote: hmm, i am not really sure.

you could try thiswhich is what i wanted to do in a future release anyway:

Code: Select all

ALTER TABLE `phpbb_announcement_centre` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;
ALTER TABLE `phpbb_announcement_centre` CHANGE `announcement_desc` `announcement_desc` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL;
ALTER TABLE `phpbb_announcement_centre` CHANGE `announcement_value` `announcement_value` TEXT CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL;
THINk you it works now verry well :D
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by lefty74 »

great, thanks for letting me know. :)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
RobinAndersson
Registered User
Posts: 121
Joined: Wed May 11, 2005 12:54 pm

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by RobinAndersson »

Hey guys.

I was wondering if anyone know how i could make it so that Bots see the announcement available to guests, and not what logged in users see. I mixed around little myself with "S_IS_BOT" in announcement_centre.html, but since Bots are registered users as well as bots, the announcements won't show up at all for them if You add either "and S_IS_BOT" or "and not S_IS_BOT" to the already existing 'IF' tags. I'd like the bots to index my welcome announcement, not my current server problems! ;)
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by lefty74 »

hi have not tried it myself whether it actually works but you could try (if you havent yet)

FIND

Code: Select all

<!-- IF ANNOUNCEMENT_ENABLE_GUESTS and not S_USER_LOGGED_IN and not ANNOUNCEMENT_SHOW_EVERYONE and not ANNOUNCEMENT_SHOW or ANNOUNCEMENT_SHOW-->
REPLACE WITH

Code: Select all

<!-- IF ANNOUNCEMENT_ENABLE_GUESTS and not S_USER_LOGGED_IN and not ANNOUNCEMENT_SHOW_EVERYONE and not ANNOUNCEMENT_SHOW or ANNOUNCEMENT_SHOW or ANNOUNCEMENT_ENABLE_GUESTS and S_IS_BOT -->
FIND (twice)

Code: Select all

<!-- IF ANNOUNCEMENT_ENABLE_GUESTS and not S_USER_LOGGED_IN and not ANNOUNCEMENT_SHOW_EVERYONE and not ANNOUNCEMENT_SHOW-->
REPLACE WITH

Code: Select all

<!-- IF ANNOUNCEMENT_ENABLE_GUESTS and not S_USER_LOGGED_IN and not ANNOUNCEMENT_SHOW_EVERYONE and not ANNOUNCEMENT_SHOW or ANNOUNCEMENT_ENABLE_GUESTS and S_IS_BOT -->
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.
RobinAndersson
Registered User
Posts: 121
Joined: Wed May 11, 2005 12:54 pm

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by RobinAndersson »

Lefty, Lefty, Lefty, You nice, wonderful guy. ;) Worked right away! I bow down to Your superiority. *bow, bow* :D
User avatar
TheMoustic
Registered User
Posts: 76
Joined: Sat Aug 25, 2007 1:32 pm
Location: France

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by TheMoustic »

Is it work with phpbb 3.0.0 ? (The lastest stable release)
Theory, it is when nothing works, and when we know why.
Practice, it is when everything works, and when we do not know why.

Here, both are combined: nothing works, and nobody knows why.
Albert Einstein
ibelphegor
Registered User
Posts: 453
Joined: Wed Oct 24, 2007 8:37 am

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by ibelphegor »

yes.. work perfect.
tauno
Registered User
Posts: 24
Joined: Wed Aug 01, 2007 6:36 pm

Re: [BETA] ACP Announcement Centre 0.1.0a

Post by tauno »

Sry that I may have missed it, but does it work with other themes besides subsilver2 and prosilver ?
Locked

Return to “[3.0.x] MODs in Development”