The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Quote:
|
#12
|
|||
|
|||
If you take away your "if" statements and hardcode your $links and $scans, does it work then? (Assuming it's a test forum - you wouldn't want to do that on a live forum of course). I was going to set up that test but it's probably easier for you.
|
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
Well i've added a field to the new thread page then i saved it, after this i can use threadinfo['myfield'] in postbit_display_complete, i added the field to editpost.php too, where you can update this field, until now everything is ok i create a new thread and i put a value to my field and i can see it in the showthread page, if i click edit post and go advanced i can edit this value and it works fine, the problem was adding this field to quickedit so i decided to leave it just on editpost.php but actually if i click edit post and then save it deletes my value, i hope i made myself clear and again, sorry for my english
|
#15
|
|||
|
|||
Well, I guess I'd have to study the mod to understand it completely. But at hook postbit_display_complete, you should have the thread info in $thread. The difference of course is that that's called when it's displayed instead of when it's saved in the db.
|
#16
|
||||
|
||||
Ok i will try to add global $vbulletin and $thread instead of $threadinfo
|
#17
|
||||
|
||||
Nah it works fine, when the code is in postbit_display_complete and the thread is loaded the boxes show up, they just disappear for some reason after saving quick edit. I looked at the code I think postbit_display_complete should be called somewhere around that part, just not sure why it's not working.
|
#18
|
|||
|
|||
Well, something's got to be different during the edit. I'll play around and see if I can figure out anything.
|
#19
|
||||
|
||||
It somehow must go through inlinemod.php as well I think
|
#20
|
|||
|
|||
Oh well, I'm already stumped. I added a variable to the postbit_legacy template and used preRegister to set the value in a plugin on postbit_display_complete using values from $vbulletin and $forum, and it works even if I inline edit.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|