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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-17-2009, 04:20 AM
nbaphenom nbaphenom is offline
 
Join Date: May 2007
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default how would i add the member rank to a sig

Like on this site http://www.realsportstalk.net/forums...6298#post66298 you see this image on the bottom right of every sig . How would I add my member rank to that exact area .
Reply With Quote
  #2  
Old 01-17-2009, 04:30 AM
iBardia iBardia is offline
 
Join Date: Nov 2008
Location: vB Tech Land
Posts: 322
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go in your Postbit code, and search [rank]

Cut the rank code and search for signature.

The put the code there with these around it

"<right></right>"
Reply With Quote
  #3  
Old 01-17-2009, 04:47 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure thats a rank and not just a postbit background?

You can do something like
Code:
.posts {
        background: #EEEEEE;
        background-image: url(path/to/image.png);
        background-repeat: no-repeat;
        background-position: bottom right;
}
Then modify the postbit(_legacy) area to include the posts class for the message area.

If you want the custom ranks to appear over there, you'll have to search the postbit template for the ranks code and use a floating div probably to set it

Code:
<div style="float:right; padding: 3px;">
Rank code
</div>
Reply With Quote
  #4  
Old 01-17-2009, 04:53 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That image is part of the background of the postbit. They used this CSS to align it bottom right:

Code:
.post1 {
        background: #EEEEEE;
        background-image: url(images/styles/2009/postbg.gif);
        background-repeat: no-repeat;
        background-position: bottom right;
}
Reply With Quote
  #5  
Old 01-17-2009, 03:38 PM
nbaphenom nbaphenom is offline
 
Join Date: May 2007
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes but I would like my member rank to be in that area so how would I do this .
HTML Code:
<div style="float:right; padding: 3px;">
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if></div>
i used this code in the postbit legacy but it get pushed down I would like it to be in the background just like theres so Its almost like its not there .
Reply With Quote
  #6  
Old 01-18-2009, 02:02 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The $post[rank] variable is output as image code, for example: <img src="path/to/your/user/ranks" /> and what you want to do requires it be displayed as an inline style. That might not be possible without doing some core code changes.
Reply With Quote
  #7  
Old 01-18-2009, 02:46 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<div class="background: url($post[rank]);"></div>

If you have text ranks though that won't work and will cause issues.
Reply With Quote
  #8  
Old 01-18-2009, 03:21 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
<div class="background: url($post[rank]);"></div>

If you have text ranks though that won't work and will cause issues.
That won't work either, because, as I just mentioned, $postrank turns into IMG code, not the image URL. You'll get broken HTML if you try that.
Reply With Quote
  #9  
Old 01-18-2009, 04:11 AM
nbaphenom nbaphenom is offline
 
Join Date: May 2007
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FRDS View Post
<div class="background: url($post[rank]);"></div>

If you have text ranks though that won't work and will cause issues.
Yea he's right it didn't work .
I've tried alot so help is appreciated to all , but still need more .
Reply With Quote
  #10  
Old 01-18-2009, 04:58 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
That won't work either, because, as I just mentioned, $postrank turns into IMG code, not the image URL. You'll get broken HTML if you try that.
werd!

You can always ditch the idea of it being a background, and just having it serve up the image inside the floating div other wise you'll have to edit the file

You'll probably need to modify the includes/functions_ranks.php file

Code:
$userrank .= "<img src=\"$rank[i]\" alt=\"\" border=\"\" />";
maybe the part your looking for

Code:
$userrank .= "$rank[i]";
May work, or it maybe need to be slightly different.
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 05:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07124 seconds
  • Memory Usage 2,264KB
  • 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
  • (5)bbcode_code
  • (1)bbcode_html
  • (3)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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