[RC] Styles Demo 1.1.4

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
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

[RC] Styles Demo 1.1.4

Post by nedka » Sun Jul 24, 2016 10:35 pm

Extension Name: Styles Demo
Author: nedka

Extension Description: Style preview utility for phpBB, includes front-end and ACP styles.
Extension Version: 1.1.4 (1.2.4 for phpBB 3.2.x)

Requirements: phpBB 3.1.2+ or 3.2.x (2 different versions)

Features:
  • Preview front-end styles.
  • Preview ACP styles.
  • Test responsive design with 3 modes: desktop/tablet/phone.
  • Switch dual languages with styles.
  • Manage local style data or get remote data via JSON. An example JSON file can found in the 'contrib' directory.
  • Create style screenshots automatically using PhantomJS.
Demo URL: http://recyclebin.vinabb.vn/
Screenshots:
Image
Image
Image
Image
Image

Extension Download: v1.1.4 for phpBB 3.1.x ::: v1.2.4 for phpBB 3.2.x

Important Notes: This extension gives guests all admin permissions to allow them to access "the fake ACP" and play around with ACP styles. Why do that?
  • This extension is made for demo/testing sites, not in production.
  • Nothing is important on a demo site.
  • Guests can access ACP, but they can not make any changes because all submit buttons are disabled by PHP.
Link to the Demo with a specified style?
http://<your.com>/demo/#prosilver or http://<your.com>/demo/?style=prosilver

Create a local screenshot?
Create a <style_varname>.png and put it into ./ext/vinabb/stylesdemo/assets/screenshots/frontend/. The <style_varname> is the text which appears after # in URL, e.g. http://your.com/demo/#bootlike then the screenshot filename is bootlike.png.

How to create a ACP style to test?
  1. Copy ./ext/vinabb/stylesdemo/app/styles/_example and rename it, e.g. 'test'.
  2. Edit info in .../test/style.cfg.
  3. Copy ./adm/style to ./ext/vinabb/stylesdemo/app/styles/test/style.
  4. Copy ./adm/images to ./ext/vinabb/stylesdemo/app/styles/test/images.
  5. Open .../test/style/overall_header.html, find:

    Code: Select all

    <link href="style/admin.css
    and replace it with:

    Code: Select all

    <link href="{T_TEMPLATE_PATH}/admin.css
  6. Do above step again for .../test/style/simple_header.html
  7. Go to ACP -> EXTENSIONS -> Styles Demo -> Manage ACP Styles -> Add new ACP styles.
Last edited by nedka on Thu Sep 15, 2016 10:13 pm, edited 14 times in total.
VinaBB - Republic of phpBB

User avatar
nextgen
Jr. Style Validator
Posts: 2269
Joined: Mon Jul 26, 2010 10:58 pm
Location: Guatemala
Name: Melvin García
Contact:

Re: [BETA] Styles Demo 0.1.0

Post by nextgen » Mon Jul 25, 2016 12:55 am

Nice extension :)
メルビン・ガルシア • XeronixMy active styles for phpBBphpBB Argentina - Soporte en español🇦🇷

Please do NOT contact for support via PM or email.

User avatar
supanet
Registered User
Posts: 216
Joined: Sat Dec 15, 2012 4:20 pm
Location: UK
Contact:

Re: [BETA] Styles Demo 0.1.0

Post by supanet » Mon Jul 25, 2016 7:01 pm

Nice subscribed. 8-)

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

Re: [BETA] Styles Demo 0.1.0

Post by Raul [ThE KuKa] » Mon Jul 25, 2016 8:30 pm

I like, nice job!!!
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
phpBB Spain GitHub Account - ThE KuKa GitHub Account :bar_chart:
Author Translations (Spanish - Spain) :two_hearts:

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

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Styles Demo 0.1.0

Post by nedka » Mon Jul 25, 2016 9:37 pm

Thanks my friends :D Just add the package for 3.2.x to test. Since this extension comes with the fake ACP and exec() function, I think it has no chance to be validated. But some phpBB resource sites will need it, includes my site :D
VinaBB - Republic of phpBB

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka » Sat Aug 27, 2016 12:12 am

Updated to v1.1.1
- Redirect to demo page if any visitors go to our demo board directly.
- Allow registered users to preview ACP styles as guest.
- Enable Unicode support for the hover logo text.
- Basic support for RTL languages.
- Do not hide feature buttons on phone browsers.
- Fixed the disabled message for guests, since they have admin permissions.
- Removed old Open Sans fonts and go online.
- Removed the doubled style URL for language switcher.
VinaBB - Republic of phpBB

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

Re: [RC] Styles Demo 1.1.1

Post by Raul [ThE KuKa] » Sat Aug 27, 2016 8:02 pm

Test mode now!!! ;)

Nice update.
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
phpBB Spain GitHub Account - ThE KuKa GitHub Account :bar_chart:
Author Translations (Spanish - Spain) :two_hearts:

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

User avatar
zardos
Registered User
Posts: 98
Joined: Mon Feb 29, 2016 12:23 pm

Re: [RC] Styles Demo 1.1.1

Post by zardos » Sat Aug 27, 2016 10:45 pm

Very very nice, thankyou. ;)

Miri4ever
Registered User
Posts: 292
Joined: Sat Mar 07, 2015 11:18 am

Re: [RC] Styles Demo 1.1.1

Post by Miri4ever » Wed Aug 31, 2016 5:49 pm

Installed this exentsion and seems working fine, but a day later I noticed that I was not anymore able to login at my board and always got redirected to:

app/demo

folder. After disable this exentsion via PHPMYAdmin I was able again to login at my side and got no more redirect to this app/demo folder.
Homepage: Terra Oceanica

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka » Wed Aug 31, 2016 10:10 pm

Raul [ThE KuKa] wrote:Test mode now!!! ;)

Nice update.
Hi Raul, I'm very glad to see your demo site using this ext :D I remember I visited last month, it seems that you are my first customer :D
Miri4ever wrote:Installed this exentsion and seems working fine, but a day later I noticed that I was not anymore able to login at my board and always got redirected to:

app/demo

folder. After disable this exentsion via PHPMYAdmin I was able again to login at my side and got no more redirect to this app/demo folder.
Are you using an admin account but not founder? Please use the founder account to login and manage ACP since this ext gives guests admin permissions. In order, founder can use any page without redirecting to demo page.
VinaBB - Republic of phpBB

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

Re: [RC] Styles Demo 1.1.1

Post by Raul [ThE KuKa] » Thu Sep 01, 2016 4:09 pm

nedka wrote:Hi Raul, I'm very glad to see your demo site using this ext :D I remember I visited last month, it seems that you are my first customer :D
:mrgreen:

Well, but now it's time to new requests or features... :P

1- It would be possible to add style data (e.x. author, version, author URL, URL official support, etc.) from the ACP?
2- It would be possible to add two mirros for each style (e.x. mirror my server, mirror SourceForge or GitHub) from the ACP?

I think it would be interesting for me :mrgreen: and good features in general. ;)

Best regards.
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
phpBB Spain GitHub Account - ThE KuKa GitHub Account :bar_chart:
Author Translations (Spanish - Spain) :two_hearts:

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

Miri4ever
Registered User
Posts: 292
Joined: Sat Mar 07, 2015 11:18 am

Re: [RC] Styles Demo 1.1.1

Post by Miri4ever » Thu Sep 01, 2016 8:46 pm

Are you using an admin account but not founder? Please use the founder account to login and manage ACP since this ext gives guests admin permissions. In order, founder can use any page without redirecting to demo page.
Sure my account has founders permissions and still saw demo link and was not able to login anymore after I was logged out. Or must permissions first changed before login out from the board, to be able to coming back ?
Homepage: Terra Oceanica

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka » Fri Sep 02, 2016 1:29 am

Miri4ever wrote:Sure my account has founders permissions and still saw demo link and was not able to login anymore after I was logged out. Or must permissions first changed before login out from the board, to be able to coming back ?
Open ext/vinabb/stylesdemo/event/listener.php and find: (Line 137)

Code: Select all

if (!$style && !$acp_style && !in_array($this->user->page['page_name'], array("app.{$this->php_ext}/demo/", "app.{$this->php_ext}/demo/acp", "app.{$this->php_ext}/demo/acp/")) && $this->user->data['user_type'] != USER_FOUNDER)
Replace with:

Code: Select all

if (!$style && !$acp_style && !in_array($this->user->page['page_name'], array("app.{$this->php_ext}/demo/", "app.{$this->php_ext}/demo/acp", "app.{$this->php_ext}/demo/acp/")) && $this->user->data['user_type'] != USER_FOUNDER && !defined('IN_LOGIN'))
Hope this will fix your problem.
Raul [ThE KuKa] wrote:Well, but now it's time to new requests or features... :P

1- It would be possible to add style data (e.x. author, version, author URL, URL official support, etc.) from the ACP?
2- It would be possible to add two mirros for each style (e.x. mirror my server, mirror SourceForge or GitHub) from the ACP?

I think it would be interesting for me :mrgreen: and good features in general. ;)

Best regards.
That sounds great your suggestions, the new version will implement them :D
VinaBB - Republic of phpBB

Miri4ever
Registered User
Posts: 292
Joined: Sat Mar 07, 2015 11:18 am

Re: [RC] Styles Demo 1.1.1

Post by Miri4ever » Fri Sep 02, 2016 8:43 pm

nedka wrote:
Miri4ever wrote:Sure my account has founders permissions and still saw demo link and was not able to login anymore after I was logged out. Or must permissions first changed before login out from the board, to be able to coming back ?
Open ext/vinabb/stylesdemo/event/listener.php and find: (Line 137)

Code: Select all

if (!$style && !$acp_style && !in_array($this->user->page['page_name'], array("app.{$this->php_ext}/demo/", "app.{$this->php_ext}/demo/acp", "app.{$this->php_ext}/demo/acp/")) && $this->user->data['user_type'] != USER_FOUNDER)
Replace with:

Code: Select all

if (!$style && !$acp_style && !in_array($this->user->page['page_name'], array("app.{$this->php_ext}/demo/", "app.{$this->php_ext}/demo/acp", "app.{$this->php_ext}/demo/acp/")) && $this->user->data['user_type'] != USER_FOUNDER && !defined('IN_LOGIN'))
Hope this will fix your problem.
Yes it fixes the LOGIN. Thanks, but I'm still not able to get to any page and can't even see the forums at INDEX.PHP. Still getting always the login page and can't view the side or forum as normal when extension is running. Still the same turning off exentsion and forum categories shown everything showing fine. That strange, but will keep searching what causing this issue.
Homepage: Terra Oceanica

User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka » Sat Sep 03, 2016 1:41 am

Miri4ever wrote:Yes it fixes the LOGIN. Thanks, but I'm still not able to get to any page and can't even see the forums at INDEX.PHP. Still getting always the login page and can't view the side or forum as normal when extension is running. Still the same turning off exentsion and forum categories shown everything showing fine. That strange, but will keep searching what causing this issue.
Yes, so strange but it makes me curious and exciting to find out the reason. The purpose of this redirection: if the visitors visit a page without ?style= (it means they do not preview styles) or type some dummy things as http://recyclebin.vinabb.vn/adsjashjasdgjhasdjasd ... will be redirected to the demo page.

Can you add:

Code: Select all

die(print_r($this->user->page));
before the line:

Code: Select all

redirect($this->helper->route('vinabb_stylesdemo_route', array('mode' => '')));
and let me know which print out the screen? :cry:

Anyway, you can ignore redirections by commenting out // the line 80:

Code: Select all

'core.user_setup_after'			=> 'redirect_to_demo',
VinaBB - Republic of phpBB

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: construaprende, van de werde and 15 guests

cron