vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Postbit Legacy - Usergroup Backgrounds (https://vborg.vbsupport.ru/showthread.php?t=203850)

merk_aus 04-09-2009 03:09 AM

Was wondering I don't want to do this with usergroups I have a custom profile field where they select from a drop down their favorite sport team (as my site is a sports website) and would like to try and get something like this set up where when they select their fav. team it puts a background for their team in the postbit - just something small I have created that would repeat itself.

Any help you could provide on doing this it would be greatfully appreciated.

^SuiCyde^ 04-10-2009 08:06 AM

yeah that type of integration rather than by usergroup would be amazing as far as different ways you could use it

down.low 04-12-2009 07:38 PM

Quote:

Originally Posted by chick (Post 1785207)
Hello FB... this looks really nice. Before I install how did you get the upper part ........... the avatar and right underneath it, centered? I'd like to center mine too.

Very nice and thank you.

update: Figured out the centering, this is really sweet....... again thanks!

I would like to know how to center all of this as well, does anyone know how to do so?

Fastbird 04-13-2009 06:16 PM

Quote:

Originally Posted by down.low (Post 1789755)
I would like to know how to center all of this as well, does anyone know how to do so?

The border around the images is custom CSS and the avatar being centered is just a simple <align="center"></align> around the code that posts the user avatar. I then rearranged the postbit legacy code to display what you see in the demo images. There's a bit of work done there.

Jees, I should just release my template! Glad you guys like it though :)

down.low 04-13-2009 11:41 PM

Quote:

Originally Posted by Fastbird (Post 1790421)
The border around the images is custom CSS and the avatar being centered is just a simple <align="center"></align> around the code that posts the user avatar. I then rearranged the postbit legacy code to display what you see in the demo images. There's a bit of work done there.

Jees, I should just release my template! Glad you guys like it though :)

I'm guessing you would mean in the postbit_legacy, probably the following code:

Code:

<if condition="$show['avatar']">
                <div class="smallfont">
                    &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </div>
            </if>

I've tried putting the align in the in various places with no result. I'de also like to center the rest of the text as you have- or have it have you have it in the demo- could you help me out a little or point me in a direction to go from here? thanks in advance for any help you can lend- thanks for the hack, works great by the way- especially selling the template usage in an experience points shop.


WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free DictionaryJoin exampleWordNetGoogleUrban DictionaryAnswers.comrhymezone.comMerriam-Webster<>0

wvcidfjoguarm

Fastbird 04-14-2009 01:50 AM

Quote:

Originally Posted by down.low (Post 1790644)
I'm guessing you would mean in the postbit_legacy, probably the following code:

Code:

<if condition="$show['avatar']">
                <div class="smallfont">
                    &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                </div>
            </if>

I've tried putting the align in the in various places with no result. I'de also like to center the rest of the text as you have- or have it have you have it in the demo- could you help me out a little or point me in a direction to go from here? thanks in advance for any help you can lend- thanks for the hack, works great by the way- especially selling the template usage in an experience points shop.


WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free DictionaryJoin exampleWordNetGoogleUrban DictionaryAnswers.comrhymezone.comMerriam-Webster<>0

wvcidfjoguarm

Ok, here's how to center everything:

Find:

<div id="postmenu_$post[postid]">

Replace:

<div id="postmenu_$post[postid]" align="center">

Find:
<div class="smallfont">

Replace:
<div class="smallfont" align="center">

therogueforums 04-15-2009 10:24 AM

1 Attachment(s)
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.

Fastbird 04-15-2009 01:35 PM

Quote:

Originally Posted by therogueforums (Post 1791616)
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.

Try this post:
https://vborg.vbsupport.ru/showpost....6&postcount=27

See if that helps your issue. IF it does not, I coded mine slightly different for my forum. I have admins with a background and regular users with a background. IF this is the same idea you are going for, I can dig up my code and help you with it.

I'm not sure I quite understand what you mean by curved boxes? I'm not familiar with that mod, link me?

Fastbird 04-15-2009 01:42 PM

Here's mine. Like I said before, it's setup for everyone to have the basic background and then for administrators to have the custom one.

You will need to assign a separate CSS too.

Code:

<if condition="is_member_of($post, 6)">
<td class="postbit" 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="postbit3" width="175" style="border: $stylevar[cellspacing]px solid              $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"></if>                    <if condition="$show['avatar']">


therogueforums 04-15-2009 07:06 PM

TY :) Sadly, it didn't work for me. The first solution is the one I tried last night. The last one, above, yeilds the same results ("you're missing a </if> tag! oh n0es!") and the avatar, etc gets shoved out to the right.


All times are GMT. The time now is 12:49 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.01113 seconds
  • Memory Usage 1,757KB
  • 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
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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