Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Feb 2012, 23:34
zoro zoro is offline
 
Join Date: Dec 2002
Question custom table variable in postbit

Hello,

i looked everywhere for it but just cant find it.
i got an custom table in my database called info there i got two fields:
1. userid
2. points

i want to show the points in the postbit...

i need to find a way to display every users points in the postbit below his name.

and yes i know how can i add and custom field, but its not just custom field its an custom table.

so i be glad if anyone can show me how can i get that points variable and register it in the postbit template for every user.

thanks
Reply With Quote
  #2  
Old 22 Feb 2012, 23:58
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
Create a new plugin using hook location showthread_query and this code:


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


Then in the postbit template you should be able to use {vb:raw post.points}.
Reply With Quote
  #3  
Old 23 Feb 2012, 00:34
zoro zoro is offline
 
Join Date: Dec 2002
thanks man!!! you are great :P
works like a charm!
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 01:08.

Layout Options | Width: Wide Color: