Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Apr 2011, 15:12
gedsta gedsta is offline
 
Join Date: Feb 2006
Show only starter's posts

Hi chaps

Does anyone know what code to use so as to just show the original thread starters posts in a thread.

This has been specifically asked for by user's and would appear in the thread tools dropdown.

I have seen it done on another forum, but it is the code etc that I would actually place into the template so to speak.

Here is the sort of code off a forum that uses it.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

TIA
Reply With Quote
  #2  
Old 11 Apr 2011, 21:46
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
You could make a plugin using hook showthread_query_postids and this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I tried it but didn't do a lot of testing or anything.
Reply With Quote
  #3  
Old 12 Apr 2011, 19:24
gedsta gedsta is offline
 
Join Date: Feb 2006
Originally Posted by kh99 View Post
You could make a plugin using hook showthread_query_postids and this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


I tried it but didn't do a lot of testing or anything.
Hi thanks for that.

What else would I need to do to implement this?
Reply With Quote
  #4  
Old 12 Apr 2011, 20:50
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Well I guess in template SHOWTHREAD you could search for 'thread tools menu' and then add something like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Of course you want to add it in the right place (inside the table def and in between existing rows or after the last one). Also, the code above assumes you've put a filter icon image in your style button directory. You could also make a phrase for the text instead of coding it in the template if you wanted.

BTW, this will display the thread with just the thread starter's posts, but it won't 'remember' that setting - once you click on something else you'll be back to seeing all the posts.
Reply With Quote
  #5  
Old 12 Apr 2011, 21:13
gedsta gedsta is offline
 
Join Date: Feb 2006
Originally Posted by kh99 View Post
Well I guess in template SHOWTHREAD you could search for 'thread tools menu' and then add something like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Of course you want to add it in the right place (inside the table def and in between existing rows or after the last one). Also, the code above assumes you've put a filter icon image in your style button directory. You could also make a phrase for the text instead of coding it in the template if you wanted.

BTW, this will display the thread with just the thread starter's posts, but it won't 'remember' that setting - once you click on something else you'll be back to seeing all the posts.
Great thanks, it works so far, as per the limitations re remember that setting then so be it, it is better than what was there yesterday.

Thanks a lot.

--------------- Added 13 Apr 2011 at 00:49 ---------------

Doh!

Members are now moaning that on page 2 of a multi page thread, it has reverted back to standard behaviour.

Any ideas of how this could be thread wise?

As in all pages?

Last edited by gedsta; 13 Apr 2011 at 00:49. Reason: Auto-Merged DoublePost
Reply With Quote
  #6  
Old 21 Apr 2011, 20:45
RedDevil's Avatar
RedDevil RedDevil is offline
 
Join Date: Mar 2008
Real name: Steve
Is this possible on VB4? doesnt seem to work probably different coding now from thos
Reply With Quote
  #7  
Old 21 Apr 2011, 21:40
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Originally Posted by gedsta View Post
Doh!

Members are now moaning that on page 2 of a multi page thread, it has reverted back to standard behaviour.

Any ideas of how this could be thread wise?
Sorry, I somehow missed that post. You could try changing the above plugin code to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


That seems to make the page controls work OK but there's probably something else that won't work...

Originally Posted by Red-Devil View Post
Is this possible on VB4? doesnt seem to work probably different coding now from thos
I don't know, I'm planning to set up a vb4 test site soon so maybe I'll take a look (if no one else answers by then).
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:47.

Layout Options | Width: Wide Color: