apsilva028
Forum Replies Created
-
Forum: Plugins
In reply to: [Comments - wpDiscuz] Comment-abilityHow could I incorporate this code into the plugin?
<?php
global $current_user;
$args = array(‘user_id’ => $current_user->ID);
$usercomment = get_comments($args);
if(count($usercomment) >= 1){
echo ‘disabled’;
} else {
comment_form();
}
?>I basically want the comment to not appear is usercomment <=1
Here is my code if this helps:
<li class=”wpuf-el licensed_in__choose_all_that_apply_ states”> <div class=”wpuf-label”>
<label for=”wpuf-licensed_in__choose_all_that_apply_”>Licensed in (choose all that apply) <span class=”required”>*</span></label>
</div><div class=”wpuf-fields” data-required=”yes” data-type=”radio”>
<label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Alabama” />
Alabama </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Alaska” />
Alaska </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Arizona” />
Arizona </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Arkansas” />
Arkansas </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”California” />
California </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Colorado” />
Colorado </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Connecticut” />
Connecticut </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Delaware” />
Delaware </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Florida” />
Florida </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Georgia” />
Georgia </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Hawaii” />
Hawaii </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Idaho” />
Idaho </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Illinois” />
Illinois </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Indiana” />
Indiana </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Iowa” />
Iowa </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Kansas” />
Kansas </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Kentucky” />
Kentucky </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Louisiana” />
Louisiana </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Maine” />
Maine </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Maryland” />
Maryland </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Massachusetts” />
Massachusetts </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Michigan” />
Michigan </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Minnesota” />
Minnesota </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Mississippi” />
Mississippi </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Missouri” />
Missouri </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Montana” />
Montana </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Nebraska” />
Nebraska </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Nevada” />
Nevada </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”New Hampshire” />
New Hampshire </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”New Jersey” />
New Jersey </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”New Mexico” />
New Mexico </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”New York” />
New York </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”North Carolina” />
North Carolina </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”North Dakota” />
North Dakota </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Ohio” />
Ohio </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Oklahoma” />
Oklahoma </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Oregon” />
Oregon </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Pennsylvania” />
Pennsylvania </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Rhode Island” />
Rhode Island </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”South Carolina” />
South Carolina </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”South Dakota” />
South Dakota </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Tennessee” />
Tennessee </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Texas” />
Texas </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Utah” />
Utah </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Vermont” />
Vermont </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Virginia” />
Virginia </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Washington” />
Washington </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”West Virginia” />
West Virginia </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Wisconsin” />
Wisconsin </label><label>
<input type=”checkbox” class=”wpuf_licensed_in__choose_all_that_apply__1185″ name=”licensed_in__choose_all_that_apply_[]” value=”Wyoming” />
Wyoming </label><div class=”wpuf-fields”>
<span class=”wpuf-help”></span>
</div></div>