Author Topic: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty  (Read 9323 times)

0 Members and 1 Guest are viewing this topic.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #15 on: April 08, 2009, 11:08:42 AM »
ok, i fixed this bug for next build.
now i'm going to work on another problem: by testing i saw that this way of accessing [sections] by using the /~tilde in the URL, doesn't apply to diff templates. it's limited to the main template.
i hope to get over this problem without affecting performances.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #16 on: April 08, 2009, 11:40:56 AM »
ok, i think i solved.
let's see if next build runs smoothly.

Offline ajpaterson

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #17 on: April 08, 2009, 05:56:36 PM »
Hi Rejetto,

I tried the new build (232) with both the original code and new code you provided as home/root diff template and diff template doesn't appear to be working for me at all now.  The shoutbox remains original.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #18 on: April 08, 2009, 11:09:12 PM »
it's normal.
that code was not meant to automatically replace the shoutbox.
it is generic and will work with any template.

i made some adjustments to fit your needs: replace file
template\rawr_default\shoutbox\display_posts\hfs.diff.tpl
with the attached one

this should be enough.
and you can also remove the text you pasted in the diff template.
« Last Edit: April 08, 2009, 11:47:16 PM by rejetto »

Offline ajpaterson

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #19 on: April 08, 2009, 11:37:44 PM »
i made some adjustments to fit your needs: replace file
template\rawr_default\shoutbox\display_posts\hfs.diff.tpl
with the attached one

this should be enough.
and you can also remove the text you pasted in the diff template.

I replaced the hfs.diff.tpl file and reloaded the page and bam, there was the new form in the place of the shoutbox!  I've just received my first email from the system entitled, messaging from hfs.  Unfortunately the contents of the message was missing.  I'm going to take a look at the diff file to see if I can figure that part out myself.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #20 on: April 08, 2009, 11:52:23 PM »
i updated the attached file above, to make the output message nicer.

anyway, i just tested and got the content as well.
if it doesn't work on your side, maybe it's because there's a problem saving the temporary file that stores the content.

it's this line
{.set|tf|email.temp.txt.}
where tf stands for temporary file, the rest is the name ;)

Offline ajpaterson

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #21 on: April 09, 2009, 01:06:24 PM »
i updated the attached file above, to make the output message nicer.

anyway, i just tested and got the content as well.
if it doesn't work on your side, maybe it's because there's a problem saving the temporary file that stores the content.

it's this line
{.set|tf|email.temp.txt.}
where tf stands for temporary file, the rest is the name ;)

I tried this at home and you are correct, it is including the body.  It must be a temporary file or permissions issue on my server. I'll try it out and report back.

-Anthony

Offline ajpaterson

  • Occasional poster
  • *
  • Posts: 12
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #22 on: April 10, 2009, 02:51:40 AM »
Well it appears that bmail and my isp's mail server don't get along.  >:(

Mail sent to my personal account is fine, but mail sent to my work account has the body stripped.

In any case, I will probably change direction with this a little as this form is too small to send a useful message, and I may simply set up mail to: buttons to cover several potential recipients.  Thanks Rejetto for putting so much time into this, fixing a bug, and showing me the way.  I'll be sending the additional donation tonight.

Regards,
-Anthony

Offline TSG

  • Moderator
  • Tireless poster
  • *****
  • Posts: 1934
    • View Profile
    • RAWR-Designs
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #23 on: April 10, 2009, 06:22:24 AM »
mailto: links will be a problem with spam if its a public server. Better to use a form with a captcha or login, OR you could only show the mailto: to logged in users, that should stop the spam.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #24 on: April 10, 2009, 08:46:27 AM »
thanks Anthony for keeping faith.
these years i've spent more time giving support than developing HFS, and being rewarded sometimes is nice. :)

having a simple link to a bigger form was my first idea, and it's the original version of the code.
you just need to link /~contactus and put the code in the diff template.

Quote
Mail sent to my personal account is fine, but mail sent to my work account has the body stripped.

if this is very important, i know a way that may possibly workaround it.
let me know and i'll tell you more.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty
« Reply #25 on: April 10, 2009, 08:50:32 AM »
mailto: links will be a problem with spam if its a public server. Better to use a form with a captcha or login, OR you could only show the mailto: to logged in users, that should stop the spam.

he doesn't want links.
about the captcha, i came to an idea. javascript idea.
when the user click "send", i can just change the button in "press another time".
and just then you'll be truly sending.
we'll probably may get a better "text" for the buttons, or we may like to create a second button just after the first is pressed.
but the point is that this may stop the bots.

the bots, actually, can force the submit without pressing the button. but i may wait for a certain value that is created only when you click the second button. without this special value the submitting can be simply ignored. ;)