Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

RESOLVED: Shortcut Buttons


gami

Rekomendowane odpowiedzi

I have an idea and need help with that .. I use some images (for info,descrition etc.) on my forum froum smilies but I have to type every time ..It's anyoing but looks better with images .. It would be great to have icons for that like for code (in same row) . One icon for each .. info imdb description etc .. Is there any way to do this on my board ?? I hope you understood what i mean..

Edytowane przez gami
Odnośnik do komentarza
Udostępnij na innych stronach

I hope you understood what i mean..

Not really B-)

You want additional button in the view of reply?

http://forum.invisionize.pl/index.php?act=...post&id=291

In that case you may find the following tutorial useful:

http://translate.google.pl/translate?prev=...history_state0=

EDIT: @down, so the second link depicts everything you''d like to know ;)

Edytowane przez Amfidiusz
Odnośnik do komentarza
Udostępnij na innych stronach

Afaik, open tags (like


) are not supported, yet. They should be available in IPB3 (correct me guys if I'm wrong).

If I were in your shoes, I would create a new BBCode, eg. [description]:

<center><img src=http://yourboard.com/style_images/tags/description.PNG><br>{content}</center>

Then I would add an icon as explained by DawPi on the example of hide button.

It would result in the following: User presses the button, he/she receives [description][/description]. The text should be put inbetween the tags. the outcome should be simillar to the one below:

2a61lr9.jpg

OR

Just upload the image as a non-clickable emoticon!!!

Edytowane przez Amfidiusz
Odnośnik do komentarza
Udostępnij na innych stronach

  • 2 tygodnie później...

Dude, everything has been explained! Just connect it now!

But if you prefer step by step, then let's go:

1. Login to your ACP. Go to Look&Feel --> Emoticon Manager --> click on Browse --> and upload the INFO picture from your HDD. Select the set of mots you're using. Click on upload emoticons to selected sets. Navigate to your set, find your INFO picture, click on Add. Do not check clickable. Enter the name :P. Click on Add checked emoticons.

2. Upload icon you want to use for the picture to your skin_images/(your_skin)/folder_editor_images/ directory. Name it info.png

3. navigate to ACP > LOOK & FEEL > ( your skin ) > Edit Template HTML > Post / PM Editor >> ips_editor

Find:

<td><div class="rte-normal" id="{$editor_id}_cmd_ipb_code"><img src="{$images_path}rte-code-button.png"  alt="{$this->ipsclass->lang['js_rte_lite_code']}" title="{$this->ipsclass->lang['js_rte_lite_code']}"></div></td>

Add below:

<td><div class="rte-normal" id="{$editor_id}_cmd_ipb_info"><img src="{$images_path}info.png"  alt="Add INFO picture" title="INFO picture"></div></td>

Save.

4. Open jscripts/ips_text_editor.js

Find:

        /**
       * STD:
       * IPB code override
       */
       this.ipb_code = function()
       {
               this.wrap_tags_lite(  '[code]', '[/ code]', 0)
       };

Add below:

        /**
       * STD:
       * IPB info override
       */
       this.ipb_info = function()
       {
               this.wrap_tags_lite(  '', ' ', 0)
       };

Save and upload.

5. Navigate to ACP > TOOLS & SETTINGS >> Maintenance > Cache Control >> Update all caches...

6. Done.

Created on the basis of DawPi's Button Hide.

Have already tested on my board. Works perfectly. Good luck!

-----------

They should be available in IPB3 (correct me guys if I'm wrong).

I wasn't wrong :P Edytowane przez Amfidiusz
Odnośnik do komentarza
Udostępnij na innych stronach

  • 2 tygodnie później...
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.