Embedding your publication!
Recently I got a lot of questions on how to embed an activated publication so the viewers don’t see the pagegangster.com link in the url field of the browser. There are several ways to hide the domain name or getting some other trick to work. If you want to read more about that, look at some quick tutorials and code snippets on our support section of pagegangster.com. This post will concentrate on just hiding the pagegangster.com domain.
First step is to upload and activate your publication. You can upload the publication here and you’ll receive an email when it’s converted so you can activate the publication. Let’s say you have activate the publication located at http://www.pagegangster.com/p/ElriB/ and want to embed it on your website. And you want your viewers to see a thumbnail of the front page and be transferred to the publication (hidden on your domain) when they click it. No problem:
First we must get the embed tags. You can get these from the mail you got when you activated the publication or inside your account. In your account you can find the publication and press the “Show embed/link code” just below the “edit publication” link:


Copy the embed code looking something like this:
<a href="http://www.pagegangster.com/p/ElriB/">
<img src="http://image.pagegangster.com/ElriB/thumb.jpg" border="0" />
</a>
You can how insert this on your front page (or wherever you want to place the publication). But now you’re linking directly to the pagegangster.com domain, and you’ll properly don’t want this. Instead you can create a file called “publication.html” on your webserver and link to this instead. The only think you’ll need to change is the link in the above code, so it becomes:
<a href="http://www.yourdomain.com/publicaion.html">
<img src="http://image.pagegangster.com/ElriB/thumb.jpg" border="0" />
</a>
Remember to change yourdomain.com with your actual domain. The next step is to create the publication.html page. This page should embed the publication in a frame so it will look as the publication is directly embedded there. Simply use this code:
<html>
<head>
<title>Window title</title>
</head>
<frameset cols = "*">
<frame src ="http://www.pagegangster.com/p/ElriB/" />
</frameset>
</html>
That should be all you need. There are tons of different ways to embed your publication so be creative. We’ll also soon be looking into building modules for some of the major CMSes out there. So if you’re using a CMS and would like us to focus on that drop a comment and we’ll put it on the list of things to look at.
Comments (3)
Give us your comment