vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Replace Buddy Icon (3.8.x) (https://vborg.vbsupport.ru/showthread.php?t=206222)

Playa82 02-21-2009 10:00 PM

Replace Buddy Icon (3.8.x)
 
This hack replaces the ugly "+" icon that denots "User is on your buddy list" with something a little nicer

Installation:

1) Download the attached image

2) Upload attached image to "yourdomain.com/images/statusicon" folder.

In forumhome_loggedinuser find:
Code:

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark]

and replace with:
Code:

$stylevar[dirmark]<a href="member.php?$session[sessionurl]u=$loggedin[userid]" rel="nofollow">$loggedin[musername]</a>$loggedin[invisiblemark]<if condition="$loggedin[buddymark]"><img src="/images/statusicon/buddy.gif" alt="User is on your buddy list"></if>

In whosonlinebit find:
Code:

<strong>+</strong>

and replace with:
Code:

<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">

LIVE DEMO HERE


Don't forget to click "INSTALLED"

DobieGillis? 02-22-2009 01:31 PM

I can't find <strong>+</strong> in whosonlinebit

only reference to + is this line

<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>

Playa82 02-22-2009 01:46 PM

<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>$userinfo[hidden]<if condition="$show['buddy']">+</if>

then change the red marked with:
Code:

<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">

DobieGillis? 02-22-2009 01:48 PM

thank you very much, trying now

TandyServices 02-22-2009 01:55 PM

That one would be in the WHOSONLINE Templete the in the whosonlinebit find + and replace with
Code:

<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">

DobieGillis? 02-22-2009 02:00 PM

tried that but no change. I do have the new image on the bottom of the main screen, just not in the forum threads themselves. Thanks though.

FiMeTi 02-22-2009 02:43 PM

Very nice one! Was a pain for my eyes this "+" and I was to lazy to fixx it. lol :)

Thx man, works just smooth!

tafreeh 02-22-2009 05:15 PM

how did u get that country flag there ? btw nice mod....

Playa82 02-22-2009 05:34 PM

Quote:

Originally Posted by tafreeh (Post 1751607)
how did u get that country flag there ? btw nice mod....

https://vborg.vbsupport.ru/showthrea...country+online

with this mod

Magnumutz 02-23-2009 10:55 AM

1. This is a template modification, not an add-on.
2. This is exactly the same as this mod: https://vborg.vbsupport.ru/showthread.php?t=166174
3. You even used his image... not nice !
4. Reported.


All times are GMT. The time now is 05:26 AM.

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.01208 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (1)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
  • (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