English > Development
Script for egafd.com
Ivek23:
--- Quote from: pra15 on December 10, 2011, 10:54:55 am ---Have you try code for Birthplace and Birthday in egafd people ?
--- End quote ---
It is fine, but problems occur when certain words like this for example:
Hungarian , b. 1983 <--- no problem
Hungarian or this b. 1983 <--- there's a problem - the script is blocked
Here is the link http://www.egafd.com/actresses/details.php/id/k00071 for classic example of described problems (b. 1978).
Hungarian <--- this problem I just somehow solved
others do not, therefore, egafd_people(4 (Ivek23)10 script attached if they will give what and how to save and improve the script,
[attachment deleted by admin]
pra15:
I haven't seen this exemples.
For b.1978 see this code :
--- Code: ---//BirthDay & Birthplace:
ExplodeString(Born, PartBorn, #46);
If High(partBorn) > 0 then
Begin
For I := Low(partBorn) to High(partBorn) do
Begin
PartBorn[I] := Trim(partBorn[I]);
End;
For I := Low(partBorn) to High(partBorn) do
Begin
If Lowercase(partBorn[I]) = 'b' then begin
If High(partBorn) = 1 then Begin
BirthDay := '01/01/' + Copy(partBorn[I+1], 0, 4);
Country := '';
end
else begin
ExplodeString(partBorn[I-1], PartBorn2, ' ');
J := High(partBorn2);
BirthDay := '01/01/' + Copy(partBorn[I+1], 0, 4);
Country := partBorn2[J];
end;
end;
If Copy(partBorn[I], length(partBorn[I])-2,3) = ', b' then begin
ExplodeString(partBorn[I], partBorn2, ',');
J := High(partBorn2);
ExplodeString(partBorn2[J-1], partBorn3, ' ');
J := High(partBorn3);
Country := partBorn3[J];
Birthday := '01/01/' + copy(partborn[I+1],0,4);
end;
end;
end;
If Country <> '' then
AddFieldValue(pfBirthPlace, Country);
If BirthDay <> '' then
AddFieldValue(pfBirthday, BirthDay);
--- End code ---
For country only can you post a link?
Ivek23:
--- Quote from: pra15 on December 12, 2011, 11:16:44 pm ---For country only can you post a link?
--- End quote ---
For country only link:
http://www.egafd.com/actresses/details.php/id/v00279
http://www.egafd.com/actresses/details.php/id/t00019
http://www.egafd.com/actresses/details.php/id/s00066
http://www.egafd.com/actresses/details.php/id/r00044
http://www.egafd.com/actresses/details.php/id/o00009
http://www.egafd.com/actresses/details.php/id/n00518
http://www.egafd.com/actresses/details.php/id/n00130
http://www.egafd.com/actresses/details.php/id/n00047
http://www.egafd.com/actresses/details.php/id/k00333
http://www.egafd.com/actresses/details.php/id/j00106
http://www.egafd.com/actresses/details.php/id/j00041
http://www.egafd.com/actresses/details.php/id/i00028
http://www.egafd.com/actresses/details.php/id/g00361
http://www.egafd.com/actresses/details.php/id/g00339
http://www.egafd.com/actresses/details.php/id/g00077
http://www.egafd.com/actresses/details.php/id/g00320
http://www.egafd.com/actresses/details.php/id/f00059
http://www.egafd.com/actresses/details.php/id/e00056
http://www.egafd.com/actresses/details.php/id/a00750
For link, where the partial incorrectly data transfer for example like this:
http://www.egafd.com/actresses/details.php/id/v00195
series, b. 1978
http://www.egafd.com/actresses/details.php/id/r00061
origin, b. 1976
French, Algerian origin, b. 1976
http://www.egafd.com/actresses/details.php/id/l00281
breast. b. 1980
Hungarian. ..... breast. b. 1980
http://www.egafd.com/actresses/details.php/id/l00129
arm. b. 1982
Hungarian blonde, tattoo upper right arm. b. 1982
http://www.egafd.com/actresses/details.php/id/f00165
resident, b. 1969
Congolese (Brazzaville), French resident, b. 1969
http://www.egafd.com/actresses/details.php/id/d00042
origin, b. 1968
French, Moroccan origin, b. 1968
http://www.egafd.com/actresses/details.php/id/c00453
arm. b. 1980
Hungarian, tattoo right shoulder / upper arm. b. 1980
http://www.egafd.com/actresses/details.php/id/a00493
blade. b. 1984
French. tattoos .... blade. b. 1984
http://www.egafd.com/actresses/details.php/id/a00672
blade. b. 1980
Spanish, tattoos .... blade. b. 1980
http://www.egafd.com/actresses/details.php/id/a00266
shoulder. b. 1983
French. .... shoulder. b. 1983
For link, which do not transfer any data for example like this:
http://www.egafd.com/actresses/details.php/id/t00012
French-Canadian
http://www.egafd.com/actresses/details.php/id/s00841
Hungarian,
http://www.egafd.com/actresses/details.php/id/p00088
French, black African ethnic origin
http://www.egafd.com/actresses/details.php/id/n00033
Ukrainian, b. 1973 or 1977?
http://www.egafd.com/actresses/details.php/id/m01654
Bulgarian,
http://www.egafd.com/actresses/details.php/id/m00170
Hungarian,
http://www.egafd.com/actresses/details.php/id/m00671
mature, French
http://www.egafd.com/actresses/details.php/id/l01065
probably Hong Kong Chinese
http://www.egafd.com/actresses/details.php/id/l00073
French brunette,
http://www.egafd.com/actresses/details.php/id/l00056
French (Breton)
http://www.egafd.com/actresses/details.php/id/l00103
French,
http://www.egafd.com/actresses/details.php/id/k00045
French (Vietnamese father), b.1979,
http://www.egafd.com/actresses/details.php/id/k00026
French, 1973 - 2005, R.I.P.
http://www.egafd.com/actresses/details.php/id/j00037
Portuguese, French-based (according to some sources anyway)
http://www.egafd.com/actresses/details.php/id/i00080
Polish or Hungarian?, b. 1978
http://www.egafd.com/actresses/details.php/id/g00204
b. 1986, tattoo right upper arm, ....
http://www.egafd.com/actresses/details.php/id/g00056
Polish, spot ....
http://www.egafd.com/actresses/details.php/id/f00124
German, brunette, ....
http://www.egafd.com/actresses/details.php/id/e00153
French, blonde, mature, ....
http://www.egafd.com/actresses/details.php/id/d00548
Bulgarian, tattoo ....
http://www.egafd.com/actresses/details.php/id/a00104
French, tattoo ....
http://www.egafd.com/actresses/details.php/id/a01156
Bulgarian, tattoo ....
http://www.egafd.com/actresses/details.php/id/a00064
Russian / Kyrgyzstan
http://www.egafd.com/actresses/details.php/id/a00151
French,
http://www.egafd.com/actresses/details.php/id/a00053
Hungarian, b. 1970 (or 1968?), ....
http://www.egafd.com/actresses/details.php/id/b00121
Hungarian, b. 1974?
http://www.egafd.com/actresses/details.php/id/b00004
French, but according to IMDB, born Fort Worth, Texas
BTW:
How do you work with code the word Birthday ,because it does not work for me and I had to replace the word Birthplace , it works.
pra15:
Thanks,
There's too many different type of string for use my code!
We only can utilise it for birthday, and for country we can utilise your code with Pos.....
But we must have all country possible in list.
Sorry for birthday or birthplace, i'm not at home for the moment, so i have not VDB for making test, i work only with script file.
Ivek23:
--- Quote from: pra15 on December 13, 2011, 08:56:05 am ---Sorry for birthday or birthplace, i'm not at home for the moment, so i have not VDB for making test, i work only with script file.
--- End quote ---
No problem, we will wait that you will soon come home again.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version