rejetto forum
May 25, 2012, 01:15:39 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: HFS, RAWR-Template, RAWR-Player, and an Email form Bounty  (Read 3898 times)
0 Members and 3 Guests are viewing this topic.
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #15 on: April 08, 2009, 06: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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #16 on: April 08, 2009, 06:40:56 AM »

ok, i think i solved.
let's see if next build runs smoothly.
Logged
ajpaterson
Occasional poster
*
Offline Offline

Canada Canada

Posts: 12


View Profile Email
« Reply #17 on: April 08, 2009, 12: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.


* build232.JPG (290.73 KB, 1920x1200 - viewed 155 times.)
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #18 on: April 08, 2009, 06: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.

* hfs.diff.tpl (0.83 KB - downloaded 92 times.)
« Last Edit: April 08, 2009, 06:47:16 PM by rejetto » Logged
ajpaterson
Occasional poster
*
Offline Offline

Canada Canada

Posts: 12


View Profile Email
« Reply #19 on: April 08, 2009, 06: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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #20 on: April 08, 2009, 06: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 Wink
Logged
rejetto forum
« Reply #20 on: April 08, 2009, 06:52:23 PM »

Do you like this software? Consider even $2
 Logged
ajpaterson
Occasional poster
*
Offline Offline

Canada Canada

Posts: 12


View Profile Email
« Reply #21 on: April 09, 2009, 08:06:24 AM »

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 Wink

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
Logged
ajpaterson
Occasional poster
*
Offline Offline

Canada Canada

Posts: 12


View Profile Email
« Reply #22 on: April 09, 2009, 09:51:40 PM »

Well it appears that bmail and my isp's mail server don't get along.  Angry

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
Logged
TSG
Moderator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #23 on: April 10, 2009, 01: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.
Logged

rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #24 on: April 10, 2009, 03: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. Smiley

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.
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11830


View Profile
« Reply #25 on: April 10, 2009, 03: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. Wink
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 21, 2012, 02:23:43 AM
anything