Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4698
Backtrace:
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste
File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once
KB#10389 explains how to turn your menu items into buttons in Presto. This KB article will explain how to add your own custom style to them. Step 01 - Determine how you want your buttons to look There are many web sites that will help you generate the CSS for a stylized button. If you search “css button generator” you will find a good list of sites. One that we’ve found helpful is http://www.cssbuttongenerator.com/ which we will use in this KB. On this website you can use a GUI interface to style your button and see instantly what it will look like. To optimize the button for use with Presto we’ve found that it helps to set the following values: Button Height: 20px Button Width: 200px; Font Size: 13px; You’ll want to be sure to set the CSS Class Name to “MenuLinksEvent”. Feel free to experiment with the other settings until the button looks the way you like. Step 02 - Obtain the CSS code. Once the button looks the way you like, click on the “Get the code” button/tab on the page. Uncheck the “Show <style> tag?” checkbox. Copy the generated CSS code in the text box. Here’s the generated code we created for this KB: .MenuLinksEvent { -moz-box-shadow:inset 0px 1px 0px 0px #5275ff; -webkit-box-shadow:inset 0px 1px 0px 0px #5275ff; box-shadow:inset 0px 1px 0px 0px #5275ff; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #4b5fc4), color-stop(1, #4fd6ff) ); background:-moz-linear-gradient( center top, #4b5fc4 5%, #4fd6ff 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4b5fc4', endColorstr='#4fd6ff'); background-color:#4b5fc4; -webkit-border-top-left-radius:9px; -moz-border-radius-topleft:9px; border-top-left-radius:9px; -webkit-border-top-right-radius:9px; -moz-border-radius-topright:9px; border-top-right-radius:9px; -webkit-border-bottom-right-radius:9px; -moz-border-radius-bottomright:9px; border-bottom-right-radius:9px; -webkit-border-bottom-left-radius:9px; -moz-border-radius-bottomleft:9px; border-bottom-left-radius:9px; text-indent:0; border:1px solid #6863ff; display:inline-block; color:#ffffff; font-family:Arial; font-size:13px; font-weight:bold; font-style:normal; height:20px; line-height:20px; width:200px; text-decoration:none; text-align:center; text-shadow:-1px 0px 16px #000000; } .MenuLinksEvent :hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #4fd6ff), color-stop(1, #4b5fc4) ); background:-moz-linear-gradient( center top, #4fd6ff 5%, #4b5fc4 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#4fd6ff', endColorstr='#4b5fc4'); background-color:#4fd6ff; }.MenuLinksEvent :active { position:relative; top:1px; } /* This button was generated using CSSButtonGenerator.com */ Step 04 - Paste this code into stylesheet.css Open the Presto IDE. Go to Tools -> Modify Skin -> stylesheet.css Paste the CSS code you copied to the very bottom of stylesheet.css Step 05 - Modify the selectors in the CSS code. In the CSS code that you pasted in you will notice there are 3 selectors used: .MenuLinksEvent .MenuLinksEvent :hover .MenuLinksEvent :active Modify these selectors by prepending “input” to them. This makes the selectors more specific and will override any default Presto styles so that they won’t interfere with our new style. The final CSS code should look like this: input.MenuLinksEvent { -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow:inset 0px 1px 0px 0px #ffffff; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; -webkit-border-top-left-radius:6px; -moz-border-radius-topleft:6px; border-top-left-radius:6px; -webkit-border-top-right-radius:6px; -moz-border-radius-topright:6px; border-top-right-radius:6px; -webkit-border-bottom-right-radius:6px; -moz-border-radius-bottomright:6px; border-bottom-right-radius:6px; -webkit-border-bottom-left-radius:6px; -moz-border-radius-bottomleft:6px; border-bottom-left-radius:6px; text-indent:0; border:1px solid #dcdcdc; display:inline-block; color:#777777; font-family:arial; font-size:13px; font-weight:bold; font-style:normal; height:20px; line-height:20px; width:200px; text-decoration:none; text-align:center; text-shadow:1px 1px 0px #ffffff; } input.MenuLinksEvent:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); background-color:#dfdfdf; }input.MenuLinksEvent:active { position:relative; top:1px; } /* This button was generated using CSSButtonGenerator.com */ Step 06 - Test it out Restart your Presto session by clicking the house icon in the tool bar or reload your Presto session in the browser. Once you sign in your menu buttons should have the new style applied.