Notify a new post on another site page (Technics)

by Alfie ⌂ @, Vienna, Austria, Tuesday, April 28, 2015, 16:07 (940 days ago) @ Jean-Michel2

Hi Jean-Michel,

2) by getting the info from the MLF database. But then, access must be granted to a third party.

Why? Given what you stated in your post I assume that you run the site (say example.org) and the forum either in a subdirectory (example.org/forum) or subdomain (forum.example.org). Where does a third party come into play here?

Examples from my site:

In your case query the DB limiting to one (the latest) result within the last two days. Suggestion: In the main-page write sumfink like <?php include('foo.inc.php'); ?>. Within foo.inc.php query the database and style the result accordingly: "New!" with "visibility:hidden;" if there is nothing new or with "visibility:visible;" otherwise. More elegantly, if you have respective classes in a CSS.

3) by retrieving a certain predefined flag on the forum home page. This does probably not exist today.

Yep.

What is the easiest way to get this info ?

Maybe I’m biased but I would opt for 2).

--
Best regards,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)


Complete thread:

 RSS Feed of thread

powered by my little forum