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-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!! : )


All times are GMT. The time now is 02:53 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.01037 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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