vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Styles (https://vborg.vbsupport.ru/forumdisplay.php?f=195)
-   -   Mobile/Cell Phone Style (https://vborg.vbsupport.ru/showthread.php?t=151186)

dartho 09-21-2007 12:35 AM

I was going to do a new release for this small modification, but thought I'd post up the change and release when there is more to add later.

Anyone who allows users to choose their own styles may want to replace the "modifyoptions" (In the "Modify User Options Templates" section ) template with the following code. This will add the ability for users to change their style via the UserCP, Modify Options section of the mobi skin. It's drop downs which may not work on some older phones, but people on older phones probably won;t want to change the style away from teh mobi one anyway. This will NOT change the users skin if you are using either the "Mobile Device Style Assignment" or the DDDS add-on as these override the users/forums styles.

Code:

<form action="profile.php?do=updateoptions" method="post">
<input type="hidden" name="s" value="$session[dbsessionhash]" />
<input type="hidden" name="do" value="updateoptions" />
<div class="titlebg">$vbphrase[edit_options]: $bbuserinfo[username]</div>
<div class="windowbg2">$vbphrase[login_privacy]</div>

<if condition="$show['invisibleoption']">                               
<div><label for="cb_invisible"><input type="checkbox" name="options[invisible]" value="1" id="cb_invisible" $checked[invisible] />$vbphrase[use_invisible_mode]</label><input type="hidden" name="set_options[invisible]" value="1" /></div>
</if>

<if condition="$show['reputationoption']">
<div><label for="cb_showreputation"><input type="checkbox" name="options[showreputation]" value="1" id="cb_showreputation" $checked[showreputation] />$vbphrase[show_my_reputation_level]</label><input type="hidden" name="set_options[showreputation]" value="1" /></div>
</if>

<div><label for="cb_showvcard"><input type="checkbox" name="options[showvcard]" value="1" id="cb_showvcard" $checked[showvcard] />$vbphrase[allow_vcard_download]</label><input type="hidden" name="set_options[showvcard]" value="1" /></div>


<br />

<div class="windowbg2">$vbphrase[messaging_notification]</div>

<div><label for="cb_adminemail"><input type="checkbox" name="options[adminemail]" value="1" id="cb_adminemail" $checked[adminemail] />$vbphrase[receive_email_from_bulletin_board_staff]</label><input type="hidden" name="set_options[adminemail]" value="1" /></div>

<if condition="$show['receiveemail']">
<div><label for="cb_showemail"><input type="checkbox" name="options[showemail]" value="1" id="cb_showemail" $checked[showemail] />$vbphrase[receive_email_from_other_members]</label><input type="hidden" name="set_options[showemail]" value="1" /></div>
</if>

<if condition="!$vboptions['enableemail']">
<input type="hidden" name="options[showemail]" value="$bbuserinfo[showemail]" />
</if>

<if condition="$show['pmoptions']">
<div><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><input type="hidden" name="set_options[receivepm]" value="1" /></div>

<div><label for="cb_receivepmbuddies"><input type="checkbox" name="options[receivepmbuddies]" value="1" id="cb_receivepmbuddies" $checked[receivepmbuddies] />$vbphrase[pm_from_buddies_only]</label><input type="hidden" name="set_options[receivepmbuddies]" value="1" /></div>
<div><label for="cb_emailonpm"><input type="checkbox" name="options[emailonpm]" value="1" id="cb_emailonpm" $checked[emailonpm] />$vbphrase[receive_email_notification_pm]</label><input type="hidden" name="set_options[emailonpm]" value="1" /></div>
<div><label for="cb_pmpopup"><input type="checkbox" name="pmpopup" value="1" id="cb_pmpopup" $checked[pmpopup] />$vbphrase[show_pm_popup]</label></div>
<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>

<br />

<div class="windowbg2">$vbphrase[visible_post_elements]</div>
<div><label for="cb_showsignatures"><input type="checkbox" name="options[showsignatures]" value="1" id="cb_showsignatures" $checked[showsignatures] />$vbphrase[show_signatures]</label><input type="hidden" name="set_options[showsignatures]" value="1" /></div>
<div><label for="cb_showavatars"><input type="checkbox" name="options[showavatars]" value="1" id="cb_showavatars" $checked[showavatars] />$vbphrase[show_avatars]</label><input type="hidden" name="set_options[showavatars]" value="1" /></div>
<div><label for="cb_showimages"><input type="checkbox" name="options[showimages]" value="1" id="cb_showimages" $checked[showimages] />$vbphrase[show_images] ($vbphrase[including_attached_and_img_code])</label><input type="hidden" name="set_options[showimages]" value="1" /></div>

<br />

<div class="windowbg2">$vbphrase[thread_display_mode]:</div>
<span>
<input type="radio" name="threadedmode"  value="0" $threaddisplaymode[0]>$vbphrase[linear] - $vbphrase[oldest_first]<br />
<input type="radio" name="threadedmode"  value="3" $threaddisplaymode[3]>$vbphrase[linear] - $vbphrase[newest_first]<br />
<if condition="$vboptions['allowthreadedmode']">
<input type="radio" name="threadedmode"  value="1" $threaddisplaymode[1]>$vbphrase[threaded]<br />
<input type="radio" name="threadedmode"  value="2" $threaddisplaymode[2]>$vbphrase[hybrid]<br />
</if>
</span>
<br />
<if condition="$show['styleoption']">
<div class="windowbg2">$vbphrase[board_skin]</div>
<span>
<label for="sel_newstyleset">$vbphrase[board_skin]:</label>
        <select name="newstyleset" id="sel_newstyleset">
                $stylesetlist
        </select>
</span>                       
</if>       

<br />
<div>
<input type="submit" class="button" value="$vbphrase[save_changes]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
</div>
</form>


Smiry Kin's 09-21-2007 02:31 AM

what that code do just remove the option from the scroll down?

dartho 09-21-2007 09:07 AM

I'm sorry - I don't quite follow the question?

Smiry Kin's 09-21-2007 01:59 PM

what does the code you provided do..?

dartho 09-22-2007 01:08 AM

It simply adds the option to change styles from with-in the mobi style if you have it installed.

biglips31 10-05-2007 05:00 PM

Great Style, Thank you....

Some Suggestions..

1) Possible to have a search function?

2) is there a way to have each username on the posts link to their profile? in order to send a pm, it looks like we have to manually type in the username.

Thanks

dartho 10-12-2007 12:26 AM

I'll look at incorporating these into the next release - not much free time at the moment though, so could be a while...

brvheart 10-14-2007 12:43 AM

any chance to get it to be able to show attachments in threads?

wideawake 10-22-2007 02:19 AM

I second the above. Surely its a simple fix eh? Any thoughts?
Thanks,
Mike

dartho 10-22-2007 02:48 AM

I should be able to do something with attachments - after a very quick look it seems that it will take a bit of tweaking to get it displaying right.

Consider it also added to the list...


All times are GMT. The time now is 06:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01419 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete