vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-to] Add more tabs to the vB 3.7 profile pages (https://vborg.vbsupport.ru/showthread.php?t=165554)

harmor19 05-08-2009 01:35 PM

I'm not sure as I haven't tried but the code below might work if you don't want to loop data.

PHP Code:

eval($this->block_data['mkwttrecords'] .' .= "' fetch_template('mkw_profilebit') . '";'); 


edytwinky 07-01-2009 03:20 AM

I'm trying to get this information to show but for some reason it keeps bringing errors. Any ideas?

Currently my plugin is the default:

PHP Code:

$blocklist array_merge($blocklist, array(
    
'mymodification' => array(
        
'class' => 'MyModification',
        
'title' => 'My Teams',
        
'hook_location' => 'profile_right_last'
    
)
));

class 
vB_ProfileBlock_MyModification extends vB_ProfileBlock
{
    var 
$template_name 'memberinfo_block_mymodification';

    function 
confirm_empty_wrap()
    {
        return 
false;
    }

    function 
confirm_display()
    {
        return (
$this->block_data['mymodification'] != '');
    }

    function 
prepare_output($id ''$options = array())
    {
        
$this->block_data['mymodification'] ='Coming Soon';

    }




And i'm trying to get the following code in:
PHP Code:

<if condition="!empty($post[nbateam])">
                <
div>
                    
$vbphrase[my_nbateam]: <img src="$vboptions[bburl]/images/nba/$post[nbateam].gif" border="0" />
                </
div>
                </if> 

I put the new code in the 'coming soon' section and all it showed in the new tab was the text $vbphrase[my_nbateam]:
It did not show the image whatsoever.

--------------- Added [DATE]1246493739[/DATE] at [TIME]1246493739[/TIME] ---------------

I've been toying around with every single combination of codes and it keeps only bringing up the text of the coding or error message.

Any assistance would be greatly appreciated.

euantor 08-19-2009 08:03 AM

Does this work with VBulletin 3.8.4? I've tried it, but I can't get the tab I'm trying to add to display.

ragtek 08-19-2009 02:19 PM

Yes it should work, nothing changed here.

What's the code you're using?

euantor 08-20-2009 07:25 AM

The code in the first two boxes. I believe I've done it all correctly, but it doesn't work.

KW802 08-26-2009 10:38 PM

With the hook locations we can specify relative positions (eg: first on the left, last on the right, etc.) but is it possible to specify a specific location, as in the second position from the left?

Thanks :)

Lynne 08-26-2009 10:47 PM

No, not with default vbulletin. You may modify the template and add another template_hook to use in the location you want. (I think there is even an article on how to do this.)

krike 09-08-2009 08:20 AM

just thought I would share with the people who are looking for help.

my vB version is 3.8.1

I needed to query a table I created myself to display all the tutorials of that specific user.
here is the code I used and it works like a charm

Code:

function prepare_output($id = '', $options = array())
        {
            $sql = mysql_query("SELECT * FROM tutorials WHERE approved = 1 AND user_id=".$this->profile->userinfo[userid]."");
            $test = "<ul>";
            while($result = mysql_fetch_array($sql))
            {
                $test .= "<li> <img src='http://cmstutorials.org/".$result['tutorial_thumb']."' width='50' height='50' alt='' />
                            <a href='http://cmstutorials.org/tutorial/".$result['tutorial_id']."' target='_blank'>".$result['title']."</a></li>
                        ";
            }
            $test .= "</ul>";
            $this->block_data['mymodification'] = $test;
    }

--------------- Added [DATE]1252407273[/DATE] at [TIME]1252407273[/TIME] ---------------

how do you call a specific tab with a url?

http://cmstutorials.org/forums/member.php?u=1#tabname ????

--------------- Added [DATE]1252407322[/DATE] at [TIME]1252407322[/TIME] ---------------

ok I found it http://cmstutorials.org/forums/membe...1&tab=favorite

Quote:

For About Me: ?tab=aboutme
For Contacts: ?tab=contact
For Friends: ?tab=friends
For Statistics: ?tab=stats

KW802 09-08-2009 02:31 PM

Quote:

Originally Posted by Lynne (Post 1875075)
No, not with default vbulletin. You may modify the template and add another template_hook to use in the location you want. (I think there is even an article on how to do this.)

Lynne, I missed your response earlier, just saw it now after the newest post. :o

Thanks for the info. :) For now I'll go with the relative positions since one of our goals with the project is to make it as template edit free as possible for the site admin'.

reddyink 11-11-2009 03:16 PM

I am trying tocreate a Tab where it can list specific user Threads in different forums like the profile page on vb.org where it pulls users threads from MODs forum, Templates, Styles forum.

example: I want this users threads from forum ids 2, 4, 6 etc

towards the bottom of
https://vborg.vbsupport.ru/member.php?u=925

Appreciate your help! I am new to programming.


All times are GMT. The time now is 02:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01300 seconds
  • Memory Usage 1,756KB
  • 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_code_printable
  • (3)bbcode_php_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