MyBB Community Forums

Full Version: Fetch Value From Profile Field?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to test a code, its adsense revenue sharing. I have to fetch value from a Profile Field, its ID is 5, (fid5)

So, what should I put in the code to fetch value from this fid5 ?
If you'd like to fetch it in the profile, you can use: {$userfields['fid5']}. Or if you'd like to fetch it in the postbit, you can use: {$post['fid5']}.
I need to fetch in post.
Gotta try this

Ok... Its fetching the value.
Now, I'd like to show only one ad and that'd be after first post.
Also, give me an else condition, so that if the thread starter have no Adsense ID put in his/her profile, then the ad after else condition will be shown.

Thanks
Bump! Please, help
Help please... Bump

Now, I'd like to show only one ad and that'd be after first post.
Also, give me an else condition, so that if the thread starter have no Adsense ID put in his/her profile, then the ad after else condition will be shown.
helloooo
Any one here to help me out?