541
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 17:06

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


PHP was giving me a whole bunch of:
Notice [PHP]: Constant already defined
So I went in and made webmailFX var unique; _PASSWORD I changed to WEBMAILFX_PASSWORD
I basicly did a replace of all variables that were conflicting in PHP.
I did the changes on ver .8 I also fixed the address book bug
here's the corrected files



542
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 16:37

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Hi Bassman.
I've been goin through your module. With php debug it crashes with this notice: 'Notice [PHP]: Undefined offset'
Did you also get this?



543
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 16:18

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Since your having trouble downloading my files, here's the fix for the edit bug:

contactbook.php
line 97
echo "<tr bgcolor=\"$bgcolor2\"><td align=\"center\"><a href='contactbook.php?op=view&cid=$contactid'><img src='images/view.png' alt=\""._VIEWPROFILE."\" title=\""._VIEWPROFILE."\" border=\"0\" width=\"16\" height=\"12\"></a></td><td align=\"center\"><a href='contactbook?op=edit&cid=$contactid'><img src='images/edit.png' border=\"0\" alt=\""._EDITCONTACT."\" title=\""._EDITCONTACT."\" width=\"16\" height=\"16\"></a></td><td><input type=\"checkbox\" name=\"del[]\" value=\"$contactid\"></td><td>$firstname, $lastname</td><td><a href=\"$esend\">$email</a></td><td>$homephone</td><td>$workphone</td></tr>";

change to:
echo "<tr bgcolor=\"$bgcolor2\"><td align=\"center\"><a href='contactbook.php?op=view&cid=$contactid'><img src='images/view.png' alt=\""._VIEWPROFILE."\" title=\""._VIEWPROFILE."\" border=\"0\" width=\"16\" height=\"12\"></a></td><td align=\"center\"><a href='contactbook.php?op=edit&cid=$contactid'><img src='images/edit.png' border=\"0\" alt=\""._EDITCONTACT."\" title=\""._EDITCONTACT."\" width=\"16\" height=\"16\"></a></td><td><input type=\"checkbox\" name=\"del[]\" value=\"$contactid\"></td><td>$firstname, $lastname</td><td><a href=\"$esend\">$email</a></td><td>$homephone</td><td>$workphone</td></tr>";



544
kaotik
Re: Tiny store using tiny content
  • 2004/9/23 16:10

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I stand corrected
Thanks to Chapi and GIJoe!



545
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 16:08

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


did you try right-clicking on my link and select save as?



546
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 15:37

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I fixed the edit bug.
Replace contactbook.php with my version.
Here's the fixed file



547
kaotik
Re: godaddy.com
  • 2004/9/23 15:20

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


I also use godaddy for the domain part. I'm very happy with their service. The managment part of their site (where you configure your domains) is easy to use and very flexible.



548
kaotik
Re: Tiny store using tiny content
  • 2004/9/23 15:08

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Here's how I solved this:
- I was already using tiny content for another block, so I had to install the duplicatable hack by chapi so I could have 2 instances of tiny content. Great Hack chapi!
- The first page I created was a simple products.html. This is the homepage for the 'store'. It's just a simple html wrapped into tiny content.
--- For the order part I wrapped formmail.v50 which can be found
here

- The second page is the ORDER submenu item. This is also a html page that's been wrapped into tiny content. Here's mine
- This html links to a php script that's in the same directory. Here's mine
This php file doesn't have to be wrapped in tiny content.
- The way I set it up, it will report the XOOPS username in the emails it sends.
- If the order was correctly placed it will redirect to a page I called sucesso.html, which basicly says the order was sucessfull. Here's mine
I made this module only acessible by registered users. I then created a block for the top page viewable by all users anouncing a new store and that you have to register to see it.
- There are a couple of options you will need to custimize on order page (encomendas.html if your using my file):
line 19- REQUIRE this makes certain text fields mandatory
line 20- REDIRECT this redirects your users if the order was sucessfull
line 21- EMAIL the email to which you want the order sent
line 22- SORT this sorts the order on the email.
- on formmail.php there is something which you might also want to change:
line 389- You should change the text to 'Registered User'. Below this will show the name of the registered user on the email.
For me it works great, but then again I only have 3 products



549
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 13:01

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Download the updated pop3.php file here

Now there's one more bug that needs fixing before this can be used in a production site: edit contact book.

I have a small quirk about the revised module; the name of the menu item has been changed to address book, but the search still refers to contact and if you mouseover edit it will also say edit contact. Shouldn't these also be changed for the sake of consistancy?

There is two things I would like to see in this module:
- a progress bar while it updates email. I'm not quite sure how this could be acomplished, maybe if some of the experts here could help
- a admin config option to limit mail box size.



550
kaotik
Re: Getting the webmail module to work - Here's the file!
  • 2004/9/23 1:32

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


Fixed it!!!!!!! Aleluila, Praise the Lord!!!! Long live Google: Search and Thou Shall Find!
I found it Here

Copy 'from class POP3{' forward and paste over in pop3.php

...now must sleep




TopTop
« 1 ... 52 53 54 (55) 56 57 58 59 »



Login

Who's Online

131 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 131


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