1
shagreel
Re: domain.com & www.domain.com
  • 2004/3/9 19:54

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I am not sure I understand the problem completely, but I will throw out an idea anyway. I have had problems using virtual servers before and I had to change HTTP_HOST to SERVER_NAME and then everything worked fine. HTTP_HOST refers to the actual machine name, SERVER_NAME will get the virtual name from apache. If that helps, I can point out at least one more place you will want to change the same thing.



2
shagreel
generated user uid
  • 2004/2/9 17:01

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I really need to be able to specify the uid of users that I create. I wonder if the code to assign a users id could be changed to something like the following.

if ($user->isNew()) {
if($user->getVar('uid'))
$uid = $user->getVar('uid');
else
$uid = $this->db->genId($this->db->prefix('users').'_uid_seq');




3
shagreel
Re: Selected module does not exist! bug
  • 2004/2/9 16:55

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I would like to bring this up again. Could this be changed in the code so that I do not have to maintain this hack. I find that $HTTP_SERVER_VARS['HTTP_HOST'] needs to be replaced with $HTTP_SERVER_VARS['SERVER_NAME'] in both include/cp_header.php and include/common.php. Probably a few other places also, but these are the two that constantly cause me problems. SERVER_NAME will return the right value if you are on virtual host or not. It is the value that should probably always be used.



4
shagreel
Re: Removing the intermediate flash screen
  • 2004/2/3 19:41

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I think I agree here. An admin should be able to decide how they are displayed but the module writer decides if they want to display one or not for the pages of their modules.

Is there any way this could be put in the next version of xoops?

I personally really like the idea of using the session to save the information that is passed to redirect_header, then have redirect_header send a http redirect header. Then have the message pulled out of the session and displayed on the target page. You can see this working on forge.novell.com.

paul



5
shagreel
Selected module does not exist! bug
  • 2003/12/24 16:26

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I did a fresh install and I could not get to the modules admin page because it always reported that the module did not exist. The following line in common.php was the problem.

$url_arr = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/modules/'), '', 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'].$xoopsRequestUri));

HTTP_HOST returns the actual servers hostname. This always fails because I am using a virtual server with a virtual hostname. I changed HTTP_HOST to SERVER_NAME and that returns the correct host name.




6
shagreel
Re: Selected module does not exist!
  • 2003/12/24 15:51

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


In include/common.php there is a line that looks like this:
$url_arr = explode('/', str_replace(str_replace('https://', 'http://', XOOPS_URL.'/modules/'), '', 'http://'.$HTTP_SERVER_VARS['HTTP_HOST'].$xoopsRequestUri));

This line fails to do the correct str_replace if you are using a virtual server or have named your server in apache.conf something other than the name of the servers hostname. You can replace HTTP_HOST with SERVER_NAME and it will fix this problem. This may or may not be what you are having problems with, but I had the same problem and this fixed it.




7
shagreel
Re: Removing the intermediate flash screen
  • 2003/11/27 4:40

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


Your right, you should never know a page exists if you should not go there. But, It is nice to be able to redirect a page sometimes. For instance after a sending POST data so the user can reload the page without resending the page. So, I like the redirect function, but I hate the intermediate screen.




8
shagreel
Re: Removing the intermediate flash screen
  • 2003/11/25 21:23

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I just wanted to bring this up again. How do I go about getting this into xoops? Who do I ask and converse with to see if it should go in? I hate reaplying the hack each time I update xoops:)




9
shagreel
Re: LDAP integration in XOOPS 2.1
  • 2003/11/25 21:20

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I am very interested in LDAP in XOOPS as well. I have hacked the XOOPS 2 to do LDAP authentication for our site already. All it really does is log in to the ldap tree to verify the user and then updates the MySQL user table with the current ldap information if it is different. I would be interested in discussing further a good way to integrate LDAP into xoops. You can count me as a friend of XOOPS and ldap.




10
shagreel
email alias
  • 2003/11/17 21:25

  • shagreel

  • Just popping in

  • Posts: 13

  • Since: 2003/1/17


I need the ability to let my users specify an email alias. They want to let people know what their email address, but they want it either obfiscated or an alias or their choosing. I am thinking of hacking the user table and adding this field. I am looking for any suggestions. Is this a good idea? Already available somehow? Is there an easier way than hacking the database table?




TopTop
(1) 2 »



Login

Who's Online

291 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 291


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