Page 1 of 1

Link To Us Block Question

Posted: 8. January 2010 23:46
by Parkstee
In the link to us block I want my user to be able to select a code that displays a banner instead of text, how can i update it so the code displays the html text i have instead of the current code

This is an example of the code i want to use:

Code: Select all

<a href="http://www.sixstringmods.co.uk/home.php?ref=1" onclick="window.open(this.href); return false;" title="6 String MODs - phpBB MODs Development"><img src="./images/120x60.png" alt="6 String MODs - phpBB MODs & Graphics Development" /></a>
I then want a second option so members can have the same code but to use in BBcode:

Code: Select all

[url=http://www.sixstringmods.co.uk/home.php?ref=1][img]./images/120x60.png[/img][/url]
look forward to your help.
cheers

Re: Link To Us Block Question

Posted: 9. January 2010 11:00
by gamingboard
Please look at this topic: Topic

This include a BB Code and a Html Code.

You have to change the code a little bit:

Öffne / open: portal/block/link_us.php

Suche / search:

Code: Select all

'U_LINK_US'            => '<a&nbsp;href="' . $u_link . '"&nbsp;' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"' : '' ) . '>' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '</a>', 
Ersetzte mit / Replace with:

Code: Select all

'U_LINK_US_HTL'            => '<a&nbsp;href="' . $u_link . '"&nbsp;' . (($config['site_desc']) ? 'title="' . $config['site_desc'] . '"&nbsp;' : '' ) . '><img&nbsp;src="http://www.sixstringmods.co.uk/images/120x60.png"&nbsp;alt="6 String MODs - phpBB MODs & Graphics Development"&nbsp;/></a>',
'U_LINK_US_BB'        => '[url=' . $u_link . '][img]http://www.sixstringmods.co.uk/images/120x60.png[/img][/url]', 
 
Fun. xD

Re: Link To Us Block Question

Posted: 22. January 2010 15:29
by vonhazey
Thanks for the tip ive used it on my board :D