PDA

View Full Version : How to add html after the Nth thread in forumdisplay?


[email protected] vbmenu_register("postmenu_2584303", true);
03-24-2017, 07:55 PM
Hi guys,

how can I add html code / scripts after the 3rd thread in forumdisplay? Here's a visual of what I need:
https://screencast.com/t/2kb6GefC

I presume it has to do with threadbits template, but I can't find any info on how to modify the template only for the Nth thread displayed.

Initially I thought I need to use someting like

<vb:if condition="thread.threadid == X">

but the threadid varies on the forumdisplay based on the last posts made, right?

So, how do I do this? Any help is appreciated...

paonefx
03-24-2017, 08:04 PM
Try Custom Phrase
Add new Plugin with hook location threadbit_display with Forum ID.

MarkFL
03-25-2017, 02:03 AM
I have attached a simple product that will do what you have requested. Import the attached .XML file, then visit the product settings to enable and configure the product:

https://vborg.vbsupport.ru/attachment.php?attachmentid=156071&stc=1&d=1490410655

With those settings, this is what I see:

https://vborg.vbsupport.ru/attachment.php?attachmentid=156072&stc=1&d=1490410655

Let me know if you have any issues and/or would like any additional features. :)

[email protected] vbmenu_register("postmenu_2584441", true);
03-28-2017, 07:09 PM
Hey Mark,
works like a charm, thank you very much bro!

Any way i could donate somewhere/somehow for your solution? :D

MarkFL
03-28-2017, 09:43 PM
Hey Mark,
works like a charm, thank you very much bro!

Glad to assist! :)

Any way i could donate somewhere/somehow for your solution? :D

PM sent. ;)