/* Begin HP/MP/EXP Mod
*
* Note: all new variables used created in this mod
* are prefixed with level_ to be sure of not overwriting
* other variables.
*
*/
/* Calculate Level
* A user's level is determined by their total number of posts.
* A nice mathmatical formula is used to translate their post count
* into an intager level.
*
* Note: A user with zero (0) posts is considered level 0, however
* making one (1) post, raises them to level 1.
*
*/
/* Determine Hit Points (HP)
*
* Hp is based on user activity.
* Max HP is based on the user's level, and will generally
* be the same for all users of the same level.
*
* A user's current HP is based on the user's posts per day.
* A higher post per day (ppd), the more HP they will have. A
* user with an average PPD (set below) will have 50% of their
* max HP. As a user goes over the average PPD, they will have
* more HP, but the gains will decrease as the user's PPD increases.
* This makes achieving 100% hp difficult, but not impossible.
*
* For users with under the average PPD, they will have HP equal
* to 1/2 the percentage their ppd is of the average.
* ie- a user with 2.5 ppd, and an average ppd of 5 will have
* 25% of their max HP. This is because 2.5 is 50% of 5, and 1/2
* of that, is 25%.
*
* Users who manage to post so far above the average that they have
* more HP than their max will recieve a bonus to their max HP.
*
* Note that users at level 0 will always have 0 / 0 hp.
*
*/
/*
* This value determines the 'average' posts per day.
* The admin may redefine this variable as he wishes.
* Higher values will generally decrease users' HP, and
* lower values will generally increase users' HP.
*
* Note: Do NOT set this value to zero (0).
* This -may- be set to a fractional value (eg, 5.1, 3.1415)
*
*/
$level_avg_ppd = 5;
/*
* this value sets how hard it is to achieve 100%
* hp. The higher you set it, the harder it is to
* get full hp.
*
* to judge how high to set it, a user must have
* posts per day equal to the $level_avg_ppd plus
* the number set below.
*
* This should NOT be zero.
*/
if($level_hp_percent > 100)
{
//Give the user a bonus to max HP for greater than 100% hp.
$level_max_hp += floor( ($level_hp_percent - 100) * pi() );
$level_hp_percent = 100;
}
else
{
$level_hp_percent = max(0, $level_hp_percent);
}
//Be sure a user has no more than max, and no less than zero hp.
$level_cur_hp = max(0, $level_cur_hp);
$level_cur_hp = min($level_max_hp, $level_cur_hp);
/* Determine MP
*
* MP is calculated by how long the user has been around
* and how often they post.
*
* Max MP is based on level, and increases with level
* Each post a user makes costs them mp,
* and a user regenerates mp proportional to how
* many days they have been registered
*
*/
//Number of days the user has been at the forums.
$level_user_days = max(1, round( ( time() - $profiledata['user_regdate'] ) / 86400 ));
/* The mp cost for one post.
* Raising this value will generally decrease the current
* mp for most posters.
* This may be set to a decimal value (eg, 2, 2.1, 3.141596)
* This should NOT be set to 0
*/
$level_post_mp_cost = 2.5;
/* This determines how much mp a user regenerates per day
* Raising this value will generally increase the current
* mp for most posters.
* This may be set to a decimal value (eg, 3, 3.5, 2.71828)
* This should NOT be set to 0
*/
$level_mp_regen_per_day = 4;
/* Determine EXP percentage
*
* Experience is determined by how far the user is away
* from the next level. This is expressed as a percentage.
*
* Note, a user of level 0 has 100% experience. Making one post
* will put them at level 1. Also, a user that is shown to have 100%
* experience, will go up a level on their next post.
*
*/
/* Begin HP/MP/EXP Mod
*
* Note: all new variables used created in this mod
* are prefixed with level_ to be sure of not overwriting
* other variables.
*
*/
/* Calculate Level
* A user's level is determined by their total number of posts.
* A nice mathmatical formula is used to translate their post count
* into an intager level.
*
* Note: A user with zero (0) posts is considered level 0, however
* making one (1) post, raises them to level 1.
*
*/
/* Determine Hit Points (HP)
*
* Hp is based on user activity.
* Max HP is based on the user's level, and will generally
* be the same for all users of the same level.
*
* A user's current HP is based on the user's posts per day.
* A higher post per day (ppd), the more HP they will have. A
* user with an average PPD (set below) will have 50% of their
* max HP. As a user goes over the average PPD, they will have
* more HP, but the gains will decrease as the user's PPD increases.
* This makes achieving 100% hp difficult, but not impossible.
*
* For users with under the average PPD, they will have HP equal
* to 1/2 the percentage their ppd is of the average.
* ie- a user with 2.5 ppd, and an average ppd of 5 will have
* 25% of their max HP. This is because 2.5 is 50% of 5, and 1/2
* of that, is 25%.
*
* Users who manage to post so far above the average that they have
* more HP than their max will recieve a bonus to their max HP.
*
* Note that users at level 0 will always have 0 / 0 hp.
*
*/
/*
* This value determines the 'average' posts per day.
* The admin may redefine this variable as he wishes.
* Higher values will generally decrease users' HP, and
* lower values will generally increase users' HP.
*
* Note: Do NOT set this value to zero (0).
* This -may- be set to a fractional value (eg, 5.1, 3.1415)
*
*/
$level_avg_ppd = 5;
/*
* this value sets how hard it is to achieve 100%
* hp. The higher you set it, the harder it is to
* get full hp.
*
* to judge how high to set it, a user must have
* posts per day equal to the $level_avg_ppd plus
* the number set below.
*
* This should NOT be zero.
*/
$level_bonus_redux = 5;
/*
* We need to actually calculate the user's posts per day
* because unlike in the profile, it's not done for us.
*
*/
$level_user_ppd = ($postrow[$i]['user_posts'] / max(1, round( ( time() - $postrow[$i]['user_regdate'] ) / 86400 )));
if($level_hp_percent > 100)
{
//Give the user a bonus to max HP for greater than 100% hp.
$level_max_hp += floor( ($level_hp_percent - 100) * pi() );
$level_hp_percent = 100;
}
else
{
$level_hp_percent = max(0, $level_hp_percent);
}
//Be sure a user has no more than max, and no less than zero hp.
$level_cur_hp = max(0, $level_cur_hp);
$level_cur_hp = min($level_max_hp, $level_cur_hp);
/* Determine MP
*
* MP is calculated by how long the user has been around
* and how often they post.
*
* Max MP is based on level, and increases with level
* Each post a user makes costs them mp,
* and a user regenerates mp proportional to how
* many days they have been registered
*
*/
//Number of days the user has been at the forums.
$level_user_days = max(1, round( ( time() - $postrow[$i]['user_regdate'] ) / 86400 ));
/* The mp cost for one post.
* Raising this value will generally decrease the current
* mp for most posters.
* This may be set to a decimal value (eg, 2, 2.1, 3.141596)
* This should NOT be set to 0
*/
$level_post_mp_cost = 2.5;
/* This determines how much mp a user regenerates per day
* Raising this value will generally increase the current
* mp for most posters.
* This may be set to a decimal value (eg, 3, 3.5, 2.71828)
* This should NOT be set to 0
*/
$level_mp_regen_per_day = 4;
/* Determine EXP percentage
*
* Experience is determined by how far the user is away
* from the next level. This is expressed as a percentage.
*
* Note, a user of level 0 has 100% experience. Making one post
* will put them at level 1. Also, a user that is shown to have 100%
* experience, will go up a level on their next post.
*
*/
Ekte göndermiş olduğum resimleri yukarda yazdığı gibi ana dizin doğrultusunda ekleyin.
Eğer fisubsilver dışında bir template kullanıyorsanız resimleri fisubsilver yerine kendi template klasörünüze ekleyin. Ayrıca viewtopic_body.tpl ve profile_view_body.tpl dosyasına ekleyeceğiniz koddaki "fisubsilver" yazan kısımları kendi templatenizin adıyla değiştirin.
Kayıt: 18 Eylül 2004
Mesajlar: 550
Nerden: Cehennemin dibinden..
Tarih: 07 Ocak 2005, 21:11 Mesaj konusu:
peace demiş ki:
çok teşekkür usta. harika oldu. ama kopy engeli olduğu için kodları yazmak baya vaktimi aldı :)
Güzel insan,mübarek zaat..Madem üretemiyorsun,üretenlere saygı duy,asalak olmaktansa ; Boş takılan insanoğlu ol..Kendi emeğin ile yapmışsın bi site,ne güzel..Gerisinide emeğin ile getir..Ne kadarda turkiyeforum.com sitesine benziyor dikkat ettin mi..? İconlara varıncaya dek hemde..Hadi iconları geçtik diyelim..Haberler bile aynı..Yani turkiyeforum.com dan girip çalacağına,gidip araştırsana haberlerini..Git arasana kendine icon veya düzenlesene tema nı..Belki senin yaptıkların buradakilerden daha güzel olacak..Neden böyle bi yola başvurursun ki..? Kopyalama yasağı dahi var heryeri alıntılarla dolu sitende..Madem kendin çalıyorsun,çırpıyorsun ; Bırak kullancılarında çalsın..Neden yasak koydun..? Sana ister istemez saygıları olsun diye..O halde sende saygı duyacaksın..
Nasıl turkiyeforum.com da yetkili olan arkadaşlarımız gayret ediyor,çabalıyor ise,sende o şekilde devamını getireceksin yaptığın güzel işlerin..Deminde belirttiğim üzre,belki daha güzelini başaracaksın..Ama kolaya kaçıyorsun..
Kayıt: 17 Aralık 2004
Mesajlar: 128
Nerden: Ankara
Tarih: 07 Ocak 2005, 21:52 Mesaj konusu:
Antikky Browser yoliyim sana böle java şeyleri pek işlemiyorda amacın çalmaksa kodlardanda çalarsın ama.Bence ileri düzey çok saçma bir uygulama.Zaten hazır sistem üzerine yazılan ki ne yazıldığını pek anlamadım basit php kodlarımı sanmıyorun(!)bu kdar değerli olacağını buraya yazılan yazılar zaten kanımca çok edebi metinler bulunmuyor sitede yazarların konular üzerinde kendi görüşleri war.
Madem yazıları çok saklamak istiyorsunuz Vb ile şifreleyin kodları olsun bitsin: ) otursun eli ile yazsın...: )
Kayıt: 18 Eylül 2004
Mesajlar: 550
Nerden: Cehennemin dibinden..
Tarih: 07 Ocak 2005, 22:24 Mesaj konusu:
Haberlerde linkler var da nedense hepsi aynı sıralamada..Burada nasılsa,orada da aynı..Oraya girdiğimde buradan farkının kalmadığını gördüm ki bu eklentiler (icon vs..) ekleneli 3 gün olmadı..Elini çabuk tuttuğun için tebrik ederim seni..Uzatmaya gerek yok..
Olayla alakası olmayan şahıslar,şahsi fikirlerini sunmasınlar ortaya..
Kayıt: 23 Haziran 2003
Mesajlar: 2530
Nerden: Geriden
Tarih: 07 Ocak 2005, 22:51 Mesaj konusu:
peace demiş ki:
kpyalama yasağı olan bir yerden nasıl çalarım acaba merak ediyorum. bütün haberlerde link var yanılmıyorsam burad tartışmamın anlamı yok. çalsam bu modulude çalardım istemezdim. haberler sadece buraya özel diye birşey yok. aynı iconlardan yüzlerce sitede var. sen neyi ispatlamaya çalışıyorsun çözemedim...
Sitene baktım ana sayfadaki ikonlar bana ait.Başka bir sitede varsa lütfen linkini ver bakalım bizde.İzin almanı beklerdim.Bizim açımızdan da düşünebilirdin durumu biraz.Haberlerde tabi ki bize ait değil ama sırası felan aynı.Değişik haberlerde bulunabilir kanımca.Her site farklı olmak ister, fakat bu tarz görüntüler görünce hiç hoş olmuyor..Kolay gelsin.