Skocz do zawartości
Hosting webh.pl - 20%

RESOLVED: Shortcut Buttons

Rekomendowane odpowiedzi

Opublikowano

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

Opublikowano
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

Opublikowano
  • Autor

yes a button like this hide but for other use .. it should work like smileys .. when I hit a button board revel a syntax like info: (smiley format for info image)

Opublikowano

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

  • 2 tygodnie później...
Opublikowano
  • Autor

10s88jo.png

it looks easier .. this way .. but I don't know how to do this ..

Edytowane przez gami

Opublikowano

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

Opublikowano
  • Autor

it works but how to remowe "" border="0" alt="info.png" />" text after img

14uygs3.png " border="0" alt="info.png" />

btw works in Opera and I.E but not in FireFox ?!

Edytowane przez gami

Opublikowano
  • Autor

it works for me now in FF .. and still this text shows " border="0" alt="info.png" /> ?!

Edytowane przez gami

  • 2 tygodnie później...
Opublikowano
  • Autor

for everyone .. it button works but this text stands next to img

Opublikowano
  • Autor

it works now .. tnx

Edytowane przez gami

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

Ostatnio przeglądający 0

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

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.