kliklinks webmaster code.

Gestart doorFreestyle8 reacties427 weergaven

9 berichten · pagina 1 van 1

Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik wil bij mijn linkpartners deze code:



Mijn idee is dat er een API van komt.

Je kan die api dus aanpassen zodat je bijvoorbeeld maximaal 1link laat zien.
Of 1 random link kan laten tonen.

En als er niks is dat er dan ook niks word weergeven.
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php
$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]JOUWNAAMHIER[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.one2xs.com/klik_js?user=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$contents[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]one2xs::user_unknown[/COLOR][COLOR= #007700]) !==[/COLOR] FALSE[COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]sjoerd[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.one2xs.com/klik_js?user=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700]);
}[/COLOR]

[COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&euro;"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"€"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&aacute;"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"a"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"document.write("[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]");"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]);[/COLOR]
[URL="http://www.php.net/preg_match_all"]preg_match_all[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]/<a href="(.*)" target="_blank">(.*)</a>/iU[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$links[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<[/COLOR] [URL="http://www.php.net/sizeof"]sizeof[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]);[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++){[/COLOR]
   [COLOR= #0000BB]$links[/COLOR][COLOR= #007700][] =[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]url[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #DD0000]titel[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]]);
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$links[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$links[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$links[/COLOR][COLOR= #007700])-[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700])];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]url[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]http://www.relisten.nl/[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]titel[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]Relisten ~ Nummer gemist?[/COLOR][COLOR= #007700]);
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$link[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]url[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]" target="_blank">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$link[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</a>[/COLOR][COLOR= #007700];[/COLOR]
?>


probeer zoiets eens

alleen dan wordt er wel steeds een request naar one2xs gedaan. Maar dat zou met een API ook zo zijn, en is met die klik_js ook zo..
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt!!!

Alleen ik heb een vraagje. Hij wisselt automatisch van andere klik advertentie???
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Joerie er misschien even bijzeggen dat hij jou gebruikersnaam neemt als hij de andere niet vindt en dat als er geen links zijn hij relisten erinzet? Daar kan niemand iets op tegen hebben maar het is altijd leuk het er even bij te zetten. yummie
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Freestyle schreef:
Bedankt!!!

Alleen ik heb een vraagje. Hij wisselt automatisch van andere klik advertentie???
Ja, zou je even dat script opnieuw willen pakken, en de naam willen veranderen. Ik heb nu al 0.03 punten ontvangen door voor jou hoorden te zijn. Ik heb ze naar je gestuurd wink
edit: nevermind, dat zijn kliks die ik een half jaar geleden deed op die klik-ads emo
Maar heb je wel je eigen naam er in gezet?
Alemaalte schreef:
Joerie er misschien even bijzeggen dat hij jou gebruikersnaam neemt als hij de andere niet vindt en dat als er geen links zijn hij relisten erinzet? Daar kan niemand iets op tegen hebben maar het is altijd leuk het er even bij te zetten. yummie
die 4e en 5e regels worden alleen uitgevoerd als daarvoor bij $user een verkeerde naam gebruikt werd.

edit3: De code nog eens getest met meerdere advertenties en werkt goed smile
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sjoerd schreef:
Eerdere citaten tonen
Freestyle schreef:
Bedankt!!!
Alleen ik heb een vraagje. Hij wisselt automatisch van andere klik advertentie???
Ja, zou je even dat script opnieuw willen pakken, en de naam willen veranderen. Ik heb nu al 0.03 punten ontvangen door voor jou hoorden te zijn. Ik heb ze naar je gestuurd wink
edit: nevermind, dat zijn kliks die ik een half jaar geleden deed op die klik-ads emo
Maar heb je wel je eigen naam er in gezet?
Eerdere citaten tonen
Alemaalte schreef:
Joerie er misschien even bijzeggen dat hij jou gebruikersnaam neemt als hij de andere niet vindt en dat als er geen links zijn hij relisten erinzet? Daar kan niemand iets op tegen hebben maar het is altijd leuk het er even bij te zetten. yummiedie 4e en 5e regels worden alleen uitgevoerd als daarvoor bij $user een verkeerde naam gebruikt werd.

edit3: De code nog eens getest met meerdere advertenties en werkt goed smile
Ik heb de naam verandertconfused
[COLOR= #0000BB]<?php $user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]freestyle[/COLOR][COLOR= #007700];[/COLOR]
                        [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.one2xs.com/klik_js?user=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$user[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/strstr"]strstr[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$contents[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]one2xs::user_unknown[/COLOR][COLOR= #007700]) !==[/COLOR] FALSE[COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]freestyle[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://www.one2xs.com/klik_js?user=sjoed[/COLOR][COLOR= #007700]);
}[/COLOR]

                        [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&euro;"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"€"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
                        [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"&aacute;"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"a"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
                        [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"document.write("[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700]);[/COLOR]
                        [COLOR= #0000BB]$contents[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]");"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]);[/COLOR]
                        [URL="http://www.php.net/preg_match_all"]preg_match_all[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]/<a href="(.*)" target="_blank">(.*)</a>/iU[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$contents[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700]);[/COLOR]
                        [COLOR= #0000BB]$links[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/for"]for[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<[/COLOR] [URL="http://www.php.net/sizeof"]sizeof[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]);[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++){[/COLOR]
    [COLOR= #0000BB]$links[/COLOR][COLOR= #007700][] =[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]url[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #DD0000]titel[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$advertenties[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]2[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]]);
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$links[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
    [COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$links[/COLOR][COLOR= #007700][[/COLOR][URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [URL="http://www.php.net/count"]count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$links[/COLOR][COLOR= #007700])-[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700])];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [COLOR= #0000BB]$link[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]url[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]http://www.vanmarijn.nl/[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]titel[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #DD0000]VanMarijn[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dan klopt ie smile
0
Freestyle

Lid · Topicstarter

Berichten
7.681
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik was 1 ding vergeten

$contents = file_get_contents(http://www.one2xs.com/klik_js?user=sjoed);

En die 0,03 wil ik best terug hoorsantabaard
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Freestyle schreef:
Ik was 1 ding vergeten
$contents = file_get_contents(http://www.one2xs.com/klik_js?user=sjoed);

En die 0,03 wil ik best terug hoorsantabaardZoals je in die edit kon lezen was dat van mij nog een half jaar geleden oid. Niets van jou dus emoJij had je naam ook al verandert, dus kon niet eens van jou zijn sadley
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren