Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
How to update thread field on new post
-=Sniper=-
Join Date: May 2002
Posts: 605

by -=Sniper=- -=Sniper=- is offline 29 Jun 2006

I think this should help someone, I posted this as a question but now have it working.

First add the field foobar to the threads table (as an example). This is true/false based field, you will have to add your own checks, e.g who can update foobar etc

In the quick reply/new reply template/s add this HTML in the thread management area quick reply area


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

In threaddata_start


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

In newpost_complete


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

In newreply_post_start


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

I hope this helps, the advanced coders please improve if needed

Last edited by -=Sniper=-; 29 Jun 2006 at 16:45..
Views: 2734
Reply With Quote
Comments
  #2  
Old 29 Jun 2006, 18:49
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Moved to Articles as a "how to".
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #3  
Old 30 Jun 2006, 13:11
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Real name: Dean Clatworthy
I'm pretty sure you don't have to instantiate a new instance of the Thread datamanager class.
__________________
Dean Clatworthy - Web Developer/Designer
Reply With Quote
  #4  
Old 30 Jun 2006, 13:17
-=Sniper=-'s Avatar
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
I based the code on how vb deals with openclose/sticky threads, when making a new post, so would be interested if we don't have to instantiate another instance of the thread manager class
Reply With Quote
Reply



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

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 12:59.

Layout Options | Width: Wide Color: