Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Using XThreads Custom Thread Fields For Plugin Settings
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #34
RE: Using XThreads Custom Thread Fields For Plugin Settings
Ok, sorry about that mistake. I have edited the latestthreads block for you, but I am not as good and secure a coder as ZingaBurga or RateU, so I am not 100% sure it is secure.

basically, I have added a variable called $excluded and in there you can put the forums you want to have excluded from the block. There may well be a smarter way to do it, but I don't know it.

You need to open the block in your php editor (notepad++ is what I use) and put which forums you want to have excluded

Its this line

Code:
	$excluded = "AND fid NOT IN ('2')";


If you wanted to exclude forums 3 and 7 then you replace/edit that line as in the line below:

Code:
	$excluded = "AND fid NOT IN ('3','7')";


The attached file is a replacement for the proportal latest threads block. You might want to put the original somewhere safe.



Attached File(s)
.zip  block_latestthreads.zip (Size: 1.54 KB / Downloads: 512)


[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 06-20-2011 06:55 AM by leefish.)
06-20-2011 06:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Using XThreads Custom Thread Fields For Plugin Settings - leefish - 06-20-2011 06:53 AM

 Standard Tools
Forum Jump: