MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Actually just an input field! We do things like "medieval" or "alternate future" etc there.
Try it first here (I've just set up a quick demo):
http://mybb.xp3.biz/newthread.php?fid=3

Since I don't have the rating images, so the rating is just displaying the name of the rating image should be loaded.

Is that what you want?
YES! This is exactly what I want!
hi, i'm using xThreads on my new site http://www.automotonet.com

i have a question.I want to display a field (newthread template)  only if a condition is true.

For example i have 2 custom fields....fieldA and fieldB

i want to create a code to check....if condition1 is true then i want to display fieldA and if condition1 is false then i want to display fieldB


*** by the way i have another question: is it possible to use calculation into fields? for example i want to add a number X to field1 and the field2 calculate and store automatically the X*2 .

thanks
@ashkir: I'll create the tutorial soon.

(10-25-2015 09:09 PM)tempo Wrote: [ -> ]i have a question.I want to display a field (newthread template)  only if a condition is true.

For example i have 2 custom fields....fieldA and fieldB

i want to create a code to check....if condition1 is true then i want to display fieldA and if condition1 is false then i want to display fieldB
The condition is based on what?

(10-25-2015 09:09 PM)tempo Wrote: [ -> ]is it possible to use calculation into fields? for example i want to add a number X to field1 and the field2 calculate and store automatically the X*2 .
So you want to store (save to db) the calculation result into field2?
(10-25-2015 09:09 PM)tempo Wrote: [ -> ]*** by the way i have another question: is it possible to use calculation into fields? for example i want to add a number X to field1 and the field2 calculate and store automatically the X*2 .
If field2 is calculated from field1, is there any need for field2 at all?  Just perform the calculation when displaying the output.
The only downside on displaying the field on output is that it isnt possible to use sorting/filters on that value as it isnt in the database.
Updated to v1.67:
  • add workaround for HHVM generating bad evalcache file (thanks to Sir Tempest for reporting)
  • fix for MyBB's new 'All Forums' option for pulling portal announcements (thanks to ollie2015 / RateU for finding)
  • fix issue with XThreads trying to build threadfield cache before installation (thanks to RateU for finding)
  • fix filterxt causing SQL error in MyBB 1.8.6 (thanks to Shane777 for finding)
  • fix "Click to edit" message showing up if no post is entered for a thread (thanks to RateU for finding)
  • fix for moderator tools' threadfield options not saving (thanks to chas for finding)
  • add missing postbit templates for postbit_first redirection (thanks to RateU for the fix)
  • no longer show non-threadfield options in the modtools field (since it's unnecessary and doesn't work anyway)
Thank you for the upgrade.
EDIT: Nevermind, missed a template edit!

Works great, thank you!
Reference URL's