(01-20-2011 08:38 PM)ZiNgA BuRgA Wrote: [ -> ] (01-19-2011 10:13 PM)clemens Wrote: [ -> ]Will we be able to write our own sorting implementation? Or will you just cover the mainstream of sorting classes?
And how would one write their own sorting implementation?
Well, that you will be able to extend the class with your own, in essence: being able to override the SQL that is being used for returning the result set I presume (not sure how sorting is handled in your development function right now).
This is interesting, because not necessarily everything will be sorted on alphabetic or numeric value, there may also be custom sorting methods that require knowledge of the data in order to work.
For example: a combination of two values instead of just one. Should I be able to extend the sorting mechanism in an easy way, then I would be able to do more complex sorting operations on a list of data.
Makes sense?
Thanks for XThreads, it rocks!
Heya, Zinga. Dunno if you caught a portion of my other post which was about the next newest/oldest link.
Just got some ideas again.
- An option where a user could filter threads to display threads created by other users in their buddy list? I think that would be pretty cool for forums which acts more like blogs or a place for status updates.
- This one's a bit of a weird thread filtering idea but I think this one can also definitely suit forums which would act more like blogs/news feeds/status updates. How about being able to filter threads by thread creation month, thread creation day and thread creation year?
(01-20-2011 10:41 PM)clemens Wrote: [ -> ]Well, that you will be able to extend the class with your own, in essence: being able to override the SQL that is being used for returning the result set I presume (not sure how sorting is handled in your development function right now).
This is interesting, because not necessarily everything will be sorted on alphabetic or numeric value, there may also be custom sorting methods that require knowledge of the data in order to work.
For example: a combination of two values instead of just one. Should I be able to extend the sorting mechanism in an easy way, then I would be able to do more complex sorting operations on a list of data.
So your own code?
Maybe if I write more of a plugin API.
Otherwise, you could try to modify how MyBB sorts it directly. I admit it's not the easiest thing to do though.
Thanks for the explanation.
(01-21-2011 07:13 AM)PK8 Wrote: [ -> ]- An option where a user could filter threads to display threads created by other users in their buddy list? I think that would be pretty cool for forums which acts more like blogs or a place for status updates.
I'll have to consider that one, as it's going a bit far I think.
(01-21-2011 07:13 AM)PK8 Wrote: [ -> ]- This one's a bit of a weird thread filtering idea but I think this one can also definitely suit forums which would act more like blogs/news feeds/status updates. How about being able to filter threads by thread creation month, thread creation day and thread creation year?
That's an interesting idea, but a problem that crops up is timezones...
(01-20-2011 08:38 PM)ZiNgA BuRgA Wrote: [ -> ] (01-19-2011 07:13 PM)leefish Wrote: [ -> ]I want to JUST get the count of the downloadable file, rather than the count of all aids. When I tried to further refine that query it broke it.
Add a "where field='my_download'" to the query?
(01-19-2011 07:13 PM)leefish Wrote: [ -> ]To be more precise, when I added the requirement that the aids I pulled via the above query had to have no thumbnail text (which is only true of non-picture attachments) then ALL the xthreads thumbnails (existing ones too) on the forum no longer showed the image, just the url.
I can't see how a select query or an update query on an unrelated table would modify XThreads behaviour...
What are you modifying exactly?
Ok, I finally got this to work (i.e filter out crap about downloading pictures) - indeed, I was over complicating as usual. I modified the select query to read:
PHP Code:
$result = mysql_query("SELECT aid, tid , uid, thumbs FROM mybb_xtattachments WHERE thumbs='' AND aid=".$aid);
|
And now its working fine as far as I can see. For some weird reason every time a user viewed the lightbox it counted that as a download of the picture attachment.
If you're requesting the main (non-thumbnail) file, it will consider it to be a download.
Aha. And as the lightbox does call that file then it was counting the download. I DID wonder why it was so random. Anyway, its fixed, as far as I can see. Now to get the stats to show up IN mybb.
First Zinga, thanks for making such a great plugin. I'm really looking forward to using this as much as possible.
I have one problem however. And need some insight anyone may offer. Are there any specific variables that must be set within .htaccess in order to use xthreads_attach.php properly?
I'm currently trying to utilize the gallery page for xthreads. And after completing the install and uploading an image to the gallery. Upon doing so and browsing to the showthread.php page results in the image just displaying the text "image" instead of it's proper image file. When you click the image link it displays the error "Received malformed request string." I can verify that the image file does infact get uploaded to it's corresponding "uploads/xthreads_ul" folder. Renaming the .upload and .thumb files to their proper file extension and then browsing them in a browser yeilds the correct image displaying. So I know the files are being uploaded and stored properly.
I setup a temporary subdomain and attempted to try this on a clean install of mybb. And the results were the same.
I had alot of problems with my host, and I truly hate them for the way they do things. I remember having to add alot of switches to .htaccess to get the google SEO plugin working correctly because of the settings they put on their webservers by default.
Any insight or suggestions anyone could provide would be much helpful. Thanks in advance.
Does the image thumbnail displayed in threadlist?
(01-23-2011 04:05 AM)RateU Wrote: [ -> ]Does the image thumbnail displayed in threadlist?
No same thing. It just displays the text "image". I just did a quick test and I commented out the "malformed request string" section within the xthreads_attach.php, the result lead me to a "Specified attachment not found." error. I'm wondering if it has something to do with my paths. Nevermind, I just tried to do a normal attachement in another forum and the download worked. Hrm..
And are you sure about this setting?
(04-24-2010 10:22 AM)ZiNgA BuRgA Wrote: [ -> ]You may need to CHMOD the uploads/xthreads_ul/ folder to 0777