Forum

> > Off Topic > quick question about links
Forums overviewOff Topic overviewLog in to reply

English quick question about links

16 replies
To the start Previous 1 Next To the start

old quick question about links

playa slaya
COMMUNITY BANNED Off Offline

Quote
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

old Re: quick question about links

Circa
User Off Offline

Quote
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;

old Re: quick question about links

ohaz
User Off Offline

Quote
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.

old Re: quick question about links

playa slaya
COMMUNITY BANNED Off Offline

Quote
TheKilledDeath has written
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

old Re: quick question about links

Vibhor
User Off Offline

Quote
One a bit offtopiky but its important
How do i make the images show up?
whenever i use the tag it just shows the links

old Re: quick question about links

Reaper
User Off Offline

Quote
spartan029 has written
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 has written
do i type this in a post are javascript


no it's a php script as TKD has written.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview