Forum

> > Off Topic > quick question about links
ForenübersichtOff Topic-ÜbersichtEinloggen, um zu antworten

Englisch quick question about links

16 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt quick question about links

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
i want toknow how to make a link with a different name
like you change examplelink.c0m to here or 'follow this link'
and make a picture link

alt Re: quick question about links

Circa
User Off Offline

Zitieren
I know what you meant, and I gave you a correct answer. This what you would type:

[ url=http://www.example.com/][ img]image link here[/img][/url]

Just remove that space at the beginning.

Here is the result:
IMG:https://www.cs2d.com/usbanner.gif


-----

Lol TKD, we posted @ the same time. o.O;

alt Re: quick question about links

ohaz
User Off Offline

Zitieren
You need any scripting language for that. It works with javascript or with php or anything else (but not HTML, since it's not a scripting language)
in php a script would look like this:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
$file = fopen("counter.txt","r+");
$counter = fgets($file, 10);
if($counter == "")
   {
   $counter= 0;
   }
$counter++;
rewind($file);
fwrite($file, $counter);
fclose($file);
?>
This code writes into the counter.txt a number everytime someone is on this page.

alt Re: quick question about links

playa slaya
COMMUNITY BANNED Off Offline

Zitieren
TheKilledDeath hat geschrieben
You need any scripting language for that. It works with javascript or with php or anything else (but not HTML, since it's not a scripting language)
in php a script would look like this:
1
2
3
4
5
6
7
8
9
10
11
12
<?php
$file = fopen("counter.txt","r+");
$counter = fgets($file, 10);
if($counter == "")
   {
   $counter= 0;
   }
$counter++;
rewind($file);
fwrite($file, $counter);
fclose($file);
?>
This code writes into the counter.txt a number everytime someone is on this page.


do i type this in a post are javascript

alt Re: quick question about links

Reaper
User Off Offline

Zitieren
spartan029 hat geschrieben
The site that the link goes to must have a counter. some thing that counts the amounts of clicks from a link.


no, a counter only counts the number of clicks at this site, but it tells you nothing about the referal site, so you don't know where you get the clicks from, what was asked.

playa slays hat geschrieben
do i type this in a post are javascript


no it's a php script as TKD has written.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenOff Topic-ÜbersichtForenübersicht