Good art is a taste, good design is an opinion.


Come as guest, stay as family.
Board Index

Come as guest, stay as family.


You are not connected. Please login or register

Foto

[Javascript] Warning before Posting



View previous topic View next topic Go down Message [Page 1 of 1]

1
Offline

  smejker

smejker
Punbb Rookie
Punbb Rookie

[Javascript] Warning before Posting Alerte10

Tutorial: Warning before Posting

A script that appears above the quick reply box with warning message style.


--> Tutorials, tips and tricks <--
Warning before Posting



- Javascript
First go to...
Administration Panel > Modules ->HTML & JAVASCRIPT>Javascript codes managemen > [Javascript] Warning before Posting Ajouter create a new javascript
Title * : What U want
Placement : In all pages

Code:
[panda=js]$(document).ready(function() {  $('#text_editor_textarea').before('<div class="warning"><b>[color=#ff0000]Before posting in the support forum remember:[/color] <a href="http://url of the topic">[color=#ff0000]How to create a theme[/color]</a></b></div>');
});

* U can change text: Before posting in the support forum remember: (How U like)
* http://url of the topic - Urs link of rules!


- CSS
Admin Panel > Display > Pictures and Colors > Colors > CSS stylesheet
add:
Code:
[panda=css].warning {
    background: none repeat scroll 0 0 #F0E8E0;
    border: 1px solid #C00000;
    font-family: Tahoma,Arial;
    font-size: 11px;
    height: 24px;
    line-height: 24px;
    margin-bottom: 3px;
    text-align: center;
}

Of course, U can change background, border, font... etc.



- Preview
[Javascript] Warning before Posting 1110




© PunBB Design


[Javascript] Warning before Posting Act_bottom If you have any questions related to this topic create a topic with the following title:
Warning before Posting

Powered by PunBB
Currently 0 users have thanked smejker for this post:

2
Offline

  Shadow

Shadow
Administrator
Administrator
[sucesso="Tutorial Accepted"] Your tutorial has been reviewed and we decide to accept it. Thanks for sharing with punbb.biz community.

Points added to the user.[/sucesso]

Powered by PunBB
Currently 0 users have thanked Shadow for this post:

3
Offline

  Udarsha45

Udarsha45
Punbb Rookie
Punbb Rookie
thanks

Powered by PunBB
Currently 0 users have thanked Udarsha45 for this post:

4
Offline

  Sponsored content



Powered by PunBB
Currently 0 users have thanked Sponsored content for this post:

View previous topic View next topic Back to top Message [Page 1 of 1]


Topic URL's

URL
BBcode
HTML

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