vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Real Name In Profile And Postbit (https://vborg.vbsupport.ru/showthread.php?t=184414)

Mosh 07-27-2008 06:57 AM

Quote:

Originally Posted by Lombardo (Post 1584916)
Is there a way to put the name above join date?

Yes there is, but you would manually have to alter postbit and/or postbit_legacy templates, as there is no template hook available at that location and an automatic insertion can not be performed without adding around twice the code this hack already has. So, that is something you will have to look into and sort out yourself if you want it above the join date, as most of this simple hack would have to be rewritten to accomplish that, and I am not willing to do it.

Hugo Holbling 07-27-2008 11:50 AM

Quote:

Originally Posted by Lombardo (Post 1584916)
Is there a way to put the name above join date?

You just need to add a new template hook. I used

Code:

$template_hook[postbit_userinfo_right_above_posts]
and then edited my postbit_legacy template:

Code:

<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>

$template_hook[postbit_userinfo_right_above_posts]

                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>

I then edited the plugin to change the template hook to the new one:

Code:

if ($post['field6'])
{
    $template_hook['postbit_userinfo_right_above_posts'] .= '<div>' . $vbphrase['real_name'] . ': ' . $post['field6'] . '</div>';
}

If you want the real name to appear above the join date, just move the new template hook to after the <br />. You can do the same with the postbit template. This is not a difficult process: you just need to insert the new template hook wherever you want it (one line of code) and then edit the plugin (the same one line to replace the current template hook). That's it.

Deadly Assassin 08-07-2008 04:46 AM

Thanks.

Nice template hook aswell Hugo,

cheers.

Mosh 01-08-2009 01:14 AM

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).


All times are GMT. The time now is 04:37 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.01220 seconds
  • Memory Usage 1,727KB
  • 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_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
  • (4)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