Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 05-14-2013, 09:11 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YungAnh View Post
I want them to have their own avatar, I just want to add a frame/border around their avatar.
If you want a simple colored border based on user group, you can do it by editing the proper postbit template and defining a sequence of classes in your css.
Look for the following code in the postbit:
PHP Code:
<img src="$post[avatarurl]$post[avwidth$post[avheightalt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" style="margin:0;padding:0;border:1px solid #fff;" /> 
Then change it to:
PHP Code:
<img src="$post[avatarurl]class="$post[usertitle]$post[avwidth$post[avheight]  alt="<phrase  1="$post[username]">$vbphrase[xs_avatar]</phrase>"  style="margin:0;padding:0;" /> 
In your css, make the following line for each usertitle:

HTML Code:
img.usertitle {border: 2px solid #00f;}
[adjust values to suit your needs]

--don
Reply With Quote
  #12  
Old 05-14-2013, 11:49 PM
YungAnh YungAnh is offline
 
Join Date: Sep 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Don,
Thank you very much for the help. Wish there is a thank button here. But I actually had some frames ready just like in the blizzard forum in the demo above and would like to use those frames for different user group.
Reply With Quote
  #13  
Old 05-18-2013, 06:18 AM
YungAnh YungAnh is offline
 
Join Date: Sep 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So no one can help me?
Reply With Quote
  #14  
Old 05-18-2013, 12:57 PM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With a quick look at the site to which you linked, it looks like they surrounded their avatars with a div, then set the background image of that div to the appropriate frame by using classes.

I hope this gives you a place to start.
Reply With Quote
  #15  
Old 05-19-2013, 12:36 AM
YungAnh YungAnh is offline
 
Join Date: Sep 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by darnoldy View Post
With a quick look at the site to which you linked, it looks like they surrounded their avatars with a div, then set the background image of that div to the appropriate frame by using classes.

I hope this gives you a place to start.
It sounds ... too complicated for me.
Do you mean they use something like this: user postbit background
https://vborg.vbsupport.ru/showthrea...ground+postbit
But is it going to be a tight fit. I'm not a computer guy, I learned to do these stuff on my own.
Thank you for your time helping me.
Reply With Quote
  #16  
Old 05-19-2013, 03:48 AM
darnoldy darnoldy is offline
 
Join Date: Dec 2004
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YungAnh View Post
It sounds ... too complicated for me.
I'm not a computer guy, I learned to do these stuff on my own.
That's how most of us learned how to do stuff.

No, you do not need a plugin or a mod. You need to edit the postbit template, and write a selector into the additional CSS.

Create a new style and edit it. If you mess it up, delete it and create a new one so you can try again. That's how you learn.

--don
Reply With Quote
  #17  
Old 05-19-2013, 05:55 PM
YungAnh YungAnh is offline
 
Join Date: Sep 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see.
Thanks for the clarification but I think it is out of my hand. :|
Reply With Quote
  #18  
Old 10-23-2013, 09:14 PM
Terrablade Terrablade is offline
 
Join Date: Oct 2013
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got this....
Parse error: syntax error, unexpected $end in /home/cracking/public_html/includes/class_postbit.php(294) : eval()'d code on line 131

vb 3.8.7 pl3

Quote:
Originally Posted by Lynne View Post
Could do a plugin:
hook location - postbit_display_complete

PHP Code:
if (is_member_of($this->post,x)) {
$this->post['avatarurl'] = "http://yoursite.com/path/to/avatar.jpg"
$this->post['avwidth'] = 'width="100"'
$this->post['avheight'] = 'height="100"'

replace x with the usergroupid and enter the correct path to the url and the correct width and height. That should work for the postbit (I think, I haven't tried it). Just do similar for wherever else you use avatars.
Reply With Quote
  #19  
Old 10-23-2013, 10:43 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds to me like you missed something in the c/p pate the exact code in your plugin here.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:16 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.04078 seconds
  • Memory Usage 2,262KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (3)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete