<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>p-ahlqvist.com</title><description>p-ahlqvist.com</description><link>http://p-ahlqvist.com/snews_15/glow/</link><copyright>Copyright p-ahlqvist.com</copyright><generator>sNews</generator><item><title>Donate</title><description>Donate to sNews via Paypal here. Luka have not been able to get Paypal to work from his region of the world, and if you want to donate, and you only have Paypal, you have a bit if a problem. Therefor I have created this donate button, in order to be able to be a middleman.

If not able to trust me, don't donate. If you're haveing doubts about it, contact Luka him and ask how it should be done, or if you can trust my wonderful person.

</description><pubDate>Wed, 21 May 2008 08:25:14 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/home/donate/</link><guid>http://p-ahlqvist.com/snews_15/glow/home/donate/</guid></item><item><title>Testing pre-wrap</title><description>
Okidoki... testing the pre-wrap thingy here... First "Show JS code" is without the pre-wrap, only code tags, second is with pre-wrap, no code tags.


Number one - No pre-wrap, just code tags
Show JS code &nbsp;&nbsp;|&nbsp;&nbsp; 
Close JS code




var timerlen = 5;
var slideAniLen = 250;

var timerID = new Array();
var startTime = new Array();
var obj = new Array();
var endHeight = new Array();
var moving = new Array();
var dir = new Array();

function slidedown(objname){
        if(moving)
                return;

        if(document.getElementById(objname).style.display != "none") return; // cannot slide down something that is already visible - This line is very long without pre-wrap, so long it hurts my intestions so long it hurts my intestions so long it hurts my intestions so long it hurts my intestions so long it hurts my intestions

...    



Number two - Pre-wrap, no code tags
Show JS code &nbsp;&nbsp;|&nbsp;&nbsp; 
Close JS code





var timerlen = 5;
var slideAniLen = 250;

var timerID = new Array();
var startTime = new Array();
var obj = new Array();
var endHeight = new Array();
var moving = new Array();
var dir = new Array();

function slidedown(objname){
        if(moving)
                return;

        if(document.getElementById(objname).style.display != "none") return; // cannot slide down something that is already visible - This line is very long without pre-wrap, so long it hurts my intestions so long it hurts my intestions so long it hurts my intestions so long it hurts my intestions so long it hurts my intestions

...
        

</description><pubDate>Wed, 30 Jan 2008 11:06:31 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/home/testing-prewrap/</link><guid>http://p-ahlqvist.com/snews_15/glow/home/testing-prewrap/</guid></item><item><title>Going Linux</title><description>Open source is the only way to go

Must say I'm so sick and tired of Microsoft products now. Everytime one needs a program or need to update or whatever, there are costs, problems in finding the item of your choice, and not to mention all these licenses and certifications and crap. Let alone the instability of the OS and all (almost) software installed onto this. Everything in mind to create a steady flow of the mighty dollar. Well, I have grown real tired of this, and turned my eye's towards Linux, which has been proposed to me several times over the years. I haven't had the expertise, though, as Linux mostly have been a tool for even more geeky persons than me (pardon my french). But now, or rather for sometime but it came to my knowledge just now, there is this easy Linux based OS called Ubuntu which seems really nifty.

  Ubuntu is a community developed, linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need: a web browser, presentation, document and spreadsheet software, instant messaging and much more. - How nice doesn't this sound ?

I did go download a copy of the desktop CD (there is a server version aswell) and tried it out. You know, it's so cool, you can download the ISO file, burn it onto a CD, and try it out from the CD without installing anything (runs really slow, but...), further if one chooses to install, Ubuntu does it all for you (so they say, hehe).

I have but one webdesign job to do, and after that's done. I'm, oh so, going Linux.</description><pubDate>Mon, 14 Jan 2008 12:32:14 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/blog/going-linux/</link><guid>http://p-ahlqvist.com/snews_15/glow/blog/going-linux/</guid></item><item><title>Highlite code test article</title><description> 

 




</description><pubDate>Tue, 18 Dec 2007 13:32:16 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/blog/highlite-code-test-article/</link><guid>http://p-ahlqvist.com/snews_15/glow/blog/highlite-code-test-article/</guid></item><item><title>Finally ! New  sNews version.</title><description>"the cobbler's children are the last ones to get shoes"
...even at p-ahlqvist.com. God, that has taken it's sweet time. I have been running 1.5.42 since it got out and where cleared as stable, and thought that the changeover from that to 1.6, when it got released, was to much work, really.

So, now when having deleted my old index.php and CSS by mistake (what a mistake to make) and for the first time ever not having a backup, I thought to myself, why the hell not. If I'm about to do a new index page, why not do the engine change aswell ? Said, thought and done. A couple of days now, p-ahlqvist.com have been running off of sNews version 1.6, not a day to soon, eh...</description><pubDate>Fri, 14 Dec 2007 11:03:07 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/blog/finally-new-snews-version/</link><guid>http://p-ahlqvist.com/snews_15/glow/blog/finally-new-snews-version/</guid></item><item><title>Fun with forms</title><description>How's your form ?


If you're anything like me, you don't like all too generally looking items on a website. I've been looking for a way to change my contactform so that it looks a tad differently than most do.

I found this excellent article by Sören Madsen at picment.com, which illustrates how to achieve a form that isn't like others. I have yet to test it though.

And furthermore, think... Is this change of form not ok with some readers, how can I achieve that those see the default form. Some consideration is called for...</description><pubDate>Wed, 12 Dec 2007 09:24:17 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/blog/fun-with-forms/</link><guid>http://p-ahlqvist.com/snews_15/glow/blog/fun-with-forms/</guid></item><item><title>Redesigning p-ahlqvist.com</title><description>Just trying to correct my own mistakes 
A few days ago I did the most newbie mistake of them all... I deleted my index.php by mistake. This is not something one laughs at upon discovery, I can assure you that.

Never the less, something had to be done, of course. Can't have a non existing index.php, ergo - No site. So I scrambled this up, I'm not done with it yet, but as there are some whom actually pay for space here, I need to get something up as fast as possible.

So if you miss anything, or simply wants to comment upon my progress, please do so, and my sincere appologies for any inconvinience this might have caused you.

Patric Ahlqvist.</description><pubDate>Tue, 11 Dec 2007 15:50:04 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/home/redesigning-pahlqvistcom/</link><guid>http://p-ahlqvist.com/snews_15/glow/home/redesigning-pahlqvistcom/</guid></item><item><title>Free online media player</title><description>Why not try to make your homepage more alive ? 
I was contacted by one of my customers about something I've never been involved in before. They had a video they wanted to be shown at their site. I thought of the most simple solution which is to upload the video and just link to it, but that wasn't the way they had planned it.

As most people they have also been made aware of he phenomonon, Youtube.com. And of course they wanted online, in browser, video. Now this was growing to be a problem for me as I had never done such a thing before, but luckily there is such things as open source, and people that gladly share what they've accomplished on the net.

A friend of mine shared this link with me: http://www.jeroenwijering.com/, and I was eager to investigate. I went there and I downloaded the media player, in order to try it out.

And by just uploading this to my server, and having a browse at the readme file, and the setup wizard I was online showing video in no time, in  a matter of minutes actually.

Now this isn't a thing intended for the use with sNews, I'm sure you get that, but it's not non-integratable as many other tools are. You just add the javascript call in the head tag of the index.php and then add the javascript that makes the player show inside an article or a page.

For a demo, if not finding anything on Jeroen Wijering's site, you could have a look at Fagereke.se where I installed it. No comments on managment issues on this one to me, you hear ;) 


du måste ha rätt version a Flash spelaren som tillhanda hålls via denna sida.

var so = new SWFObject('player/mediaplayer.swf','mpl','500','500','7');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','true');
so.addVariable('displayheight','400');
so.addVariable('file','http://p-ahlqvist.com/player/playlist.xml');
so.addVariable('height','500');
so.addVariable('width','500');
so.addVariable('displaywidth','500');
so.addVariable('overstretch','none');
so.addVariable('showeq','false');
so.addVariable('autostart','false');
so.addVariable('largecontrols','false');
so.addVariable('thumbsinplaylist','false');
so.addVariable('image','http://p-ahlqvist.com/player/media/pics/bg.gif');
so.addVariable('autoscroll','true');
so.write('player');
</description><pubDate>Thu, 27 Sep 2007 10:44:19 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/blog/free-online-media-player/</link><guid>http://p-ahlqvist.com/snews_15/glow/blog/free-online-media-player/</guid></item><item><title>Tips for building a high traffic website</title><description>You should really try this out.
This article outlines some basic tips for building a high traffic website, It also outlines some things that you should not do that could cause some serious setbacks.

 1. Key words - Consider what people would search for which may cause them to find your site. Also find out what keywords are the most popular possibly by subscribing to a site that provides keyword popularity information.  Gear some pages to these keywords so long as they are relevent to your material.  Write some pages that would contain these keywords (In headers and other text) but don’t overdue it and keep the material useful.

 2. Page ranking and getting links - Google is a very important part of the internet today. They use a computerized page rank system based on links and link structure to compute the “value” of pages. This value combined with the relevance or a search (or how closely your page matches the search phrase in terms of exact matches and number of matches) determines where your page link will appear when a search is done. Getting other webmasters to link to your site is a very important part of getting a good page rank. Suggestions include:
a) Create one or more links pages where other webmasters may post links to their site on your site. Creating a friendly site that makes exchanging links easy encourages other webmasters to post your link.
b) Partner with other sites and work with them to exchange links. Building an affiliates section with links to partner sites may help.
c) Submit to web directories as mentioned at http://www.comptechdoc.org/independent/web/sitecreate/sitepromotion.html  Once web directories have your site submission most internet search engines will find your site.  It is still good to submit your sites to search engines such as Google, but be sure you do not do it more than once every three months.
d) Building good content will be very helpful in getting links to your site. 


   3. Content rich – Having a lot of content on your site will not only help improve your page rank, but will provide a better chance of getting page hits when internet users search for information. Also good quality content will keep them coming back  It may be worth your while to give some useful content away for no charge to help build traffic to your site.

   4. Getting awards – It is very useful to get awards for a quality or useful site from those sites that give awards. It adds to the prestige of your site and may draw additional customers.

   5. Giving awards – Giving awards is a very useful way of getting links to your site from other quality sites since webmasters usually post the award with a link back to your site which can be required.

   6. Active content such as discussion boards – On today’s internet active content is a very useful part of bringing people back to your site since many enjoy the free information exchange that is provided by discussion boards and similar tools.

   7. Create a site map - This will make sure all your pages can be crawled. Some webcrawlers only crawl a site a limited number of links deep such as 3 or 4 links deep. If you create a site map which is available from a link on your home page it will allow webcrewlers to see all your pages within a depth of two links.  Having a sitemap is especially important if you use framed HTML pages on your site. See the Important Note about Frame use at http://www.comptechdoc.org/independent/web/html/guide/htmlframes.html and it will give some guidelines on what to do to overcome the disadvantages of using frames.

   8. Be sure all your pages are linked together using HTML links even if users have the ability to navigate to your pages using Javascript or other active programs.  This is because webcrawlers may not be able to count links provided by active programs such as Javascript and this can keep the page rank (for search engines that rank pages) of many of your pages at a lower level than normal.

   9. Avoid possibly catastrophic errors – There are some mistakes that could be made which can get you banned from some search engines so don’t do any of the following:
a) Duplicate content on multiple sites can get your page rank penalized.
b) Submitting your site to search engines too often (more than once per three months) could get you banned with little hope of a reprieve.
c) Creating pages with hidden content that readers can’t see but search engines can see can get you penalized or banned.
 d)  Linking from one site to another excessively especially if the two sites have the same IP address can get you penalized.</description><pubDate>Sat, 22 Sep 2007 16:49:48 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/blog/tips-for-building-a-high-traffic-website/</link><guid>http://p-ahlqvist.com/snews_15/glow/blog/tips-for-building-a-high-traffic-website/</guid></item><item><title>Slide open and close divs</title><description>For people that is not using sNews and want to be able
to have a toggle function on their websites this might come in handy. 

Now a disclaimer:


This snippet is not mine, it has been on my harddrive for sometime, and I can honestly not remember where I got 

it from, so if anybody knows please let me know so I can give credit 
where credit is due...

Now, showing a div by clicking a link. then hiding it by clicking another link is fairly simple. You need a 
javascript snippet in order to do this. Click the "Show JS code" and copy and paste this snippet into a document 
which you upload to your server named motionpack.js

Show JS code &nbsp;&nbsp;|&nbsp;&nbsp; 
Close JS code





var timerlen = 5;
var slideAniLen = 250;

var timerID = new Array();
var startTime = new Array();
var obj = new Array();
var endHeight = new Array();
var moving = new Array();
var dir = new Array();

function slidedown(objname){
        if(moving)
                return;

        if(document.getElementById(objname).style.display != "none") 
return; // cannot slide down something that is already visible

        moving = true;
        dir = "down";
        startslide(objname);
}

function slideup(objname){
        if(moving)
                return;

        if(document.getElementById(objname).style.display == "none")
                return; // cannot slide up something that is already hidden

        moving = true;
        dir = "up";
        startslide(objname);
}

function startslide(objname){
        obj = document.getElementById(objname);

        endHeight = parseInt(obj.style.height);
        startTime = (new Date()).getTime();

        if(dir == "down"){
                obj.style.height = "1px";
        }

        obj.style.display = "block";

        timerID = setInterval('slidetick('' + objname + '');',timerlen);
}

function slidetick(objname){
        var elapsed = (new Date()).getTime() - startTime;

        if (elapsed > slideAniLen)
                endSlide(objname)
        else {
                var d =Math.round(elapsed / slideAniLen * endHeight);
                if(dir == "up")
                        d = endHeight - d;

                obj.style.height = d + "px";
        }

        return;
}


function endSlide(objname){
        clearInterval(timerID);

        if(dir == "up")
                obj.style.display = "none";

        obj.style.height = endHeight + "px";

        delete(moving);
        delete(timerID);
        delete(startTime);
        delete(endHeight);
        delete(obj);
        delete(dir);

        return;
}
// - Last function. Making the same link both open and close div !

function toggleSlide(objname){
  if(document.getElementById(objname).style.display == "none"){
    // div is hidden, so let's slide down
    slidedown(objname);
  }else{
    // div is not hidden, so slide up
    slideup(objname);
  }
}




What you do after this is placing a link to the JS file in your header, like this:



I have my script put in the folder scripts/ that's why it looks this way. Now when the "engine" is up,
 you need to add the code to your document in order to make it work. So just to try it out, open up the
  document and add  something like:



testing testing


Slide down 
&nbsp;&nbsp; | &nbsp;&nbsp; 
Slide up


Now you should have a working toggled H3 title there, right ? Well, if the existance of 
two links making it possible to show/hide is to much, we simply add another function to the 
motionpack.js in order to be able to have but one occurance of a link. 
(Go check the function on the bottom of the JS file. Which already been added.)

And instead of the previous code in the document we add this:


Show/hide - div

This is another test!
Can you see this aswell ?


And you will end up with something similar to the below which is slided open and closed by using the same link:

Show/hide - div


This is another test!Can you see this aswell ?
Two major things to remember:
Numero Uno: The height must be set or nothing will show, so this instance of the snippet will 
have to be altered depending on what you need to show inside the toggled div.
Numero Dos: the id can't be the same if you're using this function on more than one occasion 
in the same article, you need to change that to something unique for each div. Like first toggle div could be mydiv1 
the second one could be mydiv2 and so on.

Hope this was of any use for someone. And once again, please contact me if you would know whom the original auther of this 
is so I can credit him/her for this.
</description><pubDate>Wed, 19 Sep 2007 12:14:46 +0000</pubDate><link>http://p-ahlqvist.com/snews_15/glow/home/slide-open-and-close-divs/</link><guid>http://p-ahlqvist.com/snews_15/glow/home/slide-open-and-close-divs/</guid></item></channel></rss>