TutorialMS Community Forum

Full Version: Make Avatars Clickable?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to make the avatars clickable so when they are clicked it goes to the tutorial? Thanks! :geek:
Hi,

In the "tutorial_bit" template find the following:

Code:
<div style="float: left;background: inherit;">
<img alt="$tutorial_bit[id]" class="avatar" src="$config[HTTP_SERVER]$tutorial_bit[icon]" width="$config[NUMBER_DIMENSIONS_W]" height="$config[NUMBER_DIMENSIONS_H]">
</div>
and:
Code:
<div style="float: left;background: inherit;">
<img alt="$tutorial_bit[id]" class="avatar" src="$config[HTTP_SERVER]$tutorial_bit[icon]" width="$config[NUMBER_DIMENSIONS_W]" height="$config[NUMBER_DIMENSIONS_H]">
</div>

change to:
Code:
<div style="float: left;background: inherit;">
<a target="_blank" href="$config[HTTP_SERVER]tutorial_out/$tutorial_bit[id]/$tutorial_bit[tutnamelink]/"><img alt="$tutorial_bit[id]" class="avatar" src="$config[HTTP_SERVER]$tutorial_bit[icon]" width="$config[NUMBER_DIMENSIONS_W]" height="$config[NUMBER_DIMENSIONS_H]"></a>
</div>
and:
Code:
<div style="float: left;background: inherit;">
<a target="_blank" href="$config[HTTP_SERVER]tutorial_out.php?id=$tutorial_bit[id]"><img alt="$tutorial_bit[id]" class="avatar" src="$config[HTTP_SERVER]$tutorial_bit[icon]" width="$config[NUMBER_DIMENSIONS_W]" height="$config[NUMBER_DIMENSIONS_H]"></a>
</div>
That should do the trick. Hope this helps.
Your a great help thanks it worked beautifully :geek: !
Reference URL's