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.

Template Issue

View previous topic View next topic Go down

Solved Template Issue

Post by FrOsTyXi on December 18th 2014, 7:34 am

Hello @JScript I noticed today that when i went to send a group message via PM i couldn't select a friend or a group, when i inspect element i see that it's disables for some odd reason and when i enable it with edit as HTML it works! Here are 2 pictures so you can see exactly what i'm talking about.

Note i searched all templaes couldn't find it, maybe i'm blind LOL

Note also in this inspect element i see your name down on the bottom @JScript

Image 1 disabled:


Image 2 enabled:


I'm quite sure this is an easy fix maybe i'm tired LOLOL

Thank you in advance!

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 4:09 am

Any ideas @Ange or @JScript?

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by Ange Tuteur on December 19th 2014, 5:41 am

Hello @FrOsTyXi,

Try disabling JavaScript management to see if any of your installed scripts are causing the problem.
Admin Panel > Modules > JavaScript codes management

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 5:50 am

@Ange I disabled the JavaScripts and still the same issue.

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by Ange Tuteur on December 19th 2014, 6:37 am

Try adding this :
Modules > JavaScript codes management > create a new script

Title : Your choice
Placement : In all the pages
Code:
$(function() {
 var post = document.post;
 if (!post) return
 if (post.usergroup) post.usergroup.disabled = false;
 if (post.userfriend) post.userfriend.disabled = false;
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 6:43 am

@Ange Did not work still unselectable

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by Ange Tuteur on December 19th 2014, 6:45 am

Oups, try now. I missed a semi-colon Embarassed

Code:
$(function() {
  var post = document.post;
  if (!post) return;
  if (post.usergroup) post.usergroup.disabled = false;
  if (post.userfriend) post.userfriend.disabled = false;
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 6:48 am

Still the same issue sadly.


this is near the bottom when i inspect element


<!--* Application: Private Message List.* Description: This application can displays the list of PM in related menus.* Version: 1.03102014-jq1.9.1 - Hermes Kriophoros* Made and Optimizations by JScript - 2014/03/10* View more in: http://codeforum.besaba.com/forum/index.php* Copyright (c) 2014 JScript <jscriptbrasil at live dot com>* This work is free. You can redistribute it and/or modify it* under the terms of the WTFPL, Version 2-->

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by Ange Tuteur on December 19th 2014, 6:57 am

Have you modified the posting_body template ?
Display > Templates > Post and private messages

If so, try forcing the default templates to see if that's the cause.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 6:59 am

No that it default

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by Ange Tuteur on December 19th 2014, 7:06 am

Try removing this from your JavaScript codes management :
Code:
jQuery(function() {
    var iAmount = 5;
    var oConfig = {sInfo: '<!--' + '* Application: Private Message List.' + '* Description: This application can displays the list of PM in related menus.' + '* Version: 1.03102014-jq1.9.1 - Hermes Kriophoros' + '* Made and Optimizations by JScript - 2014/03/10' + '* View more in: http://codeforum.besaba.com/forum/index.php' + '* Copyright (c) 2014 JScript <jscriptbrasil at live dot com>' + '* This work is free. You can redistribute it and/or modify it' + '* under the terms of the WTFPL, Version 2' + '-->',sContent: '<div class="ipsHeaderMenu boxShadow" id="user_inbox_link_menucontent" style="display: none; width: 300px; position: absolute; z-index: 9999;">' + '<h4 class="ipsType_sectiontitle">Inbox folder' + '<p class="ipsPad_half ipsType_smaller right">' + '<a class="configure" href="/privmsg?folder=inbox">Messages</a> <a href="/privmsg?mode=post" title="New message">New message</a>' + '</p>' + '</h4>' + '<ul class="ipsList_withminiphoto"><img src="http://i55.servimg.com/u/f55/18/17/62/92/ajax-l10.gif" alt="- Load" style="display: block; margin-left: auto; margin-right: auto;"></ul>' + '</div>',sCSS: '<style>' + '.ipsHeaderMenu {' + 'background-color: #FFFFFF;' + 'border-radius: 0 0 6px 6px;' + 'overflow: hidden;' + 'padding: 10px;' + 'width: 340px;' + '}' + '.boxShadow {' + 'box-shadow: 0 12px 25px rgba(0, 0, 0, 0.58);' + '}' + '.ipsHeaderMenu .ipsType_sectiontitle {' + 'margin-bottom: 8px;' + '}' + '.ipsType_sectiontitle {' + 'border-bottom: 1px solid #ECECEC;' + 'color: #595959;' + 'font-size: 16px;' + 'font-weight: 400;' + 'padding: 5px 0;' + '}' + '.ipsType_smaller, .ipsType_smaller a {' + 'font-size: 11px !important;' + '}' + '.ipsPad_half {' + 'padding: 4px !important;' + '}' + '.right {' + 'float: right;' + '}' + '.ipsList_withminiphoto > li {' + 'margin-bottom: 8px;' + '}' + '.ipsType_small {' + 'font-size: 12px;' + '}' + '.ipsUserPhoto {' + 'background: none repeat scroll 0 0 #FFFFFF;' + 'border: 1px solid #D5D5D5 !important;' + 'box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);' + 'padding: 1px;' + '}' + '.ipsUserPhoto_mini {' + 'height: 30px;' + 'width: 30px;' + '}' + '.left {' + 'float: left;' + '}' + '.ipsList_withminiphoto > li .list_content {' + 'margin-left: 40px;' + '}' + '#user_inbox_link_menucontent ul.ipsList_withminiphoto {' + 'list-style: none outside none;' + 'padding-left: 0 !important;' + '}' + '.desc.lighter, .desc.lighter.blend_links a {' + 'color: #A4A4A4;' + '}' + '.ipsType_smaller, .ipsType_smaller a {' + 'font-size: 11px !important;' + '}' + '.menu_active {' + 'color: #595959 !important;' + 'background-color: #FFFFFF !important;' + 'background-position: center bottom;' + 'border-radius: 3px 3px 0 0;' + 'padding: 4px;' + '}' + '</style>',sTarget: '',sSearch: '',sExpression0: '',sExpression1: '',sExpression2: '',sGetIMG: ''};
    jQuery(oConfig.sCSS).insertBefore('body');
    jQuery('body').append(oConfig.sInfo + oConfig.sContent);
    var phpBB2 = jQuery('.bodyline');
    var phpBB3 = jQuery('#wrap');
    var punbb = jQuery('#pun-intro');
    var invision = jQuery('#ipbwrapper');
    if (phpBB2.length) {
        oConfig.sSearch = 'form[name="privmsg_list"] .forumline tr';
        oConfig.sTarget = 'tr';
        oConfig.sExpression0 = 'memDiv.find("tr:first, tr:last").remove();';
        oConfig.sExpression1 = 'jQuery(this).find("a.topictitle").html()';
        oConfig.sExpression2 = 'jQuery(this).find("td .name").html() + " - " + jQuery(this).find("td .postdetails").html()';
        oConfig.sGetIMG = ' #emptyidcc .row1.gensmall img:eq(0)'
    } else if (phpBB3.length) {
        oConfig.sSearch = '.topiclist.pmlist.bg_none li';
        oConfig.sTarget = '.icon dt';
        oConfig.sExpression1 = 'jQuery(this).find("a.topictitle")[0].outerHTML';
        oConfig.sExpression2 = 'jQuery(this).find("em").html()';
        oConfig.sGetIMG = ' #profile-advanced-right img:eq(0)'
    } else if (punbb.length) {
        oConfig.sSearch = '.main-content tr .tcl.tdtopics';
        oConfig.sGetIMG = ' #profile-advanced-right .main-content img:first'
    } else if (invision.length) {
        oConfig.sSearch = '.borderwrap table.ipbtable tbody tr:not(":empty")';
        oConfig.sTarget = 'tr';
        oConfig.sExpression1 = 'var _tmp1 = jQuery(this).find("td:eq(2)");_tmp1.children("a.topictitle")[0].outerHTML';
        oConfig.sExpression2 = '_tmp1.children("a.topictitle").remove();_tmp1.html()';
        oConfig.sGetIMG = ' #profile-advanced-right .box-content.profile.center img:first'
    }
    ;
    jQuery('a[href*="/privmsg?folder=inbox"]').click(function() {
        var oClicked = jQuery(this);
        var oTarget = jQuery('#user_inbox_link_menucontent');
        if (oTarget[0].style.display == 'none') {
            oClicked.addClass('menu_active');
            if (!jQuery('#user_inbox_link_menucontent ul.ipsList_withminiphoto > li').length) {
                var memDiv = jQuery('<div>');
                memDiv.load('/privmsg?folder=inbox ' + oConfig.sSearch + ':lt(' + iAmount + ')', function() {
                    if (punbb.length) {
                        memDiv.html(memDiv.html().replace(/\<\/a\> por/g, '</a></br><span class="ipsType_smaller desc lighter">').replace(/\<\/td\>/g, '</span></div></li>').replace(/\<td class="tcl tdtopics"\>/g, '<li class="ipsType_small clearfix"><img class="ipsUserPhoto ipsUserPhoto_mini left" alt="User image" src="http://i78.servimg.com/u/f78/18/17/62/92/defaul10.png"><div class="list_content">')).find('span.status').remove()
                    } else {
                        if (oConfig.sExpression0) {
                            eval(oConfig.sExpression0)
                        }
                        var sHtml = '';
                        oConfig.sTarget = memDiv.find(oConfig.sTarget);
                        jQuery.each(oConfig.sTarget, function(index, value) {
                            sHtml += '<li class="ipsType_small clearfix">' + '<img class="ipsUserPhoto ipsUserPhoto_mini left" alt="User image" src="http://i78.servimg.com/u/f78/18/17/62/92/defaul10.png">' + '<div class="list_content">' + eval(oConfig.sExpression1) + '<br>' + '<span class="ipsType_smaller desc lighter">' + eval(oConfig.sExpression2) + '</span>' + '</div>' + '</li>'
                        });
                        memDiv.html(sHtml)
                    }
                    jQuery('#user_inbox_link_menucontent ul.ipsList_withminiphoto').html(memDiv.html());
                    var oImgTarget = oTarget.find('.ipsType_small.clearfix');
                    oImgTarget.each(function(index) {
                        var UserURL = jQuery(this).find('.ipsType_smaller a, .list_content a:last');
                        if (UserURL.length) {
                            UserURL = UserURL.attr('href');
                            var oImgTag = jQuery(this).find('.ipsUserPhoto');
                            var UserIMG = sessionStorage.getItem(UserURL);
                            if (UserIMG) {
                                jQuery(this).find('img').attr('src', UserIMG)
                            } else {
                                jQuery.get(UserURL, function(data) {
                                    var profile_img = jQuery(oConfig.sGetIMG, data).attr('src');
                                    if (profile_img !== undefined) {
                                        oImgTag.attr('src', profile_img);
                                        sessionStorage.setItem(UserURL, profile_img)
                                    }
                                })
                            }
                        }
                    })
                })
            }
            oTarget.css({'left': (oClicked.offset().left + oClicked.outerWidth()) - oTarget.outerWidth(),'top': oClicked.offset().top + oClicked.outerHeight()}).fadeIn(400);
            jQuery(document).mousedown(function() {
                if (!oTarget.is(":hover")) {
                    jQuery(document).unbind('mousedown');
                    oClicked.removeClass('menu_active');
                    oTarget.fadeOut(400)
                }
            })
        } else {
            oClicked.removeClass('menu_active');
            oTarget.fadeOut(400)
        }
        return false
    })
});

I saw that it's installed in all the pages, and contains the comment you mentioned.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 7:14 am

removed but still the same LOL wow i thought that would have fixed it haha

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by JScript on December 19th 2014, 11:45 am

@FrOsTyXi wrote:Any ideas @Ange or @JScript?
Hello!

Create a temporary account and tell us the username and password ok?


Edit:
Corresponds to this part of the template:


JS

JScript
Forumember

Male Posts : 741
Reputation : 167
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 12:18 pm

Ok @JScript i will send the details now!

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by JScript on December 19th 2014, 5:26 pm

@FrOsTyXi
This problem did not occur to me, see: http://i.imgur.com/netyzxU.png

JS

JScript
Forumember

Male Posts : 741
Reputation : 167
Language : PT-BR, EN
Location : Brazil

http://jscript.forumeiros.com/

Back to top Go down

Solved Re: Template Issue

Post by FrOsTyXi on December 19th 2014, 10:18 pm

@Ange this topic can be closed, you won't believe what the issue was, my addblocker had my private message creator link blocked as soon as i reset that everything is working fine!!

Sorry for this issue i could have fixed on my own

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

Solved Re: Template Issue

Post by APE on December 19th 2014, 11:53 pm

Topic solved and archived





APE
Manager
Manager

Male Posts : 8319
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

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