81
Mithrandir
Re: man whats wrong with my oninstall function.?

Is the function not called correctly?
Or doesn't it perform the changes?
What does PHP/MySQL debug say?
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



82
Mithrandir
Re: Registration restrictions ?

the ! before preg_match() will work as long as there is only one regular expression - if there are multiple, it will always fail (unless the email address matches ALL expressions)

So give my suggestion a whirl and try putting in

.mil$

in the blocked domains list (that will now be changed to an allowed domains list)

if it doesn't work, try escaping the . with

\.mil$
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



83
Mithrandir
Re: Registration restrictions ?

Actually, a well-placed ! in register.php and inputting the allowed domain in the user info preferences should do the trick.

However, if you have multiple allowed domains, this ought to work - try it out:

foreach ($xoopsConfigUser['bad_emails'] as $be) {
    if (!empty(
$be) && preg_match("/".$be."/i"$email)) {
        
$stop .= _US_INVALIDMAIL.'<br />';
        break;
    }
}


could be changed to

$found_domain false;
foreach (
$xoopsConfigUser['bad_emails'] as $be) {
    if (!empty(
$be) && preg_match("/".$be."/i"$email)) {
        
$found_domain true;
    }
}
if (!
$found_domain) {
        
$stop .= _US_INVALIDMAIL.'<br />';
}
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



84
Mithrandir
Re: Registration restrictions ?

Hmmm - should be possible with the right regex pattern in "Enter emails that should not be used in user profile" in user info preferences.

You'd have to find the right regex, though, and disallow every email address that does NOT fulfil the regex.

I hope someone else will be able to help you with it.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



85
Mithrandir
Re: XOOPS Database

Yes, they are both references to the same database object.

Usually, when calling the database in a handler class, the database object is referenced in a class variable $db - which is used with $this->db->functionName()

In functions and browser-called files, the $xoopsDB variable is usually used with the similar $xoopsDB->functionName().

$this->db is usually set in the handler class constructor (or its parent's constructor)

For more information on $this->something, please refer to the PHP manual on class variables.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



86
Mithrandir
Re: Microsoft Firefox 2007 Professional

Some people really have too much time on their hands.

And thanks for that
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



87
Mithrandir
Re: MS Internet Explorer 7 & FireFox 2

And don't even get me started on the differences in float modelling. Grrrrrrr.

Well, back on topic. Hrhm.

Microsoft can try all they want. I doubt they can make a better browser than Mozilla and all the others churning out new versions by the quarter and not by the decade.

MS can perhaps "cheat" with security features supported by the operating system, but for the user experience, I vote Moz.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



88
Mithrandir
Re: Finally 1000!

Quote:

wizanda wrote:
Mith back in the younger days like 5000 years earlier


Resized Image

P.s. Could anyone have a look at Shi-painter for XOOPS framework?? This is so fun!

LOL - thanks for the laugh

And people, don't forget that I have several years of practice in writing forum posts - not much more than 6 posts/day on average.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



89
Mithrandir
Re: whats everyone doing this weekend?

I may actually try to have a weekend without programming... in so far as that is possible.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software



90
Mithrandir
Re: MS Internet Explorer 7 & FireFox 2

I generally like FF 2.0 better than IE 7

IE 7 is a weird sitting-between-two-chairs because some sites that worked fine with FF AND IE 6 don't work completely with IE 7 (by "working" I mean "renders as intended")

The features in IE 7 approach FF - but with the easy plugins for FF, there is almost no limit to the functionality you can put in there.

- Tabbed browsing: Been in FF for years
- Phishing filter: Easy with plugins in FF and can be expanded with McAfee's SiteAdvisor plugin for annoying websites that are not phishing
- RSS feeds: FF 2.0 goes a step further from IE 7 with easy subscriptions (in external programs) directly from the RSS feed url
- Rendering: IE 7 may be CSS 2 compliant and better supporting standards than IE 6 (and maybe even more correctly than FF) but some annoying differences are still present; mainly in the areas of padding, margin and calculating sizes of block elements

Generally, I'll stick with FF 2.0 and IE 6 (only used for a homebank that refuses to work with FF) until the day that I cannot avoid IE 7.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software




TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 506 »



Login

Who's Online

219 user(s) are online (158 user(s) are browsing Support Forums)


Members: 0


Guests: 219


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits