| View previous topic :: View next topic |
| Author |
Message |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
Posted: Sun May 16, 2010 12:42 pm Post subject: |
|
|
for meebo, if you theme uses a header.html and a footer.html, you can just add it as is. If your theme only has a theme.php, you will need to convert it to php and add it where needed. I will paste my theme.php function header and footer here for you to look at.
Code:function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $anonymous, $topic, $name, $sel, $db, $ThemeSel, $nukeNAV, $name;
cookiedecode($user);
echo "<body>";
echo "<script type=\"text/javascript\">\n";
echo "if (typeof Meebo == 'undefined') {\n";
echo " Meebo=function(){(Meebo._=Meebo._||[]).push(arguments)};\n";
echo " (function(q){\n";
echo " var d=document,b=d.body;\n";
echo " if(!b){var cb=arguments.callee;return setTimeout(function(){cb(q)},100);}\n";
echo " var m=b.insertBefore(d.createElement('div'), b.firstChild), s=d.createElement('script');\n";
echo " m.id='meebo'; m.style.display='none'; m.innerHTML='<iframe id=\"meebo-iframe\" frameBorder=\"0\" ><\/iframe>';\n";
echo " s.src='http'+(q.https?'s':'')+'://'+(q.stage?'stage-':'')+'cim.meebo.com/cim/cim.php?network='+q.network;\n";
echo " d.getElementsByTagName('head')[0].appendChild(s);\n";
echo " })({network: 'trickedoutnewscom_zu04ca', stage: false});\n";
echo " Meebo('makeEverythingSharable');\n";
echo "}\n";
echo "</script>\n";
echo "\n";
if ($banners) {
echo ads(1);
}
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') !== FALSE) {
$navtop = ' • <a href="index.php"><b>'._HOME.'</b></a> • <a href="downloads.html"><b>'._UDOWNLOADS.'</b></a> • <a href="account.html"><b>'._FSIYOURACCOUNT.'</b></a> • <a href="modules.php?name=Forums"><b>'._BBFORUMS.'</b></a> • ';
}
else {
$navtop = $nukeNAV;
}
if (defined('INDEX_FILE')) {
echo '<div id="header"><div id="header_inner" class="fixed"><div id="logo"><span><img src="themes/'.$ThemeSel.'/images/logo.png" alt="Tricked Out News" border="0" /></span></div>';
if ($banners) {
echo '<div id="logo_right">';
echo ads(0);
echo '</div>';
};
echo '</div><center>'.$navtop.'</center><br style="clear: left" /></div><div id="main" class="clearfix"><div id="main_inner" class="fixed"><div id="primaryContent_3columns">';
}else{
echo '<div><div id="header"><div id="header_inner" class="fixed"><div id="logo"><span><img src="themes/'.$ThemeSel.'/images/logo.png" alt="" border="0" /></span></div>';
if ($banners) {
echo '<div id="logo_right">';
echo ads(0);
echo '</div>';
};
echo '</div><center>'.$navtop.'</center><br style="clear: left" /></div><div id="main" class="clearfix"><div id="main_inner" class="fixed"><div id="primaryContent_2columns">';
}
if (defined('INDEX_FILE')) {
echo '<div id="columnA_3columns">';
}else{
echo '<div id="columnA_2columns">';
}
}
/************************************************************/
/* Function themefooter() */
/* Control the footer for your site. */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $name;
echo '</div></div><div id="secondaryContent_3columns">';
if (defined('INDEX_FILE')) {
echo '<div id="secondaryContent_2columns"><div id="columnC_2columns">';
}else{
echo '<div id="columnB_3columns">';
}
blocks('left');
echo '</div>';
if (defined('INDEX_FILE')) {
echo '<div id="columnC_3columns">';
blocks('right');
echo '</div>';
}
$footer_message = "<p>$foot1</p><p>$foot2</p><p>$foot3</p><p>$foot4</p>";
echo '</div><br class="clear" /></div></div></div><div id="footer" class="fixed">';
footmsg();
echo '</div>';
echo "<script type=\"text/javascript\">\n";
echo " Meebo(\"domReady\");\n";
echo "</script>\n";
}
|
_________________ Tricked Out News |
|
| Back to top |
|
 |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
snype Regular


Joined: Apr 20, 2010 Posts: 11
 
|
|
| Back to top |
|
 |
nextgen I might as well work here


Joined: Jun 28, 2009 Posts: 48 Location: Maryland
        
|
|
| Back to top |
|
 |
bobby Site Admin


Joined: Jan 20, 2009 Posts: 600 Location: North Carolina
    votes: 4
|
|
| Back to top |
|
 |
|
|