[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!
Scam Warning
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 »

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 »

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: 119
Joined: Thu Jul 23, 2009 1:20 pm
Location: Dacia (Wolf land)

Re: [DEV] Prime Quick Style

Post by VOLKERMORD »

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 »

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]
Style Customisations
Style Customisations
Posts: 11138
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [DEV] Prime Quick Style

Post by Raul [ThE KuKa] »

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
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


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

Re: [DEV] Prime Quick Style

Post by VOLKERMORD »

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]
Style Customisations
Style Customisations
Posts: 11138
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo

Re: [DEV] Prime Quick Style

Post by Raul [ThE KuKa] »

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',
));

?>
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


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

Re: [DEV] Prime Quick Style

Post by PayBas »

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 »

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 »

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 »

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 »

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 »

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 »

Release updated. Changed topic to [BETA]

https://github.com/PayBas/QuickStyle/releases
marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian

Re: [BETA] Quick Style

Post by marian0810 »

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!

Return to “Extensions in Development”