![]() |
Help with New Profile Tab
Hey guys a little question here. Porting over a 3.8 mod done in 3.8 style rewrote the template according to vb 4.0 style turned on the mod and was trying to work out getting it to display.
Now have not dove into the php side of code too much with templater calls etc but I notices the tab is already viewable even though I am working on the code. All the html and correct variables are printed out in the html source of the page even though as noted I have not done any registering of variables etc. http://www.reeftalk.com/forums/members/1-Chuck-S I hit gallery tab and its empty but as noted even though the template seems to be passed fine in the html source so any ideas how to make it viewable? |
You just need to create the tab - this is an example from my own plugin:
hook_location - member_complete: Code:
if ($selected_tab == 'your_variable') |
Actually not any modding needed. It was a template error really. The default vb3 way of doing things works fine. I updated my template the real issue was I mistakenly surrounded my code with a div tag because I had actually viewed the source of the page to get the layout etc instead of looking at the other templates in admin. I removed the div tag that surrounded it and it displays fine.
http://www.reeftalk.com/forums/members/1-Chuck-S |
Ah, so they finally fixed that. Glad to hear it. I'll have to go change mine. (In the previous versions you had to manually add the tab like I wrote above.)
|
<a href="http://www.reeftalk.com/forums/members/1-Chuck-S" target="_blank">http://www.reeftalk.com/forums/members/1-Chuck-S</a>
well the tab shows and works if you click it and click another all works fine However the problem I have to begin with is if you scan down the page you see the info being printed when the selected messages tab by default displays. If I click a tab everything is fine. Does your code help this? |
I haven't tried this on beta 3 yet. It was working on beta 2, but if they have fixed the issue with the tab, I will try it on beta 3 one of these days. But yes, mine was working fine and showing when it should. You do have to do something to define when it is selected though, and I have no idea what you did to define that.
|
well I tried your line. Did you also have to define any templates because I did not have to.
|
Define any templates where? I use templates for some of my output, yes, if that is what you are asking.
|
well the old way we just did this
Code:
class vB_ProfileBlock_ppProfile extends vB_ProfileBlock |
And you still do that. I thought you meant do I use more templates besides that for my output there. My plugin gets a list of threads, so I use a template for those threads that I go through in a while loop. Then, I use that output in the $template_name template.
|
All times are GMT. The time now is 04:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|