480 reputation
21031
bio website
location
age
visits member for 2 years, 9 months
seen Dec 15 at 18:13

A Coder...


Apr
24
comment How to limit user to publish post per day and per role?
Oh, thank you for the suggestion...will take a look at it..
Apr
24
comment How to limit user to publish post per day and per role?
When I paste this code to functions.php, the site get fatal error, any idea why?
Apr
24
comment How to limit user to publish post per day and per role?
Well, what I am doing is a real estate site, which different from the content website. The limitation is intended to avoid spam and in the meantime to monetize from it.
Apr
24
comment How to limit user to publish post per day and per role?
If I not mistaken, your codes is limit the post on all user, not particular on user's role, right?
Apr
23
asked How to limit user to publish post per day and per role?
Apr
23
accepted How to add field above password section in profile page
Apr
23
comment How to add field above password section in profile page
Finally I make it right, turn out there is a conflict in my <div>. Anyway thanks a lot.
Apr
22
comment How to add field above password section in profile page
nope, no error at the console. Seem I need the use the css hack and jquery to hide. By the way, your plugin seem so interesting :).
Apr
22
comment How to add field above password section in profile page
No luck. I wondering if I using ob_start will affect the result, because I am using it to remove the biography info section function remove_plain_bio($buffer) { $titles = array('#<h3>About Yourself</h3>#','#<h3>About the user</h3>#'); $buffer=preg_replace($titles,'<h3>Password</h3>',$buffer,1); $biotable='#<h3>Password</h3>.+?<table.+?/tr>#s'; $buffer=preg_replace($biotable,'<h3>Password</h3> <table class="form-table">',$buffer,1); return $buffer; } function profile_admin_buffer_start() { ob_start("remove_plain_bio"); } function profile_admin_buffer_end() { ob_end_flush(); }
Apr
22
comment How to add field above password section in profile page
I don't know why, the code fails in my test. My custom profile is a table which contain input fields in <tr> so I wrapped the table in a div like this: <div id="mycustomtable"><table><tr><th>field 1</th><td>custom field hre</td></tr><tr><th>field 2</th><td>custom field hre</td></tr>... </table></div>, so I use $("#your-profile").before($("#mycustomtable"));. am I done something wrong?
Apr
22
revised How to add field above password section in profile page
edited title
Apr
22
asked How to add field above password section in profile page
Apr
22
revised Remove Personal Options section from Profile
edited title
Apr
21
awarded  Student
Apr
21
comment How to add checkbox and radio button in Profile Page
oh...sorry for that, my reputation is not enough to chat... never mind...I try to figure it out myself..anyway...thanks a lot :)
Apr
21
comment How to add checkbox and radio button in Profile Page
ok,one last thing. How to insert this table before the password area? For now, this table is only displayed under the Password table, which is quite odd to see. Any hook to this? I tried to looking at it, but couldn't found the appropriate hook for it.
Apr
21
awarded  Commentator
Apr
21
accepted How to add checkbox and radio button in Profile Page
Apr
21
comment How to add checkbox and radio button in Profile Page
Thanks brasofilo, you are rock!! But how about display the checked item in the front page?
Apr
21
comment How to add checkbox and radio button in Profile Page
Because I might have plenty of languages to be checked, for the simplification sake, it is better to make it simple in coding. I wondering using array would be possible?