https://www.icyphoenix.com/viewtopic.php?f=28&t=6280
-----------------------------------
Lopalong
Wed 12 Aug, 2009 11:55

[MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
[b]Title:[/b]
   ACP Site Announcement Centre

[b]Description:[/b]
   Adds a site announcement box to the top of your forums that can be edited easily in the admin panel.
   You can preview it before posting and BBCode and smilies are supported.
   Latest or First post of either a forum or topic can be chosen for announcements as well.
   Admin can choose who should see the Site Announcements (All, Registered, Mods, Admin only).
   Separate announcements for guests only can be shown.

[url=http://icyphoenix.com/viewtopic.php?p=46376#p46376][b][color=blue]Download the Latest Version Here![/color][/b]

[url=http://www.icyphoenix.com/viewtopic.php?p=43298#p43298][b]Other helpful Documentation - [i]"How to add the SQL for the MOD using Icy Phoenix"[/i][/b]

[url=http://icyphoenix.com/viewtopic.php?p=35259#p35259][b]Additional Language Files[/b]

[b]MOD Updated 26th August 2009 - 08:00pm.[/b]


-----------------------------------
Yros
Sat 29 Aug, 2009 17:48

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Thanks a lot for this mod but I think he isn't stable yet.
Depending of the theme I use, it show or not.
When I try with prosiler_ip ( black or blue ) it doesn't show.
When I try with black pearl, it show but it seems it doesn't update if I change the text.
And maybe this mode is the origin of my bug with viewforum : it mb disable navigation bar at the top ( below the header ).
=/


-----------------------------------
Lopalong
Sun 30 Aug, 2009 02:12

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
And I'm a mind-reader? :(

A LINK to your forum please.  :shock:


-----------------------------------
Yros
Sun 30 Aug, 2009 03:28

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
[b]Okay let's go ^^ :


1. Their site url (If not adult or warez)[/b]
http://aelyon.eg2.fr/ ( RP forum / Writing board )( french )
[b]2. The version of Icy Phoenix they are using.[/b]
1.3.xxx ( the latest one ù.ù )
[b]3. Their Computer OS.[/b]
Windows XP
[b]4. What browser they normally use.[/b]
Firefox 3.5 ( last stable version )
[b]5. Whether their server is Free or Paid.[/b]
Free server but everything provided ^^
[b]6. The name of the provider if it's a free host.[/b]
http://www.espace-gratuit.org/  === Espace-Gratuit ( french )
[b]7. Fully describe their problem or request.[/b]
I found some bugs with Site Announcement Centre, chief :nerd: I'll try to list all I found :
- Difference between logged and guest user is OK
- Sending SQL to DB for update the text is NOT OK !
- Not Compatible with prosilver_ip ( black or blue )
- Make a bug on viewforum.php and disable navigation header ( check 5thh post of [url=http://www.icyphoenix.com/viewtopic.php?f=2&t=6389]this topic for more informations - the one with pictures -). That's common to each themes I tried : black_pearl, black and blue prosilver_ip and Frozen Icy. My only mods are Page Permission, Topic Cement and ACP Annoucement Centre.
[b]8. Post any actual Error Messages they get and NOT "Something like this"[/b]
Hummm just did **

Cap'tain Yros, waiting your orders, sir ! :smartass:

Ps : My mod version :
[code linenumbers=false]INSERT INTO ip_announcement_centre (announcement_desc, announcement_value) VALUES('announcement_mod_version', 'v1.2.3');[/code]


-----------------------------------
Lopalong
Sun 30 Aug, 2009 03:53

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
1. All MODS are written for the Default Style - Frozen Phoenix.
2. This url http://aelyon.eg2.fr/forum.php?&s=1 indicates that you don't have it installed on your site.
3. Please install the Default Style and test the MOD with that.
4. I believe the Guest / Member problem is a [b]PICNIC[/b] = [i]Problem in chair not in computer.[/i]

But I will check it out later. ;)

The version number is immaterial.


-----------------------------------
Yros
Sun 30 Aug, 2009 04:06

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
I deleted it and installed it back on local =/
The real prob for text updating is this : When I change both ( for registered user, TEXT A, and for guests, TEXT B) and that I click on " submit ", it seems to load the page and show me the same page with default texts for both.

EDIT : I will try to be neater :
1st prob/ text doesn't update ( for each template )
2nd prob/ announce doesn't show on prosilver_ip ( both theme )
3rd prob/ In each template, the navigation header disappear in viewforum.php ( check my link before )

Is that better ? =x


-----------------------------------
Lopalong
Sun 30 Aug, 2009 06:52

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Re the problem with the same messages:

Check this radio button and see if anything changes.

[b]Show to:[/b] 	 Everyone   [b]X [/b][b]Registered Users[/b]    Moderators    Admins

[b]Different for Guests:[/b]  [b]X [/b][b]Yes[/b]   No
If Yes, you cannot use "Show to: Everyone".

[b]Edit:[/b] If you are using the preview window to add text - It may be a good idea to hit the "Preview" button to write it to the buffer, before "sending" it to site or guest announce etc.

Because at the moment - I can't find anything wrong with it.  :?: 

As for ProSilver - I base the mods on the default template set and nothing else. Otherwise I would be writing or adjusting mods for every different theme / style that comes along. And I'm afraid that I have been down that road too often before to want to start doing it again.

proSilver is in my opinion a "Custom" theme.

Try first to adjust it yourself, and if you can't then please ask for help for someone to modify it for you. ;)


-----------------------------------
Yros
Sun 30 Aug, 2009 10:42

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
In your opinion, which theme is the most compatible with Icy Phoenix ? Frozen Phoenix ?

Anyway that still strange because I installed it again ( for see if I didn't make a mistake ) and I had the same problem =/ For prosilver_ip it's not strange if it doesn't show up : I forgot to modify prosilver_ip/index_body.tpl ^^' ( it's ok for that then ).

My main problem is that I can't update my text : that's as if I could click on " submit " as much as I want and it will do nothing =/ My config in ACP seems good ... That " submit " button doesn't send SQL change that's all ... ( something like that ) >< Can you check the compatibility with Topic Cement and/or Page Permission ? Maybe the answer is here ... These are my only mods install : one of these is surely the origin of my probs x_x'


-----------------------------------
Chaotic
Sun 30 Aug, 2009 12:02

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
I'm using a spin-off of Limun's vB_black style and this MOD installed perfectly without any issues whatsoever.

Maybe you should go back and try to install it again paying very close attention to every edit required.  It wouldn't hurt anything. 8)


-----------------------------------
Lopalong
Sun 30 Aug, 2009 12:18

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
@ Yros,   

OK,

It's obvious that you are having problems with this, so lets see if we can resolve what it is step by step. ;)

I don't mind uninstalling and re-installing either the MOD or a new copy of Icy Phoenix for that matter. But I do need to know 1 of 3 things.

1. Did you cut and paste the SQL to the Db. ?
2. Or Did you use db_update.php
3. Or did you add the SQL manually using phpMyAdmin ?

And lets forget "Templates" at the moment. ;)


-----------------------------------
Yros
Sun 30 Aug, 2009 13:07

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
It's ok for templates as I said ! XD
About SQL I put it via phpMyAdmin directly ( didn't use db_update ).
[...]
Because of your question, I just tried to delete my table acp_announcement_center and I used db_update this time but it changed nothing =(

@ Chaotic : as I said I already checked if I didn't make a mistake during files editing but I did not =/

Can you try yourself Lopalong to install your mod + Topic Cement and Page Permission for see if it's not something about compatibility of these mods ? =x Dunno =/

EDIT : I also check if I didn't make a mistake with one of the other mod as if I hardly believe that it could be the reason of my probs with Announcement Centre =/


-----------------------------------
Lopalong
Sun 30 Aug, 2009 13:30

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
[quote user="Yros" post="43823"]Can you try yourself Lopalong to install your mod + Topic Cement and Page Permission for see if it's not something about compatibility of these mods ? =x Dunno =/[/quote]

I've got a [b]BETTER[/b] idea - You [b][i]uninstall[/i][/b] your [b]OTHER[/b] MODS if you think they could be the problem!

I have[b] NO[/b] intention of installing other mods OR Themes for that matter to see if anything conflicts with what you have done.

If it doesn't work with what other MODS you have have added - Then uninstall it.

And if it doesn't work with "Custom" themes - Then it's YOUR problem.

Let's get one thing straight - No one is here to spoon feed you when you need to cross the t's and dot the i's - Me in particular.

There are basics to html and css that quite possibly you should learn and try some things yourself before you scream for help!

Anyway, Ill re-check this MOD on a fresh install of both Icy Phoenix and the database and let you know.

[b]Edit:[/b]

Fresh install of Icy Phoenix and Site Announcement Centre and there are no problems.

So no! it's NOT unstable as you suggested in your first post, as there are lots of things that the user does that we have no control over - That's when things become unstable!


-----------------------------------
Yros
Mon 31 Aug, 2009 14:02

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Aw strange : I didn't see you replied =X
If I asked you to do it that was because I wasn't here yesterday, that's all. About basics html and css knowledge, don't worry : I've it.
« Let's get one thing straight - No one is here to spoon feed you when you need to cross the t's and dot the i's - Me in particular. » Thanks for this sentence ^^ I didn't know it, I will notice for improve my english ** About the sense himself, I won't reply.

Anyway, I think you will be happy to know that I found where was the mistake : my package wasn't updated. Maybe because I downloaded it the 27th and you updated it at midnight. Kinda unlucky, isn't it ? As you said so well, Let's get one thing straight : If you doesn't notice in any way that you update your mod, how users can know if they have the latest version ... ? ( That's why, normally, mod authors use versions for their mod " 1.x 2.x etc ... " ).
But that's not what I matter ( as if you could ask if I had the latest one and try to update mod files but n/c ). What I matter is your irritation of your reply. I always am polite and I just ask for help. If you don't want to help me, then say " Sorry but I haven't time for find your prob " or something else. If you help me, I'll be grateful, of course, but I think your idea of " spoon feeding me " is unjust and result of your wounded pride when I said your mod could be unstable.

But I thanks you to think that all users haven't any knowledge in html/php/css and that you are so better than them. I suppose you're not the father of some children because if you were you wouldn't have say that you wouldn't " spoon feed me " because when you're a father, you can be as good as you want, you nevertheless will have to do it. You can take it as you want : I disliked how you replied to me and I just said what I think. Now it doesn't mean that I dislike you or something else ... I hope things are cleared. Anyway, thanks for the time you spent for me and for your help.

Best regards,


-----------------------------------
Chaotic
Mon 31 Aug, 2009 18:02

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
[ot]OK guys.  Please keep the discussion on topic and please keep your cool when typing responses.  This type of bantering shouldn't be here.  If you are supporting a user and you think you are about to lose your marbles, please leave for a few minutes and come back with a clear mind.  Yros, we hope you understand everyone here is working for free and it's very important to be as concise as possible when posting issues with MOD'S.

[b]This will be the end of the off-topic discussion and bantering.  Icy Phoenix members will be polite with one another.  If you have any questions or concerns, please contact me via PM.[/b][/ot]


-----------------------------------
Yros
Mon 31 Aug, 2009 18:16

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
I do ^^' That's why there are my last sentences and that's also why I try to do my best for help as I can ( translation, help when I can on General support, reporting bugs, ... ). If I went too far in my last post, I present my excuses ( to/at/for ?) those I've offend. As I said, I always tell what I think with a great franchise as if it can be reprehensible. Then, sorry ^^'


-----------------------------------
DWho
Mon 31 Aug, 2009 22:02

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Just to clarify i have this mod installed on my test site....

my test site has all my mods installed and about 4 of Lopalongs...

this mod works fine on my site no problems at all

FYI

 :mrgreen:  :mrgreen:


-----------------------------------
Lopalong
Tue 01 Sep, 2009 02:28

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Sorry Mike - Wasn't aware you posted before me. ;)

@ yros,

I think this deserves an answer.

The only thing re the update was that I added a date etc to benchmark a time to the first post, and DWho only has the "Latest" available anyway.

Irrespective of the problem, the available download file remained the same; and if for some reason you had managed to download the previous version for IP 1.3 then the only changes made to the latest was to to upgrade some $HTTP_POST_VARS to $_POST etc in preparation for PHPv6. They also work with PHP5* etc.

I've also tested the pre-updated version and find nothing wrong.

[b]As for my Parental status:[/b] My Children and Grandchildren think that I am the greatest thing since "Sliced Bread" - Even though I do have to pull the whip out now and again to [b]ALL[/b] of them.

As for what your initial problem was - I have no idea.

End of topic.


-----------------------------------
Yros
Tue 01 Sep, 2009 05:37

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
( I won't reply about personal things : I think it goes too far ^^ Sry for have come in such way )
( Edit : but I'm happy for you if your children have a so good opinion of you ^^ My own father could be happy the rest of his life if he had only 1% or just 0.5% of that from me xd But we move away the topic ... XD ). 

[...]

That's strange because this morning, when I've read your reply, I tried to see on my own if that was a problem of compatibility with the other mods ( as if I had some doubts ). That's why I made a fresh install with only ACP announcement center and when I tried it, it gave me the same problem than with my other mods : page wasn't updated. Then I saw that you updated your package the next day I downloaded it and I tried to see if that could change something. I compared install.txt with winmerge ( no change ) then I just updated root files into my fresh install with only your mod and, alleluia, this time everything was ok ! Had no problem and I could change both messages as I want.

Now, all I can tell is that my previous version of ACP Announcement Center I had a prob and when I updated it with your latest package, I had none. My conclusion after that is obvious ... =/ But that's all I can tell : I deleted old files, thinking there will be useless now and I didn't think to WinMerge each file for see what changed and what could have fix my prob ... But IMO it surely due to one of your modification in adm/admin_announcement_centre.php ... Needn't to be really intelligent for see that my prob was due to a miss sending of SQL quiery ( " submit " button malfunction, something like that ).

That's my opinion about my prob. I suppose now the most important isn't to find exactly why I bugged but rather that It's fixed ** I repeat my thanks for your help anyway ^^ Ty :p

( Edit 2 : Ah forgot your last line ... " My first prob " ? If you mean my problem of navigation header, it's not because of your mod ^^ I also checked it during the fresh install. It's not due to Topic Cement too. By elimination, I suppose it's due to page permission ... I will verify it and report it in the right place if need. For me I don't need page permission so it won't be a great lose ^^ ).


-----------------------------------
Aerosmith
Sun 06 Dec, 2009 00:00

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Thanks for the MOD.

Installed and working.

 [img]http://www.icyphoenix.com/files/images/141/_a_v_i_s_o__2_.png[/img] 

_______________________________________

Gracias por el MOD.

Instalado y funcionando.

[img]http://www.icyphoenix.com/files/images/141/_a_v_i_s_o__2_.png[/img]

------------------------------------------------------------------------------------------------------------


But when you put the ID of the forum or topic, I get this error.

__________________


Pero al colocar el ID del Foro o Tema, me da este error.


[code linenumbers=false]Error in getting announcement post

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2 AND p.post_id = pt.post_id ORDER BY p.post_id ASC LIMIT 1' at line 3

SELECT p.post_id, p.forum_id, p.topic_id, pt.* FROM ip_posts as p, POSTS_TEXT_TABLE as pt WHERE p.forum_id = 1,2 AND p.post_id = pt.post_id ORDER BY p.post_id ASC LIMIT 1

Line : 46
File : forum_a.php[/code]


-----------------------------------
Informpro
Mon 07 Dec, 2009 17:22

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Strange:  p.forum_id = 1,2


-----------------------------------
Aerosmith
Mon 07 Dec, 2009 18:24

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Esa fue la ultima prueba, en las otras pruebas, puse un solo numero, y también me daba ese error.

¿Alguien tiene idea de como usar esa parte y el porque del error ?

Gracias.
_____________


That was the last test, in the other tests, I put a single number, and also gave me that error.

Does anyone have any idea how to use that part of the error and why?

Thanks


-----------------------------------
spydie
Mon 07 Dec, 2009 19:23

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
replace [code]POSTS_TEXT_TABLE[/code]

with [code]POSTS_TABLE[/code]


-----------------------------------
Aerosmith
Mon 07 Dec, 2009 21:17

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Spydie, en donde reemplazo ¿?

En forum_a.php ¿?
____________

Spydie, In which replacement?

In forum_a.php ¿?


-----------------------------------
spydie
Tue 08 Dec, 2009 00:53

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Line : 46
File : forum_a.php


-----------------------------------
Aerosmith
Tue 08 Dec, 2009 01:28

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Perfecto, mil gracias.  :up: 
____________

Perfect, thank you. :up:


-----------------------------------
Lopalong
Mon 11 Jan, 2010 11:15

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Download Link has been changed.  :wink:


-----------------------------------
ankur0412
Sat 02 Oct, 2010 18:29

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
Download link pls, I need this mod.


-----------------------------------
TheSteffen
Sat 02 Oct, 2010 19:28

Re: [MOD IPv1.3.0.*] Site Announcement Centre
-----------------------------------
One post should be enough  :x 
Question already answered.


