PDA

View Full Version : Latest Posts on homepage - non-javascript method


Jon12345
02-17-2011, 07:13 PM
I want to display some latest posts and maybe also latest threads on the homepage of my site. However, I do not want to use Javascript since posts don't get picked up by the search engines, as bots can't read the Javascript.

So, any code that can show the latest threads? Do you have to query the mysql database or better to use the RSS feed?

Oh, I would like the option to query just one particular forum section too.

I am using 3.8.6.

Thanks,

Jon

Naan-Kadavul
02-17-2011, 09:43 PM
Try Latest Threads modification. That will work...and search engines will be able to crawl.

Jon12345
02-18-2011, 09:23 AM
My homepage is not a forum page - it is a html page. Therefore, I don't think the Latest Threads mod will be suitable.

Anyone got a solution for an html page that is non-javascript?

Lynne
02-18-2011, 03:57 PM
If it really is an html page, and not just saying that, then you cannot use any php and you will only be able to use javascript.

Jon12345
02-19-2011, 10:19 AM
Well, its html parsed as php. But say php then.

Lynne
02-19-2011, 05:35 PM
If it's php, then you can do a query. Look at the Lastest Threads modification that was mentioned above. You should be able to get the code from there.