Mobile Legends: Bang Bang

 Forgot password?
 Register now.
View: 197|Reply: 0
Collapse the left

[ForumUpdateLog] How to diy portal block style

[Copy link]
Post time 2018-5-28 12:29 PM | Show all posts |Read mode

Sign up now, Make more friends, Enjoy with more features, Let you easily Fun Community.

You have to Login for download or view attachment(s). No Account? Register

x
portal url admincp url

if you have permission to login admincp, then go portal>block styles>edit>create a new block style

TIM截图20180615142747.png portal1.png

I added a block style with style name "Thread+title+dataline+replies+views"

and code is :

    <style>
.gogo{
    position: relative;
}
.gogo ul{
    position: relative;
}
.gogo ul li{
    position: relative;
}
.gogo ul li a{
    position: relative;
    display:block;
}
.gogo ul li a span{
    display: inline-block;

}
.gogo ul li a span:nth-child(1){
    font-weight:bold;
    border-left: 3px solid yellow;
    padding:0 0 0 10px;
}
.gogo ul li a span:nth-child(2){
    right: 10px;
    position: absolute;
}
.gogo ul li a span:nth-child(3){
    right: 100px;
    position: absolute;
}
.gogo ul li a span:nth-child(4){
    right: 190px;
    position: absolute;
}
</style>
<div class="module cl gogo">
<ul>
[loop]
	<li>
<a href="{url}"{target}>
<span>
{title}
</span>
<span>
{dateline} 
</span>
<span>
 replies: {replies}
</span>
<span>
 views: {views}
</span>
    </a></li>	                                                     
[/loop]
</ul>
</div>

now it's time to go diy portal

portal2.png

choose if there is a block already, then try to edit it

portal3.png

use mouse to hover on the corner of the block, and the button appear,

portal4.png

choose "Attribute", scroll down, in the row of Display style, select the block style you created before, click "ok"

portal5.png

then check if the style is what we expect, if yes then click the "save" button at the top right corner of screen

You have to log in before you can reply Login | Register now.

Points Rules

Mobile Phone Version|Dark Room|Mobile Legends: Bang Bang Official Forum

2018-10-17 06:31 AM GMT+8

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list