https://www.icyphoenix.com/viewtopic.php?f=33&t=6147
-----------------------------------
Mighty Gorgon
Wed 22 Jul, 2009 13:06

Styles Demo
-----------------------------------
Hi all,
since many have asked the styles demo I'm using here on this site ( [url=http://www.icyphoenix.com/styles.php]Styles Demo ) I have decided to release a working copy.

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

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

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


-----------------------------------
DWho
Wed 22 Jul, 2009 13:57

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

 :mrgreen:  :mrgreen:


-----------------------------------
Methusala
Wed 22 Jul, 2009 21:46

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

Re: Styles Demo
-----------------------------------
Added a small example on how to edit the array...


-----------------------------------
Lopalong
Fri 14 Aug, 2009 14:14

Re: Styles Demo
-----------------------------------
Grazzie!  :mrviolet:


-----------------------------------
gearhead
Sat 15 Aug, 2009 02:17

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:


-----------------------------------
DWho
Mon 17 Aug, 2009 16:43

Re: Styles Demo
-----------------------------------
[quote user="Mighty Gorgon" post="42854"]Added a small example on how to edit the array...[/quote]

thank you makes it easy to follow


-----------------------------------
Limun
Sun 10 Feb, 2013 06:54

Re: Styles Demo
-----------------------------------
i m reciving this error

[code linenumbers=false]( ! ) 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[/code]


-----------------------------------
Mighty Gorgon
Sat 16 Feb, 2013 11:51

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

FIND
[codeblock]$mode = $_REQUEST['mode'];
$mode = ($mode == 'top_frame') ? 'top_frame' : '';
$style_id = (int) $_REQUEST['s'];
$style_id = intval($style_id) ? $style_id : 1;[/codeblock]

REPLACE
[codeblock]$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;[/codeblock]


-----------------------------------
Limun
Sat 16 Feb, 2013 15:53

Re: Styles Demo
-----------------------------------
[quote user="Mighty Gorgon" post="58258"]You can try to change into something like this:

FIND
[codeblock]$mode = $_REQUEST['mode'];
$mode = ($mode == 'top_frame') ? 'top_frame' : '';
$style_id = (int) $_REQUEST['s'];
$style_id = intval($style_id) ? $style_id : 1;[/codeblock]

REPLACE
[codeblock]$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;[/codeblock][/quote]

Thanks..now its ok


