![]() |
Gender Image In Postbit
Gender Image In Postbit
Author: tnguy3n Demo Site: http://www.vbviet.org What this mod does is to show user's gender in postbit. Users can choose to show it or not. All is done by template modding. File mod: 0 Template mod: 1 Plugin: 1 File Uploads: 3 gender images ### UPLOAD gender dir to your /forum/image/gender dir ### 1. Go to AdminCP => User Profile Field Manager => Add New User Profile Field Profile Field Type: Single Selection Menu Title: Gender Description: Tell the world your gender. Options: Undisclosed Male Female Set Default: No Field Editable To User: Yes Display Page: Edit Profile Once you got it done, write down your field# . i.e field5 2. Open postbit(_legacy) template, FIND: HTML Code:
<div> HTML Code:
<if condition="$post[fieldX] != ''"><div> |
Hey, I thought this could be done with templates alone?
|
yup, it's done by template mod.
|
Installed, love the images :) Thanks
|
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
btw, are you a hawk or cyclone? :ninja: |
Quote:
It depends really. I've never been partial to either one. I like them both. It keeps me out of trouble that way. How about you, or should I even ask, considering where you are? ;) |
Sorry! The description says there is 1 file mod?
Works great though! Thanks for the images mini2! |
That's a mistake. It should be template. ;)
|
Quote:
|
Quote:
|
Did you change XX value in $post[fieldX] to your fieldid?
|
Yep :confused: I'm going to put the code into the postbit template instead of the postbit_legacy template because I think that may be the problem. I had the same situation with the mood hack so I'll give it a try and let you know :)
|
OK, I put the code into the postbit template instead of the postbit_legacy template and it's working fine now. I've also changed the male and female icons and uploaded them here to share with all of you :)
|
glad it works for you.
instruction says postbit(_legacy), but it's recommended to mod in both template in case you switch from one to another style. |
I tried this, could not get it to display anything.. I dunno.. I put them in the right catagory, I put the firld..5, and nothing...
|
Fixed it.. it did not work in postbit_legacy but it did in postbit..
Thanks |
That was the same problem I had :)
|
Great hack thanks. Also thanks for the images.
|
hi, this feature looks awesome. although i probably wont be installing it (no use for it right now...) i do have some questions. i was hoping you might be able to help with the questions i have here:
https://vborg.vbsupport.ru/showthrea...173#post814173 after reading your post a little more (skimmed it before for some reason) im going to try what you did. thanks! |
*installed* nice hack thanx
|
<font color="SeaGreen">* christianb clicks install</font>
I'd like to integrate this somehow with the default avatar hack. |
I'm gonna try this with 3.5.4 now, see if it still works
however could this be made any better, or is it already really good. |
Works great in 3.5.4 but I had to troubleshoot a couple things:
You don't specify wether to change [fieldX] to [field#] or just [#]... I figured out it's [field#]. Secondly, in the directions you state to upload the gender directory to images/gender but at the bottom you state: 1. DON'T FORGET TO UPLOAD gender dir TO YOUR forum/gender OR IT WON'T WORK. I would change 1. to images/gender instead of forum/gender. I must have missed the original listing where to place the gender directory and put it in forums/gender instead. Other than that it works fine. Yes I clicked install. :banana: |
Nice lil hack "clicks install"
Code:
Find in postbit By looking at the screen shot it made it easy for me to see where in the code to put it. Great job! |
Quote:
|
thnx
|
Thx!
|
Very handy. Installed and worked fine.
Tnx mini2. I used ur images. |
will definetly install this hack... thanks
and thank you funinthesun, i like the images you uploaded. Thanks... |
Hello!
Quote:
|
Erm hi on the instructions sheet it says
STEP 3 ADD PHRASE type: global varname: gender Text: Gender I dont get this bit I have done everything else but I dont get this bit how do u add a phrase?? ~Rick~ |
This should be moved to the graveyard as it appears all files/images have been removed.
|
Quote:
|
All times are GMT. The time now is 04:46 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|