[CDB] Quick Style

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

[CDB] Quick Style

Post by PayBas » Fri Apr 11, 2014 1:34 pm

Quick Style

Ported and updated extension for phpBB to quickly switch styles.
Based on Prime Quick Style for phpBB 3.0, by Ken F. Innes IV (primehalo)

Notes: I am not the original author, I just ported the MOD, added some functionality and created an extension. The original author said that he will perhaps update the MOD himself when phpBB 3.1 has been released. Until that time, you can use this extension.

More info & download: https://www.phpbb.com/customise/db/exte ... ick_style/
Last edited by PayBas on Fri Jun 27, 2014 1:48 pm, edited 7 times in total.

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Prime Quick Style

Post by PayBas » Fri Apr 11, 2014 1:58 pm

You can put <!-- EVENT quickstyle_event --> anywhere in your template to display the style switcher.
Last edited by PayBas on Sat Apr 26, 2014 8:46 am, edited 1 time in total.

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: [DEV] Prime Quick Style

Post by VOLKERMORD » Sun Apr 13, 2014 9:44 am

It was a security bug in this mod,not sure it was fix.
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Prime Quick Style

Post by PayBas » Sun Apr 13, 2014 10:13 am

VOLKERMORD wrote:It was a security bug in this mod,not sure it was fix.
I ported the latest version.

Judging from the changelog of the original mod (https://www.phpbb.com/customise/db/view ... l/id_53693) I think it was squashed.

That doesn't mean that my port is bug-free however. Currently known issues: https://github.com/PayBas/QuickStyle/issues

User avatar
Raul [ThE KuKa]
Jr. Extension Validator
Posts: 4689
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Prime Quick Style

Post by Raul [ThE KuKa] » Sun Apr 13, 2014 6:48 pm

VOLKERMORD wrote:It was a security bug in this mod,not sure it was fix.
I speak privately with primehalo (I do not remember exactly when), and security bug is solved.

This is security Bug (not direct link, delete spaces):
*removed unneeded link*
Last edited by Paul on Sun Apr 13, 2014 6:54 pm, edited 1 time in total.
Reason: Removed link
If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
phpBB International Support Team (Spanish - Español) :flag_es: Online Since 2003 - 15th anniversary
🎨phpBB Professional Premium Themes🔥
Author Translations (Spanish - Spain) :two_hearts:

:warning: I don't support those without the copyright Spanish translation. :warning:

User avatar
VOLKERMORD
Registered User
Posts: 111
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)
Contact:

Re: [DEV] Prime Quick Style

Post by VOLKERMORD » Sun Apr 13, 2014 6:57 pm

Raul [ThE KuKa] wrote:
VOLKERMORD wrote:It was a security bug in this mod,not sure it was fix.
I speak privately with primehalo (I do not remember exactly when), and security bug is solved.
Yep that i was tallk about,I'm glad that has been fix ;)
Last edited by VOLKERMORD on Sun Apr 13, 2014 7:00 pm, edited 3 times in total.
Har tios tintoninos insus tiko is dakon kand sia til kogaion ilmaton hlioylo pleiste naktoilo

User avatar
Raul [ThE KuKa]
Jr. Extension Validator
Posts: 4689
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [DEV] Prime Quick Style

Post by Raul [ThE KuKa] » Sun Apr 13, 2014 6:57 pm

Sorry for the link Paul. :oops:

Hard translation Spanish. :mrgreen:

Code: Select all

<?php
/**
*
* prime_quick_style [Spanish]
*
* @package language
* @copyright (c) 2008-2014 Ken F. Innes IV
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'PRIME_QUICK_STYLE'	=> 'Estilo',
));

?>
If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate with Image
phpBB International Support Team (Spanish - Español) :flag_es: Online Since 2003 - 15th anniversary
🎨phpBB Professional Premium Themes🔥
Author Translations (Spanish - Spain) :two_hearts:

:warning: I don't support those without the copyright Spanish translation. :warning:

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Prime Quick Style

Post by PayBas » Mon Apr 14, 2014 11:47 am

Should work for guests now too.

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Quick Style

Post by Mess » Fri May 09, 2014 8:38 am

I have a feature request. :)
Would it be possible to include an option for a simple style changer, for use when its only colors which change? And use icons to change theme instead of a dropdown? I'm not a huge fan of the current dropdown, but I really appreciate the functionality.

Like Christian bullock did (and many others before him).
Image

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Quick Style

Post by PayBas » Fri May 09, 2014 8:51 am

Mess wrote:I have a feature request. :)
Would it be possible to include an option for a simple style changer, for use when its only colors which change? And use icons to change theme instead of a dropdown? I'm not a huge fan of the current dropdown, but I really appreciate the functionality.
Are your styles really separate styles (as in separate entries in the DB)? Because a style switcher is somewhat different from a color switcher (which just loads a different .CSS file). Secondly, I'm not sure how we would represent these styles. phpBB doesn't know what the dominant color of a style is. So I'd have to come up with some smart way to do this.

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Quick Style

Post by Mess » Fri May 09, 2014 9:01 am

PayBas wrote:
Mess wrote:I have a feature request. :)
Would it be possible to include an option for a simple style changer, for use when its only colors which change? And use icons to change theme instead of a dropdown? I'm not a huge fan of the current dropdown, but I really appreciate the functionality.
Are your styles really separate styles (as in separate entries in the DB)? Secondly, I'm not sure how we would represent these styles. phpBB doesn't know what the dominant color of a style is. So I'd have to come up with some smart way to do this.
I'm only considering css changes, so no. Not a complete style change.
I see where you are going. What I'm requesting is not really related to this mod, as its different functionality.
And starting to make ACP options to define icons and what not, is probably an entirely different ext.
Sorry, I didn't think it through. :)

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Quick Style

Post by PayBas » Fri May 09, 2014 9:04 am

Mess wrote:
PayBas wrote:
Mess wrote:I have a feature request. :)
Would it be possible to include an option for a simple style changer, for use when its only colors which change? And use icons to change theme instead of a dropdown? I'm not a huge fan of the current dropdown, but I really appreciate the functionality.
Are your styles really separate styles (as in separate entries in the DB)? Secondly, I'm not sure how we would represent these styles. phpBB doesn't know what the dominant color of a style is. So I'd have to come up with some smart way to do this.
I'm only considering css changes, so no. Not a complete style change.
I see where you are going. What I'm requesting is not really related to this mod, as its different functionality.
And starting to make ACP options to define icons and what not, is probably an entirely different ext.
Sorry, I didn't think it through. :)
Color switchers are a function of the styles themselves. So it would be possible to have a style switcher and a color switcher. But that's up to the style authors, not me ;).

That being said, it should be possible to change the dropdown to something else, but I'm not exactly sure what the best way to proceed is (it would also get pretty cluttered if you have many styles installed).

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [DEV] Quick Style

Post by PayBas » Fri May 09, 2014 9:11 am

Additionally, if you don't like the way the select/dropdown looks, you can style it using some CSS tricks:

Code: Select all

select {
	background: #FAFAFA url("./images/icons/select.png") no-repeat 100% center;
	border-color: #11A3EA;
	color: #28313F;
	-webkit-appearance: none; /* Removes default chrome and safari style */
	-moz-appearance: none; /* Removes Default Firefox style */
	text-indent: 0.01px; /* Removes default arrow from firefox */
	text-overflow: "";  /* Removes default arrow from firefox */
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
	select {
		padding-right: 10px;
	}
}
This will allow you to do something like this:
Image

User avatar
PayBas
Former Team Member
Posts: 930
Joined: Thu May 25, 2006 12:37 am

Re: [BETA] Quick Style

Post by PayBas » Fri Jun 27, 2014 1:49 pm

Release updated. Changed topic to [BETA]

https://github.com/PayBas/QuickStyle/releases

User avatar
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [BETA] Quick Style

Post by marian0810 » Sat Jul 05, 2014 2:05 pm

Not sure if I'm doing something wrong but if I disable it for guests in my ACP it disappears for logged in users too?
You and me, time and space. You watch us run!

Locked

Return to “Extensions in Development”

Who is online

Users browsing this forum: Galixte de EzCom, v12mike and 21 guests