Argh..bummer. I'm getting some weird stuff happening now! I am using the following code as global;
Code:
sub {
my $globals = do("$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}/globals.txt");
my $images = $globals->{image_location};
my $html = qq|
<tr>
<td><img src="$images/p_08.gif" width=119 height=20></td>
</tr>
<tr>
<td background="$images/p_10.gif" class="topics" height="19"><a href="<%build_root_url%>"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Home</span></a></td>
</tr>
<tr>
<td><img src="$images/p_11.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_12.gif" class="topics" height="19"><a href="<%db_cgi_url%>/add.cgi?ID=<%category_id%>"><img src="$images/spacer.gif" width="10" height="1" border="0">::<span lang="en-gb">
Add</span></a></td>
</tr>
<tr>
<td><img src="$images/p_13.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_14.gif" class="topics" height="19"><a href="<%db_cgi_url%>/modify.cgi?ID=<%category_id%>"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Modify</span></a></td>
</tr>
<tr>
<td><img src="$images/p_15.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_16.gif" class="topics" height="19"><a href="<%build_root_url%>/New/"><img src="$images/spacer.gif" width="10" height="1" border="0">::<span lang="en-gb">
New</span></a></td>
</tr>
<tr>
<td><img src="$images/p_17.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_18.gif" class="topics" height="19"><a href="<%build_root_url%>/Cool/"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Cool</span></a></td>
</tr>
<tr>
<td><img src="$images/p_19.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_20.gif" class="topics" height="19"><a href="<%build_root_url%>/Ratings/"><img src="$images/spacer.gif" width="10" height="1" border="0">::<span lang="en-gb">
Top Rated</span></a></td>
</tr>
<tr>
<td><img src="$images/p_19.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_20.gif" class="topics" height="19"><a href="<%db_cgi_url%>/subscribe.cgi"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Newsletter</span></a></td>
</tr>
<tr>
<td><img src="$images/p_19.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_20.gif" class="topics" height="19"><a href="<%db_cgi_url%>/jump.cgi?ID=random"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Random Link</span></a></td>
</tr>
<tr>
<td><img src="$images/p_19.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_20.gif" class="topics" height="19"><a href="<%db_cgi_url%>/search.cgi"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Search</span></a></td>
</tr>
<tr>
<td><img src="$images/p_19.gif" width=119 height=1></td>
</tr>
<tr>
<td background="$images/p_20.gif" class="topics" height="19"><a href="<%db_cgi_url%>/user.cgi"><img src="$images/spacer.gif" width="10" height="1" border="0">::
<span lang="en-gb">Login</span></a></td>
</tr>
|;
return $html;
}
The idea is to allow people to edit the menu as a global...but I'm getting the problem that the <%tags%. are not being passed. Is there any way I can access them directly? Maybe something like $IN->, or am I wishful thinking agian?
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!