PDA

View Full Version : Need to query using PHP module


ajmalsalim
08-23-2014, 06:47 AM
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 (http://www.vbulletin.com/forum/blogs/mark-b/3931714-how-to-create-a-latest-updated-topics-module-in-vbulletin-5-connect).

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 (https://vborg.vbsupport.ru/showthread.php?t=302307) 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?