Thread: Miscellaneous Hacks - Postbit Legacy - Usergroup Backgrounds
View Single Post
  #52  
Old 04-15-2009, 11:45 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by therogueforums View Post
Very promising mod. Thank you, firstly. Now...

When I add more than 1 usergroup to this... the first usergroup I added (administrators) is borked a bit. The image shows up fine, but the avatar, username, etc is force "out" to the right, where the actual post should be.

Any ideas on what I'm doing wrong? Possibly, if you have the time... maybe make a "template" for those who wish to use this for multiple usergroups? Also... and I suspect you're pretty busy, and can understand if you don't want to throw this in... but any way you can code in some curved boxes, where the posts, join date, etc go? I tried to use your mod with another mod that adds the boxes, but the image just ended up in there, in addition to the rest of the postbit, which didn't look so hawt. Lastly... again, if you have time, maybe throw in a signature cell, below it all.

At any rate, thank you for your time, and I look forward to a response.
|
|

I had this problem when adding more then one group. What you are doing wrong is adding the following code to many times- there should only be 1 instance of this code:
Code:
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
|
|

Here is a code for 1 background/group(after changing the red):
Quote:
Code:
In your postbit_legacy.

        <if condition="is_member_of($post, groupid)">
        <td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>
Code:

And this code (after changing the red) would have to be in your additional css.


 .css name1 {
background: #000000 url(image path);
background-repeat: repeat;
border-left: solid 0px #border color;
border-right: solid 1px #border color;
}
|
|
Two backgrounds/groups would look like this:
Quote:
Code:
In your postbit_legacy.


        <if condition="is_member_of($post, groupid2)">
        <td class="css name2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <if condition="is_member_of($post, groupid1)">
        <td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if></if>


Notice: I had to add the additional </if> to the very end!!


|
|
Code:
And this code (after changing the red) would have to be in your additional css:
 .css name1 {
 background: #000000 url(image path);
 background-repeat: repeat;
 border-left: solid 0px #border color;
 border-right: solid 1px #border color;
 }
.css name2 {
  background: #000000 url(image path);
  background-repeat: repeat;
  border-left: solid 0px #border color;
  border-right: solid 1px #border color;
  }
|
|
Three backgrounds/groups would look like this:
Quote:
Code:
In your postbit_legacy.


        
        <if condition="is_member_of($post, groupid3)">
         <td class="css name3" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
         <else />
        <if condition="is_member_of($post, groupid2)">
        <td class="css name2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <if condition="is_member_of($post, groupid1)">
        <td class="css name1" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if></if></if>


Notice: I had to add the additional </if> to the very end (AGAIN)!!

|
|

Code:
And this code (after changing the red) would have to be in your additional css:


 .css name1 {
 background: #000000 url(image path);
 background-repeat: repeat;
 border-left: solid 0px #border color;
 border-right: solid 1px #border color;
 }
.css name2 {
  background: #000000 url(image path);
  background-repeat: repeat;
  border-left: solid 0px #border color;
  border-right: solid 1px #border color;
  }
.css name3 {
   background: #000000 url(image path);
   background-repeat: repeat;
   border-left: solid 0px #border color;
   border-right: solid 1px #border color;
   }
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01360 seconds
  • Memory Usage 1,806KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete