Dragonfly CMS v9 ⇒ CPG-BB (forum) :: Archives ⇒ "messages made in the last of 24 hours" and "my posts" links :: Archived ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index Modules & Blocks CPG-BB (forum) ⇒ Archives

Archived ⇒ "messages made in the last of 24 hours" and "my posts" links


Hi,

How can I create the link that shows all messages that are made in the last of 24 hours, or in last 48 hours?

And how can I make the link that shows all the posts that are made by username.

Both link needed to the forum (viewforum.php and to the main page of forum)

Thank you! 🌹

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1


Anybody??

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1


For all posts by a user (as in your Profile), dragonflycms.org/Forum...iraja.html

For the past x hours, you would need a specific hack

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Phoenix wrote


For the past x hours, you would need a specific hack


And where I can find this kind of hack? Rolling Eyes

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1


The "hack" is not just a simple link - it requires significant code changes to the existing search function.

For that matter, a completely separate search function/file would probably be a better way of approaching it. On larger, high activity forums, you would also need the ability to restrict its use to avoid overloading your server.

A new approach to search is being examined, but it's not going to happen in the short term. In the interim, you could try posting a bounty at dfbounty.org

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


ForumsPro does have it, you could either use it or look at it to see how they did it.

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1


hmm, are you really sure about that?

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Yeah... diagonally.org/Forums.html top right. Seems to work OK... why?

Diagon Alley - Top Design

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1


Good, coz it's not really a search, more of a listing that uses the templates.

Mind you, it doesn't really display all the posts, just the last posts.

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


It's crude, but works and will get you by for now - attached is a modified search.php file called lastposts.php - unzip and add it to your /modules/Forums/ directory. It will only work for registered members.

If you want the posts for the last 1 day, the LEO link is
Forums/lastposts/search_id=last/days=1.html

For the last 2 days, the LEO link is,
Forums/lastposts/search_id=last/days=2.html
etc.

You can add the link to your template or to your main menu.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Thank you, its working!!! Kiss

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1


And what must be changed that the results show last topics, not posts?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1


Do not work with the newest DF... Sad

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 2.0 / 5.0.67 / 5.2.6 / 9.2.1


I'm not sure what your problem is but it works with all DF versions from at least 9.1.1 up to, and including, current CVS.

DonationsPro for DragonflyCMS & SMF

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC