The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
But why is it all meshd up? And on the first load the plugin is displayed below the About plugin.
|
#12
|
||||
|
||||
Probably because your template is not using the correct css classes. If you look at your page source, the stuff that is 'showing' is class=selected_view_section, if it isn't showing (the tab isn't selected), it is class=view_section. You need to write a condition at the top of your template to define which class is used in your div (<vb:if condition="$selected_tab == 'mymodification'"> class="selected_view_section"<vb:else />class="view_section"</vb:if>)
|
#13
|
|||
|
|||
that's correct, mymodification has the class Block, all the other have view_section and one has selected_view_section.
that isn't going to work, i had to try that before. look below for what is outputed: i have trying a lot but i can't get i to work. PHP Code:
|
#14
|
||||
|
||||
I don't understand what you are printing out there - that shouldn't be your template, so what is it?
|
#15
|
|||
|
|||
that is the code what my members page give after rendering, and after inserting the code you gave in post 12.
at the bottom of the code you coulld see what it gave as output. and that is not what my plugin should give. i put the code just before the hook location at the bottom of the members template. [edit] code added plugin code, hook location: members_hook_location_start PHP Code:
Template : memberinfo_block_mymodification PHP Code:
PHP Code:
|
#16
|
||||
|
||||
The code I posted was not complete code. It was code you will need to use in your custom template that you need to create for your tab. The article tells you to create a template. You CANNOT use the code she posted since it is vb3 template code. What does your template look like (you should look at other tabs and see what code is needed) and what is it called (it should be called memberinfo_block_mymodification)
|
#17
|
|||
|
|||
my template says
PHP Code:
PHP Code:
when i look at, memberinfo_block_aboutme, there is only html code and some vb stuff not rellated to this problem. i realy don't know. maybe it would help if i could find the hook location is a template, but when i search the templates it comes up with no hits. maybe it's me, that i'm a beginner. so when it's to much trouble leave it and close this treaht. i'm stuck on this for 4 days now, i becom a bit crazy --------------- Added [DATE]1262378496[/DATE] at [TIME]1262378496[/TIME] --------------- lynne,maybe you have a peace of working plugin and template, so i could see how you did it? |
#18
|
||||
|
||||
You aren't putting 'names' above any of your template code so I can't tell what templates you are posting (nor can I tell why you have two - you should only have one, I would think).
I didnt' really want to post my template because it is on my RC4 site - I haven't upgraded that particular test site to Gold yet. However, here is mine which will hopefully work on gold. template name - memberinfo_block_mytorrentstats PHP Code:
|
#19
|
|||
|
|||
and your plugin looks like what i have except for what it's given back. but building the block and giving back it's content.
the template name where i speake about is memberinfo_block_mymodification block_data.mytorrentstats is what you get back from your plugin ? |
#20
|
||||
|
||||
Ours are similar. One mistake you are making in yours is that you are not allowed to use the same id twice on a page. You are. I don't know if that is causing the problem, but it always helps to get rid of any html/css errors to eliminate those as the culprit.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|