spanakorizo
Forum Replies Created
-
Forum: Plugins
In reply to: [Limit Daily Posts] [Plugin: Limit Daily Posts] Limit per author?just returned from long time travelling and testing now in my xampp server.
Q:
Will the plugin reset back the limit after 24hrs of the author’s 2nd post attempt or every day at 00:00 ?
(i need to wait to understand.. now it’s still afternoon here)Can i ask for 1 more feauture?
Is it possible for the message to be saved as “draft” instead of going to the trash.I tried to read your code but i cannot understand the functions, i guess it will need something like : “if limit = on , then save the post as draft and show the message to the user”
Can it be done easily? (if it’s like 1 line code please paste here and i’ll modify my self)Thank you again!!
Forum: Plugins
In reply to: [Limit Daily Posts] [Plugin: Limit Daily Posts] Limit per author?thank you very much, it’ll take some time to test it cause i’m travelling, i will post feedback!
Forum: Fixing WordPress
In reply to: post_author displays the author ID only..hello and thank you very much for your reply!
the link helped but i am still in the dark, and too much coding will make me crazy.
actually here is the part that i “echo” the post_author directly from database.
Because of this i get only the id, but i want the username.
It is a most read plugin, i know there are A LOT out there but i like this cause it’s counting unique page views(with cookie) + exclude posts by date range`
echo ‘<ul id=”erc2″>’;
foreach ($output as $line) {
$views = ” “.($line->cnt).””;
$t = str_replace(“‘”,”'”, $line->post_title);
echo “<li><a title='”. $t . $ttviews . “‘ href='” . get_permalink($line->post_ID) . “‘>” . ‘<b><font color=”DimGray”>’ .($line->post_author) .($line->post_title). ‘</b></font>’ . “</a> ĪĪÎšĪ $line->post_date_gmt “;if ($widget_show_hits == ‘yes’) {
Echo “” . ‘<font color=”green”>’ . $views . ” times”;
}
echo “</font></li>”;
}
echo ‘</ul>’;
} else {
echo ‘<ul><li>’ . __(‘No results available’, ‘most_read’) . ‘</li></ul>’;
}
} `thank you once again
Forum: Fixing WordPress
In reply to: post_author displays the author ID only..now i understand that because of this plugin methods i use it will only work with “post_author” because it pulls only fields that exist in the db table posts
that’s why i cannot use get_author etc, it must allways pull the details with post_author.
maybe a function that will convert after all the ID’s that pulled from the database? , like:if ($post_author->id) {
then
echo $user->user_nicename;
}ofcourse this code doesnt work cause im no pro in php but i try to give you directions
please somebodyForum: Fixing WordPress
In reply to: post_author displays the author ID only..how to modify post_author to display the username and not the id
(i can only use post_author to get the current post author from the database)Forum: Fixing WordPress
In reply to: post_author displays the author ID only..bump
update: also the date is allways the same đ
what am i missing?update: ok with the date
but no matter what, i can’t display the post’s author.
my blog is single wp installation but allow of multi autors writing.
it show allways the same nickname with the common codes i triedForum: Plugins
In reply to: [WP Popular Posts] [Plugin: WordPress Popular Posts] Where's Ikki24?does anybody know how to modify the plugin in order to show unique page views!?it looks really simple as i saw in a hit-counter plugin. 3 lines of code to add the cookie
if (get_option('wphc_count_only_unique')) { if (!$_COOKIE['wphc_seen']) { setCookie("wphc_seen", "1", time() + (3600 * 24)); } else { // bail if non unique and we're only counting uniques return; } }the code that i paste is from this plugin here:
http://ww.wp.xz.cn/extend/plugins/wordpress-hit-counter/Forum: Plugins
In reply to: [Limit Daily Posts] [Plugin: Limit Daily Posts] Limit per author?Thank you so much mihirdhandha, i’ll look forward for it! đ
sebaxtian thank you very much!i tried it on my local wordpress and it looks ok so now i will go live đ
thanks again!!thank you sebaxtian, this is very good! đ
or please, some word from the author? i think i am the 3rd or maybe more, this year that i do this request đ
maybe somebody can suggest another plugin that count the views with JS or maybe with a cookie? If my blog’s members hit refresh it increase the page views
Forum: Plugins
In reply to: [WP Post Limiter] [Plugin: WP Post Limiter] request: Limit posts dailysorry for double post, i clicked notify me button đ