Page 1 of 1

[DEV] Post Group Styles v.0.0.1 (Two Current Fixes)

PostPosted: 28 Oct 2011, 19:38
by Sekuro
Post Group Styles
(PGS)

MOD-Title: Post Group Styles
MOD-Version: 0.0.1
MOD-Author: 4seven

License: GNU General Public License v2

Request by: SvenLittkowski, Netframe
Request Threads:
http://www.phpbb.com/community/viewtopi ... #p12980432
http://www.phpbb.com/community/viewtopi ... #p13023327

MOD-Description: This Mod add post style attributes to given groups

phpBB-Version: phpBB 3.0.9
phpBB-Languages: en
phpBB-Styles: all Styles, that are based on prosilver

Demo: viewtopic.php?p=182#p182

News: http://www.phpbb.com/community/viewtopi ... #p13028076

Download:
Post_Group_Styles_PGS_v.0.0.1.zip
(94.66 KiB) Downloaded 507 times

Image

Image

Features:
- post style attributes for groups
- open jquery acp on grouplist
- controlled by admin only, no ucp settings
- text-colour, background-colour, border-colour and other styles

To Do:
- Adding language variables instead of hardcoded
- ??

Re: [DEV] Post Group Styles v.0.0.1

PostPosted: 28 Oct 2011, 19:38
by Sekuro
Demo

Usage:

- Login: ucp.php?mode=login (un: test / pw: testuser)
- Use the following links to administrate


- Click on PGC Style (Screen)
- Check out the Styling (jQuery Preview)
- If you want to overtake a colour from last config to new,
click in [# xxxxx] field in colour-picker and hit enter

- Result: viewtopic.php?p=15#p15

edit: demo server/links changed..

Re: [DEV] Post Group Styles v.0.0.1

PostPosted: 15 Aug 2012, 00:00
by Sekuro
Announcements

We found a bug in v.0.0.1:

If a member is newly added to a named group, he dont get the given style.
Therefore you must set the styling again. For 'old' group members all works ok on set.
Normally this should be set automatically on changing a member to a 'styled group'.

This bug will be fixed in v.0.0.2

Re: [DEV] Post Group Styles v.0.0.1

PostPosted: 08 May 2013, 23:22
by Sekuro
Two little bugfixes for v.0.0.1

bug1: js dont close the popup windows
reason1: jquery deprecates .browser var / code change

bug2: border cant set
reason2: coding hurry up error

fix1

open

styles/prosilver/template/pgc_swatch.html

find

Code: Select all
if ($.browser.webkit && (chrome !== true)) 


replace with

Code: Select all
// if ($.browser.webkit && (chrome !== true)) { 
// fix1
if (chrome !== true) 

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

fix2

open

styles/prosilver/template/pgc_swatch.html

find

Code: Select all
if($('#border_true').attr('checked')){ 


replace with

Code: Select all
 // if($('#border_true').attr('checked')){
// fix2
 if($('input#border_true:checked').length>0){ 

clear all board- and browser-caches

..the current v.0.0.1 package will be updated after some more tests