Aug. 24th, 2007

Spuffy

Multilevel-tags in sidebar - Smooth Sailing

two alternative ways,

Both versions overwrite the function Page::lay_print_sidebar_tags()
I think the first version is the better one, so if you can you should use this one:





First way: )


Second way: )

Jun. 30th, 2007

Spuffy

S2 Smooth Sailing - modify the comment bar

With the help of the following code you can modyfy the comment bar in Smooth Sailing so, that you either only have the comment and readlink, or comment, read, edit and edit tags

follow me )

Jan. 13th, 2007

Spuffy

Sidebar control panel for smooth sailing

set layout_sidebox_freetext_10_visibility = "12";
set text_sidebox_freetext_10_title = "Control Panel";
Read more... )

Dec. 3rd, 2006

Spuffy

CSS Guides für S2 Layouts

Flexible Squares
Smooth Sailing
Tranquility II
Bloggish
Expressive
Opal

Nov. 30th, 2006

Spuffy

S2 Smooth Sailing Welcome Note on all pages

S2 Smooth Sailing Welcome Note on all pages )

Nov. 13th, 2006

blka

Special Comments for Flexible Squares converted for Smooth Sailing

I have been using this code: http://www.livejournal.com/customize/advanced/layersource.bml?id=5910803 with this result: http://afuna.livejournal.com/256064.html?s2id=10058075 for ages with Flexible Squares. Since I liked it so much I converted it to work with Smooth Sailing.


Preview: Free Image Hosting at www.ImageShack.us

You need a paid account to do this. If you don't already have theme layer you can just copy and paste the code to a new theme layer, if you already have a layer you need to merge this in your existing layer.

Get the code )

Nov. 12th, 2006

blka

Adding a random header image

The Requirements:A webhost that supports PHP and a php script that calls the images (get that here). A free webhost that supports php is for example Funpic.What we need to do:Save this code as randomizer.php and upload it to your host.Upload all the images we want to use as a random header in the same directory as the php script.Now use the url of the randomizer.php script the same way as you would use a image urlCopy the contents of this box and save it as randomizer.php
<?php/* AUTOMATIC IMAGE ROTATOR Version 2.2 - December 4, 2003 Copyright (c) 2002-2003 Dan P. Benjamin, Automatic, Ltd. All Rights Reserved. http://www.hiveware.com/imagerotator.php  http://www.automaticlabs.com/   DISCLAIMER Automatic, Ltd. makes no representations or warranties about the suitability of the software, either express or implied, including but not limited to the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. Dan P. Benjamin and Automatic, Ltd. shall not be liable for any damages suffered by licensee as a result of using, modifying or distributing this software or its derivatives.   ABOUT This PHP script will randomly select an image file from a folder of images on your webserver.  You can then link to it as you would any standard image file and you'll see a random image each time you reload.  When you want to add or remove images from the rotation-pool, just add or remove them from the image rotation folder. VERSION CHANGES Version 1.0  - Release version  Version 1.5  - Tweaked a few boring bugs  Version 2.0  - Complete rewrite from the ground-up  - Made it clearer where to make modifications  - Made it easier to specify/change the rotation-folder  - Made it easier to specify/change supported image types  - Wrote better instructions and info (you're them reading now)  - Significant speed improvements  - More error checking  - Cleaner code (albeit more PHP-specific)  - Better/faster random number generation and file-type parsing  - Added a feature where the image to display can be specified  - Added a cool feature where, if an error occurs (such as no    images being found in the specified folder) *and* you're    lucky enough to have the GD libraries compiled into PHP on    your webserver, we generate a replacement "error image" on    the fly.      Version 2.1        - Updated a potential security flaw when value-matching          filenames    Version 2.2        - Updated a few more potential security issues        - Optimized the code a bit.        - Expanded the doc for adding new mime/image types.        Thanks to faithful ALA reader Justin Greer for        lots of good tips and solid code contribution! INSTRUCTIONS 1. Modify the $folder setting in the configuration section below. 2. Add image types if needed (most users can ignore that part). 3. Upload this file (rotate.php) to your webserver.  I recommend    uploading it to the same folder as your images. 4. Link to the file as you would any normal image file, like this:   <img src="http://example.com/rotate.php"> 5. You can also specify the image to display like this:   <img src="http://example.com/rotate.php?img=gorilla.jpg">    This would specify that an image named "gorilla.jpg" located  in the image-rotation folder should be displayed.  That's it, you're done.*//* ------------------------- CONFIGURATION ----------------------- Set $folder to the full path to the location of your images. For example: $folder = '/user/me/example.com/images/'; If the rotate.php file will be in the same folder as your images then you should leave it set to $folder = '.';*/ $folder = '.';/*  Most users can safely ignore this part.  If you're a programmer, keep reading, if not, you're done.  Go get some coffee.    If you'd like to enable additional image types other than gif, jpg, and png, add a duplicate line to the section below for the new image type.  Add the new file-type, single-quoted, inside brackets.  Add the mime-type to be sent to the browser, also single-quoted, after the equal sign.  For example:  PDF Files:  $extList['pdf'] = 'application/pdf';     CSS Files:        $extList['css'] = 'text/css';    You can even serve up random HTML files:     $extList['html'] = 'text/html';     $extList['htm'] = 'text/html';    Just be sure your mime-type definition is correct!*/    $extList = array(); $extList['gif'] = 'image/gif'; $extList['jpg'] = 'image/jpeg'; $extList['jpeg'] = 'image/jpeg'; $extList['png'] = 'image/png'; // You don't need to edit anything after this point.// --------------------- END CONFIGURATION -----------------------$img = null;if (substr($folder,-1) != '/') { $folder = $folder.'/';}if (isset($_GET['img'])) { $imageInfo = pathinfo($_GET['img']); if (     isset( $extList[ strtolower( $imageInfo['extension'] ) ] ) &&        file_exists( $folder.$imageInfo['basename'] )    ) {  $img = $folder.$imageInfo['basename']; }} else { $fileList = array(); $handle = opendir($folder); while ( false !== ( $file = readdir($handle) ) ) {  $file_info = pathinfo($file);  if (      isset( $extList[ strtolower( $file_info['extension'] ) ] )  ) {   $fileList[] = $file;  } } closedir($handle); if (count($fileList) > 0) {  $imageNumber = time() % count($fileList);  $img = $folder.$fileList[$imageNumber]; }}if ($img!=null) { $imageInfo = pathinfo($img); $contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ]; header ($contentType); readfile($img);} else { if ( function_exists('imagecreate') ) {  header ("Content-type: image/png");  $im = @imagecreate (100, 100)      or die ("Cannot initialize new GD image stream");  $background_color = imagecolorallocate ($im, 255, 255, 255);  $text_color = imagecolorallocate ($im, 0,0,0);  imagestring ($im, 2, 5, 5,  "IMAGE ERROR", $text_color);  imagepng ($im);  imagedestroy($im); }}?>

Oct. 3rd, 2006

ele

[S1] and [S2] Profile Icons

This tutorial  shows you how to replace the little profile icons (User,community,sponsored community,news,syndicated,open id) with your own. If you use a Mozilla based browser, Internet Explorer 7 or Opera (not sure about Safari, but it should work there too) you can replace each image with a different one. If you use the complete code, in Internet Explorer 6 and lower you will only see one new image. You can remove the red part and you keep the six old images in IE 6 and lower and see the six new images in other browsers.
Older Versions then version 6 of the Microsoft Internet Explorer do not understand the part in blue, other browsers like Firefox and Opera don't understand the red part.



/*profile icons*/

/* so that IE users will see a new image */
* html span.ljuser{
background-image: url(YOUR IMAGE FOR THE USER) !important;
background-repeat: no-repeat;
background-position: left middle;
padding: 0px 16px 16px 0px !important;
}
* html span.ljuser img{
visibility: hidden;
}


/* icon for users */
.ljuser img[src*="userinfo.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(YOUR IMAGE FOR THE USER) !important;
padding: 16px 16px 0 0 !important;
}
/* icon for communities */
.ljuser img[src*="community.gif"] {
width:0;
height: 0;
background-repeat: no-repeat;
background-image: url(YOUR COMMUNITY IMAGE) !important;
padding: 16px 16px 0 0 !important;
}
/* icon for sponsored communities */
.ljuser img[src*="sponcomm.gif"] {
width:0;
height: 0;
background-repeat: no-repeat;
background-image: url(YOUR SPONCOMM IMAGE) !important;
padding: 16px 16px 0 0 !important;
}
/* icon for syndicated */
.ljuser img[src*="syndicated.gif"] {
width: 0;
height: 0;
background-repeat: no-repeat;
background-image: url(YOUR SYDICATED IMAGE) !important;
padding: 16px 16px 0 0 !important;
}
/* icon for news */
.ljuser img[src*="newsinfo.gif"] {
width:0;
height: 0;
background-repeat: no-repeat;
background-image: url(YOUR NEWS IMAGE) !important;
padding: 16px 16px 0 0 !important;
}
/* icon for open-id */
.ljuser img[src*="openid-profile.gif"] {
width:0;
height: 0;
background-repeat: no-repeat;
background-image: url(YOUR OPEN-ID IMAGE) !important;
padding: 16px 16px 0 0 !important;
}

The 16px you see everywhere are the width and height of the image. You can either use images that are also 16x16px or you will have to change the numbers.
In S1 the above coding belongs in your HEAD codes between the style tags. You don't understand? Please read "Merging your overrides/the style tag." In S2 it belongs in either your external stylesheed, the Custom CSS box or in the CSS section of your layer.
Tags:

Jul. 18th, 2006

ele

Different ways to add a header in S1

Four different ways to add a header!

1. Header without a background
2. Header with background - doesn't really work with the nav strip enabled, doesn't work with sponsored+, doesn't work with sidebars, makes problems with the Contextual Popup, only works with S1 Generator
3. Header with background 2
- no known problems, needs a website listed in the profile to work
4. Header with background 3 / imagemap
- no known problems, needs a website listed in the profile to work
5. Colorcodes explained
6. How to center the header while using Header with background 2 or Header with background 3 / imagemap
7. Example: centered imagemap
7. Example 2: left aligned imagemap
8. Entries on top of header

here we go )
Spuffy

August 2007

S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Advertisement

Syndicate

RSS Atom
Powered by LiveJournal.com