Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Default User Text Formatting (font styling) . Zero Query! Details »»
Default User Text Formatting (font styling) . Zero Query!
Version: 2.0.1, by Almotmaiz.Net Almotmaiz.Net is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.x Rating:
Released: 01-01-2010 Last Update: 01-02-2010 Installs: 209
Uses Plugins Template Edits Auto-Templates
Code Changes Translations  
No support by the author.

Default User Text Formatting 2.0.1

Default User Text Formatting - Allow users to chose there default text formatting from (User CP).and applied on new threads, new replies and group discusses With inline styling preveiw and Zero Query!

AdminCP controller.[hr]100%[/hr]
  1. ability to turn it on or Off.
  2. ability to set font types
  3. ability to set font colors.
  4. ability to set font sizes.
  5. ability to set groups (Allowed Groups.) - new
  6. ability to set woking locations. - new
    • New thread
    • New reply / Quick reply box.
    • Visitor messages.
    • Private messages ( New & reply).
    • Groups discussion.
  • for my bad English so, the screen shots will be more descriptive (2nd Post.).
Installing & Upgrading.[hr]100%[/hr]
  1. download latest version on attachment.
  2. upload XML file via Upload/Add Product. (chose Over-write if Upgrade.)
  3. Edit your admincp settings.
  4. Finish.
MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

IF YOU LIKE IT Nominate for MOTM
thats will support me a lot.


History.[hr]100%[/hr]
  • 2.0.1
    • fix - BR on posting reply via Quick Reply.
  • 2.0
    • upgraded to work with vb4.
    • add - groups support ( Working for allowed groups only ).
    • add - support font size with arr (1 - 7), if more than 7 will be converted via formella.
    • add - woking on Specific locations (New thread, new reply, visitor messages, groups discusses.)
    • add - italic Support.
    • improved how product works .. with more speed performance.
  • 1.0
    • first release.

Download Now

File Type: zip Default-User-Text-Formatting.[Hz].v2.0.1.zip (113.0 KB, 1646 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 10-08-2011, 06:40 PM
elbais's Avatar
elbais elbais is offline
 
Join Date: Apr 2007
Location: Turkiye/Istanbul
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oyabun View Post


I don't know if the code is pretty good but I changed my nlp_usertextformatting template to this and wanted to share it with you guys:


PHP Code:
<script type="text/javascript" language="javascript">
<!--
var 
prefix 'sel_nlp_usertextformatting_';
function 
nlp_usertextformatting(req) {
    switch(
req) {
        case 
'color':
            
fetch_object(prefix 'fontcolor').style.backgroundColor fetch_object(prefix 'fontcolor').value;
            
nlp_usertextformatting('set');
        break;
        case 
'set':
            
fetch_object(prefix 'preveiw').style.color = (fetch_object(prefix 'fontcolor').value != -1) ? fetch_object(prefix 'fontcolor').value '';
            
fetch_object(prefix 'preveiw_size').setAttribute("size", (fetch_object(prefix 'fontsize').value != -1) ? fetch_object(prefix 'fontsize').value '');        
            
fetch_object(prefix 'preveiw').style.fontFamily = (fetch_object(prefix 'fonttype').value != -1) ? fetch_object(prefix 'fonttype').value '';
            
fetch_object(prefix 'preveiw').style.fontStyle fetch_object(prefix 'italic').checked 'italic' 'normal';
            <
vb:if condition="is_browser('ie')">document.all.sel_nlp_usertextformatting_preveiw.style.fontWeight<vb:else />fetch_object(prefix 'preveiw').style.fontWeight</vb:if> = fetch_object(prefix 'fontweight').checked 'bold' 'normal';
        break;
        case 
'reset':
            
fetch_object(prefix 'fontcolor').value fetch_object(prefix 'fonttype').value fetch_object(prefix 'fontsize').value '-1';
            
fetch_object(prefix 'fontweight').checked false;
            
fetch_object(prefix 'preveiw_size').removeAttribute('size');
            
fetch_object(prefix 'preveiw').style.color fetch_object(prefix 'preveiw').style.fontFamily fetch_object(prefix 'preveiw').style.fontWeight fetch_object(prefix 'fontcolor').style.backgroundColor fetch_object(prefix 'preveiw').style.fontStyle '';
    }
}
//-->
</script>
<
fieldset class="blockrow">
    <
legend>{vb:rawphrase nlp_usertextformatting_title}</legend>
    <
class="description">{vb:rawphrase nlp_usertextformatting_description}</p>
    <
table width="100%">
      <
tr>
        <
td width="50%"><label for="sel_nlp_usertextformatting_fonttype">{vb:rawphrase nlp_usertextformatting_fonttype}</label></td>
        <
td width="50%"><select onchange="nlp_usertextformatting('set');" name="nlp_usertextformatting_fonttype" id="sel_nlp_usertextformatting_fonttype">
        <
option value="-1">{vb:rawphrase use_forum_default}</option>
        {
vb:raw UserTF.Fonts}
    </
select></td>
      </
tr>
    </
table>
    <
br>
    <
table width="100%">
      <
tr>
        <
td width="50%"><label for="sel_nlp_usertextformatting_fontsize">
{
vb:rawphrase nlp_usertextformatting_fontsize}</label></td>
        <
td width="50%"><select onchange="nlp_usertextformatting('set');" name="nlp_usertextformatting_fontsize" id="sel_nlp_usertextformatting_fontsize">
        <
option value="-1">{vb:rawphrase use_forum_default}</option>
        {
vb:raw UserTF.Size}
    </
select></td>
      </
tr>
    </
table>
    <
br>
    <
table width="100%">
      <
tr>
        <
td width="50%"><label for="sel_nlp_usertextformatting_fontcolor">{vb:rawphrase nlp_usertextformatting_fontcolor}</label></td>
        <
td width="50%"><select 
          
<vb:if condition="$GLOBALS['vbulletin']->usertextformatting['font'] != -1">style="background-color: {vb:raw usertextformatting.color};"</vb:if> onchange="nlp_usertextformatting('color');" name="nlp_usertextformatting_fontcolor" id="sel_nlp_usertextformatting_fontcolor">
        <
option value="-1" style="background-color: white;">{vb:rawphrase use_forum_default}</option>
         {
vb:raw UserTF.Colors}
    </
select></td>
      </
tr>
    </
table>
    
    <
br>
    <
table width="100%">
      <
tr>
        <
td width="49%"><label for="sel_nlp_usertextformatting_fontweight">
          <
input onChange="nlp_usertextformatting('set');" onClick="nlp_usertextformatting('set');" type="checkbox" name="nlp_usertextformatting_fontweight" value="1" id="sel_nlp_usertextformatting_fontweight" {vb:raw usertf.weight} />
        {
vb:rawphrase nlp_usertextformatting_fontweight} </label>
          <
br>
    <
label for="sel_nlp_usertextformatting_italic" style="font-style: italic">
    <
input onChange="nlp_usertextformatting('set');" onClick="nlp_usertextformatting('set');" type="checkbox" name="nlp_usertextformatting_italic" value="1" id="sel_nlp_usertextformatting_italic" {vb:raw usertf.italic} />
    {
vb:rawphrase nlp_usertextformatting_italic} </label></td>
        <
td width="51%"><class="description">&nbsp;</p>
    <!-- 
start -->

    <
class="description" align="center" id="sel_nlp_usertextformatting_preveiw" style="<vb:if condition="$GLOBALS['vbulletin']->usertextformatting['font'] != -1">font-family: {vb:raw usertextformatting.font};</vb:if><vb:if condition="$GLOBALS['vbulletin']->usertextformatting['color'] != -1">color: {vb:raw usertextformatting.color};</vb:if><vb:if condition="$GLOBALS['vbulletin']->usertextformatting['weight'] == 'bold'">font-weight: bold<vb:else />font-weight: normal</vb:if>">
        <
font id="sel_nlp_usertextformatting_preveiw_size" <vb:if condition="$GLOBALS['vbulletin']->usertextformatting['size'] != -1">size="{vb:raw usertextformatting.size}"</vb:if>>{vb:rawphrase nlp_usertextformatting_preveiw}</font>    </p></td>
      </
tr>
    </
table>
    
    
    
    
    
    <
br><br>

<
div align="left">
  <
input type="button" class="button" onclick="javascript:nlp_usertextformatting('reset');" value="{vb:rawphrase nlp_usertextformatting_reset}" />
      </
div>
</
fieldset
very nice
Reply With Quote
  #73  
Old 10-08-2011, 09:36 PM
K!nG K!nG is offline
 
Join Date: Dec 2010
Location: United States
Posts: 477
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any update for 4.1.7 ????
Reply With Quote
  #74  
Old 10-10-2011, 05:20 AM
WxP's Avatar
WxP WxP is offline
 
Join Date: Dec 2005
Location: Albania
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by K!nG View Post
Any update for 4.1.7 ????
Work Greate if you have activate this:
Attached Images
File Type: jpg untitled.JPG (16.2 KB, 0 views)
Reply With Quote
  #75  
Old 03-14-2012, 05:29 PM
The Librarian's Avatar
The Librarian The Librarian is offline
 
Join Date: Dec 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind.
Reply With Quote
  #76  
Old 04-23-2012, 09:43 AM
Destruction2 Destruction2 is offline
 
Join Date: Apr 2012
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this running with VB 4.1.11?
I have it installed without problems, but the text is not auto when i write.
Does anybody advice or an alternative program for this?
Reply With Quote
  #77  
Old 04-23-2012, 11:26 AM
Mr_Devlin Mr_Devlin is offline
 
Join Date: Nov 2005
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I have it installed without problems, but the text is not auto when i write.
You will see the formatted text after sending your post, not while writing. In the editor you'll see the "normal" font with it's default settings
Reply With Quote
  #78  
Old 06-20-2012, 06:28 PM
Pure Dope Pure Dope is offline
 
Join Date: Dec 2006
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it annoys me that all these mods have so many problems.

jelsoft really needs to do something about this.
Reply With Quote
  #79  
Old 07-09-2012, 06:14 AM
Post Reader's Avatar
Post Reader Post Reader is offline
 
Join Date: Nov 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i can't find where to set the default formatting, i am using version 4.2
Reply With Quote
  #80  
Old 07-09-2012, 02:42 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting, it would make for a nice purchasable item for shop mods.
Reply With Quote
  #81  
Old 07-19-2012, 04:01 PM
Cydefense Cydefense is offline
 
Join Date: Jun 2012
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It don't work on Vbulletin 4.1.11
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05378 seconds
  • Memory Usage 2,408KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete