PDA

View Full Version : To explain My friends + sign on WIO page.



Taurus
16-05-11, 06:01
I know this is a very small issue, and that some will probably not even care for it. But maybe it is easy to do.
Is it possible to move the little + sign for a friend, on the Who Is Online page to the left of the flag?

Like I show here:

http://creativx.net/forums/imagehosting/34dd0af12074ff.png

Thanks!

kamilkurczak
16-05-11, 14:29
ok I will check it on my test forum and If will be better - I will change it, if not - I will give you a quick fix to do it

Taurus
24-05-11, 11:45
Still waiting for my quick fix here....lol

kamilkurczak
24-05-11, 20:30
hey, this "+" is added by mod or this is basic vB function? because I can't enabl it on my forum.

Taurus
25-05-11, 05:24
It is default vbulletin function Kamil. But you only see it on the Who Is Online page. If someone is on your friends list you will see the + sign next to his username on the WIO page. Like here on this site. If I am on the WIO page, I see the + sign next to your name Kamil. (If we both are online of course) As you are on my friends list here.

Taurus
25-05-11, 09:57
And here is a screen from this site:

http://creativx.net/forums/imagehosting/34ddcc432804d5.jpg

kamilkurczak
25-05-11, 19:18
I cant find the place in vB code which is responsible to adding "+". I made a request on vBulletin forum:)
And of course still looking for solution, It will be done, but I can't find this place yet :)

kamilkurczak
26-05-11, 21:59
hello,
I have a solution for you (tested). please test it and confirm that it is OK for you:

1. go to admincp->Plugins & Products->Plugin Manager
2. find vBET plugin in hook online_bit_complete (name: Add default language info into Who's online section)
3. in this plugin find:

$userinfo['musername'] .= '<img style="margin-left: 10px; text-decoration: none" class="vbet-flag vbet-'.$userinfo['vbet_def_lang'].'" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" alt="'.$vbet_lang_name.'" title="'.$vbet_lang_name.'" border="0"/>';
4. and replace with:

if($userinfo['buddy']){
$userinfo['musername'] .= ' +<img style="margin-left: 10px; text-decoration: none" class="vbet-flag vbet-'.$userinfo['vbet_def_lang'].'" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" alt="'.$vbet_lang_name.'" title="'.$vbet_lang_name.'" border="0"/>';
$userinfo['buddy'] = false;
}
else
{
$userinfo['musername'] .= '<img style="margin-left: 10px; text-decoration: none" class="vbet-flag vbet-'.$userinfo['vbet_def_lang'].'" width="16" height="11" src="http://www.vbenterprisetranslator.com/forum/images/vbet/flags/clear.gif" alt="'.$vbet_lang_name.'" title="'.$vbet_lang_name.'" border="0"/>';
}
5. save plugin
6. test it
7 Confirm here :)

Taurus
27-05-11, 05:26
Unfortunately that did not work. (Well it did move the + sign, so that worked!)

This, with plugin changed:

http://creativx.net/forums/imagehosting/34ddf274f5d664.jpg

This with original plugin:

http://creativx.net/forums/imagehosting/34ddf2750ebcd5.jpg

The changed plugin seems to remove all flags from members not on my friends list. This is not what I requested. Just to move the little + sign. This you managed, but can we keep the flags for everyone?

Thanks Kamil!!

kamilkurczak
27-05-11, 10:15
you are right - check now my solution from previous post ! :)

Taurus
27-05-11, 11:08
Yep! That did it! Thank you so much Kamil. I think it really looks better!

kamilkurczak
27-05-11, 15:54
you welcome :)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations made by vBET 4.10.1