msnfull
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-PostRatings] [Plugin: WP-PostRatings] Display top rated post by authorInstall and configure http://wordpress.org/extend/plugins/wp-smart-sort/
You can now sort author’s posts (score, votes etc) by adding a link like this: http://your-website.com/author/admin/?ssort=_ratings_score-pm&sdir=desc
Ok, I figured it out. The problem was that links in my theme had a padding attached to them. I fixed it by adding this to gdsr.css.php
.ratingstarsinline a { padding:0!important; margin:0!important;}Your support is Weltklasse!
Sorry for mixing up the filter mechanism, I get it now… 🙂
I guess I will simply remove the column #2 and add the country codes as an image alt text, this works exactly as intended.
You can see the table in question here: http://comparetheleagues.com/testing/
try filtering for “ESP” (“ENG” works because of hidden colomn #1 has a cell named “England”)
only does an exact cell matching
Yes, that was the problem. I set the filter to “England” and expected rows to show up where
<img src="http://url.com/england.png" title="England" />was the content of cells.
I guess I just add columns with exact cell matches and hide them then — except you have a better idea. 🙂
Forum: Plugins
In reply to: [WP Smart Sort] 404 Error with pretty permalinksI found a solution!
Using the following code, you can keep your current “fancy” permalinks, but let wp-smart-sort use “ugly” ones.1. Open /wp-content/plugins/wp-smart-sort/wp-smart-sort.php
2. Go to line 257 and find:if ($this->ss_use_permalinks()) { $option['asclink'] = $this->ss_get_current_context_url() . 'sort/' . $option['nicekey'] . '-asc/'; $option['desclink'] = $this->ss_get_current_context_url() . 'sort/' . $option['nicekey'] . '-desc/'; }3. Replace with:
if ($this->ss_use_permalinks()) { $url = parse_url($this->ss_get_current_context_url()); $url = $url['scheme'] . "://" . $url['host'] . $url['path'] . "?" . $url['query']; $option['asclink'] = $url . '&ssort=' . $option['nicekey'] . '&sdir=asc'; $option['desclink'] = $url . '&ssort=' . $option['nicekey'] . '&sdir=desc'; }Example URL output:
http://your-site.com/category/example/?ssort=_ratings_score-pm&sdir=descIt’s not perfect, as the plugin still doesn’t generate “fancy” links, but you can at least get it to work again on your website.