1
ramjet
Charity Site - Specific Questions / Help
  • 2009/7/22 14:23

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


I have started a charity (non-profit) company and I am needing to create a website - with some pretty specific needs. Problem is, I like XOOPS and I do not know if I can make it fit...

I am needing to know if XOOPS does the following (I can not find it):

1. Paid to do surveys
2. Freebie site clone
3. Charity donation tracking (paypal driven)

All the rest of my needs are supported in XOOPS (I use the modules on other sites).

All would need to work together (one login). Does XOOPS already have these modules to plug in? If not, how would I go about requesting it?



2
ramjet
Savane.... Replacement for XoopsForge?
  • 2006/4/5 6:10

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


I was looking to have my site get XoopsForge running under 2.X and have not had any luck. Has anyone tried porting a full version into XOOPS such as Savane (The mother of SourceForge)?

https://gna.org/projects/savane



3
ramjet
Registration Keys, 2.0.1 for Xoops 2.2.2
  • 2005/9/19 18:29

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


Ok, I must say that Registration Keys (https://xoops.org/modules/newbb/viewtopic.php?topic_id=37885&start=0#forumpost182793)was exactly what I was looking for, except I use 2.2.2... So @ 3 AM I started to incorporate it into 2.2.2 Now, do not curse my crude code - all I can say is it can be cleaned up, but it works...

Sudo Legal Stuff->Disclaimer:
Although this works flawlessly on my install, I do not imply this will for for everyone. Nor is it implied that this will not totally trash your running site - all code must be tested and deemed safe by your own testing and judgement. I will not be held responsible for any damage done using this code.

Here is the "hack":

1. All files except for register.php and registerform.php (in the registration keys download -https://xoops.org/modules/newbb/viewtopic.php?topic_id=37885&start=0#forumpost182793) need to be incorporated as required (do not overwrite, add the commented portions into your own files - they are not the same)
2. After all is included create your registration keys (Misc. Tools->Registration Keys), jot down the one for the default registration type (registered user).
3. I had to add a $_Get[] statement into Modules->System->Admin->Regkeys->main.php in order to get the admin pages working properly (one server required it - one did not, so I figured I would mention it):
if (isset($_GET['op'])) {
$op = trim($_GET['op']);
}
if (isset($_GET['type'])) {
$type = trim($_GET['type']);
}
if (isset($_GET['key_id'])) {
$key_id = trim($_GET['key_id']);
}
4. Create a new field in "Modules->Profile->Fields" called "user_regkey" - with a default set to #2 above and ensure that it is on the registration page and that it is required. (this portion takes care of all the the coding that was in registerform.php).
5. Do the following in {Xoops Root}->Modules->Profile->register.php:

------------- Find This -----------------------
if ($xoopsModuleConfig['display_disclaimer'] != 0 && $xoopsModuleConfig['disclaimer'] != '') {
if (empty($agree_disc)) {
$stop .= _PROFILE_MA_UNEEDAGREE.'<br />';
}
}
----------- End Find This ---------------------

--------- Add This After Above Code -----------
// Registration Keys Module add-in
// Author: Jean-Philippe Steinmetz
// Modded By: Rodger Cravens
global $xoopsDB;
$xoopsDB =& Database::getInstance();
$str_regkey = $newuser->getVar('user_regkey');
$result = $xoopsDB->query("SELECT status,groups FROM ".$xoopsDB->prefix('regkeys')." WHERE code='".$str_regkey."'");
$rkfound = false;
if(count($result) == 1) { // registration key found
list($rkstatus,$rkgroups) = $xoopsDB->fetchRow($result);
if($rkstatus) { // check to see if key is enabled
$rkfound = true;
}
}
if (!$rkfound) { // check if reg key is required and if not found
if($str_regkey == '') { // Check if any key was entered.
$stop .= _US_UNEEDREGKEY;
} else {
$stop .= _US_BADREGKEY;
}
}
// End Module add-in
------- End Add This After Above Code ---------

------------- Find This -----------------------
if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid)) {
echo _PROFILE_MA_REGISTERNG;
break;
}
----------- End Find This ---------------------

----------- Replace With This Code ------------
------ OR Comment Out For Easy Roll Back ------
// Registration Keys Module alteration
// Author: Jean-Philippe Steinmetz
// Modded By: Rodger Cravens

mysql_connect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS) or die("Unable to connect to host $server");
mysql_select_db("XOOPS_DB_NAME") or die("Unable to select database $db");

$i = "0";
$query1 = "SELECT * FROM ".$xoopsDB->prefix('user_profile')." WHERE profileid = '".$newid."'";
$result = mysql_query($query1);
$userkey = mysql_result($result,$i,"user_regkey");
$query2 = "SELECT groups FROM ".$xoopsDB->prefix('regkeys')." WHERE code = '$userkey'";
$result = mysql_query($query2);
$usergroup = mysql_result($result,$i,"groups");
$lt = ltrim($usergroup,"[]");
$reg_groups = trim(rtrim($lt,"])"));

// the following adds them to the entered group, or on fail adds them to the XOOPS default group

if(!$member_handler->addUserToGroup($reg_groups,$newid))
{
$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid);
}
// End alteration
--------- End Replace With This Code ----------



4
ramjet
Re: Update to Registration Keys - UPDATED for 2.2... :-)
  • 2005/9/19 18:25

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


Ok, I must say that Registration Keys was exactly what I was looking for, except I use 2.2.2... So @ 3 AM I started to incorporate it into 2.2.2 Now, do not curse my crude code - all I can say is it can be cleaned up, but it works...

Sudo Legal Stuff->Disclaimer:
Although this works flawlessly on my install, I do not imply this will for for everyone. Nor is it implied that this will not totally trash your running site - all code must be tested and deemed safe by your own testing and judgement. I will not be held responsible for any damage done using this code.

Here is the "hack":

1. All files except for register.php and registerform.php (in the registration keys download) need to be incorporated as required (do not overwrite, add the commented portions into your own files - they are not the same)
2. After all is included create your registration keys (Misc. Tools->Registration Keys), jot down the one for the default registration type (registered user).
3. I had to add a $_Get[] statement into Modules->System->Admin->Regkeys->main.php in order to get the admin pages working properly (one server required it - one did not, so I figured I would mention it):
if (isset($_GET['op'])) {
$op = trim($_GET['op']);
}
if (isset($_GET['type'])) {
$type = trim($_GET['type']);
}
if (isset($_GET['key_id'])) {
$key_id = trim($_GET['key_id']);
}
4. Create a new field in "Modules->Profile->Fields" called "user_regkey" - with a default set to #2 above and ensure that it is on the registration page and that it is required. (this portion takes care of all the the coding that was in registerform.php).
5. Do the following in {Xoops Root}->Modules->Profile->register.php:

------------- Find This -----------------------
if ($xoopsModuleConfig['display_disclaimer'] != 0 && $xoopsModuleConfig['disclaimer'] != '') {
if (empty($agree_disc)) {
$stop .= _PROFILE_MA_UNEEDAGREE.'<br />';
}
}
----------- End Find This ---------------------

--------- Add This After Above Code -----------
// Registration Keys Module add-in
// Author: Jean-Philippe Steinmetz
// Modded By: Rodger Cravens
global $xoopsDB;
$xoopsDB =& Database::getInstance();
$str_regkey = $newuser->getVar('user_regkey');
$result = $xoopsDB->query("SELECT status,groups FROM ".$xoopsDB->prefix('regkeys')." WHERE code='".$str_regkey."'");
$rkfound = false;
if(count($result) == 1) { // registration key found
list($rkstatus,$rkgroups) = $xoopsDB->fetchRow($result);
if($rkstatus) { // check to see if key is enabled
$rkfound = true;
}
}
if (!$rkfound) { // check if reg key is required and if not found
if($str_regkey == '') { // Check if any key was entered.
$stop .= _US_UNEEDREGKEY;
} else {
$stop .= _US_BADREGKEY;
}
}
// End Module add-in
------- End Add This After Above Code ---------

------------- Find This -----------------------
if (!$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid)) {
echo _PROFILE_MA_REGISTERNG;
break;
}
----------- End Find This ---------------------

----------- Replace With This Code ------------
------ OR Comment Out For Easy Roll Back ------
// Registration Keys Module alteration
// Author: Jean-Philippe Steinmetz
// Modded By: Rodger Cravens

mysql_connect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS) or die("Unable to connect to host $server");
mysql_select_db("XOOPS_DB_NAME") or die("Unable to select database $db");

$i = "0";
$query1 = "SELECT * FROM ".$xoopsDB->prefix('user_profile')." WHERE profileid = '".$newid."'";
$result = mysql_query($query1);
$userkey = mysql_result($result,$i,"user_regkey");
$query2 = "SELECT groups FROM ".$xoopsDB->prefix('regkeys')." WHERE code = '$userkey'";
$result = mysql_query($query2);
$usergroup = mysql_result($result,$i,"groups");
$lt = ltrim($usergroup,"[]");
$reg_groups = trim(rtrim($lt,"])"));

// the following adds them to the entered group, or on fail adds them to the XOOPS default group

if(!$member_handler->addUserToGroup($reg_groups,$newid))
{
$member_handler->addUserToGroup(XOOPS_GROUP_USERS, $newid);
}
// End alteration
--------- End Replace With This Code ----------



5
ramjet
Game Porting Wizards....
  • 2005/9/18 19:07

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


I am looking to port some games to XOOPS (rpg's and fantasy sports games) as modules. Is anyone interested in being the game port wizard for my site? More details can be discussed as to specifics in PM if interested. I would prefer people who have been doing modules for a while. My intent would be to make it worth your time - if all works out...



6
ramjet
Dynamic Drop down in profile
  • 2005/9/16 11:43

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


Modules - Profiles - Fields...

I was wanting to add a custom (dynamic) drop down list to the profie asking my users where they work (department). We add/change/delete departments in a certain database regularly... So I wanted things to be dynamic from that database...

I know how to connect to a database ant all of the like - however I want to be able to use the Modules - Profiles - Fields... location to add it (getting all of the nice things that come with using that little page - required, positioning on page, etc).

Is this possible? I know I can create a static drop down by adding departments in the standard drop down that the fields page will provide you - I am looking for a dynamic one...

Thanks for any help!!
Rodger
www.regionaloperations.com
www.rpgamestop.com (inwork)



7
ramjet
Re: XTDT (Xoops Theme Design Team) is asking designers to join!
  • 2005/9/16 11:36

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


Maybe a theme design team is not the answer... I mean what is to be the end result, to make everyone happy? Damn, I wish it were possible... LOL

Maybe a better idea would be to put together a theme template programming team. A team that could put together a complex (on the inside) tool (online, module or downloaded program) that could add/adjust every thing you ever wanted to about a theme... Now do not get me wrong, I know that everything can not be accomplished - but how many people are actually going to be satisfied unless you take the time to design an exact theme for every one of them?

To be honest I have not been all that impressed with the variety of themes, but the quality of the ones I have seen have been great. I have seen the bashing threads on not enough themes - and there never will be public satisfaction - it is an utter imposibility. Give the man the tools and let them go from there... I mean I know some wonderful layout designers and flash designers - but they could not tell you CSS from the hole in thier ars... LOL - we lose out on that croud (theme wise) due to no tool to help them do what they do best.

The old saying goes... Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime...

Rodger
www.regionaloperations.com
www.rpgamestop.com (inwork)



8
ramjet
Re: Send mail to groups
  • 2005/9/16 11:02

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


Well I was able to get there on my own... Nothing really hit the spot in the modules... This code is used in conjuntion with a custom module (with a custom input form) that ends up dumping tracking data into a database for later charting (a bit more complex than the ones in the module repository now - nowever very business specific)...

Note: _xoops__groups_users_link.groupid = '4'" //The 4 is the group ID I am looking to send the mail to

So here it is:

mysql_connect(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS) or die("Unable to connect to host $server");
mysql_select_db(XOOPS_DB_NAME) or die("Unable to select database $db");
//----Get Email addys
$query = "SELECT _xoops__users.email FROM _xoops__users INNER JOIN _xoops__groups_users_link ON _xoops__groups_users_link.uid = _xoops__users.uid WHERE _xoops__groups_users_link.groupid = '4'";
$result = mysql_query($query);
$number = mysql_numrows($result);
for($x=$number; $x>0; $x--)
{
$myemail = $myemail . mysql_result($result, $x, "email").";";
?>

//Create your message here-------
$subject = "Your stuff here";
$from = (Xoops UID);
$message = "Your stuff here";

//Then send your message
if ($myemail != "")
mail($myemail, $subject, $message, $from);



9
ramjet
Send mail to groups
  • 2005/9/15 0:35

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


I am needing to include a function in one of my custom modules that will send an email to all people in spcified groups (2 to be exact). I would send the mail subject and msg body in strings and the rest would be Xoops...

Anyone have code that does this?

Thanks!



10
ramjet
Anyone have the cafepress module they can link me to?
  • 2005/9/12 4:47

  • ramjet

  • Just popping in

  • Posts: 14

  • Since: 2005/9/10


The links are broken in the repository... I am wanting to install this and can not find it anywhere else...

Thanks!




TopTop
(1) 2 »



Login

Who's Online

244 user(s) are online (184 user(s) are browsing Support Forums)


Members: 0


Guests: 244


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