vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [How-to] Add a right postbit to the profile page? (https://vborg.vbsupport.ru/showthread.php?t=212535)

gamerfu 04-30-2009 02:40 PM

[How-to] Add a right postbit to the profile page?
 
I am unsure how to add a right postbit to the profile page.

Any ideas?

Lynne 04-30-2009 03:14 PM

A postbit is the template used to create posts in a thread. I'm not sure what you mean that you want to add it to your profile page.

gamerfu 04-30-2009 03:17 PM

I meant, how do you add a right-hand box, like user statistics to the members profile page.

I would like to add a box to the right-hand side of the users profile

Lynne 04-30-2009 03:32 PM

Try this:
Create a new template called "memberinfo_block_yours" with this (Just copied from memberinfo_block_ministats):

HTML Code:

        <!-- Your new block -->
<div class="alt1 block_row">
        <table cellpadding="0" cellspacing="0" border="0">
        <tr valign="top">
                <td width="100%">
Your stuff here
                </td>
        </tr>
        </table>
</div>
<!-- / Your new block -->

Create a plugin at hook location "member_build_blocks_start" with this:

PHP Code:

eval('$template_hook[profile_right_first] .= "' fetch_template('memberinfo_block_yours') . '";'); 



I have NOT tested this.

gamerfu 04-30-2009 04:01 PM

that worked perfectly! :cool: wow! :eek:

how can I can I add a collapsible box (border) with a title around this like the mini-stats? :)

anyway to change order of box?

Lynne 04-30-2009 06:00 PM

Just take a look at the mini stats memberinfo box and add the code for collapsing it. Make sure you use a unique name/id for yours.


All times are GMT. The time now is 07: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.01005 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete