vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Username Image For 4.1.x (https://vborg.vbsupport.ru/showthread.php?t=272775)

MegaManSec 10-24-2011 10:00 PM

Username Image For 4.1.x
 
1 Attachment(s)
https://vborg.vbsupport.ru/showthread.php?t=198287



I'v made this mod work for vbulletin 4.1.x

Find "Postbit" in styles,

find:
Code:

                                <div class="username_container">
                                        <vb:if condition="$post['userid']">
                                                {vb:raw memberaction_dropdown}
                                                {vb:raw post.onlinestatus}

and replace it with
Code:

                                <div class="username_container">
                                        <vb:if condition="$post['userid']">
                                                <div id="postmenu_{vb:raw post.postid}">
                                                <vb:if condition="$show['profile']">
                                                        <a href="member.php?{vb:raw session.sessionurl}u={vb:raw post.userid}">
                                                <vb:if condition="$post['field5']">
                                                        <img src="{vb:raw post.field5}" border="0" /></a>
                                                <vb:else />
                                                        {vb:raw memberaction_dropdown}</a>
                                                </vb:if></vb:if>
                                        {vb:raw post.onlinestatus}
                                </div>

You'll have to add your own fields, you can do that by going to admincp->User Profile Fields->Add new | then replace field5 in the code with fieldNUMBER which you made the new field

if you have any questions, or need some help, add me on skype: //removed

Thanks, Loaep :)

~All credits to the maker of https://vborg.vbsupport.ru/showthread.php?t=198287 for this, all I did was convert the code.~

Code:


Video how to install this:  http://www.youtube.com/watch?v=JwRrZCcu6oI


FReeSTER 10-26-2011 12:05 PM

I like this but I have made many template edits and i cant get it to work correctly as the posts get disturbed looking weird.

I mean that the image shows great but is messing my posts content

Can yyou tell me the correct way to do this?

HTML Code:

                        <div class="username_container">
                        <vb:if condition="$post['userid']">

<center><div class="eti_postbit">{vb:raw memberaction_dropdown}
<span class="usertitle">{vb:raw post.usertitle}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</center>
</vb:if>
</span>
</div>
</div>


Dr.osamA 10-26-2011 09:21 PM

installed

Quote:

You'll have to add your own fields,
what field we have to add and what to put in it plzzz??

FReeSTER 10-26-2011 11:35 PM

Quote:

Originally Posted by Dr.osamA (Post 2261838)
installed


what field we have to add and what to put in it plzzz??

Look at the old mod, on the zip file are the instructions that works with this one. :D:up:

Dr.osamA 10-27-2011 02:53 AM

aha thank you
i see

MegaManSec 10-27-2011 08:34 AM

Quote:

Originally Posted by FReeSTER (Post 2261689)
I like this but I have made many template edits and i cant get it to work correctly as the posts get disturbed looking weird.

I mean that the image shows great but is messing my posts content

Can yyou tell me the correct way to do this?

HTML Code:

                        <div class="username_container">
                        <vb:if condition="$post['userid']">

<center><div class="eti_postbit">{vb:raw memberaction_dropdown}
<span class="usertitle">{vb:raw post.usertitle}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</center>
</vb:if>
</span>
</div>
</div>


hey, add my skype: //removed

and I'll take a look for you :)

MegaManSec 10-27-2011 08:35 AM

Quote:

Originally Posted by Dr.osamA (Post 2261838)
installed


what field we have to add and what to put in it plzzz??

Hey, I see that FReeSTER helped you, if you need any more help ; add my skype - //removed

Quote:

Originally Posted by FReeSTER (Post 2261868)
Look at the old mod, on the zip file are the instructions that works with this one. :D:up:

Thanks ;) I shall make a video of how to do it tonight. :)

Taurus1 10-28-2011 06:17 AM

I have been waiting for this for a long time. The only issue I have is that the dropdown does not open when you click on the username image. It only takes you straight to the profile page. Is there a way to keep that function??

MegaManSec 10-29-2011 06:31 AM

Quote:

Originally Posted by Taurus1 (Post 2262254)
I have been waiting for this for a long time. The only issue I have is that the dropdown does not open when you click on the username image. It only takes you straight to the profile page. Is there a way to keep that function??

yes, there is a way, I will work on it now

abdobasha2004 10-29-2011 08:53 PM

any screen shots?


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