Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter mpiftex

    (@mpiftex)

    Hey Ikki24,
    that was a quick reply as usual! 🙂

    This is a quick, easy but unfortunately “dirty” fix! I’ve done that already but after every plugin update the line will be uncommented. I believe the remove_action method is the clean way to do it but I guess I’m doing something wrong…

    Thread Starter mpiftex

    (@mpiftex)

    Just updated to v2.0.2 and the sorting problem has been fixed! The title_length is also fixed but I still can’t figure out the pattern attribute. Maybe it’s just me doing something wrong but since I’m not using it this feature I’m not gonna sweat about it.
    Good job Ikki, thanks for all the support.

    ps. I will switch this post to resolved now.

    Thread Starter mpiftex

    (@mpiftex)

    Hey Ikki, I checked all the attributes except from rating since I don’t use WP-PostRatings.
    You might want to have another look at:
    title_length=n -> the number of characters printed is actually n+3
    Also I couldn’t get to do the pattern to work. The code I used:
    do_pattern=1&pattern_form='{title}: {summary} {stats}' and in the output it was just ignored, getting a simple list formatted as if these atrributes didn’t exist.
    Everything else seems to be working fine.

    Thread Starter mpiftex

    (@mpiftex)

    Hey Ikki, timmos…
    I gave it another look and I think that Timmos is right about the order thing! I didn’t noticed before because coincidentally my most viewed posts are the most commented. I’ve tried views, avg, comments, and in all three the list is the same, ordered by the number of comments.

    Timmoss, about the bullets thing. You might want to check if the some ul styling in the css removes the bullets. This is very likely if you reset the CSS or if the theme you’re using removes all the bullets in the lists in the sidebar. You should try this:
    In the code above, replace wpp_start='<ul>' with this wpp_start='<ul class=\"pop_posts\">'. This will assign the class “pop_posts” to the list. Go to your css file and add:

    ul.pop_posts {list-style-type: disc;
    	margin-left:15px;}

    and see what happens. Alternatively you can add the whole function into a div. Something like:

    <div id="popular_posts">
    <?php if (function_exists("get_mostpopular")) get_mostpopular("range=all&......?>
    </div>

    and in the css file add:

    #popular_posts ul{list-style-type: disc;
    	margin-left:15px;}

    I hope this helps.

    Truth, if you read this, can you please let us know if your list is sorted by comments or views? Thanks.

    Thread Starter mpiftex

    (@mpiftex)

    That was super-detailed! Thanks Ikki!
    I thought that the default value for the range would be “all”, as soon as I’ve added it, the posts appeared! Great!! I would suggest you to add the default values in the attribute list.

    For others who will use the function, here is my setup, with all the attributes that I’ve used:

    <?php if (function_exists("get_mostpopular")) get_mostpopular("header='Popular Posts'&header_start='<h4>'&header_end='</h4>'&range=all&order_by=views&limit=8&stats_comments=0&stats_views=0&wpp_start='<ul>'&wpp_end='</ul>'&post_start='<li>'&post_end='</li>'&pages=0"); ?>

    This code exports something like this:

    <h4>Popular Posts</h4>
    <ul>
    <li>Post name here</li>
    <li>Another post here</li>
    .....
    </ul>

    Once again, thanks Ikki for all the great work, for sticking behind your plugin and take into consideration the users’ desires! 🙂

    Thread Starter mpiftex

    (@mpiftex)

    Hey Ikki24, thanks for dealing with this issue!
    I did update to v2.0.1 but now I’m having the same problem with the one mentioned here. The list appears empty and I get the “Sorry. No data so far.” message. I downgraded again and the list appears correctly as it did before (no stats were deleted). I checked the mySQL db and the table _popularpostsdata still has entries, the _popularpostsdatacache is empty.

    Can you please have another look at it?
    Thanks again.

    Thread Starter mpiftex

    (@mpiftex)

    Thanks for the reply Ikki24 and thanks for all the time and effort you’ve put into the plugin, it’s really appreciated.

    I really hope that in some point you’ll add this function again. I’m not a fan of widgets (I like to have full code control) and since I want the Popular posts list in the sidebar so for now I downgraded back to 1.5.1.

    AutoKwame, I don’t think it’s possible to put it in a tabbed sidebar as a widget. Although I’m not completely sure. I know it is not suggested but maybe you should downgrade too (and keep you’re site intact) until a solution is found.

    This is really weird. First of all I changed line 645 as you said and all the greek words appear as questionmarks: ????. Same result in both blogs.

    I repeated the experiment, new blog, same version and encoding and created a few posts. Installed Relevanssi and now for every greek word I search for, all the posts are returned as results, even if the word does not exist in the post. Even if the “word” I search for is a random combination of 20 characters.

    Now back to my first blog, which has real posts. After deleting the plugin and the tables in the db and reinstalling it, again no results are returned for any search in greek. Keeps working as it should when an english word is used.

    In both blogs the posts are a combination of real posts that I have written and dummy test from the same site that you got your text. I don’t think it makes a difference though. I played around with the db collation and the respective options in wp-config.php with no luck.

    I understand that since you can’t see the problem you can’t just guess what it might be but I really appreciate you trying!

    MichaelH you’re a life saver!! The code above works GREAT!! I’ve been searching for a way to do this for hours. Have you figured out by any chance if the code is efficient? Are there many db queries taking place? (I have no idea, just asking). Again, many thanks.

    igneous, give it another try. Just copy paste it into your code and then change the echo line to show the user info! You can use this list to get the user information (name, url, etc) you need.

    I created a new blog (v2.8.2, utf8_general_ci) out of the box: default theme, no other plugin. Added a couple of posts in greek, installed Relevanssi and the same thing happens. No greek words indexed or found during search..

    Too bad, because it seems to be a very helpful plugin (tested with english terms)! Back on the quest for finding a good search plugin then…

    Thanks for your help msaari. If you can figure out what’s wrong and maybe have a fix in a latter version it will be great and I would be more than happy to give it another try! If you have any ideas for a quick fix or something, I’ll be checking back this topic. Thanks for your time.

    Thanks for the reply msaari. It’s weird that it works for you!
    To answer you question, no all the indexed common words are english words.

    I don’t know if it makes any difference but I have the latest WP version (2.8.2), the db encoding is utf8_general_ci and I’m running it locally, using XAMPP.

    I was taking a look at the plugin tables and I noticed that in wp_relevanssi, under “terms” the vast majority of entries is empty. Is that normal?

    I’m having a different problem but might be related to encoding too.
    I have a blog on which the posts are in greek (which means no latin characters). Every time I do a search for a greek word, there are no results. If I search for an english word contained into the posts, I’m getting results.
    I deactivated the plugin and results are found again on greek words.

    Any ideas?

    Thread Starter mpiftex

    (@mpiftex)

    I appreciate the help stvwlf!

    I create a page template named blog and i assign it to the static page blog. I open the blog page and it’s displayed with the blog template layout. Great.

    However as soon as I set the page blog as the Posts Page, the page blog is not displayed according to the blog template but according to index.php template. I assume that the Posts Page is not a static page anymore.

    As I wrote on the first post, I can edit index.php and make it appear just like blog template does but still, when I click on a post’s title (to open that post separately), it is displayed accordingly to the single.php template (which is different than blog template and index.php).

    I hope I’m making myself clear.. I’m sorry for the not-so-clear and possibly confusing use of the terms.

    Thread Starter mpiftex

    (@mpiftex)

    Thanks for the reply stvwlf.
    However I don’t think that this is the solution to my problem.

    You see I want to change the way of the post appears depending on where the post was opened:
    if it was opened from the website (display by category), I want it to appear with the site’s layout
    if it was opened from the blog(display as posts page), I want it to appear with the blog’s layout
    In both cases the post is in a category but I want it to appear differently in different parts of the site.

    I don’t know if that is even possible, that is why I’m trying to think of another way but i’m out of ideas.

Viewing 14 replies - 1 through 14 (of 14 total)