php forum
php mysql forum
php mysql smarty
 
Topic Options
#133956 - 04/27/01 11:43 AM [6.0x] Change the first line in an email when using UBB-friend option
Schrapnell Offline
Junior Member

Registered: 04/10/01
Posts: 22

   [6.0x] Change the first line in an email when using UBB-friend option to Del.icio.us Add to del.icio.us
  Digg [6.0x] Change the first line in an email when using UBB-friend option Digg it
Hi all,

I found a way to change the first line text in an email when sending a topic to a friend (UBB friend option).

MY change is only executable if you don't have the COPPA option activated smile (But who has?)

Open ubb_friend.cgi from your cgi-bin directory

#### start hacking ####
Find:

# add name to message
my $message = qq!
$vars_wordlets{author_from} $in{your_name}

Replace with:

# set individual header in ubb-friend-mail
my $message = qq!
$vars_wordlets{parent_email} $in{your_name}

#### end hacking ####

You may delete $in{your_name} if you don't want the displayed forum-name to be shown.

Atfer uploading the hacked file back to your cgi-bin directory, go to the control panel in your administration and change the wordlet for parent_email to the text which you want to be shown in the first line(s) of your ubb-friend_email. HTML is allowed!!!

That's it!

Perhabs it's too complicated, but the change of the wordlet author_from also changes the field "From:" in the registration and below a posting.

These fools have chosen the same variable author_from in the registration form / the from: - field below a posting AND for the first line in a ubb-friend-email.

The field parent_email is quite unnecessary in my opinion so I took it for my midification.

I did this hack with a GERMAN Version 6.04b.
Perhabs this is different with other versions.

As I am a bloody newbie in hacking and UBB I would be happy to hear your opinion and your experiences.

Greetz from Schrapnell

Top


Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
Cambridge 1
Murphdog 1
MattUK 1
Kevin H 1
Who's Online
0 Registered (), 29 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
BeyondCompare v3.00
by blaaskaak
Yesterday at 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks