vb.org Archive

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

AliceHoward 03-28-2010 03:24 AM

Lovely little addition, thank you sweetie.

Mosh 03-28-2010 04:05 AM

Quote:

Originally Posted by AliceHoward (Post 2011400)
Lovely little addition, thank you sweetie.

Thank you for the compliment Alice :)

AliceHoward 03-28-2010 12:58 PM

My pleasure, I just looked at your profile picture, you're such a cutie. ;)

(sorry mod's, spam session ends!)

YankForum 04-07-2010 06:43 PM

i think this is just the beginning of more spams :)
anyway tnx 4 mod :p

Boofo 05-14-2010 07:52 AM

Nice job, Mosh. ;)

Boofo 06-19-2010 04:35 AM

This may not work in 4.0.4 as, for some strange reason, the $vbulletin variable is not global in the postbit_display_complete hook now. At least is wasn't for me on one of my mods. Just a heads up.

compuminus 06-19-2010 04:39 PM

Quote:

Originally Posted by Boofo (Post 2055703)
This may not work in 4.0.4 as, for some strange reason, the $vbulletin variable is not global in the postbit_display_complete hook now. At least is wasn't for me on one of my mods. Just a heads up.

Yes, it's not working for me in 4.0.4. For the creator of this mod: Any plans for an update?

Boofo 06-19-2010 06:05 PM

It's an easy fix. In the code for the postbit_display_complete hook, just add:

Code:

global $vbulletin;

at the very top of the code.

juan71287 06-22-2010 03:47 PM

Hey, can you explain to me exactly where? Cuase I am not 100% where to add the "global $vbulletin;" This is the code:

Code:

<title>Real Name In Profile and Postbit</title>
                        <hookname>postbit_display_complete</hookname>
                        <phpcode><![CDATA[if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
{
    $template_hook['postbit_userinfo_right_after_posts'] .= '<dt>' . $vbphrase['real_name'] . '</dt>  <dd>' . $post["field{$vbulletin->options['realname_profile_field']}"] . '</dd>';
}]]></phpcode>

Do I add it in FRONT of
Code:

<![CDATA[if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))
or AFTER?

Boofo 06-22-2010 04:05 PM

Replace:

Code:

if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))

with:

Code:

global $vbulletin;
if (!empty($post["field{$vbulletin->options['realname_profile_field']}"]))



All times are GMT. The time now is 05:56 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.01009 seconds
  • Memory Usage 1,734KB
  • 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_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