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)
-   -   Forum Display Enhancements - Custom Username colours (https://vborg.vbsupport.ru/showthread.php?t=220564)

RileyFreeman 08-12-2009 01:36 PM

Quote:

Originally Posted by shaunceb (Post 1865670)
Find the userfield_wrapper template, delete the contents and paste this in. Replace the # with the profile id of your box and replace * with the usergroup of your paid subscribers.

PHP Code:

<if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(#) OR is_member_of($bbuserinfo, *))">
<
option value="$key$selected>$val</option>

</if> 




The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '*' in ********************************************'d code on line 1

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.



i blocked out the stuff with stars cuz i dont know if its private or not

RileyFreeman 08-13-2009 12:35 AM

okay well i entered it and didnt get the error but its still showing it for non paying users.

below is what i entered. paid members are 9


PHP Code:

<if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(field5)) OR is_member_of($bbuserinfo, 9))">
<
fieldset class="fieldset">
    <
legend>$profilefield[title]</legend>
    
$custom_field_holder
</fieldset>


</if> 


DynaMow 09-07-2009 01:28 PM

In his instructions it says enter your color choices in the options box.

I do not see no stinkin options box!!!!!!!!!

Everytime I try to add a hack of any kind there is always a problem for me

and its always me, nevermind I figured out what I was doing wrong

New Joe 09-07-2009 02:12 PM

It didn't work, the colors of a user name don't change.
Do you have to do STEP 3 as I didn't?

New Joe 09-07-2009 02:52 PM

I did follow and edit as it says and put in the right field id. I do use Version 3.8.2 but I don't see why that should matter.
Does anyone have this working if so any problems like myself?

MrSir 09-12-2009 03:24 PM

I just installed it and its working just fine so far.

Arcade Fire 09-28-2009 09:30 AM

Nice, but not show in forumhome, any idea?

New Joe 10-15-2009 07:31 AM

I followed step 1 and 2 but it doesn't work.
I though this mod was supported?

New Joe 10-15-2009 08:20 AM

My bad, I forgot to edit the postbit_legacy template.
Works good now.

But it doesn't show the user name colors when you hit the 'New Posts'
Which template needs to be edited for this?

TheLastSuperman 10-15-2009 11:56 AM

Quote:

Originally Posted by Arcade Fire (Post 1891694)
Nice, but not show in forumhome, any idea?

Try adding
Code:

THIS_SCRIPT != 'index'
to the code example:
Code:

<if condition="THIS_SCRIPT != 'profile' OR (!in_array($profilefield[profilefieldid], array(A, B, C)) OR is_member_of($bbuserinfo, 1, 2, 3))">
<option value="$key" $selected>$val</option>

</if>

Change to (And remember to change the A/B/C and 1/2/3 to what you need them to be but new example:

Code:

<if condition="THIS_SCRIPT != 'profile' OR THIS_SCRIPT !='index' OR (!in_array($profilefield[profilefieldid], array(A, B, C)) OR is_member_of($bbuserinfo, 1, 2, 3))">
<option value="$key" $selected>$val</option>

</if>

Let me know seems like it should be a quick fix but I did not install and do not need to so let me know as I said :p


All times are GMT. The time now is 01:04 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.01125 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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