Thread: Show Thread Enhancements - MARCO1 BBCODE Hide Tags [ hide] [/ hide]
View Single Post
  #280  
Old 24 Apr 2011, 15:15
Lestat_ Lestat_ is offline
 
Join Date: Apr 2011
I altered the xml import a little bit and added this line of code



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

to all the



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

so after adding the code you get :


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

It is a bit of hardcoding because of the (6,7) but can easily be extended with parameters i guess, so basically I added one more count to the sql select which checks if the current user is in group 6 or 7 (mods or admins) and if so, it raises the count, which causes the hidden text being visible regardless the current user replied or not.
this little adjustment fixes the "scalar value" error
Reply With Quote