31
mawi27
Re: URL in Notification eMail
  • 2006/2/6 12:23

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


bump
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



32
mawi27
Re: Howto integrate a form
  • 2006/2/6 5:07

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi Dave_L,

i have changed the code according to your example and now it works.
1st have to add the options to the select box and afterwards add the select box to the form.


Thanks alot,

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



33
mawi27
Re: Howto integrate a form
  • 2006/2/6 4:59

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


I changed names a bit, because there where some doubles.
Now using:
$options = array("1" => "Testtitle1""2" => "Testtitle2""3" => "Testtitle3");

/*
$options[] = "Testtitle1";
$options[] = "Testtitle2";
$options[] = "Testtitle3";
*/                                         
print_r($options);
$formSelect =  new XoopsThemeForm('Select''SelectForm''index.php''POST');
$frmSelTitle->addElement(new XoopsFormSelect($caption="Select Title"$name="selectTitle"$value=null$size=1$multiple=false));
$frmSelTitle->addOptionArray($options);
$formSelect->display();


same error:
Array ( [1] => Testtitle1 [2] => Testtitle2 [3] => Testtitle3 )
Fatal error: Call to a member function addElement() on a non-object in ...


Marco

Edit: not quite the same error, as i see now.
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



34
mawi27
Re: Howto integrate a form
  • 2006/2/6 4:37

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Thanks 3Ir0n,

changepass.php is a good example for this.

Does somebody have another good tip for me on how to use the XoopsFormSelect Element?

I tried
Quote:

$optionsTitles[] = "Testtitle1";
$optionsTitles[] = "Testtitle2";
$optionsTitles[] = "Testtitle3";
$frmSelTitle = new XoopsThemeForm('Select', 'SelTitle', 'index.php', 'POST');
$frmSelTitle->addElement(new XoopsFormSelect($caption="Select Title", $name="selTitle", $value=null, $size=1, $multiple=false));
$frmSelTitle->addOptionArray($optionsTitles);
$frmSelTitle->display();


but i only get the following error message:
Fatal error: Call to undefined method XoopsThemeForm::addOptionArray() in ...

i also tried to the same result
Quote:

$optionsTitles = array("1" => "Testtitle1",
"2" => "Testtitle2",
"3" => "Testtitle3")


I don't get it, cause i saw many examples 'quite' similar

Xoops Version 2.2.4

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



35
mawi27
Re: Protest Thread to *REMOVE* Displayname Field From Xoops...
  • 2006/2/5 20:42

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


The difference is you don't have to guess the first word.
As we all by now know that your login name is Mandlea its just to guess the second word and thats a difference.

Everybody has now understood your point of view!

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



36
mawi27
Re: Problem accessing the site
  • 2006/2/5 20:37

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi viking956,

you have to change the xoops_url in the mainfile.php and afterwards update the system module

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



37
mawi27
Re: Protest Thread to *REMOVE* Displayname Field From Xoops...
  • 2006/2/5 19:25

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Dear mandlea,

in a windows or unix system you have to be system administrator, to see a list of all login names.

A Hacker must in fact use brute force or social hacking to get a username and then has to do the same with the password.

In a XOOPS environment, a hacker registers himself as a new user and then takes a look at the users list. With the username=loginname he has access to all loginnames and needs only to hack through the passwords.
So your comparison between unix and XOOPS is not quite as simple as you state it here.
What kind of users do you address on your homepage, that you believe they choose passwords as komplex and secure as you have written in your example? Normal users (not internet security specialists ) tend to use name_of_my_1st_child_and_part_of_my_wifes_birthdate or similar.

I agree with you, that this feature is an additional source for confusion and therefor support issues, but i cannot follow your argumentation. This gets a bit to academic and way to aggressive for my taste.

Also I think, with your teaching wording it is fairly improbable that anyone who is in a positon to do this change has a strong motivation to do so for you.

So i suggest you calm down a bit and let people think about the pros and cons.

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



38
mawi27
Howto integrate a form
  • 2006/2/5 16:03

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi all,

i have a question about integrating a form into a custom module.
With:
Quote:

$testform = new XoopsSimpleForm('Testform', 'name of form', 'index.php', 'POST');
$testform->addElement(new XoopsFormText("testform", "testformdata", 25, 10, "default"));
$testform->display();

i can show a textbox on the page.
But i can't find any hint how to get the data out of the textbox.
What is the varname, and how do i get it after writing into that Box?

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



39
mawi27
URL in Notification eMail
  • 2006/2/5 12:52

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Hi there,

on my website all content is visible to registered users only. Most of the users receive their notifications by email with a link to the newly added content.
But when u click on the link, you are led to the login page.
After logging in, you are not redirected to the original URL where you wanted to go to, but to the top page.
Is there any way to:

a) redirect user to original requested URL after login
e.g. modules/newbb/viewtopic.php?topic_id=41&forum=1

or

b) put informations for an autologin into the URL in the notification eMail (no security issue for MY website )

TIA, Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more



40
mawi27
Re: webmaster group
  • 2006/2/5 11:50

  • mawi27

  • Friend of XOOPS

  • Posts: 103

  • Since: 2006/1/1 1


Try THIS

Marco
--
Match Dart!
Darts Ranking, News, Videos, Forum and more




TopTop
« 1 2 3 (4) 5 6 7 ... 10 »



Login

Who's Online

164 user(s) are online (105 user(s) are browsing Support Forums)


Members: 0


Guests: 164


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