Styles Demo »  Show posts from    to     

Icy Phoenix


Free PHP Scripts - Styles Demo



Mighty Gorgon [ Wed 22 Jul, 2009 13:06 ]
Post 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: [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,
),


DWho [ Wed 22 Jul, 2009 13:57 ]
Post subject: Re: Styles Demo
Fantastic thank you very much...



Methusala [ Wed 22 Jul, 2009 21:46 ]
Post 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.


Mighty Gorgon [ Fri 14 Aug, 2009 13:36 ]
Post subject: Re: Styles Demo
Added a small example on how to edit the array...


Lopalong [ Fri 14 Aug, 2009 14:14 ]
Post subject: Re: Styles Demo
Grazzie!


gearhead [ Sat 15 Aug, 2009 02:17 ]
Post subject: Re: Styles Demo
That's great! thanks MG.



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



DWho [ Mon 17 Aug, 2009 16:43 ]
Post 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


Limun [ Sun 10 Feb, 2013 06:54 ]
Post subject: Re: Styles Demo
i m reciving this error

Code: [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


Mighty Gorgon [ Sat 16 Feb, 2013 11:51 ]
Post subject: Re: Styles Demo
You can try to change into something like this:

FIND
Code: [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: [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;


Limun [ Sat 16 Feb, 2013 15:53 ]
Post subject: Re: Styles Demo
Mighty Gorgon wrote: [View Post]
You can try to change into something like this:

FIND
Code: [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: [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




Powered by Icy Phoenix