MyBB Community Forums

Full Version: Help with Portal links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've added an image link on the portal page that gets displayed in all "News Announcements" posts.

In the image URL path used in the template. I'm trying to use MyBB code to link the image back to the News Forum itself, not the posts (just that forum). In my case this is the Image URL I'm using right now below.

<a href="{$mybb->settings['bburl']}/forum-2.html"><img src="{$theme['imgdir']}/f-2.gif" alt="News Headlines" title="News Headlines" /></a>

What I'm trying to do, is do away with these 3 parts highlighted in red below in the URL (two used for alt and title tags, one for the forum board link). Replaced with MyBB code instead. So if I ever change the Announcement forum threads are pulled to on the portal, all will still work right without me having to into the template and edited alt and title tags, plus the forum ID link.

Quote:<a href="{$mybb->settings['bburl']}/forum-2.html"><img src="{$theme['imgdir']}/f-2.gif" alt="News Headlines" title="News Headlines" /></a>