Link To Us Block Question

Post Reply

Topic author
Parkstee
Active Member
Posts: 6
Joined: 29. December 2008 21:49
phpBB.com User: Parkstee

Link To Us Block Question

Post 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
User avatar

gamingboard
Active Member
Posts: 26
Joined: 20. November 2009 15:44
phpBB.de User: gamingboard
phpBB.com User: gamingboard
Location: Free and Hanseatic City of Hamburg, Germany
Contact:

Re: Link To Us Block Question

Post 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

vonhazey
Active Member
Posts: 9
Joined: 22. January 2010 15:19
phpBB.com User: vonhazey
Location: Deepcar
Contact:

Re: Link To Us Block Question

Post by vonhazey »

Thanks for the tip ive used it on my board :D
Image Image
Post Reply

Return to “Modifications Support”