In Line Banner Add - INSTALARE ??? pls HELP

Discuţii legate de instalarea şi funcţionarea unor MODificări vechi sau noi ale forumului phpBB 2.0.x.
Avatar utilizator
cadastru
Utilizator înregistrat
Mesaje: 60
Membru din: 29-Noi-2007, 18:49:27
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

In Line Banner Add - INSTALARE ??? pls HELP

Mesaj de cadastru »

Care este modul de pune reclama la sfarstul tuturor posturilor.. cum este ce de pe forum.softpedia.com ?

De unde il pot downloada ..

SI CUM IL INSTALEZ ???

Ash vrea si eu o explicatie mai k la prosti asha .. :P :mrgreen:
Ultima oară modificat 12-Dec-2007, 23:34:43 de către cadastru, modificat de 2 ori în total.
www.cadastru.org
http://forum.cadastru.org

Un euro economisit in faza de proiectare te costa 10 euro in faza de executie, 100 de euro in faza de intretinere si 1000 de euro in faza de consolidare.
Avatar utilizator
bluestar
Utilizator înregistrat
Mesaje: 787
Membru din: 07-Iun-2007, 22:23:24
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de bluestar »

I`m back on phpBB.ro!
bluestar - also known as komAk
komAk`s blog - Life goes on...
flowers
AdministratorAdministrator
Mesaje: 4641
Membru din: 03-Iun-2004, 17:50:34
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Bucureşti, România
Contact:

Mesaj de flowers »

cadastru, pune un titlu care sa aiba legatura cu mesajul tau, nu intrebari sau interjectii...
Avatar utilizator
cadastru
Utilizator înregistrat
Mesaje: 60
Membru din: 29-Noi-2007, 18:49:27
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de cadastru »

Gata am schimbat titlul.. acum ca am aflat si cum se numeste modul. Dar tot nu am aflat cum se instaleaza .. :(
www.cadastru.org
http://forum.cadastru.org

Un euro economisit in faza de proiectare te costa 10 euro in faza de executie, 100 de euro in faza de intretinere si 1000 de euro in faza de consolidare.
Avatar utilizator
Rosca
Utilizator înregistrat
Mesaje: 155
Membru din: 22-Apr-2007, 22:13:09
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Photoshop CS
Contact:

Mesaj de Rosca »

Cod: Selectaţi tot

#
#-----[ 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>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>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	<BEGIN>
	<tr> 
		<td><span><b>{postrow.L_SPONSOR}</b></span><br /</td>
		<td>
			{postrow.INLINE_AD}
		</td>
	</tr>
	<tr> 
		<td><img></td>
	</tr>
	<END>
	<BEGIN>
	<tr>
		<td>
			{postrow.INLINE_AD}
		</td>
	</tr>
	<END>
#
#-----[ 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 ]------------------------------------------
#
Cred ca sunt destul de clare explicatiile in fisierul de instalare al mod-ului.
Avatar utilizator
cadastru
Utilizator înregistrat
Mesaje: 60
Membru din: 29-Noi-2007, 18:49:27
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de cadastru »

Crearea tabelei in SQL trebuie s`o fac eu sau isi face singru treaba ?



mersi mult .. Dar sa stii ca nu aveam nici un fisier de instalare in ce am downloadat eu ..
www.cadastru.org
http://forum.cadastru.org

Un euro economisit in faza de proiectare te costa 10 euro in faza de executie, 100 de euro in faza de intretinere si 1000 de euro in faza de consolidare.
Avatar utilizator
Poseidon
Utilizator înregistrat
Mesaje: 926
Membru din: 02-Iun-2007, 15:58:19
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Localitate: Only phpBB.ro !
Contact:

Mesaj de Poseidon »

Nu. Dupa ce ai pus toate fisierele pe FTP, cu modul instalat desigur, rulezi comanda asta in phpMyAdmin,apasand pe butonul SQL:

Cod: Selectaţi tot

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'); 
Avatar utilizator
cadastru
Utilizator înregistrat
Mesaje: 60
Membru din: 29-Noi-2007, 18:49:27
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de cadastru »

nu gasesc .helpline { background-color: {T_TR_COLOR2}; border-style: none; }
in overall_header mentionez k am luat overalheader din templateu solaris nu din subsilver ... si tot ce era de pus am pus in solaris... :(

si la limba cum fac pentru romana fara diacritice ?
www.cadastru.org
http://forum.cadastru.org

Un euro economisit in faza de proiectare te costa 10 euro in faza de executie, 100 de euro in faza de intretinere si 1000 de euro in faza de consolidare.
Avatar utilizator
dan74mm
Utilizator înregistrat
Mesaje: 56
Membru din: 03-Aug-2007, 00:57:16
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Nivel php: Mediu
Contact:

Mesaj de dan74mm »

Cauta ".helpline" in fisierul .css ( acuma am aflat si eu .. tot de aici :D )
diomet
Utilizator înregistrat
Mesaje: 10
Membru din: 01-Oct-2007, 15:54:37
Versiune: 3.0.5
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat

Mesaj de diomet »

si totusi am facut de 2 ori tot si imi arata o pagina goala
Închis

Înapoi la “2.0.x Suport pentru MODificări”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 0 vizitatori