Styles Demo

Tags And Keywordsfree php scripts, php styles demo, phpbb styles demo


Subject: Styles Demo
Hi all,
since many have asked the styles demo I'm using here on this site ( Styles Demo ) I have decided to release a working copy.

Please note that to make it work you need to manually feed styles_array.php and add all the styles you need.

Here is a quick example on how you may want to edit the configuration file:

Code: [Download] [Hide] [Select]
array(
'style_id' =>
YOUR STYLE ID FROM THEMES TABLE,
'style_display' => true,
'style_demo' => true,
'style_list' => true,
'style_cat' => $style_cat,
'style_name' => '
YOUR STYLE NAME',
'style_sname' => '
REGULAR EXPRESSION NAME (NO CAPS, NO SYMBOLS, ONLY LOWERCASE AND UNDERSCORE',
'style_author' => '
AUTHOR NAME',
'style_demo_url' => $style_demo_url,
'style_download' => '
YOUR FULL URL TO DOWNLOAD',
'style_version' => $style_version,
),


icy_phoenix_styles_demo_1_0_0.zip
Description: Icy Phoenix Styles Demo 1.0 
Download
Filename: icy_phoenix_styles_demo_1_0_0.zip
Filesize: 16.07 KB
Downloaded: 626 Time(s)

Subject: Re: Styles Demo
Fantastic thank you very much...

:mrgreen: :mrgreen:

Subject: Re: Styles Demo
Thanks Luca.

I will work on a phpBB3 version of this over the weekend which I don't think will be that difficult to do given that I have already started on one similar.

Profile PM  
Subject: Re: Styles Demo
Added a small example on how to edit the array...

Inactive User
Subject: Re: Styles Demo
Grazzie! :mrviolet:

Subject: Re: Styles Demo
That's great! thanks MG.

:D

P.S. Post-It is a very nice well done style, if you haven't checked it out, take a look.

:mricy:

Subject: Re: Styles Demo
Mighty Gorgon wrote: [View Post]
Added a small example on how to edit the array...


thank you makes it easy to follow

Subject: Re: Styles Demo
i m reciving this error

Code: [Download] [Hide] [Select]
( ! ) Notice: Undefined index: mode in C:\wamp\www\icy2\styles.php on line 18
Call Stack
# Time Memory Function Location
1 0.0081 154680 {main}( ) ..\styles.php:0

( ! ) Notice: Undefined index: s in C:\wamp\www\icy2\styles.php on line 20
Call Stack
# Time Memory Function Location
1 0.0081 154680 {main}( ) ..\styles.php:0

Subject: Re: Styles Demo
You can try to change into something like this:

FIND
Code: [Download] [Hide] [Select]
$mode = $_REQUEST['mode'];
$mode = ($mode == 'top_frame') ? 'top_frame' : '';
$style_id = (int) $_REQUEST['s'];
$style_id = intval($style_id) ? $style_id : 1;


REPLACE
Code: [Download] [Hide] [Select]
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : '';
$mode = ($mode == 'top_frame') ? 'top_frame' : '';
$style_id = isset($_REQUEST['s']) ? (int) $_REQUEST['s'] : 1;
$style_id = intval($style_id) ? $style_id : 1;

Subject: Re: Styles Demo
Mighty Gorgon wrote: [View Post]
You can try to change into something like this:

FIND
Code: [Download] [Hide] [Select]
$mode = $_REQUEST['mode'];
$mode = ($mode == 'top_frame') ? 'top_frame' : '';
$style_id = (int) $_REQUEST['s'];
$style_id = intval($style_id) ? $style_id : 1;


REPLACE
Code: [Download] [Hide] [Select]
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : '';
$mode = ($mode == 'top_frame') ? 'top_frame' : '';
$style_id = isset($_REQUEST['s']) ? (int) $_REQUEST['s'] : 1;
$style_id = intval($style_id) ? $style_id : 1;


Thanks..now its ok


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1026s (PHP: 32% SQL: 68%)
SQL queries: 12 - Debug Off - GZIP Enabled