vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Emailaddresses as GD image (https://vborg.vbsupport.ru/showthread.php?t=83082)

corn 06-14-2005 06:44 PM

Emailaddresses as GD image
 
Hello all,

At my forum, onzinforum.nl (Dutch),
we would like to have all the emailaddresses shown as GD Images instead of plain text, to get rid of spam :)

is there someone who can help me ?

Andreas 06-14-2005 06:45 PM

Hmm ... why not just disabling display of email-adresses at all?

corn 06-14-2005 06:48 PM

We do not want to disable it, because the forummembers would like to see eachothers addresses, so they can email with eachother :)

Andreas 06-14-2005 07:04 PM

They can email each other without having to display their eMail-Adresses :)

corn 06-14-2005 07:05 PM

Yup, I know, but we do want to have the addresses visible, but as an image :)

jugo 06-14-2005 07:14 PM

Makes no sense. Or Manybe it makes sense but it's ....

Oh well...i guess what you want is something like the gmail images. There could be a way to make it that when it sees an email address it does a "replacement" of sorts and creates the image instead....

I will thell you this: it would be VERY CPU intensive on the server...picture this:

1 thread: 50 Posts: each with a email address.....

THEN...Multiply that by the number of threads in yur forum ....then pray your Hosting company doesn't shut down your site.

corn 06-14-2005 07:20 PM

Quote:

Originally Posted by jugo
I will thell you this: it would be VERY CPU intensive on the server...picture this:

1 thread: 50 Posts: each with a email address.....

THEN...Multiply that by the number of threads in yur forum ....then pray your Hosting company doesn't shut down your site.

This is not true, because email addresses are not shown in the postbit, but in the public profile.

Andreas 06-14-2005 07:33 PM

Even if you only display them in the profile, this would be a real CPU Hog ... and IMHO it's absolutely not worth it.
Use teh secure mail feature, if users want to directly mail each other they can exchange their adresses via eMail or PM.

corn 06-14-2005 07:36 PM

omg :D

I really apreciate your info, but thats not the info I'm looking for.
I know it will be a CPU killer, but thats my problem :)

btw, NOFI

jugo 06-14-2005 07:39 PM

LOL....

What's NOFI?

corn 06-14-2005 07:41 PM

:D:D:D
No flame Intended

But,
if possible, please advise, because the spam is killing me :D:D:D

jugo 06-14-2005 07:49 PM

Get this: http://playtime.uni.cc/downloads.php?page=gmail

I'm sure you can hack it into a function and make it parse the email addresses...I did it a while back for something else (can't find my modified code though sorry) but that was my starting point.

Good luck...>And if your host boots you, get in touch with me...LOL.

BTW, NOFT

corn 06-14-2005 07:56 PM

Thanks a lot !

I will release my hack soon :D:D

And btw, my current hostingprovider sucks :D so we don't care :D:D

jugo 06-14-2005 07:59 PM

Well then look at my signature.... ;-)

corn 06-14-2005 09:16 PM

its working !! :D:D

howto:

create a email.png file (ms paint, photoshop) size 275x20.

create a file called email.php, wich contains te following:
Code:

<?php
    header("Content-type: image/png");
    $im    = imagecreatefrompng("email.png");
    $color = imagecolorallocate($im, 0, 0, 0);
    $px    = (imagesx($im) - 7.5 * strlen($user)) / 2;
    imagestring($im, 4, $px, 1, $user, $color);
    imagepng($im);
    imagedestroy($im);
?>

upload these to files to the forum root dir.

open the MEMBERINFO template, and search for $userinfo[msn]
and replace that with <img src="email.php?user=$userinfo[msn]" border="0">

thats it !

yinyang 06-14-2005 09:27 PM

good job corn!

you should probably close this thread and start a new one with your code as a new Hack. that way, i can click install.

Andreas 06-14-2005 09:30 PM

Erm ... that does not make sense.

1. $userinfo[msn] is not the users eMail-Address - it's his MSN ID (which can be his eMail-Address, but can also be empty)
2. You still have the eMail-Address in the HTML - and thus spammers can still process it automatically.

eXtremeTim 06-14-2005 09:40 PM

Thats what I was just thinking lol

yinyang 06-14-2005 09:46 PM

please link to your finished product when done so we can see what it looks like.

eXtremeTim 06-14-2005 10:20 PM

If only his method of doing it worked. Right now he has high server load without accomplishing anything.

corn 06-15-2005 08:43 AM

Quote:

Originally Posted by KirbyDE
Erm ... that does not make sense.

1. $userinfo[msn] is not the users eMail-Address - it's his MSN ID (which can be his eMail-Address, but can also be empty)
2. You still have the eMail-Address in the HTML - and thus spammers can still process it automatically.

True :)

I've already changed the emailaddress itself also :)

https://vborg.vbsupport.ru/showthread.php?t=83128

Just released some minutes ago :)


All times are GMT. The time now is 05:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01209 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete