custom banned screen

View previous topic View next topic Go down

custom banned screen Empty custom banned screen

Post by _Twisted_Mods_ on 2/5/2015, 1:54 pm


Posts : 101
Reputation : 3
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 32
Location : USA

View user profile
Custom banner screen

it works for  phpbb3

custom banned screen ZfYnkW4SAOF9XyAbYByg+testbanned

when you ban someone fill out this form and put it in the comment section

un-username-un  << username
rsn-reason-rsn  << reason
givn-2/3/2015-givn << date ban was given
d-2-d << how many days the ban is for
exp-2/5/2015-exp << date ban ends
com-you posted the same thing multiple times-com << Comments

here is an example

un-Lc TestAcct-un rsn-Spamming-rsn givn-2/3/2015-givn d-2-d exp-2/5/2015-exp com-you posted the same thing multiple times-com

goto acp>modules>javascript managment

create a new javascript

placement:in all pages


var limages = ['','','','','',''];
 function getimage() {
   return limages[Math.floor(Math.random() * limages.length)];
   var namee = "", reason = "",days = "",given = "",exspires = "",comment = "";
a = $('.page-title').next('p').text();
namee = a.match(/un-(.*)-un/,'$1');
reason = a.match(/rsn-(.*)-rsn/,'$1');
days = a.match(/d-(.*)-d/,'$1');
given = a.match(/givn-(.*)-givn/,'$1');
exspires = a.match(/exp-(.*)-exp/,'$1');
comment = a.match(/com-(.*)-com/,'$1');
$('head').append('<style>#banstuff { padding: 20px;margin-top: 10px;width: 600px;display: inline-block;border-radius: 10px; border: 1px solid black;box-shadow: 0px 30px 30px rgba(0, 0, 0, 0.3) inset, 0px -30px 30px rgba(255, 255, 255, 0.3) inset;}#banned img { max-height: 250px;border-radius: 10px;margin-top:10px;margin-bottom:10px;}#banned {width:80%;position: relative;color: #000 !important;font-size: 18px;background-color: #FFA500;border-radius: 50px; padding-bottom: 30px;box-shadow: 0px 50px 50px rgba(0, 0, 0, 0.3) inset, 0px -50px 50px rgba(255, 255, 255, 0.3) inset; border: 3px solid darkkhaki;}</style>');
$('.page-title').next('p').wrap().parents('#main-content').html('<center><div id="banned"><img id="bannedimg" src="'+getimage()+'"><br><span>Hello <b>'+namee[1]+'</b>, you have been <b>banned</b> from <b>This Forum</b> for the following:</span><br><div id="banstuff"><span>Reason: <b>'+reason[1]+'</b></span><br><span>Ban Given: <b>'+given[1]+'</b></span><br><span>Ban Length: <b>'+days[1]+' Days.</b></span><br><span>Ban Expires: <b>'+exspires[1]+'</b></span><br><span>Comments: <b>'+comment[1]+'</b></span><span style="position:absolute;right:30px;bottom:10px;font-size:10px;color:rgba(0,0,0,0.3)!important;">Design & code by: <a style="color:rgba(0,0,0,0.3)!important;" "="" href="">©️ Liquid Code</a></span></div></center>');

limages is a list of the random images that will show .. remove or add to the list as you wish... if you dont want to display a image just use .. as the image

if your forum is not in english you will need to replace the word banned in the code .match('banned')
with whatever word means banned in your language

also in the img u will see my copyright in the corner  for those who are smart enough to remove this from the code i would advise against it

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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