Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Plugin aint working, what am I doing wrong

changed some things it’s now:

function get_portal_topics() {

global $bbdb, $bb_table_prefix;

return $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = 1 ORDER BY topic_time DESC LIMIT 0,10");

}

Still same error when calling using:

<?php $portal_topics = get_portal_topics(); ?>

<?php foreach($portal_topics as $topic) :

Etc etc

Error:

Fatal error: Call to undefined function get_portal_topics()

Skip to toolbar