Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2273

Extension Writers Discussion • Re: Please help me understand the ( for loop ) in templates

$
0
0
So something like this?

Code:

$sql = "SELECT randomjokes_text FROM " . $this->table . " ORDER BY $random";$result_jokes = $this->db->sql_query_limit($sql, 1);$randomjokes_text = $this->db->sql_fetchfield('randomjokes_text');$this->template->assign_vars(array('JOKES_TEXT'    => html_entity_decode($randomjokes_text),'S_RANDOMJOKES_ENABLED' => !empty($this->config['randomjokes_enable']),'S_RANDOMJOKES_ENABLED_PORTAL' => !empty($this->config['randomjokes_portal_enable']),));

Statistics: Posted by Stoker 4.0 — Wed Apr 16, 2025 6:15 pm



Viewing all articles
Browse latest Browse all 2273

Trending Articles