[MODDB] ACP Announcement Centre 1.2.0

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!
Suggested Hosts
User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

the installation instructions are in the download in the first post.

you might want to read this before installing any mods
[Tutorial] How to install a MODX modification
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.

Fridge
Registered User
Posts: 307
Joined: Sat Nov 11, 2006 1:41 am
Location: Rotterdam, The Netherlands
Name: Martin
Contact:

Re: [Beta] ACP Announcement Centre 1.1.4

Post by Fridge »

Installed this version on a new 3.0.4 phpBB install and works great :)
Thnx Lefty ;)

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

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

thanks fridge
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 1.1.4

Post by lefty74 »

unknown2 wrote:So announcement only works for one topic right? It announces the posts that are posted on that topic right ?
if i had known this would keep going on like this i would have already moved this here ages ago...

it works in forum, topic and as post. you should just try it out a bit.
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.

GranpaSkunk
Registered User
Posts: 5
Joined: Thu Feb 26, 2009 9:46 pm

Re: [Beta] ACP Announcement Centre 1.1.4

Post by GranpaSkunk »

Thanks for this cool MOD Lefty, it works great. I love it. 8-) 8-) 8-)
I just wanted to tell you about a few things I noticed and have a couple of suggestions for help to non-coders.
I hope you don't take it as criticism because it is not, I have nothing but admiration for you guys, and would be lost without your brilliant MODS.

When I installed it, it showed up first time, however, when I first changed the text from the default it gave me some error, can't remember what it was, and haven't been able to replicate it since. It was a paragraph of black text on a blank page, something about SQL or something, I really can't remember. It happened 4 times or so.

I had tried to change the text size in the first bit of the default message and added my own text both within the [size] code and outside. To get round it I just kept it all one size. Then when I went back to edit the text just before typing this, [and after reading ALL 24 pages of the posts to see if there was a known fix] to see if I could replicate the error it wouldn't do it, no matter what I added, htmls, images, you name it.

Weird that, at first I had thought there may be some restriction on the length of the text or that there was a restriction on mixing sizes. Anyway, now it works, with images and links and formatting in the announcement, which is the important bit. So, I love it, great work. Just thought I'd mention it in case it cropped up again, and thought you'd like to know as it's a BETA.

One suggestion though, and that is, for us none coding and un-knowledgeable people, it could be made clearer that to view the installation instructions you have to run them in a browser. It took me a while to figure that out, but I got there by double clicking the file to see what it would do. Also, it would be worth clarifying that, to activate the MOD, you have to browse to the install file by adding it's address to your site's address, another thing which I eventually sussed out for myself, in the fashion

Code: Select all

 http://<my sites root url>/install.php
These things may seem obvious to you smart guys, and they do to me now I know, but to a noob [like I was/am] they are not. A slightly longer explanation in the install instructions for the activation, and a small 'read_me_first' text file in the package for viewing the install instructions would be enough.

Oh, and one more thing you could mention in your instructions is where to add the 'include' in the subsilver style. Only the Prosilver style is covered. Again I figured it out for myself as I had got myself used to mucking about in the overall_header.html file when I customized the subsilver to suit my needs.

GranpaSkunk
Registered User
Posts: 5
Joined: Thu Feb 26, 2009 9:46 pm

Re: [Beta] ACP Announcement Centre 1.1.4

Post by GranpaSkunk »

Hi Lefty, I need your help please. :D
I would like to alter two things. Could you tell me which parts of which files to do this in.

First I want to be able to adjust the formatting of Birthday Announcement so that the image appears next to [on the left of] the user name instead of above it, but leaving the combination centered. I have already changed the announcement_birthday_img to a file called birthday.gif to allow me to use an animated image.

Code: Select all

$announcement_birthday_img = '<img src="' . $phpbb_root_path . 'styles/' . $user->theme['imageset_path'] . '/imageset/birthday.gif" title="' . $user->lang['CONGRATULATIONS'] . '" alt="' . $user->lang['CONGRATULATIONS'] . '" />';	
Second I want to be able to format the colour of the user name and not have the user_colour,

Code: Select all

ANNOUNCEMENT_USERNAME'	=> get_username_string('full', $row['user_id'], $row['username'], $row['user_colour']
taken from the database, related to their group. I have created a class p.birthday in the CSS file, the text size and formatting works but the colour is overwritten by the user_colour.

Code: Select all

p.birthday {
	color: ffff00;
	font-weight: bold;
	white-space: normal;
	font-size: 1.8em;
}
It might be a nice touch if you were to include the options for this in the ACP, so the admin could select an announcement_birthday_img and have a choice of formatting for the username [eg. colour, font, size, bold, italic etc.] and also placement options [eg. image above or side-by-side]

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

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

GranpaSkunk wrote:When I installed it, it showed up first time, however, when I first changed the text from the default it gave me some error, can't remember what it was, and haven't been able to replicate it since. It was a paragraph of black text on a blank page, something about SQL or something, I really can't remember. It happened 4 times or so.
hi, the best way to help is to actually copy/paste the error message you are getting. This way I can see what and where the exact error is.
GranpaSkunk wrote:One suggestion though, and that is, for us none coding and un-knowledgeable people, it could be made clearer that to view the installation instructions you have to run them in a browser
if you look in the [3.0.x] MOD Database Releases forum, have a look at the first topic called [Tutorial] How to install a MODX modification. That should really be read before installing any mods! It is not really a topic that can be easily missed ;)
GranpaSkunk wrote:Also, it would be worth clarifying that, to activate the MOD, you have to browse to the install file by adding it's address to your site's address, another thing which I eventually sussed out for myself, in the fashion
that seemed to be obvious to me, i can change that in the install file tho
GranpaSkunk wrote:Oh, and one more thing you could mention in your instructions is where to add the 'include' in the subsilver style.
that is already mentioned in the install file ;)
Additional MODX Files

* en template: subsilver2
just click on the link ...

as for your customising questions, i dont have the time to look at this i am afraid, am busy with other things atm.
for the birthday img, have a look in the style/template folder, file is called announcement_centre.html, look for {ANNOUNCEMENT_BIRTHDAY_IMG}.
GranpaSkunk wrote:Second I want to be able to format the colour of the user name and not have the user_colour,

Code: Select all

    ANNOUNCEMENT_USERNAME'   => $row['username']
this will give you the username, it won't link to the profile tho.
GranpaSkunk wrote:
It might be a nice touch if you were to include the options for this in the ACP, so the admin could select an announcement_birthday_img and have a choice of formatting for the username [eg. colour, font, size, bold, italic etc.] and also placement options [eg. image above or side-by-side]
sorry, at this moment i am not really considering new features.
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
DragonMaster1
Registered User
Posts: 994
Joined: Tue Aug 17, 2004 11:04 am
Name: Terry
Contact:

Re: [Beta] ACP Announcement Centre 1.1.4

Post by DragonMaster1 »

having a slight problem

Awhile back you showed me how to set the birthdays to only show selected ones.

That has worked fine til now, but today I noticed that it has stopped working on the index when logged in, while not logged in, it shows the specialized birthdays fine

I have tried the regular announcements and that works fine also, just no birthdays using the selected ID’s that are set

The only thing I installed recently is lastRSS agregator 2.0.0RC:

http://www.phpbb.com/community/viewtopi ... 0&t=598734

But this is not messing with the regular announcements, as they continue to work correctly

I have tried all various settings and nothing shows the B’days if logged in

This is happening on both my test site and live site and no setting for announcements have been adjusted since they used to work

Any idea what to try to get these working again?

EDIT:

Nevermind...It’s working

The not logged in server time was making it show up early

AWWwwwww!!!! I gotta remember THAT :lol:

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

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

DragonMaster1 wrote:Nevermind...It’s working

The not logged in server time was making it show up early
lol i have been there before myself so i know what that DOH moment feels like ;)
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
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: [Beta] ACP Announcement Centre 1.1.4

Post by Greight »

When I want to open install page, I get this error :
Parse error: syntax error, unexpected $end, expecting ')' in /var/www/vhosts/enz.ir/subdomains/forum/httpdocs/includes/functions_posting.php on line 2333
Ther's no ) in that line !
can u help me ?

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

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

Greight wrote:When I want to open install page, I get this error :
Parse error: syntax error, unexpected $end, expecting ')' in /var/www/vhosts/enz.ir/subdomains/forum/httpdocs/includes/functions_posting.php on line 2333
Ther's no ) in that line !
can u help me ?
hi, please doublecheck your edits in includes/functions_posting.php

looks like a wrong edit to me.
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
Greight
Registered User
Posts: 163
Joined: Sun Jan 18, 2009 12:10 pm

Re: [Beta] ACP Announcement Centre 1.1.4

Post by Greight »

lefty74 wrote:
Greight wrote:When I want to open install page, I get this error :
Parse error: syntax error, unexpected $end, expecting ')' in /var/www/vhosts/enz.ir/subdomains/forum/httpdocs/includes/functions_posting.php on line 2333
Ther's no ) in that line !
can u help me ?
hi, please doublecheck your edits in includes/functions_posting.php

looks like a wrong edit to me.
No thats ok
I used the backed up file and no change. That error is shown again!

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

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

Greight wrote:No thats ok
I used the backed up file and no change. That error is shown again!
hmm,then you already had that error before.

if you want you can send me the file and i can see if i find the problem... looks like somewhere a ) is missing (not necessarily where it says it shoudl be)
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.

Chattalkcity
Registered User
Posts: 36
Joined: Fri Mar 06, 2009 12:26 am

Re: [Beta] ACP Announcement Centre 1.1.4

Post by Chattalkcity »

I installed with a error. Which, I installed this correctly... Fix..

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

Re: [Beta] ACP Announcement Centre 1.1.4

Post by lefty74 »

Chattalkcity wrote:I installed with a error. Which, I installed this correctly... Fix..
i bet you didnt, check your edits again.

edit: as you can see, my answer is as useful as your post.

I would need more information, i.e. what error and when did it appear :|
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.

Locked

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