Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Dec 2015, 12:07
XotelHotel XotelHotel is offline
 
Join Date: Oct 2015
Real name: Tom Jenner
Making a User Rank gain a hex code from User Profile Fields

Hey,

I'm currently in a situation where I'm about to break my laptop...

I've been trying to make a "Custom VIP" thing for my forum, now since this is fairly new, most sites are unable to help me, because they don't have it. It's mainly just the User Profile Field section that I'm not able to get working, everything else works when I just put a standard hex code into the coding.

<img src="http://www.madhabboforum.com/custom/v2/Special/vip.png" style="background: #$post['field18'];margin-bottom:1px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;">

The bit in red is the bit where its not working....

It's most likely a coding error, if anyone could provide me with the post bit coding, it would be fantastic!

Thanks,

Tom
Reply With Quote
  #2  
Old 12 Dec 2015, 12:34
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
In which template are you placing the code?
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 12 Dec 2015, 15:44
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Real name: Eric
you need $userinfo not $post
Also, if this is in a template you need to use vb:raw


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Dragonsys; 12 Dec 2015 at 17:16.
Reply With Quote
  #4  
Old 13 Dec 2015, 22:18
RobLeonard's Avatar
RobLeonard RobLeonard is offline
 
Join Date: Oct 2014
Originally Posted by Dragonsys View Post
you need $userinfo not $post
Also, if this is in a template you need to use vb:raw


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Not for vBulletin 3 you don't?

OP I could implement the Custom VIP script you're on about for a small fee.
Reply With Quote
  #5  
Old 14 Dec 2015, 01:36
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
If the OP wanted to pay, they would have posted a paid request, not ask the community for help.
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
  #6  
Old 14 Dec 2015, 02:09
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Real name: Eric
Originally Posted by RobLeonard View Post
Not for vBulletin 3 you don't?
opps, I didn't notice this was the vb3 board

In that case it is $vbulletin->userinfo['field18']
Reply With Quote
  #7  
Old 14 Dec 2015, 15:48
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Originally Posted by Dragonsys View Post
you need $userinfo not $post
Depends, $userinfo would be for the person viewing the page, $post would be for the user of each individual post when viewing a thread for example. You wouldn't want the viewers information to be showing for every post, so $userinfo may not be what is being looked for.
Reply With Quote
  #8  
Old 14 Dec 2015, 16:13
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Real name: Eric
Originally Posted by squidsk View Post
Depends, $userinfo would be for the person viewing the page, $post would be for the user of each individual post when viewing a thread for example. You wouldn't want the viewers information to be showing for every post, so $userinfo may not be what is being looked for.
ok, just ignore me then. I guess it has been too long since I coded for vb3 LOL
I don't recall $post containing user profile info.
Reply With Quote
  #9  
Old 16 Dec 2015, 10:57
andy_mcguire andy_mcguire is offline
 
Join Date: Jan 2010
Real name: Andrew
Anyone? I'm having the same issue on my forum.. Need Profile Field 32 to identify the HEX Code.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:08.

Layout Options | Width: Wide Color: