The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Article and Review System

Geek Article and Review System GARS is the mega popular system for turning forums into articles, tutorials, or even reviews.

Advertisement
This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2006, 02:03 PM
DerTobi75 DerTobi75 is offline
Member
 
Join Date: Sep 2005
Posts: 68
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Question Sort by "First Post Date"?

Hi,

I am thinking about some kind of a news forum and would like to do this with GARS!

So, is it possible to sort threads by the first post date and not by the last reply date?!

Tobi
Reply With Quote
  #2  
Old 01-31-2006, 10:47 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Not by default, however Ill see if I can add the feature.
Reply With Quote
  #3  
Old 02-01-2006, 12:33 PM
DerTobi75 DerTobi75 is offline
Member
 
Join Date: Sep 2005
Posts: 68
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

That would be great, can you say how long that might take to add such a feature?! Just for my information, I do not want to hurry you

Tobi
Reply With Quote
  #4  
Old 02-01-2006, 02:05 PM
DerTobi75 DerTobi75 is offline
Member
 
Join Date: Sep 2005
Posts: 68
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Uh, and btw way, I played a bit with the templates! Is it possible to get the date of the first post of a thread and show it in GARS_forumdisplay?!

Tobi
Reply With Quote
  #5  
Old 02-01-2006, 07:02 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Cant promise anything right now. Its not too much trouble to work in though so theoretically it could be next week.

Off the top of my head, you want to look at the GARS_threadbit template
Reply With Quote
  #6  
Old 02-02-2006, 02:01 PM
DerTobi75 DerTobi75 is offline
Member
 
Join Date: Sep 2005
Posts: 68
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Quote:
Originally Posted by The Geek
Cant promise anything right now. Its not too much trouble to work in though so theoretically it could be next week.
Ok, would be cool


Quote:
Originally Posted by The Geek
Off the top of my head, you want to look at the GARS_threadbit template
Right, but I also thought about a design like:

Date 02.02.06
--------------------------------------------
Title G
Synopsis G

Title F
Synopsis F


Date 31.01.06
--------------------------------------------
Title E
Synopsis E


Date 29.01.06
--------------------------------------------
Title D
Synopsis D

Title C
Synopsis C

Title B
Synopsis B


Date 28.01.06
--------------------------------------------
Title A
Synopsis A

And so on, and for that, I guess, it might be easier to modify GARS_forumdisplay instead of GARS_threadbit?!

Regards,

Tobi
Reply With Quote
  #7  
Old 02-02-2006, 05:36 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

You want to group the threadbits by date? If so, thats a bit more work as you will need some logic (code) to do that for you.
Reply With Quote
  #8  
Old 02-02-2006, 06:41 PM
DerTobi75 DerTobi75 is offline
Member
 
Join Date: Sep 2005
Posts: 68
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

If possible, yes I would like to group threadbits by date!

Can this be done using vBs PlugIn System or do I need to make file chances within your code?!

Tobi
Reply With Quote
  #9  
Old 02-02-2006, 07:38 PM
The Geek's Avatar
The Geek The Geek is offline
Senior Member
 
Join Date: Aug 2005
Posts: 6,717
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

I think you are looking at a potentially complex plug in. There isnt really a hook clause to add a group by command in the SQL (which would be the easiest) though it could still be tweaked.

I dont think it would be very straight forward
Reply With Quote
  #10  
Old 02-02-2006, 08:04 PM
DerTobi75 DerTobi75 is offline
Member
 
Join Date: Sep 2005
Posts: 68
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 
Default

Hrm, I never thought of something complex, but something really simple!

My english is killing me, but I will try to explain it

When it is possible just to get the first post date, I could compare dates!

So, let's say we got a couple of news (threads) which are orderd by their "first post date", not grouped!

You have a mysql query and to work out the result, you are using while...

For the first thread there is nothing to compare, so I set $show_date = $thread['first_post_date']! At the template I set a conditional, if $show_date is set, show it. And then set $temp_date = $thread['first_post_date']!

The loop goes on, second thread! And now I can compare $temp_date with $thread['first_post_date'] for the second thread. If the dates are equal, $show_date is empty, if the dates are not equal $show_date = $thread['first_post_date'] and because of the template conditional it will be shown!

I hope, that is not to naiv and can be done somehow

Tobi
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick trick for "Post Thank You Hack" & "Passive video" hack cclaerhout Geek Article and Review System 2 08-13-2009 06:36 PM
dont can sort "last post" hohleweg Geek Article and Review System 1 09-01-2008 12:01 AM
Remove "Post As User" option trana Geek Article and Review System 3 02-23-2007 09:13 AM
Where did the "Sort by Rating" go? waltercat Geek Article and Review System 1 02-15-2007 04:27 PM
Sort by post date? Pirotess Geek Article and Review System 2 11-01-2005 10:16 PM


All times are GMT. The time now is 06:28 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.