Halfagain IM Forums
May 25, 2012, 00:01 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Due to increasing spam we are forced to make this forum "Read Only". If you have an issue, most likely was discussed here. Use the Search function and try to find related discussions. If you can't find any helpful information, just email support at halfagain dot com"
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Help in editing templates -Omar Kindly Help  (Read 2299 times)
0 Members and 2 Guests are viewing this topic.
pary
Newbie
*

Karma: 1
Offline Offline

Posts: 13


« on: October 28, 2008, 20:27 »

Sorry to trouble you again.Shocked

Actually I used wpconvertor and got some templates to use with BS. They converted those wp themes fine except that they don't have that blogroll thing which adds external links assigned to a particular blog group.

So, I tried to add the following code in the template editing it -


favorites


   

    {loop:hardlinkage}
         
  • {title}

  • {/loop:hardlinkage}
       


But this makes my blog pages to be empty.

But if I make any other changes to the template like if I remove the tags part, it is done fine with no problems.

I don't get it.

To be more straightforward - if I wanted to add that blogroll hardlinkage code in the following sample HTML code for "Post view" page template , how do I do that -?
 







{$post.title|strip_tags} {$site.title}






 






{$post.title|strip_tags}


{$blog.subtitle}






{$post.title}



{$post.content}



Info & Utils


Published in {$post.date|date_format:"%A, %B %e, %Y"}, at {$post.date|date_format}, and filed under {$blog.topic_name}.


Do it youself: Digg it!Save on del.icio.usMake a trackback.




















  • Archives






  • {$blog.topic_name}





{$post.title|strip_tags} © {$post.date|date_format:"%Y"}.
Theme Squared created by Rodrigo Ghedin.






Logged
Omar
Here to help.
Administrator
Hero Member
*****

Karma: 10001
Offline Offline

Posts: 2687


« Reply #1 on: October 29, 2008, 09:40 »

The pages become empty because you used some BS code for blogroll, but not the right one. As you know BS can use smarty based templates (what wp converter outputs too) and some older html only based templates (which code you used for links). So you put html tokens in a smarty template, and that broke it.

Here is the code you need to use in your templates to be all fine:


Bookmarks



       {foreach from=$hardlinkages item=linkage}
           
  • {$linkage.title}

  •    {/foreach}

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!