Plus'a reklam modu kurulumu hakkında!

phpBB 2.0.x sürümleri için MODlar hakkında ihtiyacınız olan desteği buradan sorarak alabilirsiniz.
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Plus'a reklam modu kurulumu hakkında!

Mesaj gönderen tehlike_çanı »

Arkadaşlar sitemde plus 1.53 kullanıyorum ve bu sitedeki reklam modunu kurdum ancak bi rsorun var ;

overall_header.tpl dosyasını aç demiş

Kod: Tümünü seç

.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
bunu bul

Kod: Tümünü seç

td.inlineadtitle {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px;
}
td.inlinead {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px; text-align: center;
}
bunu altına ekle demiş ancak benim dosyamda bu gösterdiği kod yok

benim dosyasm ise şu;

Kod: Tümünü seç

<?xml version="1.0" encoding="{S_CONTENT_ENCODING}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="Content-Style-Type" content="text/css" />
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/fisubice/{T_HEAD_STYLESHEET}" type="text/css" />
<link rel="shortcut icon" href="./favicon.ico" />
<script language="JavaScript" type="text/javascript" src="includes/toggle_display.js"></script>
<!-- BEGIN switch_enable_pm_popup -->
<script type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
<script type="text/javascript">
<!--
var S_SID = '{S_SID}';
var ajax_core_defined = 0;
var phpbb_root_path = '{PHPBB_ROOT_PATH}';
//-->
</script>

<script type="text/javascript" src="includes/javascript/ajax_core.js"></script>

<script language="Javascript" type="text/javascript"> 
<!-- 
function setCheckboxes(theForm, elementName, isChecked)
{
    var chkboxes = document.forms[theForm].elements[elementName];
    var count = chkboxes.length;

    if (count) 
	{
        for (var i = 0; i < count; i++) 
		{
            chkboxes[i].checked = isChecked;
    	}
    } 
	else 
	{
    	chkboxes.checked = isChecked;
    } 

    return true;
} 
//--> 
</script>
<!-- Start add - Birthday MOD -->
{GREETING_POPUP}
<!-- End add - Birthday MOD -->
<script type="text/javascript">
<!--
window.status = "{PRIVATE_MESSAGE_INFO}";
// -->
</script>
<!-- Start add - Protect user account MOD -->
{PASSWD_POPUP}
<!-- End add - Protect user account MOD -->
<!-- BEGIN switch_absence -->
<script language="Javascript" type="text/javascript">
<!--
	window.open('{U_ABSENCE_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
//-->
</script>
<!-- END switch_absence -->
</head>
<body>
<!-- Start add - Complete banner MOD -->
<!-- BEGIN switch_Banners -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="center">{BANNER_1_IMG}</div></td></tr>
<tr><td><div align="center">{BANNER_2_IMG}</div></td></tr>
</table>
</td>
<td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="center">{BANNER_3_IMG}</div></td></tr>
<tr><td><div align="center">{BANNER_4_IMG}</div></td></tr>
</table>
</td>
<td width="20%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="center">{BANNER_5_IMG}</div></td></tr>
<tr><td><div align="center">{BANNER_6_IMG}</div></td></tr>
</table>
</td>
</tr>
</table>
<!-- END switch_Banners -->
<!-- End add - Complete banner MOD -->
<a name="top" id="top"></a>
<table class="bodyline" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr> 
<td><a href="{U_INDEX}"><img src="templates/fisubice/images/phpbb2_logo.jpg" border="0" alt="{L_INDEX}" title="{L_INDEX}" width="240" height="110" /></a></td>
<td align="center" width="100%">{BANNER_0_IMG}</td><td><a href="{U_PORTAL}"><img src="templates/fisubice/images/phpbb2_logor.jpg" border="0" alt="{L_HOME}" title="{L_HOME}" width="140" height="110" /></a></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr> 
<td align="center" class="topnav">&nbsp;<a href="{U_FAQ}">{L_FAQ}</a>
&nbsp;•&nbsp;
<a href="{U_SEARCH}">{L_SEARCH}</a>
&nbsp;•&nbsp;
<a href="{U_PREFERENCES}">{L_PREFERENCES}</a>
<!-- BEGIN switch_user_logged_in -->
&nbsp;•&nbsp;
<a href="{U_BOOKMARKS}">{L_BOOKMARKS}</a>
&nbsp; •&nbsp;
<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW2}</a>
<!-- END switch_user_logged_in -->
&nbsp;•&nbsp;
<a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
<!-- BEGIN switch_user_logged_out -->
&nbsp;•&nbsp;
<a href="{U_REGISTER}">{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
&nbsp;•&nbsp;
<a href="{U_PROFILE}">{L_PROFILE}</a>
&nbsp;•&nbsp;
<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
&nbsp;•&nbsp;
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></td>
</tr>
</table>

{CALENDAR_BOX}
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
bunun nersine eklemeliyim bu kodu??? :wink: :cry:
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

bu kod overal_header.tpl ye eklenmeyecek. temadi.css ye eklenecek.o kodun aynısını bulmuyordu başından bi kısmını arat mutlaka bulcaksın
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Mesaj gönderen tehlike_çanı »

AlleRGy yazdı:bu kod overal_header.tpl ye eklenmeyecek. temadi.css ye eklenecek.o kodun aynısını bulmuyordu başından bi kısmını arat mutlaka bulcaksın
kardeş valla bende şaştım kaldım burada overal diyor ama orada yok

css dosyasında da yok
işte dosya;

Kod: Tümünü seç

/* Based on the original Style Sheet for the fisubsilver v2 Theme for phpBB version 2+
Edited by Daz  - http://www.forumimages.com - last updated 26-06-03 */

/* The content of the posts (body of text) */
body{background:#ecf0f6;color:#000000;font:12px Verdana,Arial,Helvetica,sans-serif;margin:6px;padding:0;
scrollbar-3dlight-color:#d1d7dc;
scrollbar-arrow-color:#006699;
scrollbar-darkshadow-color:#98aab1;
scrollbar-face-color:#dee3e7;
scrollbar-highlight-color:#ffffff;
scrollbar-shadow-color:#dee3e7;
scrollbar-track-color:#efefef}

/* General font families for common tags */
font,th,td,p{font:12px Verdana,Arial,Helvetica,sans-serif}

/* General text */
.gensmall{font-size:10px}
td.genmed,.genmed{font-size:11px}
.explaintitle{font-size:11px;font-weight:bold;color:#5c81b1}

/* General page style */
a:link,a:active,a:visited,a.postlink{color:#32475f;text-decoration:none}
a:hover{color:#839fbc;text-decoration:underline}

a.link2{color:#DEEEF3}
a.link2:visited{color:#DEEEF3}

/* titles for the topics:could specify viewed link colour too */
.topictitle{font-size:11px;font-weight:bold}
a.topictitle:visited{color:#496687}
a.topictitle:hover{color:#839fbc}

/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name{font-size:11px;font-weight: bold}

hr{border: 0px solid #ffffff;border-top-width:1px;height:0px}

/* Category gradients*/
td.cat{font-weight:bold;letter-spacing:1px;color:#516a88;background:#d9e2ec url(images/cellpic1.gif);
height:29px;text-indent:4px}

/* Main table cell colours and backgrounds */
.row1{background:#f4f6fb}
.row2,.helpline{background:#e1e9f2}
.row3{background:#d7e2ef}
td.spacerow{background:#cad9ea}

/* This is for the table cell above the Topics,Post & Last posts on the index.php */
td.rowpic{background:url(images/cellpic2.jpg) #ffffff repeat-y}

/* Table Header cells */
th{background:#c6d3e4 url(images/cellpic3.gif);color:#516a88;font-size:11px;
font-weight:bold;height:27px;white-space:nowrap;text-align:center;padding-left:8px;padding-right:8px}

/* This is the border line & background colour round the entire page */
.bodyline{background:#f7f8fc;border:1px solid #98aab1}

/* This is the outline round the main forum tables */
.forumline{background:#ffffff;border:1px solid #486386}

/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1{
font:bold 20px/120% "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;text-decoration:none;color:#839fbc}

.subtitle,h2{font:bold 18px/180% "Trebuchet MS",Verdana,Arial,Helvetica,sans-serif;
text-decoration:none}

/* Used for the navigation text,(Page 1,2,3 etc) and the navigation bar when in a forum */
.nav{font-size:11px;font-weight:bold}
.postbody{font-size:12px;line-height:125%}

/* Location,number of posts,post date etc */
.postdetails{font-size:10px;color:#00396a}

/* Quote blocks */
.quote{background:#fafafa;border:1px solid #d1d7dc;color:#444444;font-size:11px;line-height:125%}
.quotediv{background:#fafafa;border: 1px solid #9ca9b4;border-top:0; padding:5px;overflow:auto;width:90%;text-align:left}

/* Code blocks */
.code{background:#fafafa;border:1px solid #d1d7dc;color:#006600;
font:12px Courier,"Courier New",sans-serif;padding:5px}
.codetitle{background: #cdd6de;border:1px solid #9ca9b4;padding:5px;width:90%;color:#32475F;font-weight:bold; text-align:left; 
margin-top:10px} 
.codediv{background:#fafafa;border: 1px solid #9ca9b4;color:#123123;border-top:0; 
font:12px Courier,"Courier New",sans-serif;padding:5px;overflow:auto;width:90%;height:50px;text-align:left}

/* This is for the error messages that pop up */
.errorline{background:#add8e6;border:1px solid #000000}

/* Form elements */
form{display:inline}

input{font:11px Verdana,Arial,Helvetica,sans-serif}

select{background:#ffffff;font:11px Verdana,Arial,Helvetica,sans-serif}

input.post,textarea.post{background:#ffffff;border:1px solid #000000;
font:11px Verdana,Arial,Helvetica,sans-serif;padding-bottom:2px;padding-left:2px}

input.button,input.liteoption,.fakebut{border:1px solid #000000;background:#fafafa;font-size:11px}
input.catbutton{border:1px solid #000000;background:#fafafa;font-size:10px}
input.mainoption{border:1px solid #000000;background:#fafafa;font-size:11px;font-weight:bold}

a.but,a.but:hover,a.but:visited{color:#000000;text-decoration:none}

/* This is the line in the posting page which shows the rollover
help line. Colour value in row2 */
.helpline{border:0 solid;font-size:10px}

/* This is the gradient background at the top of the page */
.topbkg{background: #dbe3ee url(images/cellpic_bkg.jpg) repeat-x}
.topnav{font-size:10px;background: #b0c4d8 url(images/cellpic_nav.gif) repeat-x;
height:21px;white-space:nowrap;border: 0px solid #91a0ae;border-width: 1px 0px 1px 0px}

/* Admin & Moderator Colours MODification */
.admin,.mod{font-size:11px;font-weight:bold}
.admin,a.admin,a.admin:visited{color:#ff0000}
.mod,a.mod,a.mod:visited{color:#006600}
a.admin:hover,a.mod:hover{color:#839fbc}

/* Specify the space around images */
.imgtopic,.imgicon{margin-left:3px}
.imgspace{margin-left:1px;margin-right:2px}
.imgfolder{margin:1px 4px 1px 4px}

/* Gets rid of the need for border="0" on hyperlinked images */
img{border:0 solid}
abbr, acronym {
	border-bottom: 1px dotted #333;
	cursor: help;
}

.imgfade{filter:alpha(opacity=50); -moz-opacity:0.5;margin-left:3px}
.imgfull{filter:alpha(opacity=100); -moz-opacity:1;margin-left:3px} 

/*--- album category hierarchy : begin */
.tab_links, a.tab_links:hover, a.tab_links:link, a.tab_links:active, a.tab_links:visited { 
	font-size: 11px;
	color: #FFA34F; 
	text-decoration: none;
}

a.tab_links:hover { 
	text-decoration: underline;
}

.tab_headers, th.tab_headers {
	color: #FFA34F; 
	font-size: 11px; 
	font-weight : bold;
	padding-left: 4px;
	padding-right: 8px;
	border: #003366; 
	border-style: solid; 
	border-width: 1px 1px 0px 1px;
	background-color: #006699;
}

.tab_border	{ background-color: #E5E5E5; border: 0px;}

.filler, th.filler {
	background-color:#E5E5E5; 
	background-image:none;
}
/*--- album category hierarchy : end */
hayret bişe! :wink:
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

plusdaki fisubsilversh temasına göre tema değişikliklerini anlatıyorum.kendi reklam moduna göre koddaki değişiklikleri ayarla.benim anlattığım inline reklam modunun kodları

templates/fisubsilversh/viewtopic_body.tpl dosyasını aç
bul

Kod: Tümünü seç

<!-- END postrow -->
üstüne ekle

Kod: Tümünü seç

<!-- BEGIN switch_ad -->
   <tr>
      <td width="150" align="left" valign="top" class="inlineadtitle"><span class="name"><b>{postrow.L_SPONSOR}</b></span><br /</td>
      <td class="inlinead" width="100%" height="28" valign="top">
         {postrow.INLINE_AD}
      </td>
   </tr>
   <tr>
      <td class="spaceRow" colspan="2" height="1"><img src="templates/fisubsilversh/images/spacer.gif" alt="" width="1" height="1" /></td>
   </tr>
   <!-- END switch_ad -->
   <!-- BEGIN switch_ad_style2 -->
   <tr>
      <td colspan=2 class="inlinead">
         {postrow.INLINE_AD}
      </td>
   </tr>
   <!-- END switch_ad_style2 -->
templates/fisubsilversh/fisubsilversh.css dosyasını aç
bul

Kod: Tümünü seç

/* Main table cell colours and backgrounds */
üstüne ekle

Kod: Tümünü seç

td.inlineadtitle {
   background-color:D9E2EC;border:1px solid #006699}
td.inlinead {
   background-color:D9E2EC;border:1px solid #006699; text-align: center;
} 
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Mesaj gönderen tehlike_çanı »

Peki kardeş bu reklam kodunu şu şekilde gösterebilir miyim?
Reklam olan yere reklam alanı resmi koymak nasıl oluyor?,
Resimde reklamın solunda var bu resim!
[ resmi görüntülemek için tıklayın ]

Ve reklamın görüneceği yerin araka plan renginin forum teması ile aynı olmasını istiyorum bunu nasıl yapabilirim?
Şu anda arka plan beyaz!
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

viewtopic_body.tpl de eklediin reklam kodlarında biraz oynama yapman gerekecek.normal msjları gösteren kodların yapısına bak ona göre istediin gibi düzenleyebilirsin.biraz html bilgisi gerekiyor
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Mesaj gönderen tehlike_çanı »

AlleRGy yazdı:viewtopic_body.tpl de eklediin reklam kodlarında biraz oynama yapman gerekecek.normal msjları gösteren kodların yapısına bak ona göre istediin gibi düzenleyebilirsin.biraz html bilgisi gerekiyor
valla uğraştım ama yapamadım html bilgim az yane mesajı gösteren kodları bulamadım!
yukarıya css dosyamı vermiştim sana zahmet bana yol gösterebiliri misin? :cry: :wink:
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

css den olmayacak.viewtopic_body.tpl den olacak.deneme yanılma yapacaksın sunu yaparsan kesin olur die bişi söleyemem.
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Mesaj gönderen tehlike_çanı »

çok teşekkür ederim yardımların için sağol!
Bu reklamın görüntülendiği yedeki arka fonu ayarlayabilirim değil mi buradan? :wink:
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

ewet ayarlayabilirsin.ama beyaz cıkmaması lazımdı.
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Mesaj gönderen tehlike_çanı »

Kardeş yardımın için teşekkür ederim rengini ayarladaım ancak forumda reklam alanı diye resim çıkmasını istiyorum yukarıda resimde vermiştim!
benim forumda sponsor yazıyor!
tam o noktada resim çıkması mümkün mü acaba? :wink:
Kullanıcı avatarı
crowzer
Kayıtlı Kullanıcı
Mesajlar: 623
Kayıt: 05.06.2006, 19:38
İletişim:

Mesaj gönderen crowzer »

Onuda Eklediğn kodlar Arasında Sponsor yazan Bir Yer Var Onu Kaldırıp Resmin adresini Yazarsan Yapabilirsin
FoRumOlayi.com
Benimde İmzam Olmasın Ne Var Yani
Kullanıcı avatarı
tehlike_çanı
Kayıtlı Kullanıcı
Mesajlar: 360
Kayıt: 16.04.2006, 09:59
Konum: Kahramanmaraş/Elbistan
İletişim:

Mesaj gönderen tehlike_çanı »

Valla yapamadım işte mod aşağıda hangisin yerine yazacağım acaba? :wink:

Kod: Tümünü seç

##############################################################
## MOD Title: Inline Banner Ad
## MOD Author: geocator < geocator@gmail.com > (Brian) http://www.geocator.us
## MOD Description: Allows placement of banner ads inline with posts. Contains a variety of options to control display behavior
## MOD Version: 1.0.3
## 
## Installation Level: Moderate
## Installation Time: 14 minutes
## Files To Edit: viewtopic.php
##                includes/constants.php
##                templates/subSilver/overall_header.tpl
##                templates/subSilver/viewtopic_body.tpl
##                language/lang_english/lang_main.php
##                language/lang_english/lang_admin.php
## Included Files: (admin_inline_ad.php, inline_ad_config_body.tpl, admin_inline_ad_code.php, inline_ad_code_body.tpl, inline_ad_code_edit.tpl)
## Generator: MOD Studio 3.0 Alpha 1 [mod functions 0.2.1677.25348]
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
##############################################################
## Author Notes: 
##############################################################
## MOD History:
## 
##   2005-07-13 - Version 1.0.3
## 
##      - Various Optimizations
##      - Added srand() for php compatibility
##
##   2005-06-18 - Version 1.0.2
## 
##      - Exclude Forums Fix
##      - Various code clean-ups
##
##   2005-06-15 - Version 1.0.1
## 
##      - Minor changes for MOD Validation
##
##   2005-06-05 - Version 1.0.0
## 
##      - MOD DB Release
##      - Fixed admin styling bug
##
##   2005-05-01 - Version 0.2.0
## 
##      - Added psedo random rotation
##		- Added new display mode/style
##		- Added post threshold to disable ads for a user
##		- Heavy code rework for performance and cleanliness
##		- DB Schema Cahnges
##
##   2005-03-15 - Version 0.0.5
## 
##      - Added ability to exclude specific groups from ad display
## 
##   2005-02-27 - Version 0.0.4
## 
##      - Added ability to configure what forums ad is displayed in
##      - Added ability to configure who ad is displayed to
##      - Added ability to configure placement of ad in topic
## 
##   2004-10-16 - Version 0.0.3
## 
##      - Now has own table and admin page
## 
##   2004-10-14 - Version 0.0.2
## 
##      - Changed to admin panel, now works for any ad code
## 
##   2004-10-14 - Version 0.0.1
## 
##      - First Beta release.
## 
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################

#
#-----[ SQL ]------------------------------------------
#
CREATE TABLE `phpbb_inline_ads` (
`ad_id` TINYINT( 5 ) NOT NULL auto_increment,
`ad_code` TEXT NOT NULL ,
`ad_name` CHAR( 25 ) NOT NULL,
PRIMARY KEY (`ad_id`)
);

INSERT INTO `phpbb_inline_ads` (`ad_id` , `ad_code`, `ad_name` )
VALUES 
('1', 'Your banner code goes here', 'Default');

INSERT INTO `phpbb_config` ( `config_name` , `config_value` )
VALUES 
('ad_after_post', '1'),
('ad_post_threshold', ''),
('ad_every_post', ''),
('ad_who', '1'),
('ad_no_forums', ''),
('ad_no_groups', ''),
('ad_old_style', '1');
#
#-----[ COPY ]------------------------------------------
#
copy inline_ad_config_body.tpl to templates/subSilver/admin/inline_ad_config_body.tpl
copy inline_ad_code_body.tpl to templates/subSilver/admin/inline_ad_code_body.tpl
copy inline_ad_code_edit.tpl to templates/subSilver/admin/inline_ad_code_edit.tpl	
copy admin_inline_ad.php to admin/admin_inline_ad.php
copy admin_inline_ad_code.php to admin/admin_inline_ad_code.php
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
	$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
	$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
    $inline_ad_code = '';
	$display_ad = ($i == $board_config['ad_after_post'] - 1) || (($board_config['ad_every_post'] != 0) && ($i + 1) % $board_config['ad_every_post'] == 0);
   	//This if statement should keep server processing down a bit
   	if ($display_ad)
   	{
   		$display_ad = ($board_config['ad_who'] == ALL) || ($board_config['ad_who'] == ANONYMOUS && $userdata['user_id'] == ANONYMOUS) || ($board_config['ad_who'] == USER && $userdata['user_id'] != ANONYMOUS);
   		$ad_no_forums = explode(",", $board_config['ad_no_forums']);
		for ($a=0; $a < count($ad_no_forums); $a++){
			if ($forum_id == $ad_no_forums[$a]){
				$display_ad = false;
				break;	
			}
		}
		if ($board_config['ad_no_groups'] != '')
		{
		$ad_no_groups = explode(",", $board_config['ad_no_groups']);
   		$sql = "SELECT 1
   				FROM " . USER_GROUP_TABLE . "
   				WHERE user_id=" . $userdata['user_id'] . " AND (group_id=0";
   		for ($a=0; $a < count($ad_no_groups); $a++){
			$sql .= " OR group_id=" . $ad_no_groups[$a];
   		}
   		$sql .= ")";
   		if ( !($result = $db->sql_query($sql)) )
   		{
			message_die(GENERAL_ERROR, 'Could not query ad information', '', __LINE__, __FILE__, $sql);
   		}
   		if ($row = $db->sql_fetchrow($result)){
   			$display_ad = false;
   		}
		}
		if (($board_config['ad_post_threshold'] != '') &&($userdata['user_posts'] >= $board_config['ad_post_threshold']))
		{
			$display_ad = false;	
		}
   	}
   	//check once more, for server performance
   	
   	if ($display_ad)
   	{
   		$sql = "SELECT a.ad_code
				FROM " . ADS_TABLE . " a";
   		if ( !($result = $db->sql_query($sql)) )
		{
			message_die(GENERAL_ERROR, 'Could not query ad information', '', __LINE__, __FILE__, $sql);
		}
		$adRow = array();
		$adRow = $db->sql_fetchrowset($result);
		srand((double)microtime()*1000000);
		$adindex = rand(1, $db->sql_numrows($result)) - 1;
		$db->sql_freeresult($result);
   		$inline_ad_code = $adRow[$adindex]['ad_code'];
   	}
#
#-----[ FIND ]------------------------------------------
#
		'DELETE' => $delpost,
#
#-----[ AFTER, ADD ]------------------------------------------
#
		'L_SPONSOR' => $lang['Sponsor'],
		'INLINE_AD' => $inline_ad_code,
#
#-----[ FIND ]------------------------------------------
#
		'U_POST_ID' => $postrow[$i]['post_id'])
	);
#
#-----[ AFTER, ADD ]------------------------------------------
#
	if ($display_ad){
		if (!$board_config['ad_old_style'] && $display_ad)
		{
			$template->assign_block_vars('postrow.switch_ad',array());
		}
		else
		{
			$template->assign_block_vars('postrow.switch_ad_style2',array());
		}
	}
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('AUTH_ATTACH', 11);
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('ALL', 1);
#
#-----[ FIND ]------------------------------------------
#
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
#
#-----[ AFTER, ADD ]------------------------------------------
#
define('ADS_TABLE', $table_prefix.'inline_ads');
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
td.inlineadtitle {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px;
}
td.inlinead {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px; text-align: center;
}
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- END postrow -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	<!-- BEGIN switch_ad -->
	<tr> 
		<td width="150" align="left" valign="top" class="inlineadtitle"><span class="name"><b>{postrow.L_SPONSOR}</b></span><br /</td>
		<td class="inlinead" width="100%" height="28" valign="top">
			{postrow.INLINE_AD}
		</td>
	</tr>
	<tr> 
		<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<!-- END switch_ad -->
	<!-- BEGIN switch_ad_style2 -->
	<tr>
		<td colspan=2 class="inlinead">
			{postrow.INLINE_AD}
		</td>
	</tr>
	<!-- END switch_ad_style2 -->
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['Sponsor'] = 'Sponsor';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['ad_managment']  = 'Ad Management';
$lang['inline_ad_config']  = 'Inline Ad Config';
$lang['inline_ads']  = 'Inline Ads';
$lang['ad_code_about']  = 'This page lists current ads.  You may edit, delete or add new ads here.';
$lang['Click_return_firstpost'] = 'Click %sHere%s to return to Inline Ad Configuration';
$lang['Click_return_inline_code'] = 'Click %sHere%s to return to Inline Ad Code Configuration';
$lang['ad_after_post'] = 'Display Ad After x Post';
$lang['ad_every_post'] = 'Display Ad Every x Post';
$lang['ad_display'] = 'Display Ads To';
$lang['ad_all'] = 'All';
$lang['ad_reg'] = 'Registered Users';
$lang['ad_guest'] = 'Guests';
$lang['ad_exclude'] = 'Exclude These Groups (List by comma-seperated group ID)';
$lang['ad_forums'] = 'Exclude These Forums (List by comma-seperated forum ID)';
$lang['ad_code'] = 'Ad Code';
$lang['ad_style'] = 'Display Style';
$lang['ad_new_style'] = 'Ad looks like a special user post';
$lang['ad_old_style'] = 'Ad falls inline with the topic';
$lang['ad_post_threshold'] = 'Do not display if user has more than x posts (Leave blank to disable)';
$lang['ad_add']  = 'Add New Ad';
$lang['ad_name']  = 'Short name to identify ad';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Kullanıcı avatarı
crowzer
Kayıtlı Kullanıcı
Mesajlar: 623
Kayıt: 05.06.2006, 19:38
İletişim:

Mesaj gönderen crowzer »

viewtopic.php de Burayı Bul

Kod: Tümünü seç

#-----[ AFTER, ADD ]------------------------------------------ 
# 
      'L_SPONSOR' => $lang['Sponsor'], 
      'INLINE_AD' => $inline_ad_code,
Sonra

Kod: Tümünü seç

'Sponsor'
yazan yere Resmin adresini ver :wink:
FoRumOlayi.com
Benimde İmzam Olmasın Ne Var Yani
Kullanıcı avatarı
crazyworld
Kayıtlı Kullanıcı
Mesajlar: 52
Kayıt: 12.11.2005, 12:47
Konum: İsTaNBuL
İletişim:

Mesaj gönderen crazyworld »

ben değiştirdim olmadı :( siteadı.com/resim şeklinde değiştirdim olmadı yapan biri yardımcı olabilir mi? :roll:
Kilitli

“2.0.x MOD Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Ahrefs [Bot] ve 2 misafir