vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Gender In Postbit (https://vborg.vbsupport.ru/showthread.php?t=117973)

peterska2 06-07-2006 10:00 PM

Gender In Postbit
 
The updated version of this release.

What's the difference?
Better placement of the information, it looked very odd after a few amendments in the old version.

How do I install?
Download the attached zip and follow the enclosed instructions.

Instructions for languages which do not use letters A-Z will be coming soon.

Screenshots attached, just in case you like to see before you start.

UltraVR 06-10-2006 02:24 AM

Nice work! Works like a charm!

-Installed-

N-0p3rz 06-17-2006 04:04 AM

How would I make it a Choice between Male & Female only..

because if a user enters a different value.. the image doesn't show.

peterska2 06-17-2006 04:39 PM

Make sure that you have set 'Allow users to enter own value' to NO

N-0p3rz 06-17-2006 05:39 PM

^Ah.. I realized what my problem was.. I chose the wrong type when I first added the field.

Bubble #5 06-22-2006 02:30 AM

How could we tie this in so that when someone registers and they choose male/female that, this hacks shows their information in the postbit?

peterska2 06-22-2006 09:28 AM

Just set the profile field options to show at registration or required. :)

zooki 06-22-2006 03:50 PM

A wonderful hack thanks !!

Bubble #5 06-22-2006 05:07 PM

Quote:

Originally Posted by peterska2
Just set the profile field options to show at registration or required. :)

Thank you Peterska2, you are the best :bunny:

Bubble #5 06-24-2006 12:44 AM

Images are uploaded but they do not show. Instead it outputs text (Male, Female). What could be wrong? :confused:

peterska2 06-24-2006 12:48 AM

you may need to upload the images to the misc folder for other styles that have their own image sets

Bubble #5 06-24-2006 12:57 AM

At this time there are no other styles, just the default vB style.

peterska2 06-24-2006 06:29 PM

What is the link to your site? I'd like to take a look to see what I can find out.

Bubble #5 06-24-2006 07:08 PM

This must be a new vB feature, as none of our images are showing up. They are all text incuding all of the posting buttons. For example; instead of the online image it says "member is online". We just have to find where to turn this feature off :(

peterska2 06-24-2006 09:47 PM

Please provide the link to your site. I cannot support a fault if I cannot see the fault in action.

Paul M 06-24-2006 10:32 PM

Quote:

Originally Posted by Bubble #5
This must be a new vB feature, as none of our images are showing up. They are all text incuding all of the posting buttons. For example; instead of the online image it says "member is online". We just have to find where to turn this feature off :(

It's not a feature, it means the image path in your style is wrong (assuming you actually uploaded the images).

Bubble #5 06-24-2006 10:43 PM

The problem was two fold; first the path was wrong, and second the image supplied was not capitalized. All fixed now, thanks :bunny:

Red Matrix 06-29-2006 11:24 PM

The instructions do not take newbies into account. :(
I would like to know where on the ACP these things are located that I need to edit.
I got lost at step 3, "add phrase". Where? Where is the postbit/legacy option? See what I mean? I am a total newbie to vb. (I've ran IPB and phpBB)

I guess I'll have to take a 10 minutes to go through each menu, and item until I find where I need to go.

peterska2 06-29-2006 11:30 PM

To add a phrase go to Language and Phrases > Search In Phrases > Add New Phrase

To find the postbit or postbit_legacy go to Styles & Templates > Style Manager > <<>> Next To the style that you want to edit > Postbit Templates > they are there.

Red Matrix 06-29-2006 11:44 PM

That was certainly a fast responce!

I have done the postbit/template changes. I am still stumpted at the phrase.
When I follow your path, [ Lang. & Phrases >> Search in Phrases ] I don't get the [ add new phrase ] option.

EDIT: the correct path is

Languate and Phrases >> Phrase Manager > Add New Phrase.

EDIT2: I can't seem to get the fifth field to show up in the Profile edit screen. I have it set up like this:

Gender
Select your gender
Male
Female
None
5
Yes, at registration and profile updating
No
No
No

peterska2 06-29-2006 11:44 PM

Sorry, I meant phrase manager

Cedric2 07-07-2006 02:02 PM

Fantastic mod.

Installed

Neal-UK 08-07-2006 01:43 AM

When I view the members list, it shows the word Gender and the wrong image url: "misc/.gif"

Therefore just a blank red X.

I'll turn it off for member list. Other than that, nice mod.

Neal-UK 08-07-2006 01:46 AM

One thing, I can't turn it off still shows "Gender" and red X under their names.

http://www.partycrash.co.uk/forum/memberlist.php

peterska2 08-07-2006 01:49 AM

Can you post what you have put in your memberlist_resultbit template?

It is showing the correct alt text, so it should pick up the image path correctly unless the actual coding you have used is incorrect.

Neal-UK 08-07-2006 01:54 AM

working now, i'd not changed one of the "fieldx" in that template to the correct number. Just the first one.

Thanks.

WeArab 08-07-2006 09:43 AM

Hello peterska2,

Great hack!

I would like to ask you if you can add more options like Mobile type/model, and IRC Nick name?

peterska2 08-07-2006 12:27 PM

Quote:

Originally Posted by WeArab
Hello peterska2,

Great hack!

I would like to ask you if you can add more options like Mobile type/model, and IRC Nick name?

Use the same method, but use whatever you want instead of gender for the contents.

ximcix 08-09-2006 05:04 AM

Great Hack... now how about having it display in the user's profile.
That would make it complete!

WeArab 08-13-2006 09:26 AM

Quote:

Originally Posted by peterska2
Use the same method, but use whatever you want instead of gender for the contents.

Thank you peterska2 :)

This add-on did the job for me Profile Fields in Postbits

Thank you again!

y2krazy 08-15-2006 03:38 AM

Is there an actual image anyone has that can be used for Undisclosed? If I use the one with the package, it looks weird cause it only shows "Gender: " - simply put, no image and just blank space where the image should be. I guess I just need a 12x12 icon for Undisclosed, right?

peterska2 08-15-2006 03:41 AM

you could make a 12x12 image with a questionmark on it. I don't use the undisclosed option on my site so never made an image for it.

wolfyman 08-15-2006 04:00 AM

I'm having a hard time with this gender hack.

It's printing this: Gender: 1

, rather than displaying the image like it did on my other template.

any ideas?

peterska2 08-15-2006 04:05 AM

It's either a problem with the profile field where you have set it to mulitple choice instead of single selection, or you haven't uploaded the images to the images directory for your style.

wolfyman 08-15-2006 04:10 AM

Quote:

Originally Posted by peterska2
It's either a problem with the profile field where you have set it to mulitple choice instead of single selection, or you haven't uploaded the images to the images directory for your style.


tried both, neither are working. Any other ideas?

peterska2 08-15-2006 04:12 AM

Can you provide a link to a thread where this is happening please

wolfyman 08-15-2006 04:13 AM

not atm because it's only in my mod forum - but PM me your info and I'll set you up with everything you need to see it.

Thanks Peter. I'm off for the night but I'll be back tomorrow :)

Snake 08-20-2006 11:43 AM

Thank you! :)

dutchbb 08-21-2006 05:28 PM

Great mod!

Now what I think would be usefull is a query to set every profile to "Male" because most of my users are male and so it doesn't take mutch time to notify the female users to change it back to Female.

Any idea what that query would be?

Thanks

peterska2 08-21-2006 06:40 PM

the easiest way is to have male as the first item in the list and set it to default first option.


All times are GMT. The time now is 04: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.01448 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete