vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Need to query using PHP module (https://vborg.vbsupport.ru/showthread.php?t=313878)

ajmalsalim 08-23-2014 06:47 AM

Need to query using PHP module
 
Hi,

I am trying to add a php module using site builder which shows latest posts from the database. I saw options using Search Module.

But I did not want that search module and it will be easy if I can write PHP MySQL queries. Is that possible?

I have tried as discussed on this thread but its showing Failed Extension.

What is the best way to do this? Creating an extension ?

Dead Eddie 08-23-2014 12:18 PM

Why don't you want to use the search module?

Lynne 08-23-2014 03:51 PM

As Eddie asked, what is wrong with using the search module. Or, more specifically, what is it you want to do that the search module cannot?

ajmalsalim 08-24-2014 08:46 AM

I am getting an error. And I would like to customize the results showing title name only with some css changes. Also I would like to show a box that shows the posts based on their likes order.

See http://www.mytokri.com/discuss/

Lynne 08-24-2014 04:14 PM

I get a 404 error when trying to view that page. What is the exact error you are getting with the search module?

Anyway, yes you may put a query into a PHP module. What code have you tried already and what was the result?


All times are GMT. The time now is 10:24 AM.

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.01530 seconds
  • Memory Usage 1,713KB
  • 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
  • (5)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