Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages

www.blogsome.com Forum Index » Plugins

Post new topic   Reply to topic
Recent Comments List, Click Counter Plugins
View previous topic :: View next topic  
Author Message
C.Báez
Guest





PostPosted: Sun Apr 10, 2005 7:47 pm    Post subject: Recent Comments List, Click Counter Plugins Reply with quote

Hi, I'm new in Wordpress and programming, so I can't make work this two plugins. I have alredy activated them in Wordpress and for the recent Comment List Plug-in I've added the next piece of code in to my template

<?php echo get_recent_comments(5, 7); ?>

But it doesn't seem to work. I've read somthing about the system blogsome uses for managing php. Also I have no idea of how make the click counter works.

Thanks in advance
Back to top
blacklighter



Joined: 27 Mar 2005
Posts: 16

PostPosted: Mon Apr 11, 2005 12:12 am    Post subject: Reply with quote

blogsome is using Smarty Tag so you shall put

{get_recent_comments quantity='5' length="7"} instead of the php
Back to top
View user's profile Send private message Visit poster's website
anyaka
Guest





PostPosted: Thu Aug 11, 2005 4:52 pm    Post subject: Recent Comments Code Reply with quote

My blog isn;t showing the comments yet when I used the code line given above. Is there something else I missed off that I should have included please? http://anya.blogsome.com
Back to top
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Thu Aug 11, 2005 11:12 pm    Post subject: Reply with quote

Can you post the section of code around the comments tag, so we can get an idea of context?
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
Anyaka
Guest





PostPosted: Fri Aug 12, 2005 9:24 am    Post subject: Recent Comments Code Reply with quote

I just put that line:

{get_recent_comments quantity='5' length="7"}

under the heading

<h2>Recent Comments</h2>

but it didn't work so I removed it for now.
Back to top
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Fri Aug 12, 2005 8:44 pm    Post subject: Reply with quote

This thread <http://www.blogsome.com/forum/viewtopic.php?t=502&highlight=getrecentcomments> describes the code generated by the recent comments tag. Although I haven't tested it myself, it might just be generating the list item tags inside the unordered list shown there. Have you tried wrapping the command in unordered list tags, like the following example?

Code:

<ul>
{get_recent_comments ..... }
</ul>


If that doesn't work, can you view the source of your blog front page and post the HTML from that section of the document? I'm interested in whether get_recent_comments isn't generating any HTML at all, or whether it's generating HTML that isn't being displayed by the browser.
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
anyaka
Guest





PostPosted: Sat Aug 13, 2005 4:10 pm    Post subject: Recent Comments Code Reply with quote

I've tried every possible combination of code I can based on my searches through the forums. No matter what I put in, the code causes either 1) my entire style sheet to go beserk with lines of code actually showing up at the top of the page; or 2) i get a "recent comments" heading but nothing is generated underneath it. Each time it fails I delete the offending lines to bring my blog back to normality. On the source page at the dashboard, it gives me the html code for each individualo comment, and not a generatable list command. Err... sorry, its difficult to explain - is their any example of a blog that has it working that I can go and ask for the code they used and where they put the code? (I have tried in both index.html and the style sheets).

Thanks heaps,
Anya
http://anya.blogsome.com
Back to top
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Sun Aug 14, 2005 2:05 am    Post subject: Reply with quote

First of all, if you are having display issues, start by validating your page and cleaning up the errors found there. It's hard enough to get valid HTML to display properly - getting invalid HTML to do it is a royal pain.

http://validator.w3.org/check?uri=http%3A%2F%2Fanya.blogsome.com%2F

Secondly, can you post the HTML that is generated by the {get_recent_comments} command? Without that, I have no way of telling if this is an issue with the command, or a display issue with the page layout. I'm pretty much stuck on troubleshooting until I have that information.
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
schinckel



Joined: 03 Apr 2005
Posts: 1238
Location: Adelaide, Australia

PostPosted: Sun Aug 14, 2005 7:46 am    Post subject: Reply with quote

This is what {get_recent_comments} was creating for me:

Code:
<div id="recentcomments"><span id="recentCommentsTitle">Recent Comments:</span><ul id="recentcommentsList">
<li><span class="recentCommentsPostTitle"><a href="http://schinckel.blogsome.com/2005/06/29/theme-conversion-benevolence/">Theme Conversion (Benevolence)</a>:</span>

<ul>
<li><span class="commentAuthor">Matthew Schinckel:</span> <a href="http://schinckel.blogsome.com/2005/06/29/theme-conversion-benevolence/#comment-181" title="View the entire comment by Matthew Schinckel">I've emailed this to you,...</a></li>
<li><span class="commentAuthor">Nikki:</span> <a href="http://schinckel.blogsome.com/2005/06/29/theme-conversion-benevolence/#comment-177" title="View the entire comment by Nikki">Is it possible for me...</a></li>
</ul>
</li><li><span class="recentCommentsPostTitle"><a href="http://schinckel.blogsome.com/2005/08/13/blogsome-moderator/">Blogsome Moderator</a>:</span>
<ul>
<li><span class="commentAuthor">Matthew Schinckel:</span> <a href="http://schinckel.blogsome.com/2005/08/13/blogsome-moderator/#comment-180" title="View the entire comment by Matthew Schinckel">@Luciane,

Good idea, I'll do that,...</a></li>

<li><span class="commentAuthor">Luciane:</span> <a href="http://schinckel.blogsome.com/2005/08/13/blogsome-moderator/#comment-179" title="View the entire comment by Luciane">How about creating a Blogsome...</a></li>
<li><span class="commentAuthor">Zach Heaton:</span> <a href="http://schinckel.blogsome.com/2005/08/13/blogsome-moderator/#comment-178" title="View the entire comment by Zach Heaton">Oh, but using your powers...</a></li>
</ul>
</li>
</ul>
</div>


Of course, remembering to activate the plugin helped!

For help on using the click counter, see http://frenchfragfactory.net/ozh/archives/2004/09/17/click-counter-plugin-for-wordpress/. It forwards clicks okay, but I haven't checked to see if it keeps a count of off-site clicks. It doesn't work with URIs defined in your Links list, though. If enough people want this part to work, we might need to ask rogerg nicely...Wink

You will need to know how to change from PHP code to Smarty Tags for this, though.
_________________
Blogsome Forum: Rules/Search
WordPress Codex; Smarty Tags Docs
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
garymonro



Joined: 09 Sep 2005
Posts: 2

PostPosted: Fri Sep 09, 2005 5:29 pm    Post subject: Get Recent Comments works.... but the font is tiny! Reply with quote

I have managed to get the Recent Comments facility to work using the advice already given. I pasted the following in my index.html file:

Code:
<h2></h2>
{get_recent_comments quantity="5" length="5"}


It's just below this piece of code:

Code:
<div id="sidebar">


My problem is that although the recent comments display the font is so small they're barely legible - as you can see on my blog.

Can you suggest a cure? Please bare in mind my knowledge of HTML etc is minimal to the point of being non-existent...

Thanks in advance.

http://garymonro.blogsome.com/
Back to top
View user's profile Send private message
zheaton



Joined: 03 Dec 2004
Posts: 532
Location: United States

PostPosted: Fri Sep 09, 2005 9:08 pm    Post subject: Reply with quote

To me, it looks as if it's in the same font as the rest of your sidebar links. (Safari 2.0.1, Mac OS 10.4.2.) Is that a problem, or do you see it as being smaller than the rest of your sidebar?
_________________
I'm no longer a moderator - don't PM me with questions.

Search the forum, check the wiki, and ask smart questions
Back to top
View user's profile Send private message Visit poster's website
schinckel



Joined: 03 Apr 2005
Posts: 1238
Location: Adelaide, Australia

PostPosted: Sat Sep 10, 2005 2:23 am    Post subject: Reply with quote

Just as a side note: the actual argument names that need to be used are: no_comments and comment_lenth. This is not reflected well in the docs: I had to download the source to get it to work.
_________________
Blogsome Forum: Rules/Search
WordPress Codex; Smarty Tags Docs
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
garymonro



Joined: 09 Sep 2005
Posts: 2

PostPosted: Sat Sep 10, 2005 9:06 am    Post subject: Reply with quote

Thank you for the response.

Actually, it looks a bit better at home than it did at the office; I have a later version of IE at home.

I think I was expecting to see summaries of recent posts that are as clear as the example given in the plug-in's homepage.

I've seen other comments summaries on blogs that are also very clear with easily read comment titles and comment summaries. The comment title in my blog is clear but the comment summary seems a little small. It can still be read though so maybe I'm just being a little over fussy. I like the feature and will leave it on display in my blog.

Many thanks,

Gary Monro
Back to top
View user's profile Send private message
AnyaT
Guest





PostPosted: Sat Sep 24, 2005 7:16 am    Post subject: Thank you!! Reply with quote

Thanks heaps to everybody for helping!! I had given up trying for a while but had a bit of time to play with it today and managed to get it working. I used the code given above by Gary and also the advice about activating the plugin! My validation failed but with 100 errors in it I haven't finished fixing them yet but fortunately the plugin still works!!

Thanks to all!
A
Back to top
Display posts from previous:   
Post new topic   Reply to topic    www.blogsome.com Forum Index » Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum