News:

Wondering if this will always be free?  See why free is better.

Main Menu

Getting an affiliate button in news box?

Started by DEAD TROOPER, July 22, 2005, 05:43:28 PM

Previous topic - Next topic

DEAD TROOPER

Well I tried the HTML it doesn't work. Can anyone tell me how to do it?

1MileCrash

The only thing php can't do is tell you how much milk is left in the fridge.



dtm.exe

Yes, make it something like...

[url=http://www.affiliate.com][img=http://www.affiliate.com/affiliate_image.gif[/img][/url]

-Dan The Man

sabastina

#3
I've been trying to make an affiliate link in bbcode so that I can add it to my posts. 
The problem I am having is that there are two url links and one image link...
Here is a copy of the original link and what I've done to convert it.  I'm not clear what I should do to the 2nd url link...If I enclose both in tags, will it still credit my account if there is activity from that link?

<a href="http://click.mysite.com/fs-bin/click?id=U8kD7FPd2Yg&offerid=13850.114430358&type=10&subid=">
<img alt="icon" border="0"  src="http://www.imagesite.com/ebx_assets/product_images/224853.jpg"></a><img alt="icon" width="1" height="1" src="http://ad.mysite.com/fs-bin/show?id=U8kD7FPd2Yg&bids=13850.114430358&type=10&subid=">

I've bbcoded it to:

[url=http://click.mysite.com/fs-bin/click?id=U8kD7FPd2Yg&offerid=13850.114430358&type=10&subid=/]
[img=http://www.imagesite.com/ebx_assets/product_images/224853.jpg[/img]
url="http://ad.mysite.com/fs-bin/show?id=U8kD7FPd2Yg&bids=13850.114430358&type=10&subid[/url]


of course, I've seperated them here so that it wouldn't stretch the page...it is actually all one string...

My problem lies in that the code I did adds the image and the first link, but the second link simply lies next to it...I'm really wondering if the second part (which I think is what links me to the purchase) is still going to work tho it is showing?

If someone could even tell me what to search for the answer on how to convert such links from html to bbcode I would appreciate it...my searches take me to hotscripts and other scripting sites where I can't find this information.

sabastina

*EDIT* here's something I put together while trying to figure it out...
May help with the other stuff on this post....

When using the
[url]
tag in bbcode, it's a good idea to keep a couple things in mind so that you are able to create various effects using text and images.

Of course, the standard use for urls will be to simply make a url a hotlink.
Typing something like

[url]http://www.yoursite.com[/url] 


will appear on  your final page as a simple active link to the specified page.  This works well in cases where you simply want to give a quick credit or reference to something, and really aren't concerned with how it looks - when you simply want a link and fast!

However, you may want to do a couple things with your links.  Perhaps you would like to show text, or even an image?  Doing this is simple if you keep a couple things in mind. 

[url=http://will make your url appear as a simple hotlink
[url=http://] commands that though there is a link to be used, there is more to be added to the process.


First of all you have to remember that by using

[url=http://]

you are directing ANYTHING between that tag and the closing
[/url]
to become a part of the link it's self.

For example:
To show a text link instead of the entire url, you need to open the request using the

[url=http://] tag

Let's build a text link now:

You would begin with the url it's self, using the
[url=http://] tag: 

[url=http://www.yoursite.com

Now, you must realize that you don't have your desired text in there...so obviously there's more to be added. 

Before we can request the text, we need to close the request for the actual url by adding
/]
at the end:

[url=http://www.yoursite.com/] 
---  This is saying - "go to this url and then..."

then, we will add the text you want to see:

[url=http://www.yoursite.com/]Your text

Now, obviously this isnt enough because the entire code's not been closed!  Now, we need to give the final command to let the system know "this command for the url is complete".  We do this by adding the closing tag which is
  [/url]

[url=http://www.yoursite.com/]Your Site[/url] 
the result is like this:

hxxp:www.yoursite.com/ [nonactive]


Adding Image to a Link

To add an image we will start with:

[url=http://www.yoursite.com/]

To this, we must direct the system to search for an image to add.  This is done by simply entering [img]http://www.yourimageurl.com[/img]  after the url directive:

[url=http://www.yoursite.com/][img]http://www.yourimageurl.com[/img]

Looks good, however there is one more step - we have to close the url tag!  We do this by adding [/url]

[url=http://www.yoursite.com/][img]http://www.yourimageurl.com[/img][/url]


hope this is helpful to someone.

Advertisement: