Tabbed smileys

Started by emanuele, January 15, 2011, 02:32:43 PM

Previous topic - Next topic

miDnIghtEr20C

Quote from: emanuele on May 24, 2011, 02:52:37 AM
Probably you have 4 smiley sets. If it is the case you cannot show all of them at the same time, only one set at a time is allowed by SMF.
ahhhh.. so then the mod really won't work for me?     well, i guess i can use the option to let others change to whatever smileys they want to see/use.  :)

akbora

I have only two tabs, how can I add more tabs?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

emanuele

I've updated the description with more details, basically go to edit smileys page (in the admin panel) and create a new row in the popup. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

akbora

Quote from: emanuele on January 21, 2011, 10:59:47 AM
Yes...I used "hard-coded" text colour, you can edit "Subs.php" and search for this block:
<style type="text/css">
ul#tabs { overflow:auto;list-style-type: none; margin: 30px 0 0 0; padding: 1px 0 0 0; }
ul#tabs li { float:left;margin:0.3em 0.2em; }
ul#tabs li a { color: #000;border: 1px solid #ADADAD; border-bottom: none; padding: 0.3em; text-decoration: none; }
div.tabContent {border: 1px solid #ADADAD; width:95%; }
div.hide { display: none; }
</style>

there you can replace the (link) text colour by changing:

ul#tabs li a { color: #000;

In your case you can use for example a white:

ul#tabs li a { color: #FFF;

or anything else.
Thanks emanuele, I've created new rows.. But I can not change rows' and text color this way you told. How can I do?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

emanuele

In the same page you used to add the new tab there is a box where you can put the css needed to change tabs' color and aspect. ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

watchhorse

errorlog:

8: Undefined index: basic_smileys
Bestand:***Themes/default/GenericControls.template.php
Regel: 140

8: Undefined index: additional_smileys
Bestand:***/Themes/default/GenericControls.template.php
Regel: 142


The line is:


135:          function tab_name(idx){
136:          if(tab_names.length>idx && tab_names[idx] != \'\'){
137:          return tab_names[idx];
138:            }else{
139:          if(idx == 0){
==>140: return \'' . $txt['basic_smileys'] . '\';
141:         } else {
142:         return \'' . $txt['additional_smileys'] . ' \' + idx;
143:         }
144:          }


Is this a problem?
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

emanuele

#86
Version of SMF?

If it is 1.1.x it could be you need to put the translation in Modification.{yourlanguage}.php

Silly me...of course it's 2.0.

I'll check.

ETA: I can't see anything wrong in the code, please check if you have the two strings:
$txt['basic_smileys']
$txt['additional_smileys']

in you Modifications.english.php and in your language file.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

watchhorse

Quote from: emanuele on July 20, 2011, 12:47:54 PM
please check if you have the two strings:
$txt['basic_smileys']
$txt['additional_smileys']

in you Modifications.english.php and in your language file.

Stupid me ... i forgot my own language file.
Thanks
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

emanuele

If they are in the English one it should not be a problem with SMF 2, but if there are these two errors maybe they are missing in English as well. Better check that too! ;)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Sergioropase

hello and thank you for this wonderful mod author Emanuele, well the mod is installed correctly in the default theme, make appropriate modifications to the theme I use, but I can not display the tab with additional smilies, either in the default theme or my subject, I get the options, I get as renaming the tabs and I get the arrow that is supposed to be where I have to pass the smilies, smilies step, I get a new category, the move to this new category but I can not see the tabs, even when I look in the post, where I pop up appear below .... not that I am wrong ...

Pardon my English but use a translator

emanuele

Can you provide me a link to your forum and a test account?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Sergioropase

#91
yeah, you command for the PM, if you want to change the default theme test

Sergioropase

#92
Hi, well I got it to work thanks to Emanuele this wonderful mod that is very useful.

I've also managed to appear on the quick response tabs smilies.

Now I have a small problem, when a post has few answers get a large space between BBCode and the quick response, this occurs from the modification I made to appear the tabs at the quick response and I should appear together, when the post is several respondents space is reduced.

not when I click on the smilie from the rapid response does not appear.

I put an image to see it better.

thanks


emanuele

I suppose you used a mod to display the editor's elements in the quick reply, which one is it?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Sergioropase

If this is, but not much head hot you the important thing is that the mod is working, but good if you could add to the quick response would be great


http://custom.simplemachines.org/mods/index.php?mod=883

emanuele

Unfortunately I can't reproduce it.

Probably it depends on the theme and on the way you put the code in Display.template.php...


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Sergioropase

ok thank you very much, anyway does not matter what the quick response, I will try to fix it but if it is not okay either

Many thanks

Yngwiedis

Hello...

Is there anyway to make the tabs centered ?
Just like the smilies ?

Thank you very very much.
AmityHost.com - The Affordable Host

emanuele

I think so since I've seen them centred once.

SMF 1 or 2?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Yngwiedis

AmityHost.com - The Affordable Host

Advertisement: