151
khuhner
Re: Bulk users create
  • 2006/6/6 1:33

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Here is a script I modified to upload users in the form:

FirstName, LastName, email, password

Note, that I will be communicating to my users that they need to access the "Lost my Password" link and resent their password to something other than what I generated.

Note you have to change the variables $bdd, $host, $user and $pass in the first section (I made these values into variables from the original script).

Good luck.
Kurt


<?
// christian@frxoops.org - http://www.frxoops.org
// Import users from a csv file into XOOPS 2.0.x
// variables
$bdd"test";
$host"localhost";
$user"root";
$pass"";
$fichier "users.csv"// data file as : first name(pseudo);last name;email;password    
// remove line break on last record

mysql_connect($host,$user,$pass) or die("Unable to connect Database");
mysql_select_db($bdd);

// Open file for read
if (file_exists($fichier))
    
$fp fopen("$fichier""r");
else{ 
// unknown file
    
echo "File not found !<br>Import stopped.";
    exit();
}
echo 
'Begin file import '.$fichier.'<br>';
// import line by line
while (!feof($fp)){
    
$ligne fgets($fp,4096);
    
$liste explode(";",$ligne); // create array 
    
$user $liste[0]; //first field 
    
$name $liste[1]; //second field
    
$email$liste[2];
    
$passmd5($liste[3]);    


    
// Add user in xoops_users table
     
$query "insert into xoops_users  (uname, name, email, pass) VALUES ('$user', '$name','$email','$pass')";

     
     
$resultmysql_query($query);
     
$uid mysql_insert_id();
    
    
//Add user in group : users registered 
    
$numgroup ='2';
     
$query "INSERT INTO xoops_groups_users_link  (groupid, uid) VALUES('$numgroup', '$uid')";
     
$resultmysql_query($query);

     if (
mysql_error()){
      echo 
"Error in database : ".mysql_error();
      echo 
"<br>Importation stoppée.";
      
fclose($fp);
      exit();
}else{
  echo 
"Record ".$uid." - ".$user." added<br> ";
 }
}

echo 
"<br>Import finished successfully.";

fclose($fp);



152
khuhner
Re: !!!New Yahoo Xoops Group!!!
  • 2006/5/20 6:52

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Wizanda:

I *think* I was able to translate what you are trying to say.

Polls - XOOPS polls arent that great. So let's ask someone *here* who can edit modules to step up? Why create *yet-another-group* for people to "talk" xoops?

Chat feature - Same as above. The chat modules for XOOPS need work, agreed. Instead of creating another group to "chat" about XOOPS chat, why not post here?

PM Hack - See above

One thing that the XOOPS comunity needs to do is clean up all these rogue modules. The ony way to do that is create a centralized location for all to "chat" about features, weaknesses, etc. and resolve them in a timely fashion, as appropriate.

Personally, I'd like to see more interaction *here* on Xoops.org about updating/upgrading/enhancements for modules (esp. Chat, Poll, RSS, Calendar, etc). If there was in-depth module development documentation, I'd change them myself.



153
khuhner
Re: Catads; Edit Image after submission?
  • 2006/5/20 6:29

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

I can change image or add new up to the number selected for the category. When you want to change image do not check the check box, just select the new image and make shure it is the right type and size. You could increase the number of allowed images in category setup if you need more images.


Thanks stefan88!

I can see how to delete, but for the life of me, I cant see how to ADD a picture to an existing add. I have the max images set to 6, and have only one image for several ads, that I know want to add images to...

Kurt



154
khuhner
Re: !!!New Yahoo Xoops Group!!!
  • 2006/5/20 6:19

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


I would like to know why? I am currently migrating AWAY from Yahoo! groups as they have toom nay limitations and dont provide much space. Plus there are too many XOOPS sites providing support now (not to mention that some arent in English; sorry but I dont speak Japanese, French and Chinese )

The home page is limited to 200 characters period. You'll find that will become a nusuance soon. What items will you provide that are different than xoops.org?


Just wondering...
Kurt



155
khuhner
Re: Catads; Edit Image after submission?
  • 2006/5/12 17:52

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


<bump>



156
khuhner
Re: Catads; Edit Image after submission?
  • 2006/5/7 15:23

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

You can Max time before publication to 0, and it will display immediately.

To add more images, you need to set the image limit in your category (i.e., 3, 6, etc)


I have the max time set to 1 (what unit is this?). I'll be sure to set it to zero.

I know how to add images but that affects future publications. I have publications that never expire. So I enter them. Then the publications sponsor wants to add or replace an image. How?

Thanks,
Kurt



157
khuhner
Re: Catads; Edit Image after submission?
  • 2006/5/7 15:21

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

jensclas wrote:
Try a search on catads and see what comes up. As for the time what is your cache set to? For adding fields to a form again try the search. You'll need to be comfortable with code. Make sure you back up before you play!


I did a search. Nothing except the module authors web site in French.

I can "Play with code" however, I dont have unlimited hours to modify all these modules....that's a main grip with module authors. They dump out a good module and it doesnt get updated for 2 years. :(



158
khuhner
Catads; Edit Image after submission?
  • 2006/5/5 19:09

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


I'm using Catads 1.40 with XOOPS 2.0.13.1 and wanted to edit ads that have already been submitted to add more images. However, it appears there is no way to facilitate that?

In addition, when I "publish" the ads, it takes a long time (not sure where it's set?) to make it to the web site. I set the "Max time before publication" to 1 hoping to speed it up. Anybody know how to sped it up?

Lastly is there a way to add fields to the form?

Kurt



159
khuhner
Re: Prob installing myAlbum-P
  • 2006/4/15 4:44

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


Quote:

Invalid default value for 'res_x'

Unable to install myalbum. Error(s):


I had a similiar error installing MyAlbum. Check the sql files and make sure you have something like this:

res_x int(11) NOT NULL default '0',

I believe the intial downloaded files dont have the "default '0'" part.

Kurt



160
khuhner
Re: "_MI" Tokens not Rendering in Admin/Regular Views (in XoopsContact)
  • 2006/3/11 14:28

  • khuhner

  • Quite a regular

  • Posts: 232

  • Since: 2006/1/6 3


It comes with English and French.




TopTop
« 1 ... 13 14 15 (16) 17 18 19 ... 21 »



Login

Who's Online

171 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 171


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