totalgraybear
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: How to find if user has made a post before?Next time, I’ll show up in drag, may be that’ll help :))
It did work, Thanks very much MichaelH. Here’s what I did:if (have_posts()) : while (have_posts()) :the_post(); if (get_the_author()==$username){ $postcounter=get_the_author_posts(); } endwhile; endif; if((int)$postcounter>0) { blah blah blah }
I had to put the counting statement inside an IF statement to avoid echoing authorname or # of posts.
Also, it appears that get_the_author_posts() returns a string value. I had to convert it to an integer before I could use it. It shouldn’t be that way, may be I wasn’t doing something right.Forum: Developing with WordPress
In reply to: How to find if user has made a post before?hmmm…most of my questions end up unanswered…must be my looks…
Forum: Developing with WordPress
In reply to: How to find if user has made a post before?anyone…
Forum: Fixing WordPress
In reply to: Redirect User to another page after submiting blog postSee here for answer.
Forum: Plugins
In reply to: How to prevent re-display of Post Form after submitting itSee here for solution.
Forum: Everything else WordPress
In reply to: redirection after submitting blogSince there were no responses, I ended up digging up some more and found a way out.
I hardcoded the variable $location in /wp-admin/post.php. Was originally:
$location=”post-new.php?posted=$post_ID”
$location is used this way: wp_redirect($location)
Hope this helps out those who customize WP. Remember to consider all the cases for which $location (or the redirect call) needs to be changed in post.php.Forum: Everything else WordPress
In reply to: redirection after submitting blogok. $15 for the correct answer….
anybody?Forum: Everything else WordPress
In reply to: redirection after submitting blogI meant to say:
Yes, you are right. The user is redirected to the empty Write Post subpanel after publishing a post. And I want it to go to another page of my choice.Forum: Everything else WordPress
In reply to: redirection after submitting blogSorry about that. Yes, you are right.
And I want it to go to another page of my choice.Forum: Plugins
In reply to: Advanced EditingHeavy editing of edit-form-advanced.php, stripping it barebones, daily beating of the code and other forms of depravation has accomplished what I had wanted.
Forum: Fixing WordPress
In reply to: Blog Text Box Dynamic HTMLCheck out:
https://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm
Straightforward integration possible.
Works.Forum: Plugins
In reply to: How to prevent re-display of Post Form after submitting itbump….is there a way to do this? Thanks
Forum: Plugins
In reply to: How to prevent re-display of Post Form after submitting itbump……
Anyone there?Forum: Fixing WordPress
In reply to: limiting username lengthMichael, Thanks!
Changed the line in function validate_username( $username ) in wp-includes/registration.php, around line 25 for WP 2.2
from:
if ( $name != $username )
to:
if (($name != $username) || (strlen($username) > 10))
It works.Forum: Fixing WordPress
In reply to: limiting username lengthbump, anyone there?