Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 10 Aug 2011, 21:27
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Can't find correct hook

Please help I am writing a plugin to add some information to member profiles to show in the attached location but I can't find the correct hook. This area is shows for custom profile field categories and it appears that if you edit the memberinfo_block_profilefield template information will show but on every custom profile field category tab you click on. I cant find an existing variable to segregate the data so it only shows in 1 or the other category and I really am not sure how to establish my on variable for if a tab is clicked so I am probably going to merge the 2 categories into 1. I am running in debug mode on my test site but it gives a pretty big list. I have tried the ones that seem logical but no luck. Can anyone help me?
I have gotten other plugins to show where I want them by registering, rendering and caching templates but this one is driving me nuts...
Attached Images
File Type: jpg help.jpg (44.1 KB, 12 views)
Reply With Quote
  #2  
Old 11 Aug 2011, 02:36
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
On your test site where you are writing this, go into debug mode (there is an article on how to do this) and then the list of all available hooks for that page will be listed on the bottom right. See if those work. You can usually narrow it down by knowing when the code needs to be processed.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 11 Aug 2011, 05:58
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Thank you lynne. I have tried that but it still is not working, I cant figure this one out and is driving me nuts. That was why I hoped with the attached image someone might point me at the correct hook so I can make sure it is not something else wrong.
Reply With Quote
  #4  
Old 11 Aug 2011, 06:06
Badshah93's Avatar
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Real name: Aayush Agrawal
right hook for this is "member_complete"

But whats your php code ?
Reply With Quote
  #5  
Old 11 Aug 2011, 06:50
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Updated to include the hook you provided

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Yes, I also Cached the template
Template only contains simple html to display some images

Am I missing anything?

--------------- Added 11 Aug 2011 at 06:50 ---------------

BTW Thank You Sherif.

--------------- Added 11 Aug 2011 at 07:35 ---------------

I can see via debug mode that the template is being called but it is not rendering anywhere on the profile let alone where I want it to render. I have even tried adding {vb:raw codinfo} to the template I want it attached to.
Reply With Quote
  #6  
Old 11 Aug 2011, 08:28
Badshah93's Avatar
Badshah93 Badshah93 is offline
 
Join Date: Jun 2010
Real name: Aayush Agrawal
Originally Posted by XLCR GODFATHER View Post
Updated to include the hook you provided

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Yes, I also Cached the template
Template only contains simple html to display some images

Am I missing anything?

--------------- Added 11 Aug 2011 at 06:50 ---------------

BTW Thank You Sherif.

--------------- Added 11 Aug 2011 at 07:35 ---------------

I can see via debug mode that the template is being called but it is not rendering anywhere on the profile let alone where I want it to render. I have even tried adding {vb:raw codinfo} to the template I want it attached to.


member_complete is a plugin hook not template hook..

I would suggest you to refer this article


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 11 Aug 2011, 14:38
XLCR GODFATHER XLCR GODFATHER is offline
 
Join Date: Mar 2010
Perfect! Thank you. now it makes more sense. This will open up for me to do what I wanted.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 18:18.

Layout Options | Width: Wide Color: