Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Blockquote  (Read 573 times)

atmoner

  • Newbie
  • *
  • Karma: 1
  • Posts: 5
    • atmoner.com
Blockquote
« on: April 15, 2011, 10:30:09 PM »

Hello ...
I install the script now ... and I started to make some changes.
I would like to share my first hack:



Open js/admin.js and search:

Code: [Select]
case 'link':
url = prompt("<?php echo l('js_link1'); ?>", '');
title = prompt("<?php echo l('js_link2'); ?>", '');
if (url != null) {
start = '<a href="'+url+'" title="'+title+'">';
end = '<\/a>';
} else {
start = '';
end = '';
title = '';
}
break;

add after:

Code: [Select]
case 'blockquote':
start = '<blockquote><p>';
end = '<\/p><\/blockquote>\n';
break;

Open snews.php and search:

Code: [Select]
'p' => '',
add after:

Code: [Select]
'blockquote' => '',
Open lang/EN.php and search:

Code: [Select]
  // no need to translate
Add after:

Code: [Select]
  $l['blockquote'] = 'blockquote';
   $l['blockquote_value'] = 'blockquote';

Open css/style.css and add at end:

Code: [Select]
blockquote p {
        margin: 10px 0;
}
blockquote {
background: #f5f5f5 url('images/pre-terminal.png') no-repeat top left;
margin-left: 0px;
padding-left: 40px;
margin: 10px 20px 10px 20px;
border: 1px solid #808080;
border-left: 3px solid #808080;
text-align: left;
font-size: 11px;
font-weight: normal;
font-family: Verdana, Arial, sans-serif;
color: #383838;
}

upload this image in your folder "images":



Have fun  ;)
Logged