Announcement

Collapse
No announcement yet.

Messaging & Notification - Private Messaging Permanent Check Mark in Box

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Messaging & Notification - Private Messaging Permanent Check Mark in Box

    Messaging & Notification - Private Messaging Permanent check mark in input box to be on by default, but shown as hidden?

    Click image for larger version

Name:	Admin_PM.PNG
Views:	1
Size:	27.9 KB
ID:	3699073

    Code:
    <if condition="$show['pmoptions']">
    				<fieldset class="fieldset">
    					<legend><label for="cb_receivepm">$vbphrase[private_messaging]</label></legend>
    					<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
    					<tr>
    						<td>
    							<phrase 1="private.php?$session[sessionurl]">$vbphrase[features_private_messaging_system]</phrase>
    						</td>
    					</tr>
    					<tr>
    						<td><label for="cb_receivepm"><input type="checkbox" name="options[receivepm]" value="1" id="cb_receivepm" onclick="toggle_disabled(this.checked, 'pmoptions')" $checked[receivepm] />$vbphrase[enable_private_messaging]</label></td>
    					</tr>
    					<tbody id="pmoptions"<if condition="!$bbuserinfo[receivepm]"> disabled="disabled"</if>>
    						<tr>
    							<td><br />$vbphrase[can_email_when_sends_you_pm]</td>
    						</tr>
    						<tr>
    							<td><label for="cb_emailonpm"><input type="checkbox" name="options[emailonpm]" value="1" id="cb_emailonpm" $checked[emailonpm] />$vbphrase[receive_email_notification_pm]</label></td>
    						</tr>
    						<tr>
    							<td><br />$vbphrase[browsing_when_receive_pm_popup]</td>
    						</tr>
    						<tr>
    							<td><label for="cb_pmpopup"><input type="checkbox" name="pmpopup" value="1" id="cb_pmpopup" $checked[pmpopup] />$vbphrase[show_pm_popup]</label></td>
    						</tr>
    					</tbody>
    					</table>
    				</fieldset>
    				<else />
    				<input type="hidden" name="options[receivepm]" value="$bbuserinfo[receivepm]" />
    				<input type="hidden" name="options[emailonpm]" value="$bbuserinfo[emailonpm]" />
    				<input type="hidden" name="pmpopup" value="$bbuserinfo[pmpopup]" />
    				</if>
    	
    				$customfields[messaging]
    				
    			</div>
    		</div>
    		</td>
    	</tr>
    </tbody>
    </table>

  • #2
    I got some of what I wanted answered in this thread.

    http://www.vbulletin.com/forum/showthread.php?t=161960

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X