+ Reply to Thread
Results 1 to 2 of 2

Thread: [SMF-Mkportal]Ads

  1. #1
    dsfreak's Avatar
    dsfreak is offline x10 Elder dsfreak is an unknown quantity at this point
    Join Date
    Apr 2005
    Location
    Arizona, USA
    Posts
    669

    [SMF-Mkportal]Ads

    Ok, saw that no one made something like this, and since tyler helped me with it, I figured I would share with all!Anyhow:


    Edit: Grr...... fogot what file this is all in, it should be in (mkportal root)/templates/(your template)/tpl_main.tpl

    Find this part in the code:

    PHP Code:
    function view_column_center($blocks) {
    global 
    $mklib
    Directly below it, put this: (note this is for x10 Corp hosting)

    PHP Code:
    // Global center block hack
    $ccode "
          <tr align=\"center\">
            <td>
          <!-- begin x10 ad -->
    <a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a>
          <!-- end   x10 ad -->
            </td>
          </tr>
          "
    ;
    $cblock $this->view_block("x10 Ad"$ccode);
    // end Global center block hack 
    Yes, I know it does not have the javascript part of the ad, but this still works!
    Now, the result should be:

    PHP Code:
    function view_column_center($blocks) {
    global 
    $mklib;
    // Global center block hack
    $ccode "
          <tr align=\"center\">
            <td>
          <!-- begin x10 ad -->
    <a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&amp;n=a7fb3e9d' border='0' alt=''></a>
          <!-- end   x10 ad -->
            </td>
          </tr>
          "
    ;
    $cblock $this->view_block("x10 Ad"$ccode);
    // end Global center block hack
    return <<<EOF

    <!-- begin center column --> 
    This makes the ad viewable even when the forum is open, unless of course, you don't have the option to view the forum inside of a portal, in which case you have to do it seperately for the forum.

    Hope it helped, Andy.
    Last edited by dsfreak; 07-22-2005 at 11:16 PM.

  2. #2
    n4tec's Avatar
    n4tec is offline Lord Of The Keys n4tec is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    GeT NOTICED via n4tec
    Posts
    1,656

    Re: [SMF-Mkportal]Ads

    thanx for the tutorial about how to put ads on Mkportal for a SMF forum..
    .::: Regards, n4tec :::.


+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers