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)

Mobo 11-05-2009 02:56 PM

My coding skills are crap, but you could create a usergroup for only the girls and then use either the search for user function based on the gender field (if it is a profile field I think) and then manually move all the girls over to the new usergroup. There is also a query you can run to return all users that have filled out a certain field. I can look that up and post it if it will help you. Good luck getting it automated though.

JeansJoe 11-05-2009 05:51 PM

Quote:

Originally Posted by Mobo (Post 1910599)
My coding skills are crap, but you could create a usergroup for only the girls and then use either the search for user function based on the gender field (if it is a profile field I think) and then manually move all the girls over to the new usergroup. There is also a query you can run to return all users that have filled out a certain field. I can look that up and post it if it will help you. Good luck getting it automated though.

I think there must be already a query running as in the postbit there is an image displayed for the gender. my users have to fill out this field btw - so they are either man or woman (sorry for disrespecting transvestites :D ). and if not there would still be the else case.

I could of course move all women to a usergroup - then again this is exactly what I am trying to avoid - would take insanely long and require constant work on it.
I think the postbit query is supposed to already query that profile field - just like the usergroup for the user. So I think there must be a variable for that.

that post might still help me - if you could look it up that'd be great!

Mobo 11-05-2009 07:23 PM

It seems like you might be able to edit the code from the other mod to just call and post the CSS class from this mod... some deep searching around the net might yield you enough info to hack it yourself. If all else fells, you could hire someone to do it for you via the Rent A Coder site. I've personally had good luck there and the site really protects the buyer from getting ripped off from a coder.

Anyway, here is the link to the query I was talking about... not a lot there, but maybe some help.

JeansJoe 11-06-2009 09:57 AM

I managed it!!!

check out this post: https://vborg.vbsupport.ru/showpost....8&postcount=52
Don't forget the additional /if to close each group!

This one:
Code:

<if condition="is_member_of($post, 1)">
has to be:
Code:

<if condition="$post[field5] == 'Girl'">
Whereas field 5 is the number of the profile field and the string Girl is the Value of that Field!
If you use boolean stuff like true false you should do it different. you can also use != for is not.

btw this mod is marked as not working for 3.8.4 - it totally works on 3.8.4!!!

Mobo 11-06-2009 10:54 AM

Glad you got it worked out, thinking about this more, it might actually help me automate my setup. Thanks for posting your findings.

Mobo 11-06-2009 11:08 AM

In order to get this to work with my setup, I need two profile fields filled in. Is it possible to string two if conditions together with some thing like "AND"

Mobo 11-06-2009 11:28 AM

Found it! If you need it to check the condition of two fields, here is what you need...

Code:

<if condition="$post[field#] == 'Option'">
<elseif condition="$post[field#] == 'Option'">
        <td class="postbitbg7" width="175" style="border: $stylevar[cellspacing]px solid $stylevar [tborder_bgcolor]; border-top: 0px; border-bottom: 0px id="td_post_$post[postid]">
        <else />

You need to change the red # to the field number you want to use as well as the red Option, which is the text for that feld.

sisterhood 01-22-2010 05:46 PM

Plz how make it in VB 4.01 ?

a9eel 01-22-2010 06:21 PM

thn

Fastbird 01-22-2010 10:49 PM

Quote:

Originally Posted by sisterhood (Post 1963642)
Plz how make it in VB 4.01 ?

Go look in the correct mod forum and you will see I've already ported it.


All times are GMT. The time now is 09:28 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.01987 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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