Log in

View Full Version : Miscellaneous Hacks - "Find latest started threads" in postbit_legacy


JGreig
03-10-2014, 11:00 PM
Why use add-ons when you can do this with a simple bit of code added to your postbit_legacy template?

Admin CP > Styles & Templates > YOUR STYLE > Edit Templates > Postbit Templates > postbit_legacy

Find
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>

Add below
<dt>{vb:phrase threads}:</dt> <dd><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;starteronly= 1" rel='nofollow'>{vb:rawphrase find_all_started_threads}</a></dd>

You can do the same for the postbit template.

====================================

If you would rather show the thread count in the postbit_legacy/postbit, use the following code:

<dt>{vb:phrase threads}:</dt> <dd>{vb:raw post.threads}</dd>

stevieb
07-22-2014, 06:48 AM
How do you get the numbers to replace the words, ie the number of threads like the number of posts?

JGreig
08-21-2014, 06:37 PM
How do you get the numbers to replace the words, ie the number of threads like the number of posts?

Instead of adding this code:

<dt>{vb:phrase threads}:</dt> <dd><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;starteronly= 1" rel='nofollow'>{vb:rawphrase find_all_started_threads}</a></dd>

Add this instead:

<dt>{vb:phrase threads}:</dt> <dd>{vb:raw post.threads}</dd>

stevieb
10-07-2014, 04:53 PM
Add this instead:

<dt>{vb:phrase threads}:</dt> <dd>{vb:raw post.threads}</dd>Nope doesn't work... it's showing a blank box by the {vb:raw post.threads} which should display the number of threads....

Black Snow
10-08-2014, 07:24 AM
I think it should be:
<dt>{vb:rawphrase threads}:</dt> <dd><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;starteronly= 1" rel='nofollow'>{vb:rawphrase find_all_started_threads}</a></dd>

stevieb
10-08-2014, 04:53 PM
I think it should be:
<dt>{vb:rawphrase threads}:</dt> <dd><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;starteronly= 1" rel='nofollow'>{vb:rawphrase find_all_started_threads}</a></dd>

And that'll show the number of threads? I only want the number (of threads) and not the phrase (find all started threads).....

Thank you.

Black Snow
10-09-2014, 07:09 AM
And that'll show the number of threads? I only want the number (of threads) and not the phrase (find all started threads).....

Thank you.

Sorry, I thought you wanted something else. Please follow this: https://vborg.vbsupport.ru/showthread.php?t=267584