vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How do i edit user profile navigation tabs (https://vborg.vbsupport.ru/showthread.php?t=312327)

tbworld 06-22-2014 12:29 PM

I thought you added your own "tabs". Now, that I look at your page, those tabs are coming from a modification correct? The code I was showing was applicable to your own php plugin code. If they are not your own "tabs" ignore my last post for now.

All of your mods will use similar hooks to plugin to "memberinfo.php" to render the "MEMBERINFO" template.
The hook will be "member_complete". If you go into your "ACP - Plugin Manager" you can sort on hooks (at the top of the table) and find all hooks that use "member complete".

Now one little trick that might work is modify the hook execution of this group of plugins in a descending order. Normally the hook execution is "5". Note, this will only work for plugins and not vbulletin "tabs" -- unless they are plugins, like blog or cms.

For example:
wall (execution order 6)
mentions (execution order 7)
and so on ...

You have to play around with it a bit. :)

DreadsUK 06-22-2014 12:34 PM

Its working on my profile
http://www.dreadsuk.com/member.php?2-Elijah

but looks like other peoples profiles are screwed up

http://www.dreadsuk.com/member.php?2074-___aurora___
http://s13.postimg.org/z0x5y3iqv/Scr...t_14_31_40.png

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

Quote:

Originally Posted by tbworld (Post 2503068)
I thought you added your own "tabs". Now that I look at your page, those tabs are coming from a modification correct?

yea, thats right

tbworld 06-22-2014 12:55 PM

Clear the vbulletin cache and your browser cache, to be on the safe side.

--------------- Added 22 Jun 2014 at 07:03 ---------------

Your tabs worked on my end when I tried your links. By the way, I like the theme of your board, very unique.

webmastersun 06-22-2014 02:38 PM

Search in forum templates or as tbworld suggested, all you need is edit html code and edit css :)

DreadsUK 06-22-2014 03:21 PM

Ok, so in the plugin manager for the plugins i want to move, i found the line

$template_hook['profile_tabs_last'] .= $templater->render();

which i changed to
$template_hook['profile_tabs_first'] .= $templater->render();

This moves the tab to either first or last. Are they the only options or can we specify something like 'position_2' or 'tab2' something like that. do you knwo what the command would be?

tbworld 06-22-2014 03:32 PM

Post #8, I poorly explained how to add additional template hooks. You can then modify the plugin code that uses PHP hook "member_complete" to use your new custom template hook.

I know I did a great job of making this sound difficult. I will try to rewrite this after I get some sleep on the plane.

You are on the right track, almost there :)

DreadsUK 06-22-2014 03:39 PM

Quote:

Originally Posted by tbworld (Post 2503102)
Post #8, I poorly explained how to add additional template hooks. You can then modify the plugin code that uses PHP hook "member_complete" to use your new custom template hook.

I know I did a great job of making this sound difficult. I will try to rewrite this after I get some sleep on the plane.

You are on the right track, almost there :)

thanks mate, playing around in the mean time ;)


All times are GMT. The time now is 08:53 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.01035 seconds
  • Memory Usage 1,730KB
  • 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
  • (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
  • (7)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