The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
need help on building output in template
hello,
i'm bussy on writing a plugin. but after a while i have the idea that what i'm doing is not right. i do the output to the webpage with echo "...." but i think i have to parse the output somehow to the template. but how do i do that. i use a table to display the user attachments. but i realy would do this in the template. i used this link to add a extra members tabhttps://vborg.vbsupport.ru/showthrea...light=profile* This is done good, the template it self is not altert, the plugin so far i have now is below. how do i output everything to the template. a specialy the table. there should be a better way than i did. please need help and or suggestions. as i have solved this, there should be : above the table a page navigation in admincp-> options a settingsfield where maxcol,maxrow, .... can be alterd. there should be an ability to alter te language of the outputed data. but hese are all next steps in my project. i have searched the inet but i'm getting stucked here. i think the messed up left colum would be oke if i put the stuff in the template. PHP Code:
|
#2
|
||||
|
||||
I don't see what the stuff you've circled in red in your image has to do with your code. The code you wrote just adds a tab to your profile, which is seen on the right in your image. I don't see any code that outputs anything where you circled stuff in red.
|
#3
|
|||
|
|||
no that happend when i run my code.
that is a side affect. it is somthing i work on later. it's more like should i rewrite te template so that it gets it's data from the plugin. or do i create the output in the plugin itself. if i have to rewrite the template where do i start, i couldn't find resources that helpt me with this problem. so please help me. ps. forget the red circel, this is a side effect from my plugin. |
#4
|
||||
|
||||
You can either output the html directly from the plugin or use templates. It really doesn't matter which way you do it. I have a couple of added tabs on my site and I use templates in one of them and just output html in the other. So, it's personal preference.
|
#5
|
|||
|
|||
so what i do is pretty normal.
can i use sanitize_pageresults in a plugin so that it render a peace of code to insert in my page? i had to try this befor using this link but there where some errors. how do i use sanitize in a plugin? |
#6
|
||||
|
||||
Did you create a template memberinfo_block_mymodification? What does it look like? (Did you make it similar to the other memberinfo_block_* ?)
|
#7
|
|||
|
|||
Of you follow the first post that is what i put in my template. It looks like it feta à wrong class in it's div. I don't how to alter this. It looks like it's somewhere hardcoded
|
#8
|
||||
|
||||
The old template will not work for vb4.
|
#9
|
|||
|
|||
oke but how do i fix it ?
do i need to register the outpu and put it that way in my template ? |
#10
|
||||
|
||||
The only data that gets spit out in the template is the block_data ({vb:raw block_data.mymodification})which you are defining in the plugin, so you don't need to register any variables.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|