vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Latest Posts on homepage - non-javascript method (https://vborg.vbsupport.ru/showthread.php?t=259041)

Jon12345 02-17-2011 07:13 PM

Latest Posts on homepage - non-javascript method
 
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.


All times are GMT. The time now is 05:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00954 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete