DanV Posted July 29, 2007 Share Posted July 29, 2007 Hi I'm relatively new to PHP and this one's a bit tricky. Following is the code for showing a dictionary link button/tab in an SMF forum: / Show the [Dictionary] button. echo ($current_action=='Dictionary' || $context['browser']['is_ie4']) ? '' : '' , ' <li class="' , $current_action == 'dictionary' ? 'current' : '' , '"><a href="http://dictionary.com" ', $scripturl, '?action=Dictionary">' , $txt['Dictionary'] , '</a></li>'; I found a script elsewhere for a popup window and for the link you're supposed to have this: a href="http://dictionary.com" onclick="NewWindow(this.href,'name','400','400','yes');return false">Dictionary</a> (left out the < at the beginning for my posting here since it was turning it into a link) Is there a way of configuring these two together so both the button shows and the popup window works? The basic difference between the two is: ', $scripturl, '?action=Dictionary">' , $txt['Dictionary'] , I've tried different configurations but all I'm getting is the dreaded Template Parse Error. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.