Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-01-2007, 06:59 PM   #1
seoguy
Confirmed User
 
Join Date: Nov 2004
Posts: 381
Newbie tutorial: Changing a WP template into a Blogs Organizer template

Here I show you step by step how to transform a wordpress template into a Blogs Organizer template.

Prepare your site in Blogs Organizer. Go to 'Regular Blogs > Add New' and fill out all the fields. At 'Blog Template' just choose anyone, it doesn't matter which one you take at this point, it will change anyway.

After setting everything up press 'ADD' at the bottom of the page. Before you continue working with Blogs Organizer choose a wordpress template of your choice. Wordpress templates look difficult because it uses include for the header, footer and so on, forget about that just copy the source code of the RENDERED wordpress template into your favorite text editor.

Now go back to Blogs Organizer and scroll down the page until you see the section '* Main Template:' Above the content part of this section you see all the tokens you can use in the blog template. Copy %%TITLE%% and place it in the title tag of the template you have in your text editor. Let's say (since we used the already rendered wordpress template) there is already a title like for example:

Code:
<title>This title was here already</title>
replace that with

Code:
<title>%%TITLE%%</title>
What happens is that the token '%%TITLE%%' will be replaced with the title you entered for your blog in BO. Do the same with the tokens %%DESCRIPTION%%, %KEYWORDS%% for the meta description and meta keywords. Just replace the existing content with the tokens like you did with the title. Also place the tokens %%LINKTRADES,10%%, RECENTPOSTS,10%% (or %%RECENTPOSTS_LI,10%%), %%SITEMAP%% and %%BLOG_RSS%% into the sidebar(S) of the template in your text editor. Put it in the right format. If you don'T know what I'm talking about just place it there and look at the output once we're done, you'll see what this tokens are good for and will understand how to format them. If you wish to manage your linktrades with Blogs Organizer (I'd suggest you use Links Organizer for this) also place %%LINKTRADES,10%% into the sidebar. This token will be replaced with
another template, the 'Link Trades Template' which you find right above the 'Main Template'.

Now comes something some newbies might find complicated. You need to understand the 'loop' in blogs. Take a look at the content part in the template you have in your text editor. Most blog templates are mostly CSS templates and very often the content part of such a blog is within a 'content' div:

Code:
<div id="content">
... the posts ...
</div>
Now there will be some posts aready in this content part, we don't need them, we just need ONE post. You need to find out which DIV tags are for the posts. It may sound complicated but it's not. Each posts starts with the same div tag like for example <div class="entry">. So when you see something like

Code:
<div class="entry">
... blog post content...
</div>

<div class="entry">
...
you see see where the post starts and where it ends. Now grab exactly one post and copy it into a new page in your text editor. Delete all the posts in the content section of your wordpress blog but not the content DIVs.

Let's take a look at a sample post:

Code:
<div class="entry">
				<h2 id="post-8" class="pen"><a href="http://themes.wordpress.net/testrun/?p=8" rel="bookmark" title="Permanent Link to Blockquotes galore">

Blockquotes galore</a></h2>
				<small>October 24th, 2005 <!-- by Matt --></small>
				
				
					<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque sed felis. Aliquam sit amet felis. Mauris semper, velit  Ut a mi. Etiam nulla. Mauris interdum.</p>
				
				<p class="postmetadata">Posted in <a href="http://themes.wordpress.net/testrun/?cat=2" title="View all posts in Test Category 1" rel="category tag">Test Category 1</a> <strong>|</strong>   <a href="http://themes.wordpress.net/testrun/?p=8#respond" title="Comment on Blockquotes galore">No Comments »</a></p> 
				
				
				<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
			xmlns:dc="http://purl.org/dc/elements/1.1/"
			xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">

		<rdf:Description rdf:about="http://themes.wordpress.net/testrun/?p=8"
    dc:identifier="http://themes.wordpress.net/testrun/?p=8"
    dc:title="Blockquotes galore"
    trackback:ping="http://themes.wordpress.net/testrun/wp-trackback.php?p=8" />
</rdf:RDF>				
			</div>
First of all, delete everything we don't need like for example the trackback. Also place the tokens you find in the section 'Post Template:' in bo at the right spots in the post template in your text editor. For example

Code:
<small>October 24th, 2005 <!-- by Matt --></small>
would be replace with

Code:
<small>%%DATE%%</small>
the footer part should look like this after changing it:

Code:
<p class="postmetadata">Posted in %%CATEGORIES%%</p>
Notice that I deleted the comment part, simply because Blogs Organizer doesn't support comments at the moment. So we don't need that part and delete it. Also replace the whole content of the post in your editor with %%BODY%% and place all other tags at the correct position. After changing my sample post it should look like this:

Code:
<div class="entry">
<h2 class="pen">%%TITLE%%</h2>
<small>%%DATE%%</small>				
%%BODY%%
<p class="postmetadata">Posted in %%CATEGORIES%%</p>
</div>
There are some more tags you can use in your post template, if you want to know what they are good for simply place them in your post template and take a look at the output once the blog is ready!

Now copy this post template and past the code into the '* Post Template:' section of Blogs Organizer.

We deleted everything in the content section of the wordpress template before, remember? Now it's time to place another token right in the content section. In Blogs Organizer there is a token available in the main template section called %%POSTS%%. Put this in the content part of your wordpress template now, it should look similar to this:

Code:
<div id="content">
%%POSTS%%
</div>

copy the whole wordpress template from your editor and replace the existing content from '* Main Template:' in Blogs Organizer with it.

Click update at the bottom of the page.

Upload your blog files where you want your blog to appear.

Now you will notice that you blog will look fucked up, simply because we didn't upload the images and the css file of the wordpress template yet (in case it has images). So upload the images and the css file and make sure the paths in the template are correct...

This is it actually, this might look much for a newbie but once you actually understand it (this will happen if you just do it a couple of times) the whole procedure shouldn't take longer than 5 minutes...

thx for your attention :-)

Last edited by seoguy; 12-01-2007 at 07:01 PM..
seoguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2007, 07:08 PM   #2
liqqwid
Confirmed User
 
liqqwid's Avatar
 
Join Date: Jun 2005
Location: world-wide
Posts: 162

don't know how many people post to lots of blogs...and if they've tried more than one prog. to do the job, like the one mentioned above... but I wonder what the thoughts would be on this one...

Freeware powerful blog editor for WordPress, Typepad, MovableType and other blogs. Automates images uploading support (Flickr, ImageShack, FTP). Integrates with Firefox, IE, Word, RSS Bandit, FeedDemon, Sharp Reader. Provides assistance in managing existing posts, adding links from Amazon. Quick Snippets feature automates commonly typed texts and helps to auto-link referenced resources, and much much more!!!

click here to goto download.com post2blog download page
__________________
"I wasn't born with talent for the game, but passion for the game." ~ Wayne Gretzky ~


Last edited by liqqwid; 12-01-2007 at 07:10 PM..
liqqwid is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-01-2007, 09:26 PM   #3
fatfoo
ICQ:649699063
 
Industry Role:
Join Date: Mar 2003
Posts: 27,763
thanks, good tutorial
__________________
Send me an email: [email protected]
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-24-2008, 11:57 PM   #4
Marialovesporn
Confirmed User
 
Join Date: Feb 2007
Posts: 579
Nice info you got there, thanks !
Marialovesporn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.