Mod bij portal

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Mod bij portal

Bericht door michaa113 » 18 apr 2003, 21:49

Beschrijving: dit bestand legt je uit hoe je een verjaardag blok toe kun voegen op ezPortal
Vereist verjaardags mod (Birthday mod)

Maar de birthday mod kan ik nergens vinden.
Wie kan me helpen?
Tijd weg geweest!
Maar ik BEN terug!

Caboman

Bericht door Caboman » 18 apr 2003, 21:51

als je NLezPortalv2.1.8 hebt. dan hoort deze erbij

Code: Selecteer alles

################################################################# 
## Titel: Verjaardag blok voor Smartor's ezPortal
## Auteur: Smartor <smartor_xp@hotmail.com> - http://smartor.is-root.com
## Vertaling: Admiral Rob <robvanderburgt@home.nl>
## Beschrijving: dit bestand legt je uit hoe je een verjaardag blok toe kun voegen op ezPortal
##		 Vereist verjaardags mod (Birthday mod)
##
## Aan te passen bestanden: 2
##	portal.php
##	templates/subSilver/portal_body.tpl
##
## Bijgevoegde bestanden: geen
##
################################################################# 

#
#-----[ OPEN ]---------------------------------------------
#
portal.php

#
#-----[ VIND ]----------------------------------------
#
//
// Start pagina output


#
#-----[ VOEG DAARVOOR TOE ]-----------------------------------
#
// Verjaardag mod, Laat gebruikers met een verjaardag zien
$sql = "SELECT user_id, username, user_birthday,user_level FROM " . USERS_TABLE. " WHERE user_birthday!=999999 ORDER BY username";
if($result = $db->sql_query($sql))
{
$birthdayrow = $db->sql_fetchrowset($result);
if (!empty($birthdayrow))
{
	$year=create_date('Y', time(), $board_config['board_timezone']);
	$date_today = create_date('Ymd', time(), $board_config['board_timezone']);
	$date_forward = create_date('Ymd', time()+($board_config['birthday_check_day']*86400), $board_config['board_timezone']);
	for($i = 0; $i < count($birthdayrow); $i++)
	{
		$user_birthday=realdate("md",$birthdayrow[$i]['user_birthday']);
		$user_birthday2=(($year.$user_birthday<$date_today)? $year+1:$year).$user_birthday;
		if ($user_birthday2==$date_today)
		{
			//gebruikers die vandaag hun verjaardag hebben
			$user_age=$year- realdate ('Y',$birthdayrow[$i]['user_birthday']); 
			$style_color = ($birthdayrow[$i]['user_level'] == ADMIN )?'style="color:#' . $theme['fontcolor3'] . '"':(( $birthdayrow[$i]['user_level'] == MOD )?'style="color:#' . $theme['fontcolor2'] . '"':''); 
			$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' ('.$user_age.')</b></a>'; 
		}
		else if ($user_birthday2>$date_today  && $user_birthday2<=$date_forward)
		{
			// gebruikers die hun verjaardag hebben binnen de komende dagen
			$user_age=($year.$user_birthday<$date_today)?$year- realdate('Y',$birthdayrow[$i]['user_birthday']) + 1 : $year- realdate('Y',$birthdayrow[$i]['user_birthday']); 
			$style_color = ($birthdayrow[$i]['user_level'] == ADMIN )?'style="color:#' . $theme['fontcolor3'] . '"':(( $birthdayrow[$i]['user_level'] == MOD )?'style="color:#' . $theme['fontcolor2'] . '"':'');
			$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' ('.$user_age.')</b></a>';
		}
	}
}
}
$db->sql_freeresult($result);

#
#-----[ VIND ]----------------------------------------
#
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ VOEG DAARNA TOE ]-----------------------------------
#
	// verjaardag mod
	'L_WHOSBIRTHDAY_WEEK' => sprintf((($birthday_week_list)? $lang ['Birthday_week'].$birthday_week_list:$lang ['Nobirthday_week']),$board_config['birthday_check_day']),
	'L_WHOSBIRTHDAY_TODAY' =>($birthday_today_list&&$board_config['birthday_check_day'])? $lang ['Birthday_today'].$birthday_today_list:$lang ['Nobirthday_today'],
	'L_BIRTHDAY' => $lang['Birthday'],


#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/portal_body.tpl

#
#-----[ VIND ]----------------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_STATISTICS}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS}<br />{NEWEST_USER}<br /><br/>{TOTAL_POSTS} {TOTAL_TOPICS}<br />&nbsp;</span></td>
		   </tr>
		  </table>
		  
		  <br />

#
#-----[ VOEG DAARNA TOE ]-----------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_BIRTHDAY}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">{L_WHOSBIRTHDAY_TODAY}<br /><br />{L_WHOSBIRTHDAY_WEEK}<br />&nbsp;</span></td>
		   </tr>
		  </table>
		  
		  <br />

#
#-----[ SLA OP/SLUIT AF ALLE BESTANDEN ]------------------------------------------ 
#
# EoF

Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Bericht door michaa113 » 18 apr 2003, 21:52

Caboman schreef:als je NLezPortalv2.1.8 hebt. dan hoort deze erbij

Code: Selecteer alles

################################################################# 
## Titel: Verjaardag blok voor Smartor's ezPortal
## Auteur: Smartor <smartor_xp@hotmail.com> - http://smartor.is-root.com
## Vertaling: Admiral Rob <robvanderburgt@home.nl>
## Beschrijving: dit bestand legt je uit hoe je een verjaardag blok toe kun voegen op ezPortal
##		 Vereist verjaardags mod (Birthday mod)
##
## Aan te passen bestanden: 2
##	portal.php
##	templates/subSilver/portal_body.tpl
##
## Bijgevoegde bestanden: geen
##
################################################################# 

#
#-----[ OPEN ]---------------------------------------------
#
portal.php

#
#-----[ VIND ]----------------------------------------
#
//
// Start pagina output


#
#-----[ VOEG DAARVOOR TOE ]-----------------------------------
#
// Verjaardag mod, Laat gebruikers met een verjaardag zien
$sql = "SELECT user_id, username, user_birthday,user_level FROM " . USERS_TABLE. " WHERE user_birthday!=999999 ORDER BY username";
if($result = $db->sql_query($sql))
{
$birthdayrow = $db->sql_fetchrowset($result);
if (!empty($birthdayrow))
{
	$year=create_date('Y', time(), $board_config['board_timezone']);
	$date_today = create_date('Ymd', time(), $board_config['board_timezone']);
	$date_forward = create_date('Ymd', time()+($board_config['birthday_check_day']*86400), $board_config['board_timezone']);
	for($i = 0; $i < count($birthdayrow); $i++)
	{
		$user_birthday=realdate("md",$birthdayrow[$i]['user_birthday']);
		$user_birthday2=(($year.$user_birthday<$date_today)? $year+1:$year).$user_birthday;
		if ($user_birthday2==$date_today)
		{
			//gebruikers die vandaag hun verjaardag hebben
			$user_age=$year- realdate ('Y',$birthdayrow[$i]['user_birthday']); 
			$style_color = ($birthdayrow[$i]['user_level'] == ADMIN )?'style="color:#' . $theme['fontcolor3'] . '"':(( $birthdayrow[$i]['user_level'] == MOD )?'style="color:#' . $theme['fontcolor2'] . '"':''); 
			$birthday_today_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' ('.$user_age.')</b></a>'; 
		}
		else if ($user_birthday2>$date_today  && $user_birthday2<=$date_forward)
		{
			// gebruikers die hun verjaardag hebben binnen de komende dagen
			$user_age=($year.$user_birthday<$date_today)?$year- realdate('Y',$birthdayrow[$i]['user_birthday']) + 1 : $year- realdate('Y',$birthdayrow[$i]['user_birthday']); 
			$style_color = ($birthdayrow[$i]['user_level'] == ADMIN )?'style="color:#' . $theme['fontcolor3'] . '"':(( $birthdayrow[$i]['user_level'] == MOD )?'style="color:#' . $theme['fontcolor2'] . '"':'');
			$birthday_week_list .= ' <a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $birthdayrow[$i]['user_id']) . '"' . $style_color .'><b>' . $birthdayrow[$i]['username'] . ' ('.$user_age.')</b></a>';
		}
	}
}
}
$db->sql_freeresult($result);

#
#-----[ VIND ]----------------------------------------
#
	'L_VOTE_BUTTON' => $lang['Vote'],

#
#-----[ VOEG DAARNA TOE ]-----------------------------------
#
	// verjaardag mod
	'L_WHOSBIRTHDAY_WEEK' => sprintf((($birthday_week_list)? $lang ['Birthday_week'].$birthday_week_list:$lang ['Nobirthday_week']),$board_config['birthday_check_day']),
	'L_WHOSBIRTHDAY_TODAY' =>($birthday_today_list&&$board_config['birthday_check_day'])? $lang ['Birthday_today'].$birthday_today_list:$lang ['Nobirthday_today'],
	'L_BIRTHDAY' => $lang['Birthday'],


#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/portal_body.tpl

#
#-----[ VIND ]----------------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_STATISTICS}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS}<br />{NEWEST_USER}<br /><br/>{TOTAL_POSTS} {TOTAL_TOPICS}<br />&nbsp;</span></td>
		   </tr>
		  </table>
		  
		  <br />

#
#-----[ VOEG DAARNA TOE ]-----------------------------------
#
		  <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		   <tr>
			<td class="catHead" height="25"><span class="genmed"><b>{L_BIRTHDAY}</b></span></td>
		   </tr>
		   <tr>
			<td class="row1" align="left"><span class="gensmall">{L_WHOSBIRTHDAY_TODAY}<br /><br />{L_WHOSBIRTHDAY_WEEK}<br />&nbsp;</span></td>
		   </tr>
		  </table>
		  
		  <br />

#
#-----[ SLA OP/SLUIT AF ALLE BESTANDEN ]------------------------------------------ 
#
# EoF

## Beschrijving: dit bestand legt je uit hoe je een verjaardag blok toe kun voegen op ezPortal
## Vereist verjaardags mod (Birthday mod)

Die birthday mod zelf moet ik hebben!
Die heb ik al.
Tijd weg geweest!
Maar ik BEN terug!

Caboman

Bericht door Caboman » 18 apr 2003, 21:54

:?

Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Bericht door michaa113 » 18 apr 2003, 21:56

ik kan hem niet op smartor vinden, niet op phpbbhacks.com
Tijd weg geweest!
Maar ik BEN terug!


Caboman

Bericht door Caboman » 18 apr 2003, 23:58

maar die is in het engels :?

wouter1980
Berichten: 122
Lid geworden op: 21 jan 2003, 22:53

Bericht door wouter1980 » 19 apr 2003, 00:08

language file aanpassen en dan istie ook in het nederlands :D
of je moet wachten tot er ook een nederlandse versie uitkomt.

Gebruikersavatar
DaMnNaTiOn
Berichten: 2555
Lid geworden op: 11 dec 2002, 18:29
Locatie: localhost
Contacteer:

Bericht door DaMnNaTiOn » 19 apr 2003, 10:15

lastmodified.net

Gebruikersavatar
Leipo
Berichten: 4693
Lid geworden op: 22 feb 2003, 12:29
Contacteer:

Bericht door Leipo » 19 apr 2003, 11:36

Zei gister de page van DaM ook al maar wat maakt het uit dat ie engels is..
Die 2 zinnen.. :)
[+] Isento at DeviantArt

Gebruikersavatar
Leipo
Berichten: 4693
Lid geworden op: 22 feb 2003, 12:29
Contacteer:

Bericht door Leipo » 19 apr 2003, 11:38

Edit Michaa daarna wel bij mij overbrengen he :wink:
Ik heb het trouwens bij relpy mod al gevonden..
Moet helemaal nieuwe tabel enzo gaan aanmaken maar dat kan ik niet dus vraag ik vietopic.php wel ff van die gozer..
Heb ik weer voordeel bijv. die balk met link plaatjes :P
[+] Isento at DeviantArt

Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Bericht door michaa113 » 19 apr 2003, 13:16

hahaha
Jij blij.
Maar toch zelf doen is leuker. Daar leer je ook wat van
Tijd weg geweest!
Maar ik BEN terug!

Gebruikersavatar
Leipo
Berichten: 4693
Lid geworden op: 22 feb 2003, 12:29
Contacteer:

Bericht door Leipo » 19 apr 2003, 13:27

Weet ik..
Ben bezig met anderen mod's maar kan ze ook niet vinden.. :oops: *deep shame*
[+] Isento at DeviantArt

Gebruikersavatar
michaa113
Berichten: 1376
Lid geworden op: 29 mar 2003, 23:27
Locatie: Game Ville
Contacteer:

Bericht door michaa113 » 20 apr 2003, 08:46

hahaha welke dan?
Tijd weg geweest!
Maar ik BEN terug!

Gesloten