DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • August 23, 2019, 10:38:37 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: 1 [2]   Go Down
  Print  
Author Topic: adding a "no mail on bank robbed" setting  (Read 6103 times)
0 Members and 1 Guest are viewing this topic.
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #15 on: May 24, 2004, 01:33:27 AM »

we need to find a way to manipulate the dbfield in prefs.php

I've found a solution Smiley

Locate this code in prefs.php
Code:
if (stripslashes($_POST['bio'])!=$session['user']['bio']){
before it add:
Code:
if (stripslashes($_POST['yom'])!=$session['user']['yom']) $session[user][yom]=stripslashes($_POST['yom']);

You have to change this line if robbank.php:
from:
Code:
if ($row['yom']==0){
to:
Code:
if ($row['yom']!=0){
When you create the 'yom' field in DB you can choose what you want to do, set it to '0' to avoid to send sysmail for robbank, set it to '1' to send sysmail for robbank.

I've tried on my local server and it works fine Wink

Rgds Excalibur
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #16 on: May 24, 2004, 01:56:27 PM »

Rock on Ex!

you are a great asset!!
Logged

Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5484



View Profile WWW
« Reply #17 on: May 24, 2004, 02:31:19 PM »

Yup, now I can stop banging my head against the wall...nice job, Excalibur!
Logged

Play the latest beta version here on DragonPrime
Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #18 on: May 24, 2004, 02:36:09 PM »

Rock on Ex!
you are a great asset!!

 Embarrassed ::hide himself ashamed for the nice words::  Embarrassed
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #19 on: May 24, 2004, 03:44:15 PM »

rough childhood?  Tongue

compliments are a good thing Ex, don't hide.  Infact, do just the opposite!
Logged

Excalibur
Member
Mod God
*****
Offline Offline

Posts: 573


I'm a newbie, plz forgive me!


View Profile WWW
« Reply #20 on: May 24, 2004, 03:57:46 PM »

rough childhood?  Tongue

compliments are a good thing Ex, don't hide.  Infact, do just the opposite!
Nah, just joking Cheesy
I'm not at all a programmer (studied Cobol & Fortran about 25 years ago). I've taken the co-management of a LoGD site at the beginning of this years, I've never studied PHP, learned it reading the source code, and started to program my first MOD 2-3 months ago.
So, finding a solution to your problem, and listening to your compliments makes me feel pride  Cheesy Cool Cheesy

With respect
Excalibur
Logged

Spock: Random chance seems to have operated in our favor.
McCoy: In plain, non-Vulcan English, we've been lucky.
Spock: I believe I said that, Doctor.
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5484



View Profile WWW
« Reply #21 on: May 25, 2004, 12:34:14 PM »

Ok...now here's why you keep me around... Grin

You need to add a line in dragon.php to carry that setting over after a DK.

Find:  ,"beta"=>1
Insert after:  ,"robmail"=>1
Logged

Play the latest beta version here on DragonPrime
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
103 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search