Thursday, November 26, 2009

other options for a wp gallery


this is meant for a banner, but it has a nav built in...

http://wordpress.org/extend/plugins/wp-crossfade/screenshots/

Friday, November 20, 2009

jquery page transitions?

links

fade out body onclick, slowly, use body unload too...


experimenting with fancy page loading, (without visible ugly browser refresh) definately important for smooth seamless experience... ) bit advanced for me to try right now... hasnt someone made a plugin yet??

maybe i can preload all my gals, and show/ hide them using jquery, so the page dosnt jump between albums... just

Thursday, November 19, 2009

wordpress gallery plugins that use the gallery shortcode

1/http://wordpress.org/extend/plugins/image-gallery-reloaded/
ok i have tried this out, and it is great but has a weird bug in IE6,7,8 where the large image dosn't always autoload when you visit the page for the second time, a release of next version is in the works, so check back when thats ready, but for now I cant use it.

its like devkick galleria, but for wordpress.
ok ive just tried this out, is promising, but ironically it has the same problem in IE browsers as above! no first large image loading. (MAY have to do with the fact I am testing the gallery on single post, or single page.)
a guy called ALEXANDER posted on the comments of the plugin a version he made, which you can download, where he adds some if is_single statements, and it then works, on single Posts, since i actually am planning to use on a single Page, is change the 3 ocurances of is_single to is_page, and now it works on pages, but broken on single posts of course, which dosn't bother me.

Wordpress tutorials and stuff

GENERALLY A WORDPRESS RESOURCES PAGE MOVE THIS ELSEWHERE
making a custom theme tutorial, good one, do this when have a second, recommends doing a html version first,
really really good list of common useful wordpress hacks
and this is good too
wordpress as a cms tutorial

CSS display:table - the end of the floated div?

http://www.digital-web.com/articles/everything_you_know_about_CSS_Is_wrong/

basically, the old html table structure now is available in CSS making it much easier to make 3 column equal height layouts and image caption grids and so forth... - im trying to find out what browser support there is for this - like does IE6-7 have css display:table-cell properties??

ahh if you read the comments, it lacks...
-workingness in IE6-7
-ability to change around the source order for ultimate SEO
-buggy with % based widths that contract relationally

also
A problem for within-content-area layouts is that you loose the ability to position items absolutely within relative blocks. see...

heres an example of a tutorial on this that includes IE 6+7 workarounds. it is interesting but involves giving IE table tags in the source within conditional comments. I dont like how jumbled the markup becomes... it will all have to be removed eventually....

im not really into this, although i have used a table display thing to get vertical centering before which worked ok.

Wednesday, November 18, 2009

Nice websites inspiration - css large backgrounds

http://www.webdesignerwall.com/trends/80-large-background-websites/

and how to examples, this 'bad example is actually exactly what i need... the background and the content are 'fixed' together, and slide around as a unit.


this example is fine in IE6, dammit it bkrnd slides around in IE8 (at least the version i have installed, from april 2009... (try newer version??), IE7 is fine. Except for all IE versions, the size of the background image is the maximum window size you can stretch to... weird, i wonder what this looks like on a large res screen, how weird to constrain the window size to the background image size....

body { padding: 0; margin: 0; background: #f8f7e5 url(wdw-bg.jpg) no-repeat center top; width: 100%; /*stops the background image from shifting when you resize the browser window in FF and..saf?*/ display: table; /*stops the background image from shifting when you resize the browser window in FF and..saf?*/ }


and tip from there
Although large backgrounds at website look very nice it kills bandwidth and scares of visitors with slow internet connections.
So here are some tips&tricks how to use large background images and still have a fast loading speed:
- use the .gif extension (max 256 colors, with transparency support)
- use the .jpg extension with a higher compression (between 60 and 70)
- split the large image into smaller chunks, but requires some extra CSS
- load the background at the bottom of the HTML, requires some extra CSS

and this helpful things to note

Markup4U team

@Tor, Aaron Bassett
Setting a background for an html tag (thus, forcing the browser to calculate the width and height of the html element) will cause the body tag to be rendered as div and *not* fill the browser window’s full height (only as far as the content goes).
In such cases height/min-height properties should be set additionally.

@Colin
display:table works here because the body is not *shown* as table, but *rendered* as table, i.e. the minimal box width is calculated. No side effect on seo/semantics :-)

@Cédric
Notes for IE6
1. setting expression like property for body’s min-width will fix this issue.
2. In some cases the width of the image needs to be wider than the container’s width.
For example:
* html body {
width: expression(document.documentElement.clientWidth < style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">}

Please note that such css selector is not valid so it should be placed in a separate CSS file and linked using conditional comments. 904px is a value for webdesignerwall.com site’s min-width.


Great. This tutorial would have helped much when I tried to put a fixedbackground on my site. http://la-cajita.es/blog/

If anybody is willing to try it, the CSS would look like this:

body {
background: fixed url(’./images/lacajita.jpg’) no-repeat center;
color: #333333;
}

This way, with “fixed” and without “top”, it stays completely centered, even when you’re seeing just a little part of the website through a small browser window.


I would be more careful with huge backgrounds in terms of using website for different browsers - and I’m not talking about chrome/safari issue. Major problem is still pixel rounding which is different in different browsers.
E.g. FF3 will put offset 1px to the left, while IE7 will do it other way plus 1px more. Issue is appearing mainly when ‘center’ is in use.
Personally I found the way doing backgrounds in separate divs (one below body) with ‘top left’ or ‘top right’ (image is still fixed with pixel size, so shouldn’t be any problems with it). That way makes it safer for cross-browssing & saving your time to make fixes in IE.

I hope pixel rounding will be unified one day in all of the browsers (knowing market actually, proofs me wrong).

And heres a solution for centering massive things in content not just bkrnd images, works in IE6, like a large flash file, that dosn't bump up against the edge of the browser
incase the page disappears heres the css:
body {  margin:0;  padding:0; }  #wrapper {  width:(element width);  height:(element height);  margin: (1/2 height) 0 0 (1/2 width);  padding:0;  position:absolute;  left:50%;  top:50% }





starting to think this is going to be too cross browser buggy (my plan was to exactly pixel perfect join an img, and elsewhere a swf, with a background image line, and have it all stretchy and centered... ... might just use one big image / flv centered like as above.... with some z-index magic over that... breaking up the image into different bits is asking for trouble.. 

 

Embedding Fonts in Flash

I just got a bit paranoid that fonts were not embedded in a Flash project properly. (for a exe / projector going into a CDROM)

How to test for this when I don't know what the users computer will have installed and what it defaults to? How do I see this result if I have the font installed?

DER moment, just drag that font your dynamic text field is using out of your (on a mac) System > Library > fonts folder and anywhere else it is installed. (search for the font name in spotlight). Drag the font file onto your desktop or something and your computer will think that the font isn't installed. Then test your projector (built before 'uninstalling' the font of course), and low and behold, if you havn't got your fonts embedded in your projector, you will see the default font, which is Times. This will very clearly show you if your fonts are embedded in every dynamic text box instance in your project. (you need to click the properties panel 'embed button' for every text field on stage, or do it via actionscript and adding the font to the library. If you don't see Times font with your font 'unistalled', then your fonts are embedded properly, to test try on one dynamic text field clicking the 'embed' button and clicking 'unembed', then publishing your projector.

If you don't drag the font out of your system fonts folder to test this and your fonts are not embedded properly in the flash projector, the dynamic text field will use the intended system font if its available to render the text, which actually looks very similar, but different (heavier) to what the font looks like when its embedded properly in the flash file. Without an eagle eye you might not notice this. But your end user certainly will if they don't have that font and see the dreaded Times instead! If your using a dynamic text field in Flash, embedding the font of choice is essential (unless you need a really small file size for the web delivery and don't care about font consistency).

A really helpful resource to learn about text in Flash is called "Foundation Flash CS3 for Designers" By Tom Green and David Stiller and Friends of ED. Chapter 6 "Text in Flash CS3" explains almost everything you need to know about fonts, embedding, aliasing etc.

Thursday, November 12, 2009

wordpress as a cms plugins list (not the usual culprits)

http://www.jonbishop.com/2009/10/31-wordpress-cms-plugins/

i especially like "custom admin branding", "magic fields", "wp-cms", "more fields", "side content" "wordpress navigation list plugin NAVT", "Ryans simple cms"
all these sound useful and worth a test.

Wednesday, November 11, 2009

Hotlinking

read this about how to stop people hotlinking... it good... esp for photo based sites...
http://desizntech.info/2009/04/16-tip-to-make-you-a-better-web-designer-and-blogger/

Monday, November 9, 2009

Setting up a local server for wordpress development on a mac

and... i want it portable....

on a mac, download mamp:

follow these instructions
or these (includes CODA app setup)

and then to localhost multiple sites here is the neatest description for editing apache file and other tricky things...

Adding a Virtual Host is a 2-step process:

  1. Add a new entry to your computer's hosts file.
    • A hosts file can be used to point requests for a domain to a particular IP address--in other words, it lets you re-direct communications to a particular domain. In the case of a virtual host, it can tell the computer to NOT go out on the internet when you type a particular URL like http://clientA/, but instead look for that particular domain on your own computer.
  2. Edit the Apache configuration file to accept Virtual Hosts and define the particular Virtual Hosts you want to setup on your computer. The first step above, merely redirects requests from a particular domain to your computer, but this step prepares the Web server on your computer for handling those requests. In this step, you not only provide the name of the Virtual Host, but also tell Apache where the files for the site are located on your computer.
cross check the instructions with this, it includes a method for backing up the hosts file so if you muck it up it can be recovered. i think ill follow this...
and this...
this guy says to open hidden files with textwragler rather than terminal... i think...
another one
more about virtual hosting
some advanced way of setting up virtual hosting, including an install script...

This is a cheap app that does the apache config and hosts file scaryness for you... and works with MAMP. others say just buy MAMP Pro, but this is cheaper. actually, its free to test, if you want to host more than 3, you buy it.
i just installed it following these instructions. http://bitbob.com/mac-web-development-made-easy at first it didnt work, either appache or mysql wasnt giving the green light in mamp. i tried quitting, opening mamp again, and resetting the ports to the defaults or something. i noticed the mamp window opened saying you have successfully installed mamp, so maybe it wasnt finished being installed before. i reran the virtualhostx setup wizard, made a test site folder etc, still wasnt working (no apache light i think). i think i had opened and started it the first time from the dock application. this time i opened it from the actual MAMP app, went into MAMP prefs again, and it had changed the ports i was sure i set, from the default 80, 3306, to 8888, 3306. which is weird, it seems the setup script of VHX was changing the ports? anyway, i changed them to 80, 3306, and OK, and restart things, and finally green lights for both.
so summary, if it don't work, check mamp is actually finished installing, and that the ports are still set at 80, 3306.
considering portability of my setup between machines, ive considered using the "export server settings" feature, and import on new machine... i hoping this saved all the site setups... (they prob need same OSX version...) doing this, and drag replacing the mamp apps folders, should give me a portable setup (actually, a backup and write over files process)... eg: on the new machine....
1/ drag and write over old MAMP app folder which contains your dbs (MAMP is meant to be self contained)
2/ import the old computers VHX server settings file into new computers VHX to get your virtual hosts setup as in the other computer. (not sure if this is wrong to do or not... have to try it...)
3/ dev your sites on your portable external HD (pointed to in VHX)
4/ for the FTP stage, use a text editor (not dreamweaver) that easily allows for site info (eg FTP info) to be stored with site files... migrating DWs 'manage sites' info is a major multi step pain. I have read somewhere textmate does this...

OR... (and its looking better by the second...)
install a bootable copy of OSX on the external HD itself...for ultimate portability, use this copy for your web dev work, eg when working with small files... dont install all your crazy apps on there, just web dev associated... it might slow you down like this botting up for it, but it seriously seems like the closest to the holy grail of keeping all your web site dev data (virtual hosts, dbs, apps, prefs, FTP infos, and of course the files, in one PORTABLE place. (other than developing online like through the wordpress admin panel! load reload = SLOW though. )

how to view MAMP sites on your mac from your testing pc... (insecure) i think ill just test PC from live server for now...

if you dont use Coda here is articles about dreamweaver settings and MAMP setup

and if your making emailing / notification forms, setup a local mail server too so that it quicker to test emails aswell

This is all well and good except I work between 3 different computers depending on where I am, I have all my work in progress files from an external HD.
I have been searching for a solution to NOT have the sites db in the Applications/MAMP folder, but all portable on my external HD... or just an easy way to move the files between computers, what needs to be backed up and saved in the MAMP folder I don't know.
A solution I just thought is to partition my external portable HD and boot OSX from it, if that is possible... then I can have my Apps/MAMP folder on the external HD, and all my dbs etc. Its a bit drastic but it might be the actual best solution...

Install MAMP as a disc image alias for portability, looks promising, i don't know how it would work with the hosts file terminal thing for multiple sites, guess can only try it and see...


CODA / MAMP workflow with interesting tip on using WP starter fresh install to speed things up. also like the .dev naming coonventions, gets around a problem I imagine that might happen when you go live to .com

Since you'll be working with fresh copies of WP (and whatever
additional WP plugins or themes that you find yourself adding in by
default), grab a copy of the CreateProject plugin for Coda, and set it
up with whatever your default install of WP is. Speeds up initial
setup like you wouldn't believe.

So far, here's your initial workflow:

1) Create a new Site within Coda

2) Run Coda's CreateProject plugin to generate a default site within
your MAMP Pro's httpdocs directory. I actually have MAMP Pro pointed
at the Sites directory in my user's home directory (i.e., /Users/bob/
Sites/ ), but to each his/her own...

3) Set up a new virtual site in MAMP Pro and point it at the new site.

You're done with initial setup!

Also, with MAMP Pro, you can set up actual domains for your sites. I
use ".dev" as my TLD, so I don't have to go to http://localhost:80/~sitename
or whatever... I can type http://mydomain.dev and access the local
site.

Anyway.... that's a start. Hope this helps you and anyone else looking
for a Coda/MAMP (Pro) workflow.


and then tips for uploading to the webserver
video tutorial
more uploading (key is to not use one click install or wps install script but to import the db and connect manually.
and
moving wordpress generally, and changing its location
personally i think its easier to dev the theme offline, using dummy text and images, then install wp on server fresh, upload just the theme, add your real text and images online rather than export/import db mess, do final testing online. populating the sites content is often not my job anyway...

CONCLUSION:
stop searching, just follow this tutorial...

install MAMP and virtualhostx (on all computers??) for the virtual domains thing (proper domain names in their root folder for future setup usefulness for more complex sites), and then, drag / drop MAMP app folder to and fro on different machines to keep the DBs up to date... once I've got that setup working proper, try this for making an alias to the apps folder...
but its less important.
I will need to review this setup and test it properly - for something bigger where the DBs are going to be populated offline, or already existant on a site... but for now this should be adequate just for WP theme development across multiple separate sites.


---heads up for mamp settings...

I created a subdomain on the live server for local testing, that way it matches my host setup, much better this way.

If on local only, I would recommend using Mamp Pro, and use the mac default ports so you don't have :8888 issues on the live server.

[ [
contemplating the meaning of existance, what else would I be doing
] ]

and

Well, to answer the OP, or to help another fellow Mac user without getting into "is mamp good or bad", I can tell you, instead of accessing http://localhost:8888/second_site, you should attempt t access http://second_site:8888

Before you can pull this off though, you should place second_site in your /etc/hosts file.

First, enable show hidden files in finder (google it) or use PathFinder.

Second, go to the alias /etc/, find the file called hosts and copy it to your desktop (You can't edit it in place). Also, make a backup in case something goes wrong (it shouldn't, but it's always smart to back up when you're about to change stuff). In your desktop, open the hosts file and go to the last line. Hit enter to create a new one and type 127.0.0.1 second_site. Save the file, exit, and then copy it back to its original location (/etc).

It might ask you for an administrator account password. Authenticate.

Close all the windows of your browser and restart. Then, attempt to access second_site:8888 or second_site:8888/drupal .

Hope this helps anyone.


more about using certain ports and MAMP info setup

http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/



percaution of mamp pro if you use time machine to backup

other stuff:
server on a stick (USB drive)

interesting workflow for wp theme dev

JSP app in similar category, catslapper...