The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Changes in the template do not appear in the ajax refresh
Hello community,
I added a template in the existing template contententry (admincp -> Style Manager -> Default vB5 Style -> Edit Templates -> contententry). This template I added is shown, when I browse the topic to write a reply. So, success! However, after I post a reply, vBulletin refreshes only part of the page with a ajax call and, this time, the contententry does not show the template I created. Anyone has any idea why this happens? Is there a second contententry loaded for ajax request to which I should add my custom template? Thanks in advance! |
#2
|
||||
|
||||
When you reply to a thread and click post, the ajax calls loadNode which only calls for the content and userinfo for the new post and adds it to the thread so the entire page doesn't reload. This is also why the signature doesn't show on a new reply for the person that posted it, but anyone else loading that page will see the signature. Is there a reason the new template needs to be shown before the next refresh? Without knowing more about the functionality of the custom template, it's kind of difficult to understand why the new template would need to load since the content entry has already been performed.
|
#3
|
|||
|
|||
I have a new field in the new template. That is why I need it to be displayed to the users every time they might post something in the forum. It doesn't matter if it is the first post or the second post after an ajax refresh.
I didn't find loadNode or the second contententry used by the ajax refresh. |
#4
|
||||
|
||||
loadNode is at line 1654 of the createcontent.php file. You may be able to create a php hook there to inject your template, or you can force a page refresh instead of loadNode via javascript.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|