Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

Reply
 
Thread Tools
Gender Image In Postbit Details »»
Gender Image In Postbit
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-04-2005 Last Update: Never Installs: 93
 
No support by the author.

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>
					$vbphrase[posts]: $post[posts]
				</div>
BELOW, ADD:
HTML Code:
				<if condition="$post[fieldX] != ''"><div>
					Gender: <img src="images/gender/$post[fieldX].gif" title="$post[fieldX]" align="center">
				</div></if>
<!----- That's it! Enjoy! ----->

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-05-2005, 03:08 AM
cbr929rrerion cbr929rrerion is offline
 
Join Date: Oct 2005
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fixed it.. it did not work in postbit_legacy but it did in postbit..

Thanks
Reply With Quote
  #23  
Old 11-05-2005, 07:35 AM
funinthesun funinthesun is offline
 
Join Date: Oct 2005
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That was the same problem I had
Reply With Quote
  #24  
Old 11-05-2005, 09:01 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack thanks. Also thanks for the images.
Reply With Quote
  #25  
Old 11-06-2005, 07:28 PM
DaXecutioner DaXecutioner is offline
 
Join Date: Oct 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #26  
Old 11-12-2005, 06:13 AM
Rickie3's Avatar
Rickie3 Rickie3 is offline
 
Join Date: Nov 2004
Location: Australia/Tasmania
Posts: 770
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*installed* nice hack thanx
Reply With Quote
  #27  
Old 11-14-2005, 12:38 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="SeaGreen">* christianb clicks install</font>

I'd like to integrate this somehow with the default avatar hack.
Reply With Quote
  #28  
Old 03-25-2006, 07:20 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #29  
Old 04-09-2006, 03:12 AM
kungfujesus kungfujesus is offline
 
Join Date: Mar 2006
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #30  
Old 04-11-2006, 10:38 AM
defcon_420's Avatar
defcon_420 defcon_420 is offline
 
Join Date: Jun 2004
Location: next to you
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice lil hack "clicks install"

Code:
Find in postbit
<div>
			$vbphrase[posts]: $post[posts]
</div>
HAHAHA sorry i find it funny, cause just about anyone who has installed any mods in their vb that would be about the first line to go.
By looking at the screen shot it made it easy for me to see where in the code to put it.

Great job!
Reply With Quote
  #31  
Old 04-11-2006, 11:56 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by defcon_420
HAHAHA sorry i find it funny, cause just about anyone who has installed any mods in their vb that would be about the first line to go.
I actually like the post count and thus I kept mine.
Reply With Quote
Reply

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

Forum Jump


All times are GMT. The time now is 05:12 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.06118 seconds
  • Memory Usage 2,300KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete