vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Show Gender In Postbit (https://vborg.vbsupport.ru/showthread.php?t=97386)

Lea Verou 10-08-2005 01:32 PM

Quote:

Originally Posted by peterska2
Loukrhtia, I've been looking into your problem for the last couple of days and have tried a number of different ways of doing it. However, I am unable to get it to work at all. I am continuing to investigate this and as soon as I have an answer I will let you know.

Thanks a lot!!! :D

piXelatedEmpire 10-09-2005 04:12 AM

Is there a way to get the gender image to appear before the username?

peterska2 10-09-2005 09:20 PM

Yes. Use this code as the replacement instead of what is in the instructions.

Code:

                                <div id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <if condition="$post[fieldx]"><img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>&nbsp;<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        <if condition="$post[fieldx]"><img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="$post[fieldx]" /></if>&nbsp;$post[musername]
                                        </if>
                                </div>


peterska2 10-12-2005 04:43 PM

Quote:

Originally Posted by peterska2
Loukrhtia, I've been looking into your problem for the last couple of days and have tried a number of different ways of doing it. However, I am unable to get it to work at all. I am continuing to investigate this and as soon as I have an answer I will let you know.

Sorted this out for you.

Use this instead of the code in the install instructions.

Code:

<if condition="$post[fieldx] == 'Greek for Male'"><img src="$stylevar[imgdir_misc]/male.gif" alt="$post[fieldx]"/></if><if condition="$post[fieldx] == 'Greek for Female'"><img src="$stylevar[imgdir_misc]/female.gif" alt="$post[fieldx]" /></if><if condition="$post[fieldx] =='Greek for undisclosed'"><img src="$stylevar[imgdir_misc]/undisclosed.gif" alt="post[fieldx]" /></if>
Place it in the postbit whereever you want it to show.




Update for everyone else, I'm still working on the bells and whistles version. As soon as it is finished I'll send out a memo letting you know.

Lea Verou 10-13-2005 08:28 AM

Thanks a lot!!!!! :D

FROGGYJ 10-16-2005 02:26 AM

hrm having an issue for some reason. Can someone point it out? I seem to get "Male" in there, but I want the image not the text.

Postbit
Code:

<div id="postmenu_$post[postid]">
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                        $post[onlinestatus]<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
                                        </if>
                                </div>

Postbit_Legacy

Code:

<div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a><if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]<if condition="$post[field9]"><img src="$stylevar[imgdir_misc]/$post[field9].gif" alt="$post[field9]" /></if>
                                </if>
                        </div>

See attachements as well. VB 3.5 Gold.

FROGGYJ 10-16-2005 02:37 AM

weeeee I got it....cause of my new style...had to upload the images to it's misc directory.

Mr Chad 10-16-2005 04:03 AM

LOL, firefox? thats the only thing i hate about firefox if it cant find the image it uses its Alt.

peterska2 10-19-2005 03:03 PM

Updated to version 1.03.

Now with non-standard languages support, memberlist images.

Snake 10-19-2005 06:55 PM

Thanks for the update peterska.


All times are GMT. The time now is 10:06 AM.

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.01205 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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