Jump to content
Veriu Forum
Sign in to follow this  
g°n

Eskluzive! Integrimi i Zina (mp3 collection) ne MKPortal

Recommended Posts

Pls for english version scroll down

 

 

Per here te pare ne rang boterore ju paraqes se si te integrojme Software-in e njohur per bashkendarjen, shkarkime, degjimi e kengeve mp3 dhe jovetem te Zina me MKPortal.

Shkarkojme Zina i cili eshte totalisht falas.

 

Hapim index.php i cili ndodhet para karteles "mkportal" dhe gjejme:

'quote' => "quote",

 

Shtojme poshte kesaj:

 

'zina' => "zina",

 

E mbyllim dhe e ngarkojme ne server

 

Krijojme nje kartele (folder) tek "mkportal/modules" me emrin "zina", pra do te kemi "mkportal/modules/zina"

Mepas ngarkojme Software-in Zina ne "mkportal/modules/zina" duke mbajtur file index.php ne fillim, pra me file e ngarkuar do te kemi:

mkportal/modules/zina

mkportal/modules/zina/index.php

mkportal/modules/zina/zina_db.php

mkportal/modules/zina/_zina

mkportal/modules/zina/music

 

Hapni index.php te "mkportal/modules/zina/index.php" dhe gjeni rrjeshtin:

#$z_embed = 0;

 

Poshte kesaj shtoni:

$z_embed = 9;

Gjeni kodin meposhte:

if (!is_user($user)) { Header("Location: modules.php?name=Your_Account"); }
   }
        }

 

Pas ketij kodi shto:

 

elseif ($zc['embed'] == 9) { #MKPortal
        
       global $mkportals, $DB, $std, $print, $mklib, $Skin, $mklib_board;

        if (!defined("IN_MKP")) { die ("Sorry !! You cannot access this file directly."); }
        $z_self = "${z_self}ind=zina&";
        if($mkportals->member['g_access_cp']) {
         $z_admin = true;
        } elseif ($zc['pn_users']) {
        if(!$mkportals->member['g_access_cp'] && !$mkportals->member['id']) {
   $message = "{$mklib->lang[ne_noautsendn]}";
   $mklib->error_page($message);
   exit;
  }
}
}

 

Mepas gjeni kodin:

 

include_once XOOPS_ROOT_PATH."/header.php";
   echo $tmpl;
   include_once XOOPS_ROOT_PATH."/footer.php";
  }

 

Pas ketij kodi shto:

elseif ($zc['embed'] == 9) { #MKPortal
      if (!eregi("index.php", $_SERVER['PHP_SELF'])) { die ("Sorry !! Cannot access this file directly."); } 
//$idx = new mk_zina;

global $mkportals, $DB, $mklib, $Skin, $mklib_board;
//var $tpl       = "";

  $output = "$tmpl";
  $blocks = $Skin->view_block("Zina Module", $output);
   $mklib->printpage("0", "0", "Zina Module", $blocks);
}

 

Ruaj ndryshimet dhe ngarkoje.

Tani adresa e modulit tuaj eshte www.adresa.com/index.php?ind=zina

E gezofshiiiii!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 

For English Users.

Sorry about english but my english is not very good. I will try to explain....

 

This is a guide to integrate Zina script with MKPortal.

This was tested with MKPortal 1.1.1 and zina.1.0 rc2

 

Open index.php located before "mkportal" folder and find line:

'quote' => "quote",

 

Below add:

 

'zina' => "zina",

 

Save and upload!

 

Now create a folder at "mkportal/modules" named "zina", so, will be "mkportal/modules/zina"

After upload all files included in Zina package at "mkportal/modules/zina" must be like this:

mkportal/modules/zina

mkportal/modules/zina/index.php

mkportal/modules/zina/zina_db.php

mkportal/modules/zina/_zina

mkportal/modules/zina/music

 

Open index.php at "mkportal/modules/zina/index.php" and find line:

#$z_embed = 0;

 

Below this add:

$z_embed = 9;

 

Find this code:

if (!is_user($user)) { Header("Location: modules.php?name=Your_Account"); }
   }
        }

 

Below of this code add:

 

elseif ($zc['embed'] == 9) { #MKPortal
        
       global $mkportals, $DB, $std, $print, $mklib, $Skin, $mklib_board;

        if (!defined("IN_MKP")) { die ("Sorry !! You cannot access this file directly."); }
        $z_self = "${z_self}ind=zina&";
        if($mkportals->member['g_access_cp']) {
         $z_admin = true;
        } elseif ($zc['pn_users']) {
        if(!$mkportals->member['g_access_cp'] && !$mkportals->member['id']) {
   $message = "{$mklib->lang[ne_noautsendn]}";
   $mklib->error_page($message);
   exit;
  }
}
}

 

Now find this code:

 

include_once XOOPS_ROOT_PATH."/header.php";
   echo $tmpl;
   include_once XOOPS_ROOT_PATH."/footer.php";
  }

 

And after this add:

elseif ($zc['embed'] == 9) { #MKPortal
      if (!eregi("index.php", $_SERVER['PHP_SELF'])) { die ("Sorry !! Cannot access this file directly."); } 
//$idx = new mk_zina;

global $mkportals, $DB, $mklib, $Skin, $mklib_board;
//var $tpl       = "";

  $output = "$tmpl";
  $blocks = $Skin->view_block("Zina Module", $output);
   $mklib->printpage("0", "0", "Zina Module", $blocks);
}

 

URL of your new module is www.domain.com/index.php?ind=zina

Enjoyyyyyy!

This module was made by me GONNY, please keep credits.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...