Lover |
|
||
---|---|---|---|
How can i do Group color ? with functions.php core hack ?
For do this critic zone code.
im thinking some magic touch enough , and i hope somena can do this :) |
Macik |
|
---|---|
In what plugin and what template you are using this function? What place of the site? https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
Lover |
|
||
---|---|---|---|
Siena last version /system/functions.php Open it !!! i know wtih this code zone can core hack and we can do grup color
For example it was im using Genoa version ! and this code for me working , but with Siena its not working any :) Macik how can we do this ?
|
Gökhan YILDIZ |
|
||||
---|---|---|---|---|---|
change your function:
open your css file and add anywhere:
Gökhan YILDIZ
|
Lover |
|
---|---|
Gökhan usta adamın dibisin ! ham maddesisin adamlığın bir fabrikası var ise ilk çıkan patentli ürünüsün teşekkür ederim |
Gökhan YILDIZ |
|
---|---|
Rica ederim kolay gelsin Gökhan YILDIZ
|
Macik |
|
---|---|
Core hack it's not a good solution anyway and a bad practice. I think it may be solved other way. So I repeat my question once more: from what part of the site you call this funciton or what template use it? https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
Gökhan YILDIZ |
|
---|---|
#39851 Macik: He's want to this solution supposed to appear everywhere Gökhan YILDIZ
|
Macik |
|
---|---|
#39853 Gökhan YILDIZ: I understand it. But there are no universal workaround (without corehack) for «everywhere», but for some paces it can be done with TPL or small plugin. https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F |
Gökhan YILDIZ |
|
---|---|
#39856 Macik:#39853 Gökhan YILDIZ: it is a temporary solution. soon I'll make a plugin. Gökhan YILDIZ
|
Kilandor |
|
||
---|---|---|---|
The current best solution that exists with no need for any core hacks would be to simply in any spot/area that shows or uses cot_build_user. Hook into that area, and overwrite the default tag by running it again and using the 3rd paramater to add a class. Here is just an example file of how you could add a class to the username of forum posts which would result in a class of group# # being their main group. You would need to hook into every area that displays tags and fix them though.
On another note, this is a long desired feature. I have just pushed a new commit to allow for custom function to be used. Added the ability to override cot_build_user with cot_build_user_custom This will allow a plugin to create a custom system to do anything group colors, images, any style changes you want. Or for simple changes you can simply enable custom function file in your config and add a new function cot_build_user_custom and then do whatever you want. This is of course what a plugin would/could do. |