The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Optimization update + few cool features!

View previous topic View next topic Go down

Optimization update + few cool features!

Post by Leviosa on May 12th 2009, 2:52 pm

Hello,

To optimize your forums and stabilize members sessions that have chosen usernames with special characters, we have made some modifications.
By precaution, members using customized templates should make the following corrections :

--> overall_header_new
Spoiler:
Underneath
Code:

type="text/javascript">
Add :
Code:

src="/{JS_DIR}/jquery/jqmodal/jqmodal.js"
type="text/javascript">
--> simple_header
Spoiler:
Replace all by :
Code:

XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

xml:lang="{L_LANG_HTML}" xmlns="http://www.w3.org/1999/xhtml">





{META}
{T_HEAD_STYLESHEET}



type="text/javascript">



text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
--> groupcp_info_body
Spoiler:
Replace
Code:
           
           
               
                   
cellpadding="0" align="center">
                       
                           
                           
                       
                    [table border="0" cellspacing="0" width="100%"][tr][td valign="top"]
                               
type="text" name="username" size="20" maxlength="25" />
class="mainoption" type="submit" name="add" value="{L_ADD_MEMBER}"
/>
onclick="window.open('{U_SEARCH_USER}', '_forumactifsearch',
'HEIGHT=250,resizable=yes,WIDTH=400');return false;" type="submit"
name="usersubmit" value="{L_FIND_USERNAME}" />
                            [/td][td]
class="mainoption" type="submit" name="remove"
value="{L_REMOVE_SELECTED}" />[/td][/tr][/table]
               
           
       
By :
Code:
           
           
               
                   
cellpadding="0" align="center">
                       
                           
                           
                       
                    [table border="0" cellspacing="0" width="100%"][tr][td valign="top"]
                               
type="text" id="username" name="username" size="20" maxlength="25"
/>
value="{L_ADD_MEMBER}" />
id="find_user" value="{L_FIND_USERNAME}" />
                            [/td][td]
class="mainoption" type="submit" name="remove"
value="{L_REMOVE_SELECTED}" />[/td][/tr][/table]
               
           
       
And add to the end
:
Code:


//    $(document).ready(function(){
        function find_username(fieldname) {
            $.get('{U_SEARCH_USER}&fieldname='  fieldname  '&time=' 
timestamp(), '',
                function(data){
                    $('#find_username').html(data).jqmShow();
                    $('.jqmOverlay').bgiframe();
                    $('#find_username').bgiframe();
                });
            return false;
        }
        $('#find_user').click(function(){
            return find_username('username');
        });
        $('#find_username').jqm({toTop: true});
    });
//]]>
--> posting_body and posting_body_wysiwyg
Spoiler:
Replace
Code:



class="gen">[b]{L_USERNAME}[/b]

name="ismp" value="1">
value="" size="25" tabindex="1"
onkeyup="if(this.value!=''){if(this.form.userfriend){this.form.userfriend.selectedIndex=0;this.form.userfriend.disabled=1;}if(this.form.usergroup){this.form.usergroup.selectedIndex=0;this.form.usergroup.disabled=1;}}else{if(this.form.userfriend)this.form.userfriend.disabled=0;if(this.form.usergroup)this.form.usergroup.disabled=0;}">
class="liteoption" type="button" name="usersubmit"
value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}',
'_forumactifsearch', 'width=400,height=250,resizable=1');">

By :
Code:


   
class="gen">[b]{L_USERNAME}[/b]
   
       
           
           
name="username[]" value="{switch_privmsg.switch_username.USERNAME}"
size="25" />

           
           
id="username" name="username[]" value="" size="25"
tabindex="1" />
            [img]%7BADD_USERNAME_IMG%7D[/img]
class="selectHover" alt="" />
           
value="{L_FIND_USERNAME}" />
       
   

And add to the end
:
Code:


//    $.add_username = function(){
        $('input[name^=username]:last').after('
').attr('disabled',
$('select[name=userfriend]').val() || $('select[name=usergroup]').val()
? 'disabled' : '');
    };
    $(document).ready(function(){
        function find_username(fieldname) {
            $.get('{U_SEARCH_USER}&fieldname='  fieldname  '&time=' 
timestamp(), '',
                function(data){
                    $('#find_username').html(data).jqmShow();
                    $('.jqmOverlay').bgiframe();
                    $('#find_username').bgiframe();
                });
            return false;
        }
        function total_username() {
            var total = '';
            $('input[name^=username]').each(function(){
                total  = $(this).val();
            });
            return total;
        }
        $('input[name^=username]').live('change', function(){
         
 $('select[name=userfriend],select[name=usergroup]').attr('disabled',
total_username() ? 'disabled' : '');
        });
        $('select[name=userfriend]').change(function(){
         
 $('input[name^=username],#find_user,select[name=usergroup]').attr('disabled',
$('select[name=userfriend]').val() ? 'disabled' : '');
        });
        $('select[name=usergroup]').change(function(){
         
 $('input[name^=username],#find_user,select[name=userfriend]').attr('disabled',
$('select[name=usergroup]').val() ? 'disabled' : '');
        });
        $('#find_user').click(function(){
            return find_username('username');
        });
        $('#add_username').click(function(){
            if ( !$('input[name^=username]:last').attr('disabled') )
                $.add_username();
        });
        if ( total_username() )
         
 $('select[name=userfriend],select[name=usergroup]').attr('disabled',
'disabled');
        else if ( $('select[name=userfriend]').val() )
         
 $('input[name^=username],#find_user,select[name=usergroup]').attr('disabled',
'disabled');
        else if ( $('select[name=usergroup]').val() )
         
 $('input[name^=username],#find_user,select[name=userfriend]').attr('disabled',
'disabled');
        $('#find_username').jqm({toTop: true});
    });
//]]>


We've also added some few features for you and your members :

- Special characters are handled more efficiently

- More details in profiles for banned members :



- Better display of the friends list :



- You can now add as much users as you wish while sending a PM :




Best regards,
Typlo rock


Last edited by Typlo on May 12th 2009, 5:03 pm; edited 1 time in total


No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15382
Reputation : 1563
Language : French, English

http://help.forumotion.com

Back to top Go down

Re: Optimization update + few cool features!

Post by skizzie89 on September 24th 2009, 4:55 am

How about an easier way to make an RPG Character sheet? Maybe popular templates? Such as Pathfinder, D&D 3.5, Starwars, Im sure there are others.

The character sheet maker you have now is really hard to use, and is very tedious to use. Espicialy since having multiple types/classes of characaters that need different things on the sheets. It makes it really user-non-friendly....

skizzie89
New Member

Posts : 5
Reputation : 0
Language : English

Back to top Go down

Re: Optimization update + few cool features!

Post by lee ann on January 5th 2010, 6:23 am

hey, pal! Check www.xxxxxxxxxxxxxxx out, they're selling game golds with lowest price!


Last edited by Nessa on January 5th 2010, 8:19 am; edited 1 time in total (Reason for editing : Edit To Remove Link)

lee ann
New Member

Posts : 1
Reputation : 0
Language : english

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum