ElkArte Community

Elk Development => Theme development => Topic started by: meetdilip on May 16, 2014, 12:35:55 pm

Title: Post bit suggestion
Post by: meetdilip on May 16, 2014, 12:35:55 pm
Please comment on this. Though it says mod, I meant admin. Instead of buttons, different colours for different ranks.

(http://www.elkarte.net/community/index.php?action=dlattach;topic=1430.0;attach=958;image)
Title: Re: Post bit suggestion
Post by: meetdilip on May 16, 2014, 12:38:27 pm
Post bit admin, gmod and mod in green colour. Unable upload. It says security check failed.

Title: Re: Post bit suggestion
Post by: Allan on May 16, 2014, 12:49:08 pm
I was thinking you could do this now in css, but I wouldn't know how to do add to a specific member group.
Title: Re: Post bit suggestion
Post by: meetdilip on May 16, 2014, 01:01:02 pm
Quote from: Allan – I was thinking you could do this now in css, but I wouldn't know how to do add to a specific member group.

I think that will help implementing it in a better way. We will be able to allow users to choose any colour of their choice.
Title: Re: Post bit suggestion
Post by: emanuele on May 16, 2014, 03:26:35 pm
Dunno... yeah, it may be useful in some way, though I can imagine different people may want different ways of "highlight" the poster area?

One option that (at least for now) would give quite a bit of flexibility even for mods, could be to add a kind of "hook" to the area with the possibility to add custom classes, something like:
Code: [Select]
			echo '
<ul class="poster', !empty($message['member']['class']) ? ' ' . $message['member']['class'] : '', ">'

That would allow anyone (i.e. any addon) to add any class to that area.
Title: Re: Post bit suggestion
Post by: Allan on May 16, 2014, 03:57:05 pm
Not that I would know how or where to apply that  :-[
 
Title: Re: Post bit suggestion
Post by: emanuele on May 16, 2014, 06:00:50 pm
Don't worry, actually this was an hypotheses for a change in the theme. ;)
Title: Re: Post bit suggestion
Post by: meetdilip on May 16, 2014, 06:14:56 pm
That's Ema's way of saying this not good :P
Title: Re: Post bit suggestion
Post by: Spuds on May 17, 2014, 10:05:36 am
Quote from: meetdilip – Unable upload. It says security check failed.
Thats strange that it took the other two files ... if you still have the old one could you add it to a zip and upload it, I'd like to take a look.   Image files get a sniff test for a few things and its been none to falsely trigger.

QuoteOne option that (at least for now) would give quite a bit of flexibility even for mods, could be to add a kind of "hook" to the area with the possibility to add custom classes, something like:
That looks like a good idea, at least an addon etc could style it then.   Be nice to tie it in with the ACP edit member group area, could always add a class field to that panel and let the user assign them just like the icons.


Title: Re: Post bit suggestion
Post by: emanuele on May 17, 2014, 10:53:18 am
As a general suggestion, if a file you try to upload gives that warning, pack it into a zip and upload it again so that someone ( @Spuds ? :P) may have a look at it and see what is going wrong! ;D
Title: Re: Post bit suggestion
Post by: meetdilip on May 18, 2014, 03:17:38 am
Here you go ;)
Title: Re: Post bit suggestion
Post by: Spuds on May 18, 2014, 09:00:02 am
Thanks, I'll take a look  :D
Title: Re: Post bit suggestion
Post by: Spuds on May 18, 2014, 09:53:07 am
I think I have this one figured out, will make an update so it does not happen again.  In this case it thought it had a flash signature in the file, and that's partly true but can be avoided.  Thanks for the file!
Title: Re: Post bit suggestion
Post by: meetdilip on May 18, 2014, 10:31:47 pm
Happy about that  :)