5011
Mithrandir
Re: I must be dumb but please help anyway

Short version:
1) Nope
2) Yup
3) Dunno
4) Yup
5) Don't think so (could use one, too)

Long version:
1) Documentation is not very detailed. So far, we have the wiki... people are on the task of documenting XOOPS, but it's a big task

2) Content is a bit hard to do. I think someone managed to get some modules working with multi-langual contents. If you just want the menu items and other things, which are the same every time you open the page, then it's just a matter of language constants. Check the language/[english/german/russian] folder to see, what is there and what isn't

3) I'm not familiar with Russian characters

4) In System Admin -> Blocks, you can set exactly where the login box is or isn't shown. Keep in mind, though, that XOOPS is "meant" to be a an open system, where login is easy etc. so the basic idea is to have the login block on the front page. But it's up to you of course.

5) I've found some things around on the forums. I'd say that the items in the system preferences can be accessed on all pages. Things such as server timezone, root URL, Site name etc. can be found on all pages. Apart from that, I think you'll need to be more specific to get an answer you can use regarding functions to use
A list of variables would deffo be useful.

GL with XOOPS



5012
Mithrandir
Re: Could not update data in tables

Can't update database with GET values through $xoopsDB->query

Use $xoopsDB->queryF instead - but keep in mind that GET values can be given in URL... if you get the values from a form, consider using POST instead.



5013
Mithrandir
Re: Multiselect in preferences - how do I?

Hummm - due to PHPCoder's way of displaying comments, the underscore was not visible, so I had only 'select multi'

Thanks - it's working now, except for the default values... but that's a minor problem.



5014
Mithrandir
Re: Multiselect in preferences - how do I?

Array ( [0] => )


But I can't set it in the preferences, that's the problem.
I get the preference showing up with description and all - but the multi-select is not a select box, but a text line and I get the

Warning: htmlspecialchars() expects parameter 1 to be string, array given in [....]/class/module.textsanitizer.php on line 252

On top of the page.

(Sorry for blowing up like that, but it's just so frustrating that this functionality, which should make my life so easy is not working as I expected it)



5015
Mithrandir
Re: Multiselect in preferences - how do I?

How nice. A built-in functionality, which is impossible to use. I know the documentation of XOOPS is being worked on... but geez, come on. Surely SOMEONE must have used this before. Someone has programmed it... But still, noone able to explain how to use it... That's just great. Really motivating.

I'm sorry, but I've had enough of trial-and-error programming until I accidently find the right method or syntax. I'm also tired of digging through classes, include files, extra functions etc. to find simple answers to simple problems.

So someone with knowledge, please? Is it too much to ask?



5016
Mithrandir
Re: Multiselect in preferences - how do I?

Nobody's been using those before?

Anyone able to build on top of Kazu's explanation? It would really rock to have multi-selects in my preferences.



5017
Mithrandir
Re: PH Help....MySQL Help too lol

Try this:

$sql "UPDATE `encounters` SET `script_title` = '".$_POST['script_title']."',";
$sql .= " `script` = '".$_POST['script']."',";
$sql .= " `content_title` = '".$_POST['content_title']."',";
$sql .= " `content` = '".$_POST[content]."' WHERE `id` = '11' LIMIT 1;";
$sql .= "";



5018
Mithrandir
Re: Menu vs Blocks

Yep.
In xoops_version.php set:

$modversion['hasAdmin'] = 0;

Or just set the order in the module administration to 0 (0=hide)



5019
Mithrandir
Re: Multiselect in preferences - how do I?

Thanks for a very fast reply.

I've tried this:
//Preferences
$modversion['config'][1]['name'] = 'selected_sections';
$modversion['config'][1]['title'] = '_MI_TEAM_SECTIONS';
$modversion['config'][1]['description'] = '_MI_TEAM_SECTIONSDESC';
$modversion['config'][1]['formtype'] = 'select multi';
$modversion['config'][1]['valuetype'] = 'array';
$modversion['config'][1]['default'] = array(123456);
$modversion['config'][1]['options'] = array('Tactics' => 1'Matches' => 2'Availability' => 3'Positions' => 4'Stats' => 5'Player Profiles' => 6);


and get this error message:
Warninghtmlspecialchars() expects parameter 1 to be string, array given in /usr/local/psa/home/vhosts/ruffdesigns.co.uk/web_users/Mithrandir/class/module.textsanitizer.php on line 252



5020
Mithrandir
Multiselect in preferences - how do I?

I'd like to use a multiple selection in my module preferences.

Making the multiselect doesn't seem to be a big problem - but how do I access the information afterwards?

The "normal" preferences is just $xoopsModuleConfig['name'] - but how do I access the multiple values?




TopTop
« 1 ... 499 500 501 (502) 503 504 505 506 »



Login

Who's Online

193 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

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

Latest GitHub Commits