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)

dutchbb 08-21-2006 10:49 PM

Yes I have done that. But members registered before this hack still need to update their profile to make it show in the postbit, I noticed.

A query could update all the old profiles.

redlabour 08-22-2006 08:37 PM

Can we have a PlugIn please ?

peterska2 08-22-2006 08:49 PM

Quote:

Originally Posted by redlabour
Can we have a PlugIn please ?

No. This is a template modification as it cannot be done via plugin.

Kaleem 08-25-2006 03:05 PM

it dos't seem to show in edit profile :(

do i need to update any counters i have 3.6.0 Gold

peterska2 08-25-2006 03:45 PM

Check Edit Options as you may have set the profile field to show there.

Kaleem 08-25-2006 06:14 PM

here u go the settings r in screenshot :)

peterska2 08-25-2006 08:08 PM

You set the field to not editable by user which is why it is not showing up. Change this to YES and it will appear for editing.

Kaleem 08-26-2006 12:54 PM

Quote:

Originally Posted by peterska2
You set the field to not editable by user which is why it is not showing up. Change this to YES and it will appear for editing.

ok it shows in editprofile now it's not showing in postbit until i used this https://vborg.vbsupport.ru/showthread.php?t=123619

and it show only text Male Female not the icons for male and female can u help me with that i put this in postbit_legacy

<if condition="$post[field5]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>

as i have it as field5

peterska2 08-26-2006 07:41 PM

1. There is no need to use that modification as full instructions are provided to get it to show.

2. Right click on the missing image and it will tell you where it is looking for it. You may need to reupload the images to additional locations for your styles.

Kaleem 08-27-2006 01:49 PM

Quote:

Originally Posted by peterska2
1. There is no need to use that modification as full instructions are provided to get it to show.

2. Right click on the missing image and it will tell you where it is looking for it. You may need to reupload the images to additional locations for your styles.

Click on wht ... theres no missing image it just say Male :-s

peterska2 08-27-2006 03:34 PM

Yes, thats the alt text. If you right click on it and go to properties, then it will tell you the path where it is looking for the image.

Kaleem 08-27-2006 11:41 PM

Quote:

Originally Posted by peterska2
Yes, thats the alt text. If you right click on it and go to properties, then it will tell you the path where it is looking for the image.

aa i know wht u are talking abt but it dos't show anything.

just show Miscellenios Properties.

peterska2 08-27-2006 11:53 PM

According to your page source, you are not using any image code in the postbit template.

Can you post the exact code you are using in your postbit template please.

Kaleem 08-28-2006 03:53 PM

<if condition="$post[field5]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>

peterska2 08-28-2006 04:02 PM

According to your page source you have
Code:

<div  class="smallfont">$vbphrase[gender]: $post[field5]
                                        </div>

There is nothing I can suggest as the code which you are saying you have used is not the code which is being processed in your postbit, and the code that is being processed is being processed correctly with no errors.

It's probably linked to that other modification that you installed. You should UNINSTALL that as I have previously advised that it is not required for this modification.

I cannot support any problems arising from any other modifications being installed that may interfere with a modification. Therefore, I am afraid that I cannot provide any further support for your issue as the instructions provided do NOT cause your error and the code is simply not being processed in your postbit due to some other modification that you have installed.

Kaleem 08-28-2006 04:07 PM

after doing that nothing shows not even Text ?

i uninstalled the other modification.

peterska2 08-28-2006 04:18 PM

ok, make sure you have done the template edit detailed in the instructions

Kaleem 08-28-2006 04:27 PM

Quote:

Originally Posted by peterska2
ok, make sure you have done the template edit detailed in the instructions

i checked it again its all done with thepictures in misc images directory:surprised:

peterska2 08-28-2006 04:37 PM

and the code has been put in the postbit template?

can you give me a link to a post that has the profile field set please

Kaleem 08-28-2006 04:41 PM

http://www.friendskorner.com/forum/f...nny-kids-3996/

member name: Kaleem well its me

only one post is there so u can check this one :)

peterska2 08-28-2006 04:51 PM

ok, can you post your entire postbit template wrapping it in code tags please

Kaleem 08-28-2006 04:54 PM

I added it in postbit_legacy

Code:

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <if condition="$show['announcement']">
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" colspan="2">
                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
                        <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                </td>
        <else />
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>               
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->                               
                </td>
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
                        <if condition="$show['inlinemod']">
                                <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" />
                        </if>
                </td>
        </if>
</tr>
<tr valign="top">
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
                       
                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
                        </div>
                       
                        <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
               
                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>
                       
                        <div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<if condition="$post[field5]">$vbphrase[gender]: <img src="$stylevar[imgdir_misc]/$post[field5].gif" alt="$post[field5]" /></if>
                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']"><span id="reppower_$post[postid]_$post[userid]">$vbphrase[reppower]</span>: $post[reppower]</if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>                                       
               
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        <else />
        <td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        </if>
       
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>
               
                <!-- message -->
                <div id="post_message_$post[postid]">$post[message]</div>
                <!-- / message -->
       
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
        </td>
</tr>
<tr>
        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
                $post[onlinestatus]
                <if condition="$show['reputationlink']">
                        <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                        <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
                </if>                               
                <if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
                <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
                $post[iplogged]
                &nbsp;
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
        <else />
        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
        </if>
                <!-- controls -->
                <if condition="$post['editlink']">
                        <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                        <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                </if>
                <if condition="$post['forwardlink']">
                        <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                </if>
                <if condition="$post['replylink']">
                        <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                </if>
                <if condition="$show['multiquote_post']">
                        <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
                </if>
                <if condition="$show['quickreply'] AND !$show['threadedmode']">
                        <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                </if>
                <if condition="$show['moderated']">
                        <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                </if>
                <if condition="$show['deletedpost']">
                        <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                </if>
                <if condition="$show['redcard']">
                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                <else />
                        <if condition="$show['yellowcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                </if>
                        </if>
                <!-- / controls -->
        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        </table>
</div>
<!-- / post $post[postid] popup menu -->


peterska2 08-28-2006 05:02 PM

ah-ha! there's the problem :)

You are using postbit, not postbit_legacy so you need to add the code to your postbit template.

Kaleem 08-28-2006 05:12 PM

Quote:

Originally Posted by peterska2
ah-ha! there's the problem :)

You are using postbit, not postbit_legacy so you need to add the code to your postbit template.

aaaaaa i said i m using postbit_legacy anyways i will put the code in postbit also should i take it out of postbit_legacy bye the i tried it b4 but i will try it again also :)

Kaleem 08-28-2006 05:21 PM

it works man i dont know when i put that in postbit_;egacy and postbit both it works b4 i tried one by one .

well Thanks ti works :)

Guest201202001 09-28-2006 12:47 PM

Where can I create e new profile field??
Create the following new profile field.
Type: Single-Selection Menu
Title: Gender
Description: Select your gender
Options: Male
Female
Set Default: None

Allow user to input own value: No

Display page: Edit Profile

peterska2 09-28-2006 10:29 PM

Admin CP > User Profile Fields > Add New Profile Field

From there follow the instructions provided.

tgralex 10-26-2006 08:24 PM

Do you know how to add along with gender number of infractions to be shown?
like:

Infractions points: XXX

I don't know what variable is responsible for infraction points - everything else is like adding a gender...

peterska2 10-26-2006 09:29 PM

That is already in the postbit template and will show only for users who have infractions. If you require modifications for anything other than what this particular modification does, please post in an appropraite thread or create a modification request in the appropraite forum.

Mazoo 11-25-2006 12:15 PM

Nice Addition ,

It's possible also to use this trick , to manage the awards :D
actually , I did that in my forum :)

attached some extra Male / Female Symbols , like those used in toilets :P


thanks :) ,

localrelax 12-28-2006 05:55 PM

Nice mod! Thanks

I'm looking forward for an improvement for this one:

would it be possible to specify a phrase instead plain male/female in the user profile field form? I know it would mean to change the code of this mod, but whould be quite useful for multi-language forums.

Is there any mod that already do this?

peterska2 12-28-2006 06:00 PM

It's not possible to use a phrase I'm afraid. I suggest using just M and F or something similar for forums where more than one language is used.

AJEB 12-29-2006 01:14 AM

Thanks Peter, simple yet effective. :D

AJEB 12-29-2006 10:51 PM

I have noticed a problem with your hack.
This is what my memberlist looks like:
http://i9.photobucket.com/albums/a87.../PageError.jpg

And this is what error comes up in the AdminCP:
http://i9.photobucket.com/albums/a87...PageError2.jpg

When I remove your coding everything goes back to normal. Do you know what is happening?

peterska2 12-29-2006 10:53 PM

you haven't done the template edit correctly. try doing the template edit again.

Yago 01-03-2007 12:54 AM

Thanks for this hack. I am totally new to Vb and could not even install the Vb myself. However I managed to add this hack myself after following the instructions step by step. However I got lost in step 3 and had to read some of the posts. I suggest in future to try and be elementary as possible. A lot of us forum manager are new to this thing.
Thank you so much.

cajunboy2208 01-17-2007 08:19 PM

Think I might need some help on this. It isn't working.

peterska2 01-17-2007 10:04 PM

Where are you at, and how is it not working?

Snake 01-20-2007 12:20 AM

Works fine here! :)

Impulse 01-20-2007 01:01 AM

its not working.....


All times are GMT. The time now is 02:36 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.01459 seconds
  • Memory Usage 1,911KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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