vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   What is the correct way to read and render post info (for ajax) (https://vborg.vbsupport.ru/showthread.php?t=242711)

vespillo 05-17-2010 04:50 PM

What is the correct way to read and render post info (for ajax)
 
Hi all,

I am looking into making an AJAX based modification for my boards that would basically just pull new posts as the user scrolls down the page (and eliminate the pagination). I'm at the very beginning stages of planning how I would accomplish this so I'm not yet ready to go into the discussion regarding performance, etc, but I do have a question I am having difficulty answering.

What would be the best way to pull post information from the database and then render it using the postbit templates for display? I have to imagine that there's an article/faq/how to that I'm missing in my searches that explains a bit better how to approach this task.

I've tried searching for info on a database abstraction layer, but the only articles are for the 3.x series, and I'm not sure how much of that still applies for the 4.x branch.

Do you have any helpful links that might get me on the right path? The alternative, of course, is to write it all myself, but in the interest of upgradability and DRY, I would much prefer to use a vB method.

Hope that is clear enough and thanks for reading :)


All times are GMT. The time now is 11:48 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.01465 seconds
  • Memory Usage 1,699KB
  • 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
  • (1)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