vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - The new Online/Offline avatar?s opacity (https://vborg.vbsupport.ru/showthread.php?t=185957)

WarLion 07-20-2008 10:00 PM

The new Online/Offline avatar?s opacity
 
The new Online/Offline avatar?s opacity
************************************
this is working on vb 3.7.2 must work in all 3.7.x versions
Works on Firefox and IE,
i dont have another browser you can tell me if is working in others

remember if you like this mod please click Install

Older version for 3.6.x is here


Funcion on this hack
this hack allow to make add extra online/offline status
if any user is offline the avatar will have a transparency with mouseover

*Add face avatar to postbit
*Add face avatar to postbit_legacy
*Add face avatar to Member Profile
*Add face avatar to Show laders
*Add face avatar to Member list
*Add face profile picture on member profile
*All editable over admincp
*Add the option to change the userstatus icon on Show Leaders to avatar
and select the width and height for the avatar on Show Leader
*Extra addons (Chief first post,)
***********************************************

Installation


***********************************************

Upgrade for old version
:

For upgrades only upload the product xml via admincp
admincp==>Plugins & Products ==>Manage Products==>[Add/Import Product] and select
Allow Overwrite --> yes
edit your configuration on Vbulletin Options (WarLion Online/Offline Settings) You need to select the Usergroups that will be able to see this modification

Thats all enjoy.


New fresh Installation
:
Step One :
Install WarLion Online/Offline product

Install the Product via admincp
Go to your admincp==>Plugins & Products ==>Manage Products==>[Add/Import Product]

edit your configuration on Vbulletin Options (WarLion Online/Offline Settings) You need to select the Usergroups that will be able to see this modification

Thats all enjoy.


************************************
Extras
A few extras for the modificaccion

if you have Chief First Post - Every Page 3.7 you have to download extra-warlion-online-offline cfp
this will add a new phrases and option to enable or disable this opacity on chief firs post

************************************


************************************************** ***
To-do next release
*add extra field on edit option on UserCP to enable disable online/offline mod for specific user
*Choise if invisible user have this option

Version 3.0
* Add the opacity option on avatar of member profile
* Add the opacity option on Profile picture
* Add 4 more phrases
* Add 2 more option on admincp

Version 2.9
* Upgrade for vbulletin 3.7.x

Version 2.8
* Fix the small bug if you change the Userstatus icon for avatar on Show Leaders
* Add a new option to disable the UserStatus icon on forum
* Add 4 More Phrases

Version 2.7
* Add option to change from userstatus icon to avatar on Show Leaders
* Add to select the width and height for the avatar on Show Leader
* Add 4 more Phrases

Version 2.6

* Fix the small bug if you have Add Template Name in HTML Comments - Yes
* Add usergroup selection (select the groups able to see the mod)
* Add the Online/Offline Opacity on Show Groups
* Add new plugin for showgroup_users
* Add new plugin for select UserGrooups
* Add 4 more Phrases

Version 2.5

* Create a new template for the css funtion
* Add avility to change over admincp
* Remove the functions_wl_online_offline.php file
* Add avility to Enable/Disable Mouseover on admincp
* Adjust the own opacity on admincp
* Select in wich templates you like the Fade Option
* Extra lenguage (spanish).

Version 2
* Create the modificacion on a product
* Create a new function fetch_online_status_mod
* Create a new template to avoid the change of postbit_onlinestatus

Version 1.2
*Fix a minor bug on postbit_legacy

Version 1.1

*Add Avatar Opacity on Member List

Version 1.0

* Avatar Opacity on postbit
* Avatar Opacity on Member Profile
*Avatar Opacity on Postbiit_legacy

if you see the screen shot you will understand this better
i hope you like it
Screenshot
Animated Screenshot
animated screenshot on Internet Explorer 7

in this black screensshots i remove the original icon status for online/offline if you like to remove too search in this templates
postbit ==> $post[onlinestatus]
postbit_legacy ==> $post[onlinestatus]
MEMBERINFO ==> $userinfo[onlinestatus]
and remove it

dont forget to ckick Install

WarLion 07-21-2008 07:08 PM

screnshots

K4GAP 07-21-2008 09:08 PM

Can't wait to try this out!

K4GAP 07-21-2008 09:18 PM

Works like a charm. Quick easy install. Tested it on my members list and works exactly as claimed. Nice job!

WarLion 07-21-2008 09:29 PM

im glad you like it thanks for installing

TimberFloorAu 07-21-2008 09:58 PM

Havent downloaded yet.

But.

1. does it add any db queries, if so how many.
2. mod is 276kb, seems LARGE does it include images in the mod ( for example use ) if so thats fine.
3. what a great animated gif you gave !! Brilliant. Could you explain how you did this please.

Ste

Cobro 07-21-2008 10:30 PM

awesome thanks this is so kewl

AWJunkies 07-22-2008 12:09 AM

Thanks for update will look in my code for the PM avatar and your mod merger thing.

JAuthement 07-22-2008 12:48 AM

WarLion;

I don't know how you would add a custom field to your mod. But for me I use a custom postbit (postbit_first) for the first post in a thread. what I did was went into the global_start plugin and just modified the postbit_legacy string to add the postbit_first. I know that this is a "hack"way of doing this. If you could do a bit better I would greatly appreciate it!!

WarLion 07-22-2008 01:43 AM

Quote:

Originally Posted by TimberFloorAu (Post 1580936)
Havent downloaded yet.

But.

1. does it add any db queries, if so how many.
2. mod is 276kb, seems LARGE does it include images in the mod ( for example use ) if so thats fine.
3. what a great animated gif you gave !! Brilliant. Could you explain how you did this please.

Ste

1.- no, only plugins no files
2.- yes some screenshtos and spanish lenguage
3.- camtasia studio 4 is a really good software

WarLion 07-22-2008 01:44 AM

Quote:

Originally Posted by JAuthement (Post 1581037)
WarLion;

I don't know how you would add a custom field to your mod. But for me I use a custom postbit (postbit_first) for the first post in a thread. what I did was went into the global_start plugin and just modified the postbit_legacy string to add the postbit_first. I know that this is a "hack"way of doing this. If you could do a bit better I would greatly appreciate it!!

i will try to do it , but i need to se your plugin to see what is the change you made

AWJunkies 07-22-2008 03:55 AM

Finished with PM avatar image and opacity. 0 yes 0 queries added :)

WarLion 07-22-2008 04:25 AM

asome AWjunkies look really sweat

Deepdog009 07-22-2008 04:34 AM

very Nice!!!

Artes_Marciales 07-22-2008 05:47 AM

Great Job **Install** & **nominated**

Buen trabajo y además con la traducción al Español,
Gracias paisano! : )

PD: No parece que me funcione bien...
estoy logeado en el foro y mi avatar no está encendido (firefox/esplorer) : (

JAuthement 07-22-2008 12:19 PM

Quote:

Originally Posted by WarLion (Post 1581057)
i will try to do it , but i need to se your plugin to see what is the change you made

I didn't create a new plugin I just modified your WarLion Remplace Template Online/Offline. I highlighted my changes in RED.

Code:

$onlineoffline_groups = explode(',',$vbulletin->options['wl_usergroups']);
    if (is_member_of($vbulletin->userinfo,$onlineoffline_groups))
    {
if ($vbulletin->options['wl_onlineoffline_enabled']) {
if ($vbulletin->options['wl_onlineoffline_memlist_enabled']) {           
$vbulletin->templatecache['memberlist_resultsbit'] = str_replace('<img src=\"$avatarurl\"', '$userinfo[onlinestatus2]</if><img src=\"$avatarurl\"', $vbulletin->templatecache['memberlist_resultsbit']);
$vbulletin->templatecache['memberlist_resultsbit'] = str_replace('vspace=\"4\" /><else />', 'vspace=\"4\" /></span><else />', $vbulletin->templatecache['memberlist_resultsbit']);
}
if ($vbulletin->options['wl_onlineoffline_postbit_enabled']) {
$vbulletin->templatecache['postbit'] = str_replace('<img src=\"$post[avatarurl]\"', '$post[onlinestatus2]<img src=\"$post[avatarurl]\"', $vbulletin->templatecache['postbit']);
$vbulletin->templatecache['postbit'] = str_replace('$vbphrase[xs_avatar]</phrase>" border=\"0\" />', '$vbphrase[xs_avatar]</phrase>" border=\"0\" /></span>', $vbulletin->templatecache['postbit']);
}
if ($vbulletin->options['wl_onlineoffline_profile_enabled']) {
$vbulletin->templatecache['memberinfo_block_ministats'] = str_replace('id=\"user_avatar\" />', 'id=\"user_avatar\" /><br><center>$userinfo[onlinestatus]</center>', $vbulletin->templatecache['memberinfo_block_ministats']);
}

if ($vbulletin->options['wl_onlineoffline_postleg_enabled']) {
$vbulletin->templatecache['postbit_legacy'] = str_replace('<img src=\"$post[avatarurl]\"', '$post[onlinestatus2]<img src=\"$post[avatarurl]\"', $vbulletin->templatecache['postbit_legacy']);
$vbulletin->templatecache['postbit_legacy'] = str_replace('$vbphrase[xs_avatar]</phrase>" border=\"0\" />', '$vbphrase[xs_avatar]</phrase>" border=\"0\" /></span>', $vbulletin->templatecache['postbit_legacy']);
$vbulletin->templatecache['postbit_first'] = str_replace('<img src=\"$post[avatarurl]\"', '$post[onlinestatus2]<img src=\"$post[avatarurl]\"', $vbulletin->templatecache['postbit_first']);
$vbulletin->templatecache['postbit_first'] = str_replace('$vbphrase[xs_avatar]</phrase>" border=\"0\" />', '$vbphrase[xs_avatar]</phrase>" border=\"0\" /></span>', $vbulletin->templatecache['postbit_first']);

}
if ($vbulletin->options['wl_onlineoffline_showgroups_enabled']) {
$vbulletin->templatecache['showgroups_usergroupbit'] = str_replace('$user[onlinestatus]', '$user[onlinestatus2]$user[onlinestatus]</span>', $vbulletin->templatecache['showgroups_usergroupbit']);
}
}}
$avatar_wid = $vbulletin->options['wl_onlineoffline_avatar_width'];
$avatar_hei = $vbulletin->options['wl_onlineoffline_avatar_height'];
if ($vbulletin->options['wl_onlineoffline_avatar_showgroups_enabled']) {
$vbulletin->templatecache['showgroups_usergroupbit'] = str_replace('$user[onlinestatus]', '<img src=\"image.php?u=$user[userid]\" border=\"0\" width=\"$avatar_wid\" height=\"$avatar_hei\"></span>', $vbulletin->templatecache['showgroups_usergroupbit']);
}
if ($vbulletin->options['wl_onlineoffline_userico_enabled']) {
$vbulletin->templatecache['postbit'] = str_replace('$post[onlinestatus]', '', $vbulletin->templatecache['postbit']);
$vbulletin->templatecache['postbit_legacy'] = str_replace('$post[onlinestatus]', '', $vbulletin->templatecache['postbit_legacy']);
$vbulletin->templatecache['MEMBERINFO'] = str_replace('$prepared[onlinestatus]', '', $vbulletin->templatecache['MEMBERINFO']);

}


Leo Brazil 07-22-2008 04:01 PM

Awesome !!

Installing right now.

TimberFloorAu 07-22-2008 09:05 PM

Quote:

Originally Posted by WarLion (Post 1581055)
1.- no, only plugins no files
2.- yes some screenshtos and spanish lenguage
3.- camtasia studio 4 is a really good software

Brill thanks :)

WarLion 07-25-2008 04:58 AM

a finish the version 3.0 that have new options like

* Add the opacity option on avatar of member profile
* Add the opacity option on Profile picture
* Add 4 more phrases
* Add 2 more option on admincp

Artes_Marciales 07-25-2008 05:09 AM

Thanks, nice work!! : )

sinucello 07-25-2008 05:11 AM

Hi,

great mod, thank you.

Feature wish: opacity option for "friends view" on profile page.

all the best,
Sacha

WarLion 07-25-2008 05:45 AM

Quote:

Originally Posted by sinucello (Post 1583583)
Hi,

great mod, thank you.

Feature wish: opacity option for "friends view" on profile page.

all the best,
Sacha

im working on that too lol a lot of problem with that but i will i promise

verino 07-25-2008 05:45 AM

installed but seems not working :confused:

even I set the fade opacity to 50%. I use vb 3.7.2 with vertical postbit legacy.

Any help pls ?

AWJunkies 07-25-2008 06:08 AM

Great job upgrading now. Haven't heard back from other mod guy so may be sending you the code for PM image stuff.

WarLion 07-25-2008 06:19 AM

Quote:

Originally Posted by verino (Post 1583595)
installed but seems not working :confused:

even I set the fade opacity to 50%. I use vb 3.7.2 with vertical postbit legacy.

Any help pls ?

did you have any change in your postbit_legacy template?

or another hack , mod that will change someting?

send me a copy of your template via pm to check if you have any modification

g0dfather1984 07-25-2008 06:20 AM

Thank you!

verino 07-25-2008 06:27 AM

Quote:

Originally Posted by WarLion (Post 1583607)
did you have any change in your postbit_legacy template?

or another hack , mod that will change someting?

send me a copy of your template via pm to check if you have any modification

pm sent, Sir.

Thank's :D

carlos54321 07-25-2008 09:28 AM

Thankyou installed

WarLion 07-25-2008 06:37 PM

i just add a extra add-on for the users that have the Chief First Post

AWJunkies 07-26-2008 02:25 AM

You going to do friends and visitor messages as well in members profile?

verino 07-26-2008 05:24 AM

I just realized that when i login as admin, I can't see the opacity. But when I logged-in as another user, it works perfect :D

My bad then, sorry.

WarLion 07-26-2008 07:03 AM

Quote:

Originally Posted by AWJunkies (Post 1584344)
You going to do friends and visitor messages as well in members profile?

actually im working rigth now in that

carmichael1973 07-27-2008 01:09 PM

Awesome! Quick to install and works perfect! >Clicks INSTALLED

Artes_Marciales 07-30-2008 08:57 AM

Esto habrá que mejorarlo en la próxima actualización.

(1 queries for uncached templates)
Uncached templates: warlion_postbit_onlinestatusmod (2)

(me sale el mensaje de "uncached templates" en el perfil y en el postbit)

Saludos!

WarLion 07-30-2008 05:36 PM

Quote:

Originally Posted by Artes_Marciales (Post 1587293)
Esto habr? que mejorarlo en la pr?xima actualizaci?n.

(1 queries for uncached templates)
Uncached templates: warlion_postbit_onlinestatusmod (2)

(me sale el mensaje de "uncached templates" en el perfil y en el postbit)


Saludos!


que extra?o dejame checo eso no se que pueda ser

translate: that weird let me check that

KURTZ 07-30-2008 07:49 PM

interesting hack ... but seems that needs some developments ... so i'm checking it ... ;)

Audax666 08-04-2008 06:58 PM

Hi,

nice mod! Worked perfect from the beginning.
But is it possible to change the overlay color from grey to black?
Didn't find the place where the color is defined.
Maybe you can help?

WarLion 08-04-2008 08:32 PM

can you send me a screen shot i dont understand what you mean

Audax666 08-05-2008 06:15 AM

I'm talking about the white/grey layer which lays above the avatar if a user is offline. (i think it's called opacity)
If the opacity setting is put on 10% the avatar is nearly pure white.
My wish is that it should be nearly black if the user is offline.

"Sorry, I'm not a native speaker"

lstintxs100 08-05-2008 06:32 AM

nice. Cool little idea.

can you look into this for me?

Code:

Uncached templates: warlion_postbit_onlinestatusmod (4)


All times are GMT. The time now is 05:20 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01617 seconds
  • Memory Usage 1,842KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete