281
Cuidiu
SOLVED Re: Event Guide Module - How To Hack
  • 2006/5/21 3:53

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


I found my answer. I'm sure there's probably a better way to do this but the end result works so that's what I'll go with. I simply declared a variable at the top of reserv.php and then I added it to an array like so:
$xoopsMailer->setToEmails( array($email, $email2) );
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



282
Cuidiu
Re: Event Guide Module - How To Hack
  • 2006/5/20 14:02

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Here you go. Event Guide
Sorry, meant to add that the newest version I'm aware of is Here.
Thanks.
Quote:
zyspec wrote:
Exactly which module (and version) are you using? A link to where the module may be downloaded would help.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



283
Cuidiu
Event Guide Module - How To Hack
  • 2006/5/20 5:51

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


In the Event Guide, I would like to cc: the admin when someone reserves/registers for an event. The person reserving the event gets a confirmation email. I'd like the admin/webmaster to also get the same confirmation email. I have looked around a bit in the files but can't figure out where I could add the admin as another email recipient. It appears that reserv.php is the file to hack but that's as far as I've gotten. Would someone please help?

TIA,

Cuidiu
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



284
Cuidiu
Re: Adding to adminactivate.tpl - Solved
  • 2006/5/20 5:29

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Biteronboard,

I think I've pretty much got this figured out except in the case of using an array. I don't know how to add the answers for that to the adminactivate.tpl but otherwise, here goes:
register.php - around line 187, I inserted below USEREMAIL the assign and field names:
$xoopsMailer->assign('HMADDRESS'$newuser->getVar('hm_address'));
$xoopsMailer->assign('USERFROM'$newuser->getVar('user_from'));
$xoopsMailer->assign('MBRLEVEL'$newuser->getVar('mbr_level'));
$xoopsMailer->assign('SPEC'$newuser->getVar('specialty'));
$xoopsMailer->assign('COMP'$newuser->getVar('company'));
$xoopsMailer->assign('PREFMAILADD'$newuser->getVar('pref_mail_address'));
$xoopsMailer->assign('HMPHONE'$newuser->getVar('phone_hm'));
$xoopsMailer->assign('BUSNPHONE'$newuser->getVar('phone_busn'));
Then on adminactivate.tpl in the body of the email I added the following:
Home address: {HMADDRESS}
Company: {COMP}
Business address: {USERFROM}
Member Level: {MBRLEVEL}
Specialty: {SPEC}
Business Phone: {BUSNPHONE}
Home Phone: {HMPHONE}
Preferred Mailing Address: {PREFMAILADD}
Success!
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



285
Cuidiu
Re: I'll take Shoutbox in Center Block for 100, please Alex!
  • 2006/5/18 1:30

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Leave it to me to do things the hard way. I'll PM you. Thanks so much!
Quote:

dave_uk wrote:
the easiest way i can see of doing it is to add a blank module and setting the shoutbox to be the cente block on that page if you pm me your email address i can send you the files to upload to your server to have a blank module
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



286
Cuidiu
I'll take Shoutbox in Center Block for 100, please Alex!
  • 2006/5/17 20:20

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


I wanted the Shoutbox on its own page rather than in a sideblock and for whatever reason I could not get the Shoutbox to work that way. I had it set correct to 0=hide in Modules Administration, I added the block, etc... but no luck. After reading many posts and not finding a solution that worked for me (and many failed attempts) I finally got it working. If there is a better way, please let me know (I tried the remedies in the forums and then some!). Perhaps the following will save someone time. Hopefully, I remembered all the steps correctly.

Using the Content module with Site Menu feature:
- Add a content page:
- Link title: MyChat
- Page Title: ShoutBox
- External URL: leave empty
- Visible: Yes
- Content area: "Thank you for using Chat" (or similar if you wish in the content area)
- Choose your groups visibility.
- Submit

When you get to the edit content page (modules/content/admin/index.php?op=show) which appears after you submit, find the page you just created in the list. Under the "Visible" dropdown check to make sure it is set at "Yes".

Go into your Blocks / List all blocks
- Select Shoutbox from the Blocks Administration Recent Listings dropdown menu. Click "Add" button.
In your Edit a block settings:
- Choose Center Block - Center
- Visible: select Yes
- Visible in: Select the link title for the page you just added in the Content module (if named as above it would be "MyChat").
- Select your groups visibility.
- Submit

You should now be able to see your Shoutbox in a dedicated page.

I don't remember if I needed to update via Modules Administration at any point. I don't think I did but if this isn't working for you, you could try that.

If you'd like to add it to your multiMenu instead, in the Content module edit page, set the visibility in the dropdown to No and Yes to Submenu then add the Content Shoutbox URL to your multiMenu.

As I said previously, this is the only way I could get this to work. If someone knows of a better way, please let me know as I'd like to do things the right way whenever possible.

For help setting up the Content Site Menu go here.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



287
Cuidiu
Re: Displayname Description
  • 2006/5/17 1:28

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


That works. Thanks.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



288
Cuidiu
Re: Displayname Description
  • 2006/5/16 21:36

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Thanks, phppp. If I weren't a PHP newbie then I'd probably understand. Since I'm not, how about this... How could I add a line to where it will appear to users at the top of the registration form? Something like:
echo "displayname description text";
above a specific line in register.php or include/form.php? I have no idea where I could add it.

Quote:
phppp wrote:
possible but not so simple
you could append an form element of XoopsFormLabel to the end of registration form
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



289
Cuidiu
Re: Displayname Description
  • 2006/5/16 15:15

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


That would be great if I knew how to put it at the top. It appears at the bottom instead. Also, removing the checkbox "I agree" would be good too but then that would mess up the whole registration process from the looks of register.php. This solution isn't quite what I'm looking for but thanks for the reply!

Quote:
CeBepuH wrote:
A simple workaround would be to put the explanation in the Disclaimer box just above the Disclaimer text.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]



290
Cuidiu
Re: user_reg date
  • 2006/5/16 0:29

  • Cuidiu

  • Quite a regular

  • Posts: 358

  • Since: 2006/4/23


Worked like a charm. Thank you.

Quote:

Dave_L wrote:
If your version of phpMyAdmin has UNIX_TIMESTAMP in the Function dropdown on the edit page, select that function and enter the value "1989-12-01 12:00:00".

You could also use the query (XOOPS 2.2.x):

UPDATE xxxx_user_profile SET user_regdate = UNIX_TIMESTAMP("1989-12-01 12:00:00") WHERE profileid = yyyy

where xxxx is your table prefix and yyyy is the ID of the user you're changing.

I recommend backing up the database first.
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]




TopTop
« 1 ... 26 27 28 (29) 30 31 32 ... 35 »



Login

Who's Online

229 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 229


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