Hello Guest
No Avatar
Sign In to Remove
Posts: 
62
Reputation: 
9
Posted: July 4, 2011, 6:12 PM
  • Group: Member
Would some one be kind enough to re-write this to proper PHP language. Apparently it has been converted using a HTML > PHP converter. It works fine but I don't understand how to append SMF/Simple Portal functions like "sp_recent" etc when it's in this form so please help me out someone.......... Would someone also help me create arrays in the manner as shown in the screenshot below (the tabs are sorted out, it's just the content inside of the tabs that I need help with).



Here's the code I need help with re-writing:
Code: [Select]
echo "
    <script src='http://www.superheroalliance.net/SpryAssets/SpryTabbedPanels.js' type='text/javascript'></script>\n
    <link href='http://www.superheroalliance.net/SpryAssets/SpryTabbedPanels.css' rel='stylesheet' type='text/css' />\n";
 
echo "<div id='TabbedPanels1' class='TabbedPanels'>\n";
echo "  <ul class='TabbedPanelsTabGroup'>\n";
echo "    <li class='TabbedPanelsTab' tabindex='0'>Tab 1</li>\n";
echo "    <li class='TabbedPanelsTab' tabindex='0'>Tab 2</li>\n";
echo "  </ul>\n";
echo "  <div class='TabbedPanelsContentGroup'>\n";
echo "    <div class='TabbedPanelsContent'>Content 1</div>\n";
echo "    <div class='TabbedPanelsContent'>Content 2</div>\n";
echo "  </div>\n";
echo "</div>\n";
 
echo "<script type='text/javascript'>\n";
echo "<!--\n";
echo "var TabbedPanels1 = new Spry.Widget.TabbedPanels('TabbedPanels1');\n";
echo "//-->\n";
echo "</script>\n";
Posts: 
400
Reputation: 
20
Posted: July 5, 2011, 1:24 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
Should work. I just cleaned it up(no testing).

Code: [Select]
<?php

echo '
<script src="http://www.superheroalliance.net/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script> 
<link href="http://www.superheroalliance.net/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
 
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup"> 
<li class="TabbedPanelsTab" tabindex="0">Tab 1</li> 
<li class="TabbedPanelsTab" tabindex="0">Tab 2</li> 
</ul> 
<div class="TabbedPanelsContentGroup"> 
<div class="TabbedPanelsContent">Content 1</div> 
<div class="TabbedPanelsContent">Content 2</div> 
</div> 
</div>
 
<script type="text/javascript"> 
<!-- 
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1"); 
//--> 
</script>
'
;


?>

<3 Nerve, Sk8, Labradoodle, Austin
Posts: 
62
Reputation: 
9
Posted: July 5, 2011, 2:28 AM
  • Group: Member
You as always never seize to amaze. Thanks a lot buddy! You're the best..... :) ;)
Posts: 
400
Reputation: 
20
Posted: July 5, 2011, 4:27 AM
  • Group: Administrator
  • AIM: mlm@visualpulse.net
  • deviantART: MadLittleMods
  • Photobucket: MadLittleMods
You as always never seize to amaze. Thanks a lot buddy! You're the best..... :) ;)

yay, I'm glad it only took 1 reply  ;)
<3 Nerve, Sk8, Labradoodle, Austin