Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 06-22-2014, 12:29 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #12  
Old 06-22-2014, 12:34 PM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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___


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

Quote:
Originally Posted by tbworld View Post
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
Reply With Quote
  #13  
Old 06-22-2014, 12:55 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 06-22-2014, 02:38 PM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Search in forum templates or as tbworld suggested, all you need is edit html code and edit css
Reply With Quote
  #15  
Old 06-22-2014, 03:21 PM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #16  
Old 06-22-2014, 03:32 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 06-22-2014, 03:39 PM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:58 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.08005 seconds
  • Memory Usage 2,226KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete