|
Admin Coloured Posts
|
|
07-29-2006, 02:58 PM
Post: #1
|
|||
|
|||
|
Admin Coloured Posts
I'm looking to develop a mod (or someone else), where the administrator (or a certain usergroup)'s posts show up in a predefined colour, except when the colour tags are used.
A good example of this, is the World of Warcraft forums, where blizzard representative's posts show up in blue. Any help on what variables and what hooks to use, since I'm kinda stuck on where abouts it should go. Probably more when displaying the thread. I'd rather it not be a mod that automatically puts in color tags either. |
|||
|
07-29-2006, 05:17 PM
Post: #2
|
|||
|
|||
|
RE: Admin Coloured Posts
You could just make groups, then change the colors of the groups?
pwnt. |
|||
|
08-02-2006, 06:44 AM
Post: #3
|
|||
|
|||
|
RE: Admin Coloured Posts
ohh, what do you mean by "changing the colours of the groups"?
|
|||
|
08-07-2006, 12:18 PM
Post: #4
|
|||
|
|||
|
RE: Admin Coloured Posts
sorry, "bumping" for some more help. I'm kinda stuck on this one unfortunately.
|
|||
|
08-07-2006, 12:21 PM
Post: #5
|
|||
|
|||
|
RE: Admin Coloured Posts
mmm... that a good idea, id definatly use this modification. good for popular forums where theres alot of members and the admins/mods/+Members want to stand out.....
Sorry i cannot help in this mods development :-( |
|||
|
08-11-2006, 05:23 PM
(This post was last modified: 08-11-2006 07:21 PM by Netrosis.)
Post: #6
|
|||
|
|||
|
RE: Admin Coloured Posts
Ok,
I made the plugin, however it doesnt seem to be working >_> It works on my local computer (apache) but not where my website is hosted. Could someone please have a look and see what I've missed? ![]() PHP Code: <?phpIn, yet another edit, the following code works. So there must be something with the settings >_> PHP Code: function postingcolour() |
|||
|
08-17-2006, 12:21 AM
Post: #7
|
|||
|
|||
|
RE: Admin Coloured Posts
Sorry about the bump.
I'm just stumped on why its working on one version of my forums and not the other. The options all come up in the admin board settings. However it won't do what its supposed to do. The code doesn't show up, when it should. I double checked the usergroup settings too. :| any help would be appreciated!! |
|||
|
08-17-2006, 09:16 AM
(This post was last modified: 08-17-2006 01:46 PM by LeX-.)
Post: #8
|
|||
|
|||
|
RE: Admin Coloured Posts
Isn't it $mybb->settings['postcolourgroup'] ; $mybb->settings['postcolour'] and add $mybb as a global.
But in your code, i can't figure out how its ever gonna change the colour of the postmessage =z You could change the color of the message, just before its entered in the DB ... in newreply.php and newthread.php MyPluginsFor1.4 |
|||
|
08-17-2006, 02:14 PM
Post: #9
|
|||
|
|||
|
RE: Admin Coloured Posts
either code worked, once again, on my testing server, but not on the live version of the forums.
![]() it works by adding a Code: <font color="#000000">Code: </font> |
|||
|
08-17-2006, 02:23 PM
Post: #10
|
|||
|
|||
|
RE: Admin Coloured Posts
Well if your first code doesn't work, and your second code with the color changes in it works....
Then it is probably a problem with this variable: $settings['postcolourgroup'] and probably this variable as well $settings['postcolour'] Are you sure that those are the correct variables? Like the previous poster said.... that the variables are probably $mybb->settings['postcolourgroup'] and $mybb->settings['postcolour'] So try the following code: PHP Code: <?phpI don't know if it will work or not, as i did not try it. But the only difference in your code is that you changed the variables to actual values. (because it worked, that means that one of more of those two variables probably contain a null or incorrect value) |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)
Search
Member List
Calendar
Help






