Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog
December 04, 2008, 09:58:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Coppermine Live-Demo 1.5
For those who want to preview Coppermine before actually installing it on a real production server we have created a Live-Demo. It is just a package that provides a local webserver with a pre-configured Coppermine install rolled into one package to preview the "real" Coppermine Photo Gallery on your Windows box. The webserver is being started by only executing one single file, so you don't have to go through the troubles of setting up a webserver environment on your local PC just for evaluation purposes. The sole purpose of the live-demo is to give you an impression how the admin backend of Coppermine looks and feels. It is only meant to be used for evaluation purposes. You mustn't run it as a production system, because it has deliberately been configured in an unsecure manner to provide a newbie-proof experience in the first place.
The Live-Demo 1.5 is not the release of cpg1.5.x - it is version 1.5 of the Live-Demo that is built against cpg1.4.18
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Add quicktags  (Read 2223 times)
0 Members and 1 Guest are viewing this topic.
dwo Topic starter
Coppermine frequent poster
***
Posts: 111


« on: July 01, 2008, 11:13:04 PM »

Hello.

I searched a way to add quicktags to the comment field.

I found http://alexking.org/projects/js-quicktags

Download, tweak the .js file to your needs, upload it to root and edti theme.php function

Code:
// HTML template for the form to add comments
if (!isset($template_add_your_comment)) { //{THEMES}
...

Code:
<!-- BEGIN input_box_no_smilies -->
                                <td class="tableb_compact">
                                <textarea class="textinput" id="message" name="msg_body" style="width: 550px;" rows="6"></textarea>
  <script class="comment_button" type="text/javascript">edToolbar('message');</script>
<!-- END input_box_no_smilies -->

This adds quicktags.

I think adding them anywhere, eg description is as easy.

Do not forget to pay at least the one dollar 35 Wink

Only formatting the buttons with css didnt work...

regards, Dietmar

Logged
dwo Topic starter
Coppermine frequent poster
***
Posts: 111


« Reply #1 on: July 02, 2008, 09:31:12 AM »

Of course, you additionally have to call the script in template.html with <script ... command.
Logged
dwo Topic starter
Coppermine frequent poster
***
Posts: 111


« Reply #2 on: July 02, 2008, 09:54:00 AM »

Just found out:

To format the button, you have to insert code into the .js file.

Code:
default:
document.write('<input class="comment_button" type="button" id="' + button.id + '_' + which + '" ' + accesskey + ' class="ed_button" onclick="edInsertTag(\'' + which + '\', ' + i + ');" value="' + button.display + '"  />');
break;
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.068 seconds with 18 queries.