Navigation

Pligg Support

Id like to have it so that members have to post with a URL, but admins have the option to post without a URL if they choose to. Thanks

Possible Answers

    Without modifying Pligg core files, I can only think of HTML input required attribute. That means that normal users using newer browsers are required to put a URL on Step 1. However, normal users using older browsers can still post without URL.

    To do this, open submit_step_1_center.tpl and find:

    < input autofocus="autofocus" type="text" name="url" class="form-control col-md-12" id="url" placeholder="http://" />

    then replace with:

    < input autofocus="autofocus" type="text" name="url" class="form-control col-md-12" id="url" placeholder="http://"{if $isAdmin neq 1} required="required"{/if} />

    Next, go to Admin > Settings > Submit > Require a URL when Submitting and set this to false.

    | Posted 99 days ago | Permalink | Hide Replies

Who Upvoted this Story