UnrealCatze / FigureDatabase

FigureDatabase
GNU General Public License v3.0
1 stars 0 forks source link

Wie könnte man diesen Code einfügen? #36

Closed UnrealCatze closed 7 years ago

UnrealCatze commented 7 years ago

ich suche einen Möglichkeit Code der mir von Partnern vorgegeben wird im Adminbereich einer Figur einzufügen. Heisst ich würde dort gerne ein Eingabefeld haben wo ich diesen code einkopiere und dieser dann auf der eigentlichen Figurenseite umgesetzt wird. Wenn ich ein normales Feld wie jetzt habe wird der Code nur als normaler text angezeigt.

Momentan habe ich nur nornale Links .... aber ein Banner wäre um längen besser. Ich weiss überhaupt nicht wie ich das umsetzen soll.

Update: ich sehe gerade das auch hier der eigentlich code immer gleich scheint. So könnte man eine IF Abfrage machen --- wenn Manufacturer XXX dann mache das Das müsste man dann für jeden machen der Affilate programme anbietet. Eine eingabe egal welcher hersteller ... also einfach ein feld wo ich dcen Code eingebe und der dann umgesetzt wird wäre natürlich bequemer :)

hier mal die Banner um die es geht ...

**Javascript Text Link:**
<SCRIPT type="text/javascript" src="http://affiliates.sideshowtoy.com/JsTracker.aspx?aid=3923&bid=61618"></SCRIPT>

**Secure Javascript Banner Link**
(use if your website is secure and over https://)
<SCRIPT type="text/javascript" src="https://affiliates.sideshowtoy.com/JsTracker.aspx?aid=3923&bid=61618"></SCRIPT>

**HTML Banner Link**
<a href="http://affiliates.sideshowtoy.com/Tracker.aspx?aid=3923&bid=61618&cid=65" target="_blank"><img src="http://www.sideshowtoy.com/affiliates/banners/200333_300x250.jpg" height="250" width="300" border="0" alt="Alien King Alien Maquette"/></a>

**Secure HTML Banner Link**
(use if your website is secure and over https://)
<a href="https://affiliates.sideshowtoy.com/Tracker.aspx?aid=3923&bid=61618&cid=65" target="_blank"><img src="https://www.sideshowtoy.com/affiliates/banners/200333_300x250.jpg" height="250" width="300" border="0" alt="Alien King Alien Maquette"/></a>
UnrealCatze commented 7 years ago

ich habe nochmal überlegt aber einen so richtige Lösung gefunden. Ein banner macht natürlich immer mehr her als nur ein textlink aber ich weiss nicht wie ich das umsetzen soll so das der code ausgeführt wird. Das wird ja immer unterbunden weil auch gefährlich

habe mal die klammer vorne weggelassenw eil sonst wird der banner angezeigt SCRIPT type="text/javascript" src="https://affiliates.sideshowtoy.com/JsTracker.aspx?aid=3923&bid=61618">

habe mal die klammer vorne weggelassenw eil sonst wird der banner angezeigt a href="http://affiliates.sideshowtoy.com/Tracker.aspx?aid=3923&bid=61618&cid=65" target="_blank"> img src="http://www.sideshowtoy.com/affiliates/banners/200333_300x250.jpg" height="250" width="300" border="0" alt="Alien King Alien Maquette"/>

ich weis nicht ob sich der Hersteller immer daran hält

hier das was der hersteller in seiner Hilfe schreibt

Each Affiliate link that is generated by the Sideshow Collectibles Affiliate Program system includes multiple pieces of information that our tracking software uses to monitor your affiliate activity.

A typical tracking code for a Banner Link looks like the example below: http://affiliates.sideshowtoy.com/JsTracker.aspx?aid=380&bid=134

Our code is written in JavaScript, and the information in the box above is just the "meat" of the link. It holds all of the keys we need to track activity on your affiliate link. The section "aid=380" represents the numeric equivalent of your affiliate ID (or Username). Your number will not be 380, but it will be the same in every link you create. The section "bid=134" represents the Banner ID. Each of our banners has a numeric ID, and we use this information to assign your Impressions, Clicks and Sales to the correct campaign.

A typical tracking code for a rotation of banners looks like the example below: http://affiliates.sideshowtoy.com/JsTracker.aspx?aid=380&iids=713|704|708|715|716&size=120x90

Note that the "aid" number is the same as the example above. The section "iids=713|704|708|715|716" represents the Item IDs for the products you have selected. Please note that each Web Browser has a limit for the length of a string of code. If you add too many products to your rotation, you may experience problems with your banners. The section "size=120x90" represents the banner size you have chosen from our broad selection. Please be certain that we actually offer a banner in the size you like before publishing your code.

A typical tracking code for a Text Link looks like the example below: http://affiliates.sideshowtoy.com/JsTracker.aspx?aid=380&iids=712&size=text

You can see that the information is mostly consistant with the other link examples above. The only difference is the "size=text" section. When you see the full linking code in JavaScript, please note that you will not have to manually type the product name into the link. It will appear automatically when published.

I am using your Custom Link tool, and I want to format the style of the links. How do I accomplish this?

We have designed our Custom Link tool so that you may apply your own personal style to the appearance of your links. Our JavaScript links have a CSS class definition incorporated, and to take advantage of this option you will need to create a CSS definition for 'affiliatestyle'. This can be added to the style definitions for your webpage. Example

a.affiliatestyle {text-decoration:none;color:#F00;} a.affiliatestyle:hover {text-decoration:none;}

Once you have defined your style within your page, no further work is needed. Your Custom Links are already designed to trigger the CSS style when you mark up or publish your webpage.

UnrealCatze commented 7 years ago

erledigt