News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Looking for a "How-to"

Started by Bill.Ramby, February 20, 2006, 09:22:11 AM

Previous topic - Next topic

Bill.Ramby

I'm looking for a "How-to" on adding a button next to the "Quote" button in posts. Any wave in the general direction would be appreciated.

Regards
Bill

gerrymore

You mean you want a button to input an external link when tou reply with a quote?

Hit quote, then a like below hit
SMF RC1, Tiny Portal 0.75, Coppermine 1.3.3, Flashchat.

Bill.Ramby

No. When viewing the post, like you are now, I want a button next to the quote button that launches a web link. Basically calling up the google translation page in a new window.

snork13

check out the Display.template.php file within yout theme folder

-snork
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

JayBachatero

Ok do this.

Code (find) Select

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';


Code (add before) Select

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="OUTSIDE LINK"><img src="IMGSOURCE" align="middle" alt="ALT TEXT" />TEXT HERE</a>';

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: