Log in

View Full Version : Miscellaneous Hacks - [postbit_legacy]- Post Count Link to Posts


XiTCLUB
02-28-2014, 11:00 PM
Hello,
This is very little modification that will make user post count click-able and on click it will list all of user posts.

1: Edit "postbit_legacy" Template

Find
{vb:raw post.posts}

Replace with
<a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:raw post.posts}</a>

ramesh_umk3
03-02-2014, 09:39 AM
Any new in this friend ? cause i have seen many similar mods like this i added this code when i was using vB v4.1.0 its working till now

{vb:rawphrase posts} : <a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;showposts=1" title="View {vb:raw post.username}'s posts">{vb:raw post.posts}</a>

ScreenShot:
https://vborg.vbsupport.ru/external/2014/03/65.png

Thanks for sharing

Justinphx
03-03-2014, 02:36 AM
Thanks. Works great.

ahobilam
03-03-2014, 01:52 PM
Simply Super.
Good Idea works well.
Thanks.

XiTCLUB
03-06-2014, 04:47 AM
Any new in this friend ? cause i have seen many similar mods like this i added this code when i was using vB v4.1.0 its working till now



ScreenShot:
https://vborg.vbsupport.ru/external/2014/03/65.png

Thanks for sharing

I have not checked other mods, i have implemented it on my forum myself and just though sharing this trick will help others who does not want to install a MOD for every little thing :)

Nirjonadda
03-06-2014, 04:26 PM
Any new in this friend ? cause i have seen many similar mods like this i added this code when i was using vB v4.1.0 its working till now



ScreenShot:
https://vborg.vbsupport.ru/external/2014/03/65.png

Thanks for sharing

Which mod doing that without Changing a template manually?

ramesh_umk3
03-07-2014, 05:55 AM
Its not any MOD just Manual Template Editing below is the code

{vb:rawphrase posts} : <a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw post.userid}&amp;contenttype=vBForum_Post&amp;showposts=1" title="View {vb:raw post.username}'s posts">{vb:raw post.posts}</a>

DemOnstar
03-07-2014, 03:26 PM
Can this be done with user threads?

Clicking on user threads to take you to threads created by the user?

JGreig
03-08-2014, 01:25 AM
Can this be done with user threads?

Clicking on user threads to take you to threads created by the user?

Try this:

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

DemOnstar
03-08-2014, 02:50 AM
Ok, thanks for the response.

I have opened postbit_legacy but not sure what I am looking for.

Am I adding this or replacing something in there?
Does it go before something or after something?

Cheers.

XiTCLUB
03-08-2014, 06:02 AM
Ok, thanks for the response.

I have opened postbit_legacy but not sure what I am looking for.

Am I adding this or replacing something in there?
Does it go before something or after something?

Cheers.

You need to find the code and replace it with new one, read 1st post carefully

DemOnstar
03-08-2014, 09:49 AM
Can this be done with user threads?

Clicking on user threads to take you to threads created by the user?

Try this:

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

You need to find the code and replace it with new one, read 1st post carefully

Sorry, I think I may have confused things here..
It isn't user posts I am dealing with, it is user threads. The code above is a suggestion that I wish to try but not sure where in postbit_legacy to place the code.

Thanks again..

JGreig
03-09-2014, 02:06 AM
Add

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

Below

{vb:raw post.posts}

Or however you have your code in your postbit.

DemOnstar
03-09-2014, 02:38 AM
Tried that idea Mr Greig, got this.


Message
Please add more constraints to your search. Searches that return all or most of the database are a bad idea.


How is Scotland? Hope not too cold.

faisaly.com
03-09-2014, 02:40 AM
Message
Please add more constraints to your search. Searches that return all or most of the database are a bad idea.

same message i received!

JGreig
03-11-2014, 09:28 PM
Sorry, my mistake. This should work:

{vb:phrase threads}: <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>