Home » Tips og tricks

Integration of jalbum in wordpress part 2

5 juli 2009 13 Comments

PLEASE NOTE: I no longer respond to questions submitted in the comments as I have given up using jalbum. But if you want to integrate jalbum in wordpress the information below should be helpful.

Okay, so the original setup of jalbum integration on this site started to bother me, so I tried out a new solution and I like this a lot better.

Cinematic Gold


Lad dig imponere af Blu-ray-film eller HDTV

To some this will sound like the simplest thing ever and for others it will probably sound a bit advanced, but I assure you that it’s really not. So here’s what you do if you want to integrate jalbum as a page in wordpress.

You have to make a custom page file (this is the part that might sound a bit advanced to some users, but just do as instructed and it should be quite easy).

Create a new textfile, and insert the following text in it:

<?php /* Template Name: photoalbum
*/ ?>
<?php get_header(); ?>

<center> <object data=”http://jalbum.url/index.html” width=”600″ height=”2500″ id=”gallery” name=”gallery”>  Your browser could not include this object </object> </center>

<?php get_footer(); ?>

You of course have to put in the correct URL for your jalbum files instead of jalbum.url.  Save this file as photoalbum.php in yourwordpress theme folder.

Now go to your wordpress control panel, and create a new page, now you should be able to select photoalbums as template for your page, select this and just give the page the headline photoalbumspublish it and you’re done.

And if you still want to have a sidebar on the page just insert the followin as the secondlast line in yourphotoalbums file:
<?php get_sidebar(); ?>




Anbefal denne artikel

13 Comments »

  • Gsl said:

    Hi,

    Thanks for the sugesstion.

    I constantly am getting the error:Your browser could not include this object

    Can you please help me? :)

    Thanks a lot,

    G.

  • Anders Drejer Madsen said:

    this also happened to me once because wordpress didn't know how to translate the code, did you remember to paste the code on the HTML tab?

  • Gsl said:

    Hi,

    Which HTML tab? Where can I find it?

  • popcore (author) said:

    you can see it on this picture
    http://evmedreview.com/wp-content/uploads/2008/06…

  • Gsl said:

    Hi,

    I though that I have to create a new file:

    "You of course have to put in the correct URL for your jalbum files instead of jalbum.url. Save this file as photoalbum.php in yourwordpress theme folder."

  • popcore (author) said:

    sorry, you're right, I was thinking of the first solution i posted in part 1, so scratch me previous answers :s

    did you remember to put a headline on the page after you selected it as a template?

  • Gsl said:

    what is a headline?

  • Kim said:

    hey so i uploaded the photoalbum.php but i cant select it as a template on the new page tab…all i have under templates is archive ,default and links….please help how do i do it?

  • popcore (author) said:

    Hej Dorthe.
    Dit indlæg var røget i spamfolderen så du må undskylde jeg først svarer nu. Kan ikke se dit album, så er lidt svært at svare på, du har jo nok slettet det fordi du blev træt af at vente, men skriv gerne igen hvis der er noget, dine beskeder skulle ikke ende i spamfiltret mere.

  • sparks said:

    Just put this in a page with the album adjusted for page size … and insert the .css below

    <iframe name="I1" src="http:///album URL" width="550" height="700">
    Your browser does not support inline frames or is currently configured not to display inline frames.
    </iframe>

    iframe {
    border: 0px solid #ffffff;
    }
    .I1 {
    margin-left: 10px;
    position: relative;
    width: 500px;
    border:0px;
    background-color:#fff;
    }

  • Rajatglassy said:

    as i can asume.. this album can notbe published in wordpress.com, mean free hosting scheme… Am i right.. ? pls confirm

  • gijigogo said:

    hi ive been trying to get your method to work and i just keep having the same problem as the above user where it displays the cannot display message, on top of bunch of "par"s in random places all over my page. i included the head tag using the html tab that said photoalbumspublish. so what am i doing wrong?

  • Dan said:

    where do i cand find html tab?
    it wont work here

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.