2 isaac Jul 06, 2004 18:42

Thanks... needs email address format checking and should have the option to check HTTP_REFERRER variable for added security, but its good enough for now. A great way to let people spread the word of your blog.
Please can explain where to edit the code or the first code
Thanks in advance
What is
########
# Add the following to your conf/hacks.conf file
# Be sure to edit variables to suit
conf/hacks.conf <== can´t find this file.
Kind regards
joe
alright! just created conf/hacks.conf
# Be sure to edit variables to suit
I only fit this to my URL:
$sendtitle
http://YOURURL/index.php?title=$sendurltitle&more=1&c=1&tb=1&pb=1
Any other variables to change?
kind regards a nice weekend
joachim
I tried to handle it again. any other variable to change than the mentioned above?
As EdB said, it should be hacks.php, not hacks.conf.
Fatal error: Call to undefined function: send2friend() in /srv/www/htdocs/web25/html/sniglesde/skins/kubrick2evo/_main.php on line 236
this is my _main.php
[removed]
any idea?
thanks you joe
joachim, ive edited your post to remove that whole page post because its not necessary. in the future i recommend reading your errors...
Fatal error: Call to undefined function: send2friend() in /srv/www/htdocs/web25/html/sniglesde/skins/kubrick2evo/_main.php on line 236
Its telling you the problem, and exactly where it is (line 236).
Youre using some form of
<?php send2friend("$Item->ID","$Item->title","$Item->urltitle"); ?>
but it cannot find the function inside any of your files. Go back and re-read the directions in the thread starting with :
########
# Add the following to your conf/hacks.conf file
# Be sure to edit variables to suitfunction send2friend($postnum,$sendtitle,$sendurltitle) {
echo "<a href=\"/index.php?disp=send2friend&postnum=$postnum&sendtitle=$sendtitle&sendurltitle=$sendurltitle\">Send To Friend</a> ";
}
and so on .....
and make sure you have added the correct code to the correct file.
just had one simple error. anyway, it works now! does anybody wants to have this hack in GERMAN? I translated it into german.
regards
joachim
:'( just have this error:
an error has occured, please try back soon.
an I don´t know why :(
this works much better and is "safer" :-)
$_GET['Name']
and
$_POST['Name']
Regards
Joachim
risda wrote:
Thanks... needs email address format checking and should have the option to check HTTP_REFERRER variable for added security, but its good enough for now. A great way to let people spread the word of your blog.
See here for an email checking function:
risda wrote:
# within your includes for "LAST COMMENTS, STATS ETC."
# add the following casecase 'send2friend':
sendpost($disp,$postnum,$sendtitle,$sendurltitle,$fromname,$fromemail,$toemail,$message);
break;[/code]
Had just problems with this last line ,i use a other skin Kubrik reloaded
Get all time some pars failers ,coude be that some code is missing
iam quite naked on php coding
Thanks for your help
the first thing is working (have to add the variabels)
I know this is a dumb question but what should I do with the first bit of code for creating the table?
Never Mind.
I got the table figured out.
Hi,
anybodey out there who has problems with spammers using the Send2friend hack to send out spam mails?
I save all data if anybody is using the script and I can see that spammers are using it.
Any idea what I can do here? If not I think I have to disable the function ....
Thanks
Michael
jtanner wrote:
I know this is a dumb question but what should I do with the first bit of code for creating the table?
I really hate it wend programmer send code without saying where it go.
We should all guest what to do, programmer speaking with programmer and don't care about non-programmer. arggggg!
It works! That's a funny site.
I added the [code] markup to make your post more readable.