Log in

View Full Version : adding code under the description


harmor19
03-23-2006, 03:51 AM
On the main forums I'm trying to add a code under the description.

Hook: global_start

Code
$getsubdomain = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user ORDER BY RAND() LIMIT 3");
while($host = $db->fetch_array($getsubdomain))
{
if (empty($host['subdomain']))
$subdomain .= $host['subdomain'];
else
$subdomain = "test";
}

In the forumhome_forumbit_level1_nopost and forumhome_forumbit_level1_post I added
<if condition="$forum[forumid] == 42">
<b>Featured Sites:</b> $subdomain
</if>

It doesn't seem to work.