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.

How to denote locked topic

View previous topic View next topic Go down

Solved How to denote locked topic

Post by HrvojeP on February 22nd 2015, 7:17 am

Technical Details

Forum version : phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox
Who the problem concerns : Yourself
When the problem appeared : When trying to implement new possibility
Forum link : http://drvenibrodovi.forumotion.eu/

Description of problem

I did not succeed to implement instruction in the following article:

Mark locked topic

The instruction is simple, but I can't make it work. Will somebody be so kind and help me?

Kind regards,
Hrvoje bye


Last edited by HrvojeP on February 22nd 2015, 9:35 am; edited 1 time in total

HrvojeP
Forumember

Male Posts : 124
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: How to denote locked topic

Post by _Twisted_Mods_ on February 22nd 2015, 7:23 am

can you provide a link to a locked topic

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How to denote locked topic

Post by HrvojeP on February 22nd 2015, 7:38 am

@_Twisted_Mods_ wrote:can you provide a link to a locked topic
Yes, I can:

My locked topic

Thank you for asking. Very Happy

HrvojeP
Forumember

Male Posts : 124
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: How to denote locked topic

Post by _Twisted_Mods_ on February 22nd 2015, 7:43 am

ok having a look at your css it looks like you put some javascript in there by mistake

can you navigate to acp>display>colors>css

and post your whole style sheet here inside a code box(10th button on the editor)

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How to denote locked topic

Post by HrvojeP on February 22nd 2015, 7:49 am

Here is my whole CSS code, not only that for locked topic:

Code:
      .main .main-head .page-title {
        font-size: 12px;
        font-weight: 400;
        color: #000000 !important;
        }
/* Slicice u legendi - odmak teksta */
ul#picture_legend img {
    margin-right: 5px;
    }
/* Slicice uz opis foruma - odmak teksta u opisu foruma. */
.forabg .topiclist.forums li.row img {
    margin-left: 5px !important;
    margin-right: 10px !important;
    }
/* Like gumbic */
.LGlike {
  background: #105289;
  padding: 3px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-shadow: -1px 0.5px #888;
  box-shadow: 1px 1px 1px #888;
  cursor: pointer;
  margin-right: 6px;
}
.LGvote { margin: 0 5px; }
.LGnovote {
  filter:Alpha(opacity=50);
  opacity: 0.5;
  margin-left: 5px;
  cursor: default;
  box-shadow: none;
  text-shadow: none;}
/* Raspodjela sirine prostora za poruku i onoga za profil*/
    .postprofile {
        width: 16%;
    }
    .postbody {
        width: 83%;
    }
/* Tko mi gleda koji forum */
.LG-viewing { margin: 0 5px; font-weight: bold; }
/* Dimenzioniranje avatara */
.postprofile dt img {
max-height: 100px;
max-width: 100px;
}
/* Posebna poruka administratora */
.cpinfo {
border: 2px solid;
margin: 10px 0px;
padding:8px 10px 8px 50px;
  border-radius: 8px;
  box-shadow: 0px 0px 6px #9C5B00 /* #00009C */;  
background-repeat: no-repeat;
background-position: 10px center;
color: #9C5E00; /* #00529B; */
background-color: #F8E7BD/* #BDE5F8 */;
background-image: url('http://i.imgur.com/BZ17N.png');
}
/* Najnovije poruke u podforumima */
       .newsareal div.topic-title-container {
        display: block !important;
        margin: 2px 1px 0;
        padding: 2px 5px 5px 30px;
        border: 1px solid #AB793C;
        border-radius: 5px;
        background: #E6D7C6 /* #F3F9F9 */ url('http://i44.servimg.com/u/f44/16/54/26/99/old-ve10.png') no-repeat 5px center;
        }
        .newsareal div.topic-title-container:hover {
        background-color: #D8DEDE;
        }
        .newsareal div.topic-title-container a {
        color: #708090 !important;
        text-decoration: none !important;
        text-shadow: #fff 1px 1px 0px
        }
/* Prekrivene ikone u naslovima poruka - Nakon naziva teme */
    dl.icon dd.dterm,dl.icon dt {
        background-position: 85% 75%
    }
/* Položaj ikonice 'Prodano' prije naziva teme
    dl.icon dd.dterm, dl.icon dt {
        background-position: 50px 5px;
    }
    ul.topics dd.dterm, ul.topics dt {
        display: block;
        float: left;
        padding-left: 150px;
        width: 45%;
    } */
/* Zadnja poruka - dotjerivanje rasporeda teksta i mini avatara */
    .forumbg .lastpost { width:25% }
/* Profil popup */
    /* Profile popup */
    #profcont-container {
        background:#EEE !important;
        border:1px solid #CCC !important;
    }

    #userAVA img{
        position:absolute;
        top:43px;
        right:30px;
        height:50px;
        width:50px;
    }

    .profile_popup_nav {
        background:#E0E0E0;
        margin:-4px -4px 10px -4px;
        padding:3px;
        padding-top:10px !important;
        height:auto;
        border-bottom:1px solid #CCC;
        -webkit-border-radius:5px 5px 0px 0px;
        -moz-border-radius:5px 5px 0px 0px;
        border-radius:5px 5px 0px 0px;
    }

    .propop_tab {
        color:#888;
        text-shadow:1px 1px 0 #F5F5F5;
        cursor:pointer;
        -webkit-border-radius:4px 4px 0px 0px;
          -moz-border-radius:4px 4px 0px 0px;
                border-radius:4px 4px 0px 0px;
        border:1px solid #CCC;
        border-bottom:none;
        -webkit-box-shadow:0px 10px 6px rgba(255,255,255, 0.5) inset;
          -moz-box-shadow:0px 10px 6px rgba(255,255,255, 0.5) inset;
                box-shadow:0px 10px 6px rgba(255,255,255, 0.5) inset;
        background:#DDD;
        margin:0 2px;
        padding:3px;
    }

    .propop_tab:hover {
        position:relative;
        top:1px;
        color:#666;
        text-shadow:none;
        background-color:#EEE;
    }

    .propop_tab.activeTab {
        position:relative;
        top:1px;
        color:#666;
        text-shadow:none !important;
        background-color:#EEE !important;
    }

    #profileLinks {
        background:#E0E0E0;
        display:block;
        padding:3px;
        margin:10px -4px -4px -4px;
        border-top:1px solid #CCC;
        -webkit-border-radius:0px 0px 5px 5px;
        -moz-border-radius:0px 0px 5px 5px;
        border-radius:0px 0px 5px 5px;
    }
/* Kraj popup profila */
/* Upozorenje admina */
    /* Warning buttons */
    
    .mod_mess, .adm_mess {
    margin: 5px auto;
    width: 90%;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    }
    
    .mod_mess a.postlink, .adm_mess a.postlink {
    color: #FFF !important;
    text-decoration: underline !important;
    }
    
    /* Administrator bb-Code - message block */
    
    .adm_mess {
    background: #e54858;
    background: -moz-linear-gradient(left, #e54858 0%, #f5b57a 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, #e54858), color-stop(100%, #f5b57a));
    background: -webkit-linear-gradient(left, #e54858 0%, #f5b57a 100%);
    background: -o-linear-gradient(left, #e54858 0%, #f5b57a 100%);
    background: -ms-linear-gradient(left, #e54858 0%, #f5b57a 100%);
    background: linear-gradient(left, #e54858 0%, #f5b57a 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e54858", endColorstr="#f5b57a", GradientType=1);
    -webkit-box-shadow: 4px 4px 0px 0px #352727;
    -moz-box-shadow: 4px 4px 0px 0px #352727;
    box-shadow: 4px 4px 0px 0px #352727;
    }
    
    /* Administrator bb-Code - title */
    .adm_mess .titl {
    font-size: 15px;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px dashed #B60505;
    }
      
    /* Administrator BB-Code - text presentation */
    .adm_mess .titl + div {
    display: block;
    margin-left: 10px;
    padding: 25px 5px 25px 80px;
    background: transparent url(http://i33.servimg.com/u/f33/17/37/83/89/gnome-10.png) no-repeat left center;
    }
    
    /* Moderator BB-Code - message block */
    
    .mod_mess {
    background: #5c93f5;
    background: -moz-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%, #5c93f5), color-stop(100%, #afcfda));
    background: -webkit-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
    background: -o-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
    background: -ms-linear-gradient(left, #5c93f5 0%, #afcfda 100%);
    background: linear-gradient(left, #5c93f5 0%, #afcfda 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#5c93f5", endColorstr="#afcfda", GradientType=1);
    -webkit-box-shadow: 4px 4px 0px 0px #352727;
    -moz-box-shadow: 4px 4px 0px 0px #352727;
    box-shadow: 4px 4px 0px 0px #352727;
    }
    
    /* Moderator BB-Code - title */
    .mod_mess .titl {
    font-size: 15px;
    font-weight: bold;
    padding: 5px;
    border-bottom: 1px dashed #0D4DD3;  
    }
      
    /* Moderator BB-Code - text presentation */
    .mod_mess .titl + div {
    display: block;
    margin-left: 10px;
    padding: 25px 5px 25px 80px;
    background: transparent url(http://i33.servimg.com/u/f33/17/37/83/89/gnome610.png) no-repeat left center;
    }
/* Kraj upozorenja admina */
/* Login window for unregistered user */
    #logged_out_popup{
       background-color: rgba(255,0,0,0.6);
       padding:5px;
       position:fixed;
       bottom:8px;
       left:10px;
    color:white;
       font-weight:bold;
       border:1px solid yellow;
       border-radius:5px  
    };
/* Kraj login prozora */
/* Locked topic - Zakljucana tema */
    .topic-warning-block {
      border: 1px solid;
      margin: 10px 0px;
      padding: 15px 10px 15px 50px;
      background-repeat: no-repeat;
      background-position: 10px center;
      background-image: url(http://1.bp.blogspot.com/_5rlxf3T9Z9U/SsIXuytpYfI/AAAAAAAADcI/I4Tm0W5gDQk/lock_32.png);
      color: #750000 !important;
      background-color: #D26067;
      -webkit-border-radius: 10px;
      -moz-border-radius: 10px;
      border-radius: 10px;
      text-align: center;
      font-weight: bold;
      font-size: 18px;
      text-shadow: 1px 1px 1px #AAA;
    }

HrvojeP
Forumember

Male Posts : 124
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: How to denote locked topic

Post by _Twisted_Mods_ on February 22nd 2015, 8:44 am

do you have an account i can login?

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How to denote locked topic

Post by HrvojeP on February 22nd 2015, 8:52 am

Is it OK that you register and than I authorize you as an Admin?

P.S. I sent you my login data. It is simpler.

HrvojeP
Forumember

Male Posts : 124
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: How to denote locked topic

Post by _Twisted_Mods_ on February 22nd 2015, 9:20 am

ok the issue is in the script wheree it says
Code:
alt*="locked"

you need to replace the word locked to your language 

Code:
alt*="zaključan"


replace your script with this and it should work

Code:
$(function(){
  $('.bodyline #page-body:has(#i_reply[alt*="zaključan"]), #main-content:has(.i_reply[alt*="zaključan"])').prepend('<div class="topic-warning-block" align="center">We\'re sorry but this topic is locked.</div>');
});

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How to denote locked topic

Post by HrvojeP on February 22nd 2015, 9:34 am

Thank you for your kindness and generosity, I appreciate very much yours efforts to help me.

Kind regards,
Hrvoje bye

HrvojeP
Forumember

Male Posts : 124
Reputation : 2
Language : Croatian, English
Location : Croatia

http://drvenibrodovi.forumotion.eu/

Back to top Go down

Solved Re: How to denote locked topic

Post by _Twisted_Mods_ on February 22nd 2015, 9:44 am

Topic solved and archived

_Twisted_Mods_
Helper
Helper

Male Posts : 2020
Reputation : 299
Language : English
Location : Ms

http://liquidcode.forumotion.com

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