The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i tried
PHP Code:
--------------- Added [DATE]1201207108[/DATE] at [TIME]1201207108[/TIME] --------------- figured it out but now the attachment is dead ? |
#2
|
||||
|
||||
![]()
Can you give us a bit more detail to go on? What are you trying to do? You talk about a hook, but the code is a template eval. And "the attachment is dead" isn't very informative ...
-- hugh |
#3
|
|||
|
|||
![]()
well what it is m8 is i wanted to have a different attachment layout for certain forums. so i did it and the new layout worked but none of the varibles worked like the
link to download: $attachment[attachmentid] dead attachment views: $attachment[counter] attachment size: $attachment[filesize] all are dead if the template is not postbit_attachment any other name and it wont work. any ideas |
#4
|
||||
|
||||
![]()
In which case we'll need to see your alternate template.
-- hugh |
#5
|
|||
|
|||
![]() PHP Code:
|
#6
|
||||
|
||||
![]()
OK, so presumably this is the template you are using as an alternative to postbit_attachment. It looks OK. Which means the problem must be in where / how you are evaluating it.
Can you explain where you are trying to do it? From looking at the code in class_postbit, the postbit_attachment hook won't work because it gets called before vB itself uses it's own templates. So unless you've made some code edits, I'm not sure where else you could hook in that would have $attachment in scope. If you are doing it with code edits, could you post them, along with a few lines of context (vB's code) top and bottom so we can see exactly where the code is. -- hugh |
#7
|
|||
|
|||
![]()
What hook did you use to get the custom template to display? I cant get anything to display with any hooks
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|