ads in mkportal

Status
Not open for further replies.

d2vid

New Member
Messages
86
Reaction score
0
Points
0
hi,

I cannot put the advertises on my mkportal script. I was trying one with a 'echo' and second one but they don't work.

look here: http://www.2team.exofire.net/forum/

The language is set to english, but my news are in polish.
 

TheJeffsta

New Member
Messages
984
Reaction score
0
Points
0
Why the hell does he have it under a folder name 'phpbb' when it is vBulletin anyway?

Yeah, I didnt think that there was an option in vBulletin to remove the 'Powered by vBulletin' in the page title, which leads to that fact that he possibly edited it himself or got it from someone who edited it - correct me if I am wrong!

Anyway, I was wondering, What really differs between an illegal copy of a forum software like vBulletin and IPB and the retail versions? I can't really tell the difference at times :S

Anyway, just try what I had to do to get them to work in PHP-Fusion.

Code:
?><script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://x10hosting.com/advert/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&target=_blank");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->

</script><noscript><a href='http://x10hosting.com/advert/adclick.php?n=a7fb3e9d' target='_blank'><img src='http://x10hosting.com/advert/adview.php?what=zone:1&n=a7fb3e9d' border='0' alt=''></a></noscript>

Also if you want it centered, then put it between
Code:
<center></center>
tags.
 
Last edited:

d2vid

New Member
Messages
86
Reaction score
0
Points
0
It's in the 'phpbb' folder becouse i had there phpbb before and i didn't rename it :D
You can buy the rights to remove 'Powered by vBulletin' form the footer and the title page.

I was trying to put it in the centre, anywhere.. but it doesn't come up. I'll show you how the script looks right now.

Code:
<?

<?php include('http://staff.x10hosting.com/adCode.php?ad=corporate'); ?> 

/*
+--------------------------------------------------------------------------
|   MkPortal
|   ========================================
|   by Meo aka Luponero <Amedeo de longis>
|
|   (c) 2004 mkportal.it
|   http://www.mkportal.it
|   Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
|   > MKPortal
|   > Written By Amedeo de longis
|   > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
*/

define ( 'IN_MKP', 1 );


$MK_PATH = "./";
require $MK_PATH."mkportal/conf_mk.php";

switch($MK_BOARD) {
	case 'IPB':
		$driverf = "IPB/ipb_driverf.php";
		$board_functions = "IPB/ipb_board_functions.php";
    break;
	case 'PHPBB':
    	$driverf = "PHPBB/php_driverf.php";
		$board_functions = "PHPBB/php_board_functions.php";
    break;
	case 'VB':
    	$driverf = "VB/vb_driverf.php";
		$board_functions = "VB/vb_board_functions.php";
    break;
	case 'OXY':
    	$driverf = "oxy_driverf.php";
		$board_functions = "oxy_board_functions.php";
    break;
    case 'IPB13':
    		$driverf = "IPB13/ipb13_driverf.php";
		$board_functions = "IPB13/ipb13_board_functions.php";
    break;
	default:
    	$driverf = "SMF/smf_driverf.php";
		$board_functions = "SMF/smf_board_functions.php";
    break;
}

include('http://staff.x10hosting.com/adCode.php?ad=corporate');

require $MK_PATH."mkportal/include/$driverf";
require $MK_PATH."mkportal/include/functions.php";
require $MK_PATH."mkportal/include/$board_functions";
require "$mklib->template/tpl_main.php";

$mkportals->input = $mklib->mkp_input();

if($MK_OFFLINE && !$mkportals->member['g_access_cp'] && !$mklib->member['g_access_cpa']) {
		$message = $mklib->lang['offline'];
		$mklib->off_line_page($message);
		exit;
}

$switch = array('blog'         =>   "blog",
                'chat'         =>   "chat",
                'contents'     =>   "contents",
                'downloads'    =>   "downloads",
                'gallery'      =>   "gallery",
                'news'         =>   "news",
                'quote'        =>   "quote",
                'reviews'      =>   "reviews",
                'search'       =>   "search",
                'topsite'      =>   "topsite",
                'urlobox'      =>   "urlobox",
		'staff'        =>   "staff",
		'docs'         =>   "docs",
		'xebook'       =>   "xebook"
                );


if (!isset($switch[$mkportals->input['ind']])) {
    $mkportals->input['ind'] = "contents";
}
if (!$mklib->disablegzip && $mkportals->input['ind'] != "downloads") {
	ob_end_clean();
	@ob_start('ob_gzhandler');
}
require "./mkportal/modules/{$switch[$mkportals->input['ind']]}/index.php";

?>

I put it exactly in the same place in my vBulletin and it works.
 

Reclutador

Active Member
Messages
3,866
Reaction score
0
Points
36
This code is valid to mkportal + smf? I will try, because the other codes don't runs..
 

d2vid

New Member
Messages
86
Reaction score
0
Points
0
I used mkportal & vbulletin. I think it is compatible with smf.

I'm no longer using mkportal. I deleted the data so the thread can be closed.
 

Phil

Retired Staff
Messages
7,344
Reaction score
0
Points
36
MkPortal will work with SMF, PHPbb, IBP, VB.. more..
 
Status
Not open for further replies.
Top