UPDATE: codes below now show,
Direct link , HTML Link , BBCode Link , HTML Banner , BBCode Banner. Enjoy.
I'm pretty sure im posting in the wrong place, this post is no longer a request my question was already solved. I do however have another edit for this post that could add some benefit to other members searching for the link to us module and edits for it to add advanced features.
So in order to help and keep this one post in one place and not scattered over the forum, i'll just continue posting to this thread. Im sorry if this was the wrong thing to do.
Basically this post will help you add a image to your link to us board3 portal module, the other day someone kindly showed me how to add bbcode, html & a direct link to the link to us module (^Read above posts in this thread if you want to know how to do that^). I then went away thinking what else could someone use to share my website, If i don't give people options they wont bother and i'm only limiting my likelihood of being shared having one type of code to be shared, im also limiting where people share my site, hence bbcode for forums, direct link for twitter, facebook, g+ html for blog posts & websites. Well what about banner images, people might want to share a html banner image in a blog post or on a website page, ( i'll eventually add a bbcode banner as well so they can share the banner image in a forum)
UPDATED: Codes Below now Include BBCode Banner For Forums.
Thanks @KIRK for showing me how to do this by the way.
Here is the code.
Open: root/ext/board3/portal/modules/link_us.php
Find:
Code: Select all
'U_LINK_US' => '<a href="' . $u_link . '" ' . (($this->config['site_desc']) ? 'title="' . $this->config['site_desc'] . '"' : '' ) . '>' . (($this->config['sitename']) ? $this->config['sitename'] : $u_link ) . '</a>',
Replace with:
Code: Select all
'U_LINK_US_HTML' => '<a href="' . $u_link . '" ' . (($this->config['site_desc']) ? 'title="' . $this->config['site_desc'] . '"' : '' ) . '>' . (($this->config['sitename']) ? $this->config['sitename'] : $u_link ) . '</a>',
'U_LINK_US_BB' => '[url=' . $u_link . ']' . (($this->config['sitename']) ? $this->config['sitename'] : $u_link ) . '[/url]',
'U_LINK_US_BAN' => '<a href="' . $u_link . '">' . '<img src="' . 'http://YOUR-WEBSITE.com/forum/images/YOUR-IMAGE.png">' . '</a>',
'U_LINK_US_BANBBCO' => '[url=' . $u_link . ']' . '[img]' . 'http://YOUR-WEBSITE.com/forum/images/YOUR-IMAGE.png[/img]' . '[/url]',
NOTICE: Change ,
http://YOUR-WEBSITE.com/forum/images/YOUR-IMAGE.png to the image banner you want to use id stick with a button style banner 160 x 160 is nice.
Open: root/ext/board3/portal/styles/prosilver/template/portal/modules/link_us_side.html
Find:
Code: Select all
<input type="text" tabindex="9" value="{U_LINK_US}" class="inputbox autowidth" onclick="this.focus();this.select();" readonly="readonly" /><br />
Replace with:
Code: Select all
{LINK_US_TXT}
<p>Share the love and link to us using the below codes.</p>
Direct Link:<br />
<input type="text" tabindex="9" value="{BOARD_URL}" class="inputbox autowidth" onclick="this.focus();this.select();" readonly="readonly" /><br /><br />
HTML Link:<br />
<input type="text" tabindex="9" value="{U_LINK_US_HTML}" class="inputbox autowidth" onclick="this.focus();this.select();" readonly="readonly" /><br /><br />
BBCode Link:<br />
<input type="text" tabindex="9" value="{U_LINK_US_BB}" class="inputbox autowidth" onclick="this.focus();this.select();" readonly="readonly" /><br /><br/>
HTML Banner:<br/>
<input type="text" tabindex="9" value="{U_LINK_US_BAN}" class="inputbox autowidth" onclick="this.focus();this.select();" readonly="readonly" /><br /><br/>
BBCode Banner:<br/>
<input type="text" tabindex="9" value="{U_LINK_US_BANBBCO}" class="inputbox autowidth" onclick="this.focus();this.select();" readonly="readonly" /><br />
Banner Demo:
<img src= "http://YOUR-WEBSITE.com/forum/images/YOUR-IMAGE.png" width= "160"/>
NOTICE: Change
http://YOUR-WEBSITE.com/forum/images/YOUR-IMAGE.png To The banner image you used.
Go to "ACP -> General" --> purge cache
View my website to see demo. it shows exactly as it will on your site using codes above.
If you don't want to visit my site to see a demo thats cool here's a picture of what it will look like.