The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Feb 22, 2011 10:43 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 07, 2009 1:58 pm
Posts: 37
Location: London
Hi,

I've been hunting around the forum trying to find answer on a couple of custom mods I'd like to do to LyftenBloggie. It appears as though the Lyften author no longer offers any support on the component as there are a number of unanswered topics outstanding.

I'm trying to achieve the following:
1) Remove "Comments", "[category]Networks" & author details from each post. Both the summary view http://www.thenetworkspotlight.com/ and the detailed view http://www.thenetworkspotlight.com/news/6-73-business-networks-hacked of each post.
I would still like users to be able to comment - I refer to the items below the "title" above.

2) Apply a custom image to each post, which is visible within the detailed view and a thumbnail on the summary page view.

The site is still in development, so its a bit patchy/messy.

Hopefully this topic wont be added to the list of unanswered Lyftenbloggie posts...I have my eye's peeled :pop

_________________
http://www.thenetworkspotlight.com
Networks, Email, VPN, Security. Latest News.


Top
 Profile  
 
PostPosted: Wed Feb 23, 2011 1:00 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 07, 2009 1:58 pm
Posts: 37
Location: London
I've managed to solve problem number 1.

root/components/com_lyftenbloggie/addons/themes/[theme_name]

index.tpl - this is the design/layout of summary/blog view
entry.tpl - this is the design/layout of the item view.

hopefully this will help someone...will let you know if I can figure out problem 2.

_________________
http://www.thenetworkspotlight.com
Networks, Email, VPN, Security. Latest News.


Top
 Profile  
 
PostPosted: Wed Feb 23, 2011 2:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 07, 2009 1:58 pm
Posts: 37
Location: London
I think I know how to acheive a custom image for each blog post, but I'm having difficulty trying to implement/amend the code, and wondered if anyone could have a look.

Here's the code of entry.tpl - this code displays the full blog post inlcude the image, and I figure if I can insert the full article/post including the picture, I can place a read-more link in.

Code:
<table class="contentpaneopen">
<tbody><tr>
<td valign="top">
<div id="lyftenbloggie" class="lyftenbloggie">
<blog:value select="{entry.event.afterDisplayTitle}" />
<div class="postinfo">
   <h3 class="blogentry-title"><blog:value select="{entry.title}" /></h3>
   <p>Posted in <blog:value select="{entry.category}" /> on <blog:value select="{entry.created}" /><blog:value select="{JTEXT.SPACE BY}" /> <blog:value select="{entry.author.username}" /></p>
</div>

<div class="blogentry">
<blog:if test="{entry.bookmarks[badge]}">
<div class="bookmarkbadge"><blog:value select="{entry.bookmarks[badge]}" /></div>
</blog:if>
<blog:value select="{entry.event.beforeDisplayContent}" />
<blog:value select="{entry.text}" />
<blog:value select="{entry.event.afterDisplayContent}" />
</div>
<div class="clear"></div>

<blog:if test="{entry.tags}">
<span class="blogentry-tags">
   <blog:value select="{JTEXT.TAGS}" /> <blog:value select="{entry.tags}" />
</span>
</blog:if>

<blog:if test="{entry.bookmarks[button]}">
<div class="bookmarks">
<blog:value select="{entry.bookmarks[button]}" />
</div>
</blog:if>
<div class="postdata">

   <div class="blogentry-options">
      <blog:if test="{entry.allowComments}">
         <a href="#comment"><blog:value select="{JTEXT.LEAVE A COMMENT}" /></a> &#149;
      </blog:if>

      <blog:if test="{entry.trackback}">
      <a href="{entry.trackback}" class="trackback-link"><blog:value select="{JTEXT.TRACKBACK}" /></a>
      </blog:if>

      <blog:if test="{entry.editable}">
      &#149; <a href="{entry.editable}"><blog:value select="{JTEXT.EDIT FRONTENT}" /></a>
      </blog:if>
   </div>
</div>
<div class="clear"></div>

   <blog:if test="{entry.allowComments}">
      <blog:comments id="{entry.id}" title="{entry.title}" />
   </blog:if>

</div>
<div class="clear"> </div>
<blog:if test="{SETTING.powerby|1}">
<div id="blog-footer"><blog:value select="{JTEXT.POWERED BY}" /> <a href="http://www.lyften.com" target="_blank">LyftenBloggie</a></div>
</blog:if>
</td>
</tr>
</tbody></table>


And this code displays the summary view(with read-more links).

Code:
<table class="contentpaneopen">
<tbody><tr>
<td valign="top">
   <div id="lyftenbloggie">
   <blog:foreach item="entry" from="{entries}">
   <div class="lbPost" id="post-{prod_pos}">
      <div class="postinfo">
      <h3 class="blogentry-title"><a href="{entry.readmore_link}" rel="bookmark" title="{entry.title}"><blog:value select="{entry.title}" /></a>
      <blog:if test="{entry.state} = '-1'">
      <span class="entry-state">[<blog:value select="{JTEXT.UNPUBLISHED}" />]</span>
      </blog:if>
      </h3>
      <p>Posted in <blog:value select="{entry.category}" /> on <blog:value select="{entry.created}" /><blog:value select="{JTEXT.SPACE BY}" /> <blog:value select="{entry.author}" /></p>
      </div>
      <div class="blogentry">
         <blog:value select="{entry.text}" />
      </div>
      <div class="clear"> </div>
      <blog:if test="{entry.tags}">
      <span class="blogentry-tags">
         <blog:value select="{JTEXT.TAGS}" /> <blog:value select="{entry.tags}" />
      </span>
      </blog:if>
      <blog:if test="{entry.bookmarks[button]}">
      <div class="bookmarks">
         <blog:value select="{entry.bookmarks[button]}" />
      </div>
      </blog:if>
   
      <div class="postdata">
         <div class="blogentry-options">
            <blog:if test="{entry.readmore}">
            <div class="read-more"><a href="{entry.readmore_link}" class="more-link"><blog:value select="{JTEXT.READ MORE}" /></a></div>
            </blog:if>

            <a href="{entry.readmore_link}#comment" title="{entry.title}"><blog:value select="{entry.comcount}" /> <blog:value select="{JTEXT.COMMENTS}" /></a>
            <blog:if test="{entry.trackback}">
            &#149; <a href="{entry.trackback}" class="trackback-link"><blog:value select="{JTEXT.TRACKBACK}" /></a>
            </blog:if>

            <blog:if test="{entry.editable}">
            &#149; <a href="{entry.editable}"><blog:value select="{JTEXT.EDIT FRONTENT}" /></a>
            </blog:if>
            <blog:if test="{entry.publishable}">
            &#149; <blog:value select="{entry.publishable}" />
            </blog:if>
         </div>
      </div>   
   </div>
   </blog:foreach>

   <blog:value select="{message}" />
   <blog:if test="{pageNav.limit} &lt; {pageNav.total}">
      <div class="page-nav">
         <dl>
            <dt><blog:value select="{pageNav.getPagesCounter}" /></dt>
            <dd><blog:value select="{pageNav.getPagesLinks}" /></dd>
         </dl>
         <div class="clear"></div>
      </div>
   </blog:if>
</div>
<div class="clear"></div>
   <blog:if test="{SETTING.powerby|1}">
   <div id="blog-footer"><blog:value select="{JTEXT.POWERED BY}" /> <a href="http://www.lyften.com" target="_blank">LyftenBloggie</a></div>
   </blog:if>
</td>
</tr>
</tbody></table>


Anyone know how I can use the code from entry.tpl and add it to index.tpl to create the cutsom image on every page?

_________________
http://www.thenetworkspotlight.com
Networks, Email, VPN, Security. Latest News.


Top
 Profile  
 
PostPosted: Wed Feb 23, 2011 7:17 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Aug 07, 2009 1:58 pm
Posts: 37
Location: London
Ok, not a great way of doing it, but I've managed to use a custom image on the summary view of the blog.

Here's how I done it.
1) Install modules anywhere.
2) Create a custom module with your image, link, alt & class. Make note of the module ID(55 used in example).
3) Type your article/blog etc. Type "{module 55}" where ever you want your picture to appear.
4) Control the image using css classes.

I sure hope this helps someone. I've literally spent 6hours straight trying ways to hack this module. I'm sure there's other ways to achieve it, but I'm useless at trying to understand component markup.

_________________
http://www.thenetworkspotlight.com
Networks, Email, VPN, Security. Latest News.


Top
 Profile  
 
PostPosted: Sun Feb 26, 2012 6:10 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Feb 26, 2012 6:03 am
Posts: 1
To remove the blinklist!, blogmarks!, blinkbits! and ask! icons, delete the following lines,
found in entry.tpl on lines 27-29.
components/com_lyftenbloggie/addons/themes/default

<div class="right" style="padding-top: 15px;">
<blog:value select="{entry.bookmarks[button]}" />
</div>

This will remove those annoying icons that dont work.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group