Setup on MKportal ?

Discussion in 'Co-op Advertising Network' started by DaHiA, Nov 24, 2007.

  1. #1
    Any guidelines or hints regarding setting up text ads on footer of Mkportal CMS ?
    www.mkportal.it

    Regular instructions for php sites does not work here :(
    Also, all my search attempts for any similar resolved issue went in vain

    Kindly advise
    Thank you
     
    DaHiA, Nov 24, 2007 IP
  2. Dustin12

    Dustin12 Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just edit the footer, template CSS?
     
    Dustin12, Nov 24, 2007 IP
  3. DaHiA

    DaHiA Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    MKportal [aka. MKP] has no dedicated file called footer :(
    You have only 1 template file called tpl_main.php and it allows you to add footer BUT..
    with HTML code only, so far it can not understand php or to include the ads page

    Kindly take a look, i think you may be able to help us out
    http://www.mkportal.it/support/showthread.php?p=96300
     
    DaHiA, Nov 24, 2007 IP
  4. DaHiA

    DaHiA Member

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Here is a copy of the template file, hoping this may help for better understanding of my problem:
    <?
    class tpl_main {
    
    function view_header($title, $css, $js, $pmk_js, $board_header) {
    global $mklib, $mklib_board;
    return <<<EOF
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="rtl" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="ar">
    
    <!-- begin document head -->
    
    <head>
      <meta http-equiv="content-type" content="text/html; charset={$mklib->charset}" />
      <meta name="generator" content="www.domain.com" />
      <meta http-equiv="Pragma" content="no-cache" />
      <meta content="no-cache" http-equiv="no-cache" />
      <meta http-equiv="Cache-Control" content="no-cache" />
      {$title}
      {$css}
      {$board_header}
      <script type="text/javascript" src="{$js}"></script>
       {$pmk_js}
    </head>
    
    <body onload="javascript:GetPos()">
    
    <!-- end document head -->
    
    EOF;
    }
    
    function open_main($mainwidth) {
    global $mklib;
    return <<<EOF
    
    <!-- begin open main table -->
    
    <div id="mkwrapper" style="width: {$mainwidth};">
    <table class="tabmain" width="100%" align="center" border="0" cellspacing="0" cellpadding="0" dir="rtl" bgcolor="#FFF7E1">
    
      <tr>
        <td width="100%" align="center">
    
    <!-- end open main table -->
    
    EOF;
    }
    
    function view_logo() {
    global $mkportals, $mklib, $mklib_board;
    $logout = $mklib_board->forum_link("logout");
    $register = $mklib_board->forum_link("register");
    return <<<EOF
    
    <!-- begin logostrip -->
    
    
    
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber1" dir="ltr">
        <tr>
          <td width="20" background="$mklib->images/up-center.jpg">
                         <img border="0" src="$mklib->images/up-left.jpg" width="30" height="150"></td>
          <td width="100%" background="$mklib->images/up-center.jpg">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table3" dir="ltr">
        <tr>
          <td width="14%" background="$mklib->images/up-center.jpg">
                         
          <img border="0" src="$mklib->images/up-left-center.jpg" width="145" height="150" usemap=""></td>
          <td width="75%" background="$mklib->images/up-center.jpg">
                <style type="text/css">
    <!--
    .style1 {
    	color: #7D2C0B;
    	font-family: Arial, Helvetica, sans-serif;
    	font-size: 36px;
    }
    .style2 {color: #7D2C0B; font-family: Arial, Helvetica, sans-serif; font-size: 18px; }
    -->
    </style>
    <p class="style1">www.domain.com</p>
    <p class="style2">The First and The biggest Pharmaceutical Community </p>
    <p class="style2">&nbsp;</p>
    	  </td>
          <td width="11%" background="$mklib->images/up-center.jpg">
    
                          <img border="0" src="$mklib->images/up-rigth-center.jpg" width="145" height="150" usemap=""></td>
        </tr>
      </table>
                    </td>
          <td width="2%" background="$mklib->images/up-center.jpg">
                          <img border="0" src="$mklib->images/up-rigth.jpg" width="30" height="150"></td>
        </tr>
        <tr>
          <td width="20" background="$mklib->images/left.jpg" valign="top">
          <img border="0" src="$mklib->images/up-left-do.jpg" width="30" height="13"></td>
          <td width="95%" valign="top" rowspan="2">
    <table border="0" width="100%" cellpadding="0" cellspacing="0" dir="rtl">
    <!-- end logostrip -->
    
    EOF;
    }
    
    function view_linkbar($row_link) {
    /*global $mklib, $mkportals;
    return <<<EOF
    
    <!-- begin linkbar -->
    
    <!-- end linkbar -->
    
    EOF; */
    }
    
    function view_urlo($urlo1) {
    global $mklib;
    /*return <<<EOF
    
            <tr>
              <td>
                <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center" dir="rtl">
                <tr><td width="100%" class="tdblock" align="center" >ßáãÇÊ ÚÇÈÑÉ</td></tr>
                <tr><td><marquee nowrap id="m1" trueSpeed scrollAmount="2" scrollDelay="40" direction="up" loop=INFINITE valign="middle"  ALIGN="center" onmouseover='this.stop()' onmouseout='this.start()'>$urlo1</marquee></td></tr>
                <tr><td><a href="index.php?ind=urlobox" alt="ÇÖÝ ßáãå" />ßáãÇÊ ÚÇÈÑå</td></tr>
                </table>
              </td>
            </tr>
    
    EOF; */
    }
    
    function view_separator_h() {
    global $mklib;
    return <<<EOF
    
    <!-- begin horizontal spacer -->
    
    <!-- separatore orizzontale
            <tr align="center">
              <td class="trattini"><img src="$mklib->images/punto_or.gif" width="1" height="1" alt="" />
              </td>
            </tr> -->
    
    <!-- end horizontal spacer -->
    
    EOF;
    }
    
    function open_body() {
    global $mklib;
    return <<<EOF
    
    <!-- begin open portal body -->
    
            <tr align="center">
              <td width="100%">
                <table border="0" width="100%" cellspacing="0" cellpadding="0">
                  <tr>
    
    <!-- end open portal body -->
    
    EOF;
    }
    
    function view_column_left($blocks) {
    global $mklib;
    
    return <<<EOF
    
    <!-- begin left column -->
    
                    <td id="menusx" valign="top" align="right">
                    <div id="menucontents" style="$mklib->menucontents">
                      <table cellpadding="0" cellspacing="2" border="0" style="width: {$mklib->columnwidth}px;" dir="rtl">
                      {$blocks}
                      </table>
                    <div style="text-align:left;"><a href="javascript:ColumnClose('menusx');MemoPos('MKmenusx', '1');"><img src="$mklib->images/f1.gif" border="0" alt="" /></a>&nbsp;</div>
                   </div>
                    <div id="menucloseds" style="$mklib->menucloseds">
                    <div style="text-align:left;"><a href="javascript:ColumnOpen('menusx');MemoPos('MKmenusx', '0');"><img src="$mklib->images/f2.gif" border="0"  alt="" /></a></div>
                    </div>
                    </td>
    
    <!-- end left column -->
    
    EOF;
    
    }
    
    
    function view_separator_v() {
    global $mklib;
    return <<<EOF
    
    <!-- begin column spacer -->
    
                    <td class="vspacer" width="0%" align="left">&nbsp;</td>
    
    <!-- end column spacer -->
    
    EOF;
    }
    
    function view_column_center($blocks) {
    global $mklib;
    return <<<EOF
    
    <!-- begin center column -->
    
                    <td valign="top" align="right" width="100%">
                      <table cellpadding="0" cellspacing="2" border="0" width="100%" dir="rtl">
                      {$blocks}
                      </table>
                    </td>
    
    <!-- end center column -->
    
    EOF;
    }
    
    function view_column_right($blocks) {
    global $mklib;
    return <<<EOF
    
    <!-- begin right column -->
    
                    <td id="menudx" valign="top" align="right">
                    <div id="menucontentr" style="$mklib->menucontentr">
                      <table cellpadding="0" cellspacing="2" border="0" style="width: {$mklib->columnwidth}px;" dir="rtl">
                      {$blocks}
                      </table>
                    <div style="text-align:right;">&nbsp;<a href="javascript:ColumnClose('menudx');MemoPos('MKmenudx', '1')"><img src="$mklib->images/f2.gif" border="0" alt="" /></a></div>
                    </div>
                    <div id="menuclosedr" style="$mklib->menuclosedr">
                    <div style="text-align:right;"><a href="javascript:ColumnOpen('menudx');MemoPos('MKmenudx', '0')"><img src="$mklib->images/f1.gif" border="0" alt="" /></a></div>
                    </div>
                    </td>
    
    <!-- end right column -->
    
    EOF;
    }
    
    function close_body() {
    global $mklib;
    return <<<EOF
    
    <!-- begin close portal body -->
    
    
                  </tr>
                </table>
              </td>
            </tr>
    </table>
    
    <!-- end close portal body -->
    
    EOF;
    }
    
    function close_main() {
    global $mklib;
    return <<<EOF
    
    <!-- begin close main table -->
    </td>
          <td width="2%" background="$mklib->images/rigth.jpg" valign="top">
         <img border="0" src="$mklib->images/up-rigth-do.jpg" width="30" height="13"></td>
          <td width="95%" dir="rtl" valign="top" rowspan="2">
        </tr>
        <tr>
          <td width="20" background="$mklib->images/left.jpg" valign="bottom">
          <img border="0" src="$mklib->images/do-left-do.jpg" width="30" height="17"><img border="0" src="$mklib->images/left.jpg" width="30" height="1"></td>
          <td width="2%" background="$mklib->images/rigth.jpg" valign="bottom">
          <img border="0" src="$mklib->images/do-rigth-do.jpg" width="30" height="17"></td>
          <tr>
          <td width="20">
                          <img border="0" src="$mklib->images/do-left.jpg" width="30" height="61"></td>
          <td width="100%" background="$mklib->images/do-center.jpg">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="table4" dir="ltr">
        <tr>
          <td width="14%" background="$mklib->images/do-center.jpg">
    
    <img border="0" src="$mklib->images/do-center.jpg" width="115" height="61" usemap=""></td>
    <td width="75%" background="$mklib->images/do-center.jpg">
    <img border="0" src="$mklib->images/do-left-center.jpg" width="4" height="61"></td>
    <td width="11%" background="$mklib->images/do-center.jpg">
                  </td>
        </tr>
      </table>
                    </td>
          <td width="2%">
                          <img border="0" src="$mklib->images/do-rigth.jpg" width="30" height="61"></td>
        </tr>
      </table>
        </td>
      </tr>
    </table>
    </div>
    
    <!-- end close main table -->
    
    EOF;
    }
    
    
    function view_footer($block) {
    global $mklib;
    return <<<EOF
    
    <!-- begin footer -->
    <!-- you can add your credits here  -->
    
    <!-- end footer -->
      <p align="center">{$block}</p>
    
    </body>
    </html>
    
    <!-- end footer -->
    
    EOF;
    }
    
    function view_block($title, $content) {
    global $mklib;
    $content = str_replace('&copy;2004-2005 All rights reserved', '<a href="http://www.domain.com" target="_blank">Copyrights © 2006-2007 domain Community</a>', $content);
    return <<<EOF
    
    <!-- begin block template -->
    
                        <tr>
                          <td valign="top">
                                    <table class="tborder" cellpadding="3" cellspacing="0" borderColorDark="#FEFEFE" borderColorLight="#1F5483" border="1" width="100%" align="center" dir"rtl">
                                      <tr>
                                      <td width="100%" class="thead" nowrap="nowrap">{$title}</td>
                                     </tr>
                                   {$content}
                            </table>
                          </td>
                        </tr>
                        <tr>
                          <td class="tdspacer">&nbsp;</td>
                        </tr>
    
    <!-- end block template -->
    
    EOF;
    }
    
    function row_link( $icon, $url, $text) {
    global $mklib;
    return <<<EOF
    
    <!-- begin link template -->
    
                    &nbsp;<img src="$icon" border="0" style="vertical-align: middle;" /> &nbsp;<a $url>$text</a>
    
    <!-- end link template -->
    
    EOF;
    }
    
    function view_quote($content, $author) {
    global $mklib;
    return <<<EOF
    <!-- begin mkportal quote -->
    <table style="margin-top: 5px; margin-bottom: 5px; width: auto;" border="0" cellpadding="0" cellspacing="0" dir="ltr">
      <tr>
        <td>
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td valign="bottom">
                <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="top" width="26"><img src="$mklib->images/quote/mkquote_balloon_l.gif" height="23" width="26" alt="" /></td>
                    <td style="background-image: url($mklib->images/quote/mkquote_balloon_bg.gif); background-position: center; padding-bottom: 3px;" valign="middle" nowrap="nowrap">
                      <span class="quote">{$mklib->lang['editor_quote']} $author</span>
                    </td>
                    <td valign="top"><img src="$mklib->images/quote/mkquote_balloon_r.gif" height="23" width="26" alt="" /></td>
                  </tr>
                </table>
              </td>
    
              <td align="right" valign="bottom" width="100%">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                    <td width="100%">
                      <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                          <td style="background-image: url($mklib->images/quote/mkquote_top_bg.gif);" valign="middle" width="100%"></td>
                          <td align="left" valign="top"><img src="$mklib->images/quote/mkquote_top_r.gif" height="23" width="13" alt="" /></td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
    
          <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
              <td style="background-image: url($mklib->images/quote/mkquote_left_bg.gif);" width="13"></td>
              <td class="quote" valign="top" width="100%">$content</td>
              <td style="background-image: url($mklib->images/quote/mkquote_right_bg.gif);" width="13"></td>
            </tr>
            <tr>
              <td valign="bottom" height="9" width="13"><img src="$mklib->images/quote/mkquote_bot_l.gif" alt="" /></td>
              <td style="background-image: url($mklib->images/quote/mkquote_bot_bg.gif);" width="100%"></td>
              <td valign="bottom" height="9" width="13"><img src="$mklib->images/quote/mkquote_bot_r.gif" alt="" /></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <!-- end mkportal quote -->
    EOF;
    }
    function commenti($messaggi, $idm, $midh, $ope, $autore, $home, $b_insertcomm, $b_icommname, $b_icommhome, $b_icommtext, $b_icommsave, $b_comtitle2) {
    global $mklib;
    return <<<EOF
      <form method="post" action="index.php?ind=blog&amp;op=insert_comments" name="comments">
    <table class="tborder" cellpadding="4" cellspacing="0" borderColorDark="#FEFEFE" borderColorLight="#CE9399" border="1" width="100%" align="center">
        <tr>
          <td colspan="2" width="100%" align="center" class="thead">{$b_comtitle2}</td>
        </tr>
        <tr>
          <td colspan="2" class="alt1">{$messaggi}</td>
        </tr>
    <tr><td align="center" colspan="2" class="alt2">
            <input type="hidden" name="idm" value="{$idm}" />
            <input type="hidden" name="midh" value="{$midh}" />
            <input type="hidden" name="ope" value="{$ope}" />
            <input type="hidden" name="autore" value="{$autore}" />
            <input type="hidden" name="home" value="{$home}" />
            {$b_insertcomm}
          </td>
        </tr>
    <tr><td width="30%" class="alt1">{$b_icommname}</td><td width="70%" class="alt1">{$autore}</td></tr>
    <tr><td width="30%" class="alt1">{$b_icommhome}</td><td width="70%" class="alt1">{$home}</td></tr>
    <tr><td width="30%" class="alt1">{$b_icommtext}</td><td width="70%" class="alt1"><textarea name="commento" rows="5" cols="30"></textarea></td></tr>
    <tr><td class="alt2" colspan="2" align="center"><input type="submit" class="button" name="post" value="{$b_icommsave}" /></td></tr>
                    <tr>
              <td colspan="2" class="thead" align="center">Copyrights © 2006-2007 domain Community
              </td>
    </table>
    </form>
    EOF;
    }
    
    function commenti1($messaggi, $idm, $midh, $ope, $autore, $home, $b_insertcomm, $b_icommname, $b_icommhome, $b_icommtext, $b_icommsave, $b_comtitle2) {
    global $mklib;
    return <<<EOF
    <form method="post" action="index.php?ind=blog&op=insert_comments" name="comments">
    <table class="tborder" cellpadding="4" cellspacing="0" borderColorDark="#FEFEFE" borderColorLight="#CE9399" border="1" width="100%" align="center">
        <tr>
          <td colspan="2" width="100%" align="center" class="thead">{$b_comtitle2}</td>
        </tr>
        <tr>
          <td colspan="2" class="alt1">{$messaggi}</td>
        </tr>
        <tr><td align="center" colspan="2" class="alt2">
            <input type="hidden" name="idm" value="{$idm}" />
            <input type="hidden" name="midh" value="{$midh}" />
            <input type="hidden" name="ope" value="{$ope}" />
            <input type="hidden" name="autore" value="{$autore}" />
            <input type="hidden" name="home" value="{$home}" />
            {$b_insertcomm}
          </td>
        </tr>
    <tr><td width="30%" class="alt1">{$b_icommname}</td><td width="70%" class="alt1">{$autore}</td></tr>
    <tr><td width="30%" class="alt1">{$b_icommhome}</td><td width="70%" class="alt1"><input class="input" type="text" name="home" size="35" value="http://"></td></tr>
    <tr><td width="30%" class="alt1">{$b_icommtext}</td><td width="70%" class="alt1"><textarea name="commento" rows="5" cols="30"></textarea></td></tr>
    <tr><td class="alt2" colspan="2" align="center"><input type="submit" class="button" name="post" value="{$b_icommsave}" /></td></tr>
                    <tr>
              <td colspan="2" class="thead" align="center">Copyrights © 2006-2007 domain Community
              </td>
    </table>
    </form>
    EOF;
    }
    
    function commenti2($messaggi, $idm, $midh, $ope, $autore, $home, $b_insertcomm, $b_icommname, $b_icommhome, $b_icommtext, $b_icommsave, $b_comtitle2) {
    global $mklib;
    return <<<EOF
    <form method="post" action="index.php?ind=blog&amp;op=insert_comments" name="comments">
    <table class="tborder" cellpadding="4" cellspacing="0" borderColorDark="#FEFEFE" borderColorLight="#CE9399" border="1" width="100%" align="center">
        <tr>
          <td colspan="2" width="100%" align="center" class="thead">{$b_comtitle2}</td>
        </tr>
        <tr>
          <td colspan="2" class="alt1">{$messaggi}</td>
        </tr>
        <tr><td align="center" colspan="2" class="alt2">
            <input type="hidden" name="idm" value="{$idm}" />
            <input type="hidden" name="midh" value="{$midh}" />
            <input type="hidden" name="ope" value="{$ope}" />
            {$b_insertcomm}
          </td>
        </tr>
    <tr><td width="30%" class="alt1">{$b_icommname}</td><td width="70%" class="alt1"><input class="input" type="text" name="autore" size="35" /></td></tr>
    <tr><td width="30%" class="alt1">{$b_icommhome}</td><td width="70%" class="alt1"><input class="input" type="text" name="home" size="35" value="http://" /></td></tr>
    <tr><td width="30%" class="alt1">{$b_icommtext}</td><td width="70%" class="alt1"><textarea name="commento" rows="5" cols="30"></textarea></td></tr>
    <tr><td class="alt2" colspan="2" align="center"><input type="submit" class="button" name="post" value="{$b_icommsave}" /></td></tr>
    <tr><td colspan="2" class="thead" align="center">Copyrights © 2006-2007 domain Community</td>
    </table>
    </form>
    EOF;
    }
    
    function magicwords($default_magic_words, $magicdefaultwords, $group_magic_words, $groupmagicwords) {
    return <<<EOF
    <table class="tborder" cellpadding="4" cellspacing="0" borderColorDark="#FEFEFE" borderColorLight="#CE9399" border="1" width="100%" align="center">
    <tr><td class="thead" colspan="2" align="center">{$default_magic_words}</td></tr>
    {$magicdefaultwords}
    <tr><td class="thead" colspan="2" align="center">{$group_magic_words}</td></tr>
    {$groupmagicwords}
    <tr><td colspan="2" class="thead" align="center">Copyrights © 2006-2007 domain Community</td>
    </table>
    EOF;
    }
    
    }
    
    $Skin = new tpl_main;
    
    ?>
    
    Code (markup):
     
    DaHiA, Nov 25, 2007 IP