MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks Firefox Wins - I should explain what my setup on leefish IS perhaps: I have a friend with a huge VBulletin site who took pity on me whining about my crappy host and gave me some space on the dedicated server that his site runs on. He set me up a very basic access using WebMin and I have no idea how any of it works - it is not a server I would EVER practice on as it is not mine and hosts the biggest site of it's type in the world. I am terrified that I might "break" the real site.

However, I also discussed this with Pavemen and he agreed I definitely needed a staging area - FIRST upload then MOVE to forum x and on move activate the MyBB publisher activities. It was just too much happening all at once.

BUT - none of this is actually happening on leefish.nl - it is happening on blackcanvas.net which is hosted on a shared hosting plan at HawkHost.

Right now I am trying to work out how to get a user with no mod powers to set a post to unapproved via button in postbit. That will make my plan for my staging area complete.
(12-27-2012 01:08 PM)leefish Wrote: [ -> ]However, I also discussed this with Pavemen and he agreed I definitely needed a staging area - FIRST upload then MOVE to forum x and on move activate the MyBB publisher activities. It was just too much happening all at once.
Sounds like a horrible fudge fix which really doesn't address the underlying problem.
I see it getting tiring real fast, assuming you manage to set it up all correctly.
Well, I already made it for leefish (a forum where members upload their files to) - that acts as a staging area. I made it so that users could upload files and images and make their posts look pretty without having to make the forum moderated. That way they can submit the post and still edit it if they like. I don't want a load of pr0n on my board you see. They can view only their own threads and then I have the option to EITHER move the post myself or I have some users who are section moderators who still can only see their own posts and they hit a button (APPROVE ME) that moves it for them. Of course, my users on leefish are all part of another very big forum with a moderation queue that they are not allowed to bypass and so they see being able to approve it themselves as a privilege not a chore.

I made all this using XThreads and Custom Moderation Tools. MyBB Publisher has an option that it will publish on MOVE - so when it gets moved by hitting the "APPROVE ME" button then it goes live on my downloads forum and on Tumblr/Facebook but the other files etc are already loaded so no peaks. The only time I have a problem is knowing if the uploader is ready to move the files. That is why I made a plugin that sets the post to unapproved, but it stuffs up all my forum counters (my plugin). The reason I made it so that it sets things to unapproved is that I have a sort of dashboard counter thing in my header that tells me I have unapproved threads in that forum so I don't need to go check it everyday.

The thing IS - my plugin sucks (counters stuffed) and so to reset it I have to run a recount and rebuild on forum counters. That is ok on leefish as I am the only admin - but there is another admin on this board I am on, and him whining every day that the counter is bust and needs a rerun WOULD get tiring real fast. So right now, my point of delay is the informing me that the item is ready to move - the rest is done already on leefish.
I wasn't aware that you actually wanted a staging area.  IMO MyBB should make it so that moderated threads are viewable to the creator, but I suppose your solution is sufficient for what you have.
(12-27-2012 07:10 PM)ZiNgA BuRgA Wrote: [ -> ]I wasn't aware that you actually wanted a staging area.  IMO MyBB should make it so that moderated threads are viewable to the creator, but I suppose your solution is sufficient for what you have.

That would certainly help. I think there is a plugin for this - I will look for that.
Thanks for the great update Zinga.

I'm trying to set up a filter chain, but I'm unsure how to accomplish exactly what I would like to do.

Essentially, I want to take images of variable size and make them all fit into 150x200 thumbnails. I think that what I need to do is resize and then crop, e.g.

Take an 800x600 image and resize it to 267x200, then crop to 150x200.
In the case of a 600x1000 image, I'd resize it to 150x250, then crop it to 150x200.

Am I on the right track here? Which command should I use to resize the image at first? I'm thinking scale, but I'm not sure.

Code:
scale_min(150,200)->crop(150,200)

Thanks!

So I've done this:

indexthumb=scale_min(150,200)->crop(150,200)

So this should work, yes?

Code:
<img src="{$GLOBALS['threadfields']['looks_image']['thumbs']['indexthumb']['url']}">

When I submit custom thread field changes, I see this flash on the screen quickly as the page refreshes. managed to snap a pic in time.

[Image: vju81.png]

Also, is there a way to control the compression on an image when it is cropped/scaled?
(12-30-2012 01:46 PM)brad-t Wrote: [ -> ]So this should work, yes?
Yes.

(12-31-2012 02:48 PM)brad-t Wrote: [ -> ]When I submit custom thread field changes, I see this flash on the screen quickly as the page refreshes. managed to snap a pic in time.
Thanks for finding that!
I've fixed it, although it shouldn't actually affect anything - ie everything should work as expected regardless of the error.

(12-31-2012 02:48 PM)brad-t Wrote: [ -> ]Also, is there a way to control the compression on an image when it is cropped/scaled?
What do you mean by compression?

If you're referring to the JPEG compression level (this thread you made) you can append "->jpeg(0, 75)" to the chain, where 75 means 75% quality, or force a PNG conversion by appending "->png()", eg

indexthumb=scale_min(150,200)->crop(150,200)->png()

See Documentation\undoc.html for a full list of available filter functions.
Reference URL's