vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how would i add the member rank to a sig (https://vborg.vbsupport.ru/showthread.php?t=202083)

nbaphenom 01-17-2009 04:20 AM

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 http://www.realsportstalk.net/forums...009/postbg.gifon the bottom right of every sig . How would I add my member rank to that exact area .

iBardia 01-17-2009 04:30 AM

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>"

SEOvB 01-17-2009 04:47 AM

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>


Digital Jedi 01-17-2009 04:53 AM

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;
}


nbaphenom 01-17-2009 03:38 PM

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 .

Digital Jedi 01-18-2009 02:02 AM

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.

SEOvB 01-18-2009 02:46 AM

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

If you have text ranks though that won't work and will cause issues.

Digital Jedi 01-18-2009 03:21 AM

Quote:

Originally Posted by FRDS (Post 1716414)
<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.

nbaphenom 01-18-2009 04:11 AM

Quote:

Originally Posted by FRDS (Post 1716414)
<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 .:confused::confused::confused:
I've tried alot so help is appreciated to all , but still need more .

SEOvB 01-18-2009 04:58 AM

Quote:

Originally Posted by Digital Jedi (Post 1716444)
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.


All times are GMT. The time now is 01:10 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.01330 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)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