Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Hi Asteran,
thanks for the new version. It's getting pretty cool.

You have some Denglish (German/English mix) in it, did you realize that?

By the way, I tried to find a way to address a user in their language, as I am running a bi-langual website. In your code I changed this:
[:"green"]
$Sender = $user['U_Username'];
$To = $poster;

//Hack in Hack, additionally: Language!
If ($Sprache == "German") {

if ($Reason != "") {
$Message2 ="<br /><br />Anmerkung: <br><br> $Reason";
}
$Subject = "Dein Thread "$mSubject" wurde verschoben.";
$mess = "Dein Thread "$mSubject" wurde von "$boardin" in's "$boardm" Board verchoben. Der Thread kann jetzt
<a href="$config[phpurl]/showthreaded.php?Cat=$Cat&Board=$Keyword_q&Number=$number">hier</a> gefunden werden.$Message2";

} else {

if ($Reason != "") {
$Message2 ="<br /><br />Annotation: <br><br> $Reason";
}
$Subject = "Your thread "$mSubject" has been moved";
$mess = "Your thread "$mSubject" has been moved from "$boardin" to "$boardm". The thread can be found
<a href="$config[phpurl]/showthreaded.php?Cat=$Cat&Board=$Keyword_q&Number=$number">here</a>.$Message2";

}
// End Hack in Hack
$html -> send_message ($Sender,$To,$Subject,$mess);
[/]

How to I get the variable $Sprache?
On the admin part, I added a selection. So the admin, while moving the thread, decides in what language he wants to address the user with the "reason":

[:"green"]
echo "</br /></br />
<p><b>Automatic Info-Message to the user who started the thread: </b></p>
<p>
a) Choose language of the User: <i><input type="radio" name="Sprache" value="German" checked="checked" border="0" />German <input type="radio" name="Sprache" value="English" border="0" />English</i>
</p><p>
b) Give a reason (optional): <input type="text" name=Reason size="24" border="0" class="formboxes" />
</p>
";
[/]


But there is probably a better way: to pick the stored language-variable for each user from the database.
But I am not so good in MySQL so I did it the other way.

If you like the idea, you will probably come up with a better solution, I'm sure


Sponsored Links
Entire Thread
Subject Posted By Posted
PM on moved thread hack Astaran 05/26/2002 1:37 PM
Re: PM on moved Thread Hack Gardener 05/26/2002 1:39 PM
Re: PM on moved thread hack MTO 05/26/2002 2:53 PM
Re: PM on moved thread hack MTO 05/26/2002 2:56 PM
Re: PM on moved thread hack Astaran 05/26/2002 3:07 PM
Re: PM on moved thread hack AllenAyres 05/26/2002 10:01 PM
Re: PM on moved thread hack caymuc 05/27/2002 12:19 AM
Re: PM on moved thread hack Muhammad 05/28/2002 4:15 PM
Re: PM on moved thread hack caymuc 05/28/2002 4:43 PM
Re: PM on moved thread hack Dave_L_dup1 05/28/2002 7:10 PM
Re: PM on moved thread hack MTO 05/28/2002 7:13 PM
Re: PM on moved thread hack Muhammad 05/28/2002 7:15 PM
Re: PM on moved thread hack Jim Osby 06/03/2002 6:36 AM
Re: PM on moved thread hack Jim Osby 06/03/2002 9:18 AM
Re: PM on moved thread hack MTO 06/03/2002 4:33 PM
Re: PM on moved thread hack Astaran 06/03/2002 8:25 PM
Re: PM on moved thread hack Astaran 06/03/2002 10:09 PM
Re: PM on moved thread hack caymuc 06/03/2002 11:27 PM
Re: PM on moved thread hack Astaran 06/04/2002 12:25 AM
Re: PM on moved thread hack Jim Osby 06/04/2002 7:29 AM
Re: PM on moved thread hack Lisa_P 06/04/2002 7:50 AM
Re: PM on moved thread hack Jim Osby 06/04/2002 8:07 AM
Re: PM on moved thread hack MTO 06/04/2002 3:55 PM
Re: PM on moved thread hack Jim Osby 06/04/2002 7:49 PM
Re: PM on moved thread hack santana 10/07/2002 5:50 PM
Re: PM on moved thread hack Astaran 10/09/2002 9:01 AM
Re: PM on moved thread hack ksanuk 10/16/2002 2:18 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,931
Members13,823
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)