vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Replace Buddy Icon (https://vborg.vbsupport.ru/showthread.php?t=166174)

bennac40 04-12-2008 06:29 PM

Hi,

I installed it but have a little problem. It appears fine in all the other sections except on the forum index, I still see the "+". I rechecked the code 3 times. Exactly like what you provided.:confused:

Hoffi 04-13-2008 10:11 AM

If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
PHP Code:

$user['buddymark'] = '+'

The + in anything you want. Like:
PHP Code:

$user['buddymark'] = '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">'

And the secon is the File class_profileblock.php
Line 1056
Change
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' ''

in
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">' ''

Then you need no Template-Mod and the Sign shoul be on every Page.

Breathex 04-13-2008 07:52 PM

Quote:

Originally Posted by Hoffi (Post 1489647)
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
PHP Code:

$user['buddymark'] = '+'

The + in anything you want. Like:
PHP Code:

$user['buddymark'] = '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">'

And the secon is the File class_profileblock.php
Line 1056
Change
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' ''

in
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">' ''

Then you need no Template-Mod and the Sign shoul be on every Page.

That's easier, thanks Hoffi :)

NeuroLancer 04-15-2008 03:55 AM

Quote:

Originally Posted by Hoffi (Post 1489647)
If you change two Files, you have it everywhere.
Just change (for 3.7Beta3)
File: functions_bigthree.php
Line106
PHP Code:

$user['buddymark'] = '+'

The + in anything you want. Like:
PHP Code:

$user['buddymark'] = '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">'

And the secon is the File class_profileblock.php
Line 1056
Change
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' ''

in
PHP Code:

$user['buddymark'] = in_array($user['userid'], $buddylist) ? '<img src="/images/statusicon/buddy.gif" alt="User is on your buddy list">' ''

Then you need no Template-Mod and the Sign shoul be on every Page.

you still need to modify whosonline, because it gets the + from the template

haytham 05-29-2008 05:32 PM

Who's online working ok for me but I didn't want to change any codes so I just made 2 folders images-statusicon and put the buddy icon inside. Thank you.

LWS 06-10-2008 01:24 AM

thanks ..this looks much better than the +

Reinhart 06-13-2008 04:57 AM

Installed. Works on 3.6.10

Captain Tycoon 06-17-2008 10:00 AM

Marked and Installed! Thanks!

PoetJA-1975 06-26-2008 12:25 PM

Thanx ;)

Jacquii.

cheat-master30 06-26-2008 07:57 PM

Might want to change the install instructions slightly, because you forgot to say to edit the image path, and some people aren't using their forum in their domain's root folder.


All times are GMT. The time now is 08:56 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.01205 seconds
  • Memory Usage 1,755KB
  • 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
  • (12)bbcode_php_printable
  • (2)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