The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm stuck here, guys. I have a replacement variable in my sig. When I do a quick edit of the post, after I save it, you can see the variable. When I refresh the page, the variable is parsed like it should be. Is there a hook that deals with the ajax portion of that so it can be parsed without having to refresh the page first?
|
#2
|
||||
|
||||
![]()
No one has any ideas on this?
|
#3
|
||||
|
||||
![]()
I'd like to know the answer to Boofo's question as well :-/
|
#4
|
|||
|
|||
![]()
Can you have replacement variables in a sig? It sounds like a mod that doesn't completely work right.
|
#5
|
||||
|
||||
![]()
I was actually wondering why this doesn't work on postbit_display_complete:
Code:
$ok_ids = $vbulletin->options['allowedforum_ids']; $ok_ids_array = explode("," , $ok_ids); if (in_array( $foruminfo['forumid'],$ok_ids_array)) { $links = explode(',',$thread['links']); $scans = explode(',',$thread['scans']); array_pop($links);array_pop($scans); vB_Template::preRegister('postbit_legacy',array( 'links' => $links, 'scans' => $scans )); vB_Template::preRegister('postbit',array( 'links' => $links, 'scans' => $scans )); } |
#6
|
|||
|
|||
![]() Quote:
Oh, ok. I think the reason is that $vbulletin and $foruminfo don't seem to be available at that hook. For $vbulletin you can put in a "global $vbulletin" or you can use $this->registry instead. And it looks like you can use $forum instead of $foruminfo. |
#7
|
||||
|
||||
![]()
You're right, but that didn't help either, still after quick saving, the box disappears.
|
#8
|
||||
|
||||
![]()
Lol guess what i'm asking to myself the same question ahaha
However kevin it seems that the code is working well, the problem is just the when you edit via ajax, i have fields for links and scans just on newthread.php and editpost.php when you click edit post (ajax) as you don't have links fields when you click save it seems to update links with empty values |
#9
|
|||
|
|||
![]()
Hmm...well, when I save after doing an inline edit, it seems to make 2 calls - one is to ajax.php with do=editorswitch, which seems to allow it to convert the message text based on the editor mode. Then it calls editpost with do=updatepost, and it looks to me like that ends up calling construct_postbit, which should run the postbit_display_complete hook code. I guess I'll have to experiment more to see if code on that hook can actually change the postbit in that situation.
|
#10
|
||||
|
||||
![]()
Yes it's a bit difficult, there is only one hook for ajax edit, i serached for other mods and i found this: https://vborg.vbsupport.ru/showthread.php?t=250948 but if you disable redirecting plugins and try to do a quick edit it deletes the link, so he had the same problem. Another mod was this: https://vborg.vbsupport.ru/showthread.php?t=269667. But the ajax thing is a pro feature so nothing to do with it.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|