1
ccdoss
Block Interferes with Login/User Menu
  • 2007/5/16 19:53

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


I created a php block and was doing some testing. I simulated it being unable to access a database in MySQL that is unrelated to xoops. I wanted it to display a default message indicating the table was unavailable. I loaded the page, and found the default message there. However, I also saw that the login and user menu blocks, located in a separate region (left) were both empty. Their titles were there, but there was no spot to login (for anonymous users), and no way to access the user menu (for registered users). I moved a couple of multimenu blocks to the front page, and they worked fine, as did all other blocks. It only appears the system blocks were affected. Why would this happen? The php code for my block is:
$dbcnx = @mysql_connect("localhost", "username", "password"); // this user doesn't have access
if (!$dbcnx) {
echo( "<P>No Information for Today!!!</P>" ); //Executed, since it didn't connect
}
if (! @mysql_select_db("MyTable") ) { // Should fail, since it didn't connect
echo( "<P>Unable to locate the " .
"database at this time.</P>" );
}
$sql = 'SELECT * MyTable';
$result = mysql_query($sql);
if (!$result) {
echo("<P>Error performing query: " .
mysql_error() . "</P>");
}

$htoutput = "<table>".
"<tr>".
"<td><b>Item 1</b></td>".
"<td><b>Item 2</b></td>".
"<td><b>Item 3</b></td>".
"</tr>";
echo($htoutput);

$i=0;
while ( ($row = mysql_fetch_array($result)) and ($i<5) ) {
// process the row...
$htoutput = "<tr>".
"<td>" . $row["Item1"] . "</td>".
"<td>" . $row["Item2"] . "</td>".
"<td>" . $row["Item3"] . "</td>".
"</tr>";
echo($htoutput);
$i = $i + 1;
}
echo("</table>");
echo("<p>Updated daily at 7:00 pm Eastern</p>");



2
ccdoss
Re: Registration Extra fields?
  • 2007/1/19 17:10

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


I've assigned them a weight of 1,2 etc. However, the other things are still above them. I even gave them a weight of -1, and the username, passwd, vpasswd, e-mail were still above them. Could you show me a link to your registration page, so I could see what's possible?



3
ccdoss
Re: Registration Extra fields?
  • 2007/1/18 22:58

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


I have posted several questions, but have not gotten any responses. Am I asking the wrong questions or something? Could someone please let me know how to change the order on the forms, so that I could have First name, last name, then username, password, vpassword, etc? By default, it has uname, pass, vpass, e-mail first. Also, I'd like to add a State drop-down. How is this done?



4
ccdoss
Re: Registration Extra fields?
  • 2007/1/17 0:22

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


Well, it appears that the password and verify password fields automagically appear in the registration form. I'm assuming it already checks the username with the database. However, they automatically appear above any field I add. I'd like to have First name, last name, then username, password, vpassword, e-mail, etc.

Also, I'd like to obtain address information. I'd like for them to be able to type the city, but select the state from a drop down menu. Is this possible with this module? Please check out www.optionsprosperity.com and try to register to see what I'm talking about.



5
ccdoss
Re: Registration Extra fields?
  • 2007/1/15 14:05

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


Could someone please let me know how to add password and verify password fields? I know how to add a new field, and I guess it'd be a textfield. However, how do I make it act as a password field, where the user's input is **** instead of text, and how do I make sure the verified passwd=other password? Also, does it verify the username isn't taken already? If so, how? Which field is it looking at?



6
ccdoss
Re: Registration Extra fields?
  • 2007/1/13 17:11

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


Vaughan,
Your previous message concerning my question has helped. I edited the system_block_login.html, and see a new form. I haven't completed the steps, but have an initial question. How do I make password and verify password fields with Smartprofile? I know how to add a new field, and I guess it'd be a textfield. However, how do I make it act as a password field, where the user's input is **** instead of text, and how do I make sure the verified passwd=other password? Also, does it verify the username isn't taken already? If so, how? Which field is it looking at?



7
ccdoss
Re: Registration Extra fields?
  • 2007/1/12 22:36

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


I am obviously missing something. Here's what I did:
1. Went to Admin->Groups, and enabled 'Extended Profile' for Anonymous (since their the ones I want to collect info. on).
2. Went Admin->Blocks, Show Blocks Visible in:Top page, Group:Anonymous, Visible:All. Didn't see the Extended profiles or SmartProfile module.
3. Went Admin->Blocks, Show blocks visible in:Extended Profiles, Group: Anonymous, Visible:All. Still didn't see the module on the list.
4. Went back to admin menu, clicked on SmartProfile module.
5. Had no idea what to do on user panel, skipped it.
6. Went to Categories...decided they were fine.
7. Went to Fields panel...chose some to be under category Personal, added an address field, and set it to be under Personal as well.
8. Clicked edit for each field under Personal. Selected Show in Registration Form: Basic Information for all of them. Also specified they were required.
9. Clicked on Registration Steps panel. Basic Information already configured to be first step. Save After Step selected.
10. Clicked preferences, and didn't see anything abnormal.
11. Brought up a browser, went to my page, selected 'Register Now'. Saw the same form I saw before. Please let me know what I missed.



8
ccdoss
Re: Registration Extra fields?
  • 2007/1/12 18:31

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


Hello,
From reading the post, I was under the impression that if I used the SmartProfile module, I could alter the information saved when a user registers. Well, I installed the SmartProfile module onto my site, and have no idea how to use it. I have looked at SmartFactory's site, and just found information on what it does. I tried playing with the fields, and it appears that SmartProfile is more of something for someone doing a myspace.com site or something. I just want to get a user's name, address, etc. when they register. I understand I could use liaise to get this information later, but I want it at registration time, and to have it saved to the database. Is this possible?



9
ccdoss
Xoops and JSP/Java Integration
  • 2006/12/29 21:02

  • ccdoss

  • Just popping in

  • Posts: 9

  • Since: 2006/12/21


Hello,
I am new to CMS and Xoops. I am in the process of developing some subscription based software using jsp and java (beans/applets, etc.). I would like to use XOOPS to handle logins, RSS feeds, static content, navigation, etc. I would also like it to handle the JSP and Java pages. In particular, I'd like it to handle the subscription, and handle the access to the software. Is it possible to do with XOOPS (i.e. using the Pages module or something), or do I need to go to one of those Java frameworks, or another CMS? If so, could someone point me to the right one?
Thank you.




TopTop



Login

Username:
Password:

Lost Password? Register now!

Who's Online

51 user(s) are online (30 user(s) are browsing Support Forums)


Members: 0


Guests: 51


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