Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

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

Category: Show Thread Enhancements - Version: 3.0.0 Rating:
Released: 03-25-2004 Last Update: Never Installs: 39
 
No support by the author.

/*-----------------------------------------------------------------------*\
# Image Gender in postbit for vb3 gold
#
# This hack adds one's gender and it shows in postbit
/*-----------------------------------------------------------------------*\

Query to run: 1
File modification: 3
Template modication: 2
New Templates: 1
(estimate hack time: 4-5 mins)

Note: 2 gender images ain't created by me, found it at phpbb way back then.
/*-----------------------------------------------------------------------*\

To show gender in postbit, go to User CP => Edit Profile , scroll down to Gender option and select a gender or leave it blank if don't wanna show it.

Live Demo: http://all4actions.net , click on a thread to see it in action.

(adding gender in User Profile later, gotta run for class) :ermm:

Show Your Support

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

Comments
  #32  
Old 05-28-2005, 09:22 PM
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Location: Buenos Aires
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep, when u go back and edit something at the page where u select the gender, it goes back to blank (or ------), any way to save it? Maybe implementing this as a hack, not a template edit. It would be handy. Thanks
Reply With Quote
  #33  
Old 06-15-2005, 03:40 PM
axi axi is offline
 
Join Date: Jan 2005
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by COBRAws
yep, when u go back and edit something at the page where u select the gender, it goes back to blank (or ------), any way to save it? Maybe implementing this as a hack, not a template edit. It would be handy. Thanks

In Template modifyprofile find:

Code:
<!--- gender field by tnguy3n --->

			<fieldset class="fieldset">
				<legend>Gender</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td colspan="2">Tell people about your gender.</td>
				</tr>
				<tr>
					<td><select name="gender">
					<option value="0" <if condition="$bbuserinfo[gender] == Unknown">selected</if>>----</option>
					<option value="1" <if condition="$bbuserinfo[gender] == Female">selected</if>>Female</option>
					<option value="2" <if condition="$bbuserinfo[gender] == Male">selected</if>>Male</option>
</select></td>
				</tr>
				</table>
			</fieldset>

<!--- end gender field --->


Replace with:

Code:
<!--- gender field by tnguy3n --->

			<fieldset class="fieldset">
				<legend>Gender</legend>
				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
				<tr>
					<td colspan="2">Your gender</td>
				</tr>
				<tr>
					<td><select name="gender">
					<option value="0" <if condition="$bbuserinfo[gender] == 0">selected</if>>----</option>
<option value="1" <if condition="$bbuserinfo[gender] == 1">selected</if>>Female</option>
<option value="2" <if condition="$bbuserinfo[gender] == 2">selected</if>>Male</option>
</select></td>
				</tr>
				</table>
			</fieldset>

<!--- end gender field --->
Reply With Quote
  #34  
Old 09-27-2005, 02:24 PM
Omega Prime's Avatar
Omega Prime Omega Prime is offline
 
Join Date: Sep 2002
Location: ::Infinity::
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a chance of this getting ported to 3.5?
Reply With Quote
  #35  
Old 11-24-2005, 06:24 AM
ZeryabPhone ZeryabPhone is offline
 
Join Date: Jun 2005
Location: Kuwait
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
3. Modified template: modifyprofile

## FIND: (about the middle of the page)

<input type="hidden" name="oldbirthday" value="$bbuserinfo[birthday]" />
					</td>
				</tr>
				</table>
			</fieldset>
i cant find this line in vb 3.0.9
is there anyway to update this hack to vb 3.0.9 ?
Reply With Quote
Reply


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 02:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03908 seconds
  • Memory Usage 2,248KB
  • Queries Executed 19 (?)
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
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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