[ABD] Styles Demo 1.1.4

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

[ABD] Styles Demo 1.1.4

Post by nedka »

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.
User avatar
nextgen
Registered User
Posts: 2395
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 »

Nice extension :)
メルビン・ガルシア • nextgen Solutions

Please do NOT contact for support via PM or email.
User avatar
supanet
Registered User
Posts: 246
Joined: Sat Dec 15, 2012 4:20 pm
Location: UK
Contact:

Re: [BETA] Styles Demo 0.1.0

Post by supanet »

Nice subscribed. 8-)
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
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] »

I like, nice job!!!
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
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

Re: [BETA] Styles Demo 0.1.0

Post by nedka »

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

Re: [RC] Styles Demo 1.1.1

Post by nedka »

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.
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
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] »

Test mode now!!! ;)

Nice update.
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
zardos
Registered User
Posts: 130
Joined: Mon Feb 29, 2016 12:23 pm
Location: England, uk

Re: [RC] Styles Demo 1.1.1

Post by zardos »

Very very nice, thankyou. ;)
User avatar
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [RC] Styles Demo 1.1.1

Post by Miri4ever »

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

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka »

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.
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
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] »

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.
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
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [RC] Styles Demo 1.1.1

Post by Miri4ever »

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

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka »

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
User avatar
Miri4ever
Registered User
Posts: 608
Joined: Sat Mar 07, 2015 11:18 am
Contact:

Re: [RC] Styles Demo 1.1.1

Post by Miri4ever »

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

Extension Developments:
PHPBB Games Solitaire, MChat Poker, MChat Black Jack, MChat Cards, MChat Trivia
PHPBB Special Effects, Mousepointers, X-Mas Themes and Designs for PBWoW Style.
Supported work: (**New Updated** UCP Sidebar), Tables, Hide, PBWow3 Style
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Name: Khoa Nguyen

Re: [RC] Styles Demo 1.1.1

Post by nedka »

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',
Locked

Return to “Abandoned Extensions”