31
Mithrandir
Re: Random Member ... ?

ok, I give in.

This should work:
$member_handler xoops_gethandler('member');
$criteria = new CriteriaCompo(new Criteria('level''0''>'));
$criteria->add(new Criteria('uid'"(1,4,215)""NOT IN") );
$criteria->setSort('RAND()');
$criteria->setLimit(10);
$users $member_handler->getUserList($criteria);
foreach (
$users as $uid => $uname) {
    echo 
"<a href='".XOOPS_URL."/userinfo.php?uid=".$uid."'>".$uname."</a><br />";
}

or if it doesn't, this should:
global $xoopsDB;
$sql "SELECT uid, uname FROM ".$xoopsDB->prefix("users")." WHERE level > 0 AND uid NOT IN (1,4,215) ORDER BY RAND() LIMIT 10";
$result $xoopsDB->query($sql);
while (list(
$uid$uname) = $xoopsDB->fetchRow($result) ) {
    echo 
"<a href='".XOOPS_URL."/userinfo.php?uid=".$uid."'>".$uname."</a><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



32
Mithrandir
Re: SmartProfile

Debug info?
"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



33
Mithrandir
Re: xoops 2.2 features into 2.0.x

Almost all of the pages require PHP5 - you should be able to override the settings, at least on Apache, so all .php pages are considered as PHP5 pages with this line in a .htaccess file:
AddHandler application/x-httpd-php5 .php
"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



34
Mithrandir
Re: xoops 2.2 features into 2.0.x

Perhaps look at SmartBlocks?
its goal is to provide the add/edit/delete blocks functionality of XOOPS 2.2 with a nicer interface with better overview of visible and not visible blocks on a page.
"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



35
Mithrandir
Re: Weird date problem

date_format may not use strtotime, but smarty_make_timestamp() does - and the supplied datestring is run through that to make a timestamp, disregarding that the date may already be a timestamp.

I suggest that this is brought to the attention of the Smarty developers, so they can find a solution in smarty_make_timestamp().

Since the function allows for dates in MySQL format like this: 20061215112300 it is not enough to just check for whether the supplied $string is a number, but perhaps it could check first whether the string is actually a number and in that case, check if it is a MySQL date string and if not, just return the number unharmed.

I don't know if there are potential clashes between MySQL and UNIX timestamps, so that will be the task of the Smarty developers to investigate.
"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



36
Mithrandir
Re: Here is a List of Most Searches to be added in Tags

And a bit more spelled out:

The Tag module from phppp can apparently do searches for a tag in a search engine, available engines defined in the language files (search me, why he's chosen to put it there, but I guess he has his reasons - perhaps to allow for searching on e.g. Google in different languages) and Wizanda has then added more search engines to the available-list.
"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



37
Mithrandir
Re: smartblocks: questions

Extended 2)
Neither SmartBlocks nor SmartObject has module preferences - I don't know why you even get this link to preferences.
"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



38
Mithrandir
Re: SmartProfile

In the currently available version, there is a small bug, where registration steps are not created properly during installation. Try creating one or two steps in the module's administration.

When not logged in, you should be sent to the registration form when going to the module and when logged in, you should be sent to your user profile.
"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



39
Mithrandir
Re: smartblocks: questions

1) Front page + fall-down on subpages
2) I haven't experienced this
3) Rightie, thanks. Will be fixed
4-1) A note, if you don't put a title, you can write a little something here, and it will be shown on the page setup page
4-2) Yes, that is correct
4-3) Yes, that is correct. The XOOPS blocks are used as "prototypes" and instances are created inside the SmartBlocks module - similar to the approach used in XOOPS 2.2
"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



40
Mithrandir
Re: Adding required fields to the User registration form

"Dynamic user fields" means "User fields that can be dynamically added, configured and removed through the module's administration", but you can also manage (most) existing fields in regards to visibility on profiles and registration form.

SmartProfile should provide everything that XOOPS 2.2's Profile module provides in regards to user registration and profile (and even better)
"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 2 3 (4) 5 6 7 ... 506 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

63 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 63


more...

Donat-O-Meter

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

Latest GitHub Commits