| Author |
Message |
jmx-zero
Guest

|
Posted:
Sun Dec 14, 2003 6:14 pm |
  |
I run a site where we need eye-catching "breaking news". Like, really eye-catching. Sadly (or wonderfully, depending on how you look at it), we must cater to (I know, I know) people who aren't so... you know... "The AOL Generation" as I like to call them, so just doing a news post isn't good enough.
Cut to the chase:
I want to hack the broadcast (public) message system so the message stays up there for as long as I specify. If it helps any, I am comfortable editing PHP and doing database work... in fact, i've done a lot already, as you can imagine.
If it helps any this is what I found in nuke_public_messages:
| Code: |
mid content date who
3 <message> 1071454171 Overlord |
I have a feeling that maybe "date" values might be the solution... |
|
|
 |
 |
Raven
General


Joined: Mar 22, 2003
Posts: 5233
Location: USA
|
Posted:
Sun Dec 14, 2003 6:36 pm |
  |
In mainfile.php find this function towards the bottom: function public_message()
Modify the references to +600 to whatever you want. This is in seconds, btw. |
_________________ Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff |
|
    |
 |
Guest

|
Posted:
Sun Dec 14, 2003 7:21 pm |
  |
i did something similar but made sure that only admins and moderators cn send out messages to ensure that spam ist onthe the site. and that each submitter can have 3 messages not one. |
|
|
 |
 |
ShoKKer
Nuke Cadet


Joined: Dec 03, 2004
Posts: 5
|
Posted:
Thu Dec 02, 2004 9:46 pm |
  |
| Anonymous wrote: |
| i did something similar but made sure that only admins and moderators cn send out messages to ensure that spam ist onthe the site. and that each submitter can have 3 messages not one. |
Very interested in knowing more about restricting the messages to Admin and mods! Please help! |
|
|
    |
 |
bigtree
Sergeant


Joined: Feb 04, 2004
Posts: 100
|
Posted:
Tue Feb 15, 2005 3:42 pm |
  |
I would like to know this too. I want the broadcast message only active for admins or moderators. doesn anyone have this hack? |
|
|
   |
 |
ShoKKer
Nuke Cadet


Joined: Dec 03, 2004
Posts: 5
|
Posted:
Sat May 07, 2005 11:40 am |
  |
Would still like to have a solution to this. |
|
|
    |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1939
Location: Behind you
|
Posted:
Sat May 07, 2005 1:10 pm |
  |
Hm... This is a good idea to provide site users and administors with
1) public message duration
2) admin controls in admin CP
3) multiples.
Let me make a tweak code for this. |
_________________ Home of the Enterprise PHP-NUKE |
|
    |
 |
Guest

|
Posted:
Sat May 07, 2005 5:02 pm |
  |
Appreciate the reply! Have a definate couple of uses for it. I know it's asking alot but would also like to be able to use it with Platinum. If not..thats ok..Will find a way to make it work. |
|
|
 |
 |
ShoKKer
Nuke Cadet


Joined: Dec 03, 2004
Posts: 5
|
Posted:
Sat May 07, 2005 5:03 pm |
  |
|
    |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1939
Location: Behind you
|
Posted:
Sat May 07, 2005 6:41 pm |
  |
| Anonymous wrote: |
| Appreciate the reply! Have a definate couple of uses for it. I know it's asking alot but would also like to be able to use it with Platinum. If not..thats ok..Will find a way to make it work. |
I do not make a certain hack package for a variant of PHP-Nuke. My tweak and Hack are always for all PHP-Nuke. This means that I do make an installation manual not for just overwriting packages. Also, I don't know well about what phpnuke plantium is. As always, my tweaking has a primary purpose that all tweaks must work under all php-nuke. So, the plain php-nuke or some variants to keep the most compatible with plain php-nukes are the best, I believe. But, installing my tweak (that I will make) is up to you. Please, DO NOT ASK me to make a package for platinum or other hybrid variants. |
_________________ Home of the Enterprise PHP-NUKE |
|
    |
 |
Xyberian
Colonel


Joined: Mar 14, 2004
Posts: 1939
Location: Behind you
|
Posted:
Sat May 07, 2005 6:42 pm |
  |
|
    |
 |
ShoKKer
Nuke Cadet


Joined: Dec 03, 2004
Posts: 5
|
Posted:
Sat May 07, 2005 6:52 pm |
  |
| Xyberian wrote: |
| ShoKKer wrote: |
| Sorry..wasnt logged in. |
what did you mean by that? |
Not important.
Thank you for taking time to make the script. |
|
|
    |
 |
bigtree
Sergeant


Joined: Feb 04, 2004
Posts: 100
|
Posted:
Sun May 08, 2005 11:04 am |
  |
| Xyberian wrote: |
Hm... This is a good idea to provide site users and administors with
1) public message duration
2) admin controls in admin CP
3) multiples.
Let me make a tweak code for this. |
Xyberian, This will be a very popular mod indeed! Big Cheers! |
|
|
   |
 |
ShoKKer
Nuke Cadet


Joined: Dec 03, 2004
Posts: 5
|
Posted:
Sun Oct 23, 2005 9:26 pm |
  |
|
    |
 |
goof72
Guest

|
Posted:
Tue Oct 25, 2005 3:36 pm |
  |
5 months? Wow, tough mod!  |
|
|
 |
 |
|
|