| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Random Affilaites | |
|---|---|
| Tweet Topic Started: Jun 25 2005, 11:57 PM (1,128 Views) | |
| commander-ZNS | Jun 25 2005, 11:57 PM Post #1 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Guys I need a script for my site http://www.k-gfx.zerax.net/index.php . So you see where it says AFFILIATES on the left under the poll.. Ok over there I want 6 random affalites to show. 2 affialites will be on the top and 2 will be in the middle and the rest 2 will be on the bottom. Also out of those 6 random affililaites , always want 1 of them to always show. Like the last one. Meanng the affailtie row 3 column 2, there will be 5 affialtes for APPLY NOW in diffrent colors. So the row 3 column 2 affialie will always be the APPLY NOW affiliete and in random colors. So I have 5 diffrent images of APPLY NOW and they must show randomly in row 3 column 2. Random Affilaites to Show in row 3 coloum 2. |
![]() |
|
| FearKiller | Jun 26 2005, 01:18 AM Post #2 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
So is this round 2 of your identical topic on the second page? We've already given you both PHP and Javascript coding that will generate these random images for you. |
![]() |
|
| commander-ZNS | Jun 26 2005, 02:58 AM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
the last one doens't work |
![]() |
|
| Jory | Jun 26 2005, 06:26 AM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The last what doens't work? If you mean the last script: It does, all those scripts worked. I think |
![]() |
|
| commander-ZNS | Jun 26 2005, 10:03 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
I don't know how to use it |
![]() |
|
| Jory | Jun 27 2005, 05:22 AM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
OK, you just take the following code, and put it whereever you want the Apply Now Buttons to show up.
Just ad lines like the ones in blue and purple to ad images. And change the red to the url of where ever it should link to. ( The ' and ' around it MUST remain!! ) So: Paste code into the place where you want the random pict/link thing. Change link to correct one. Ad images. Understandable? |
![]() |
|
| commander-ZNS | Jun 28 2005, 03:03 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok thanks alot now I get it. But what about the part for all the other affialites. Look at this picture. Do you see those RED boxes. I want them to be random also. How do i do that? |
![]() |
|
| Jory | Jun 28 2005, 04:12 PM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
The same way, just ad different picts to the array? :unsure: |
![]() |
|
| commander-ZNS | Jun 28 2005, 09:00 PM Post #9 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
ok so that script is for ONE affaite image to show randomly from a list of them? I don't want it like that. I want a script where it should 5 (FIVE) images randomly from a list of imagis and links for those images. |
![]() |
|
| FearKiller | Jun 28 2005, 09:19 PM Post #10 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Okay, this is the very very very similar code from the other topic. What you do is edit each part after $affs[]. Put the link to the affiliated site first, then put a space (" "), and then put the path to image for that affiliate. Say you wanted to link to Yahoo and MSN using the images "yahoo.gif" and "msn.gif," the edited portion of the code would look like this (assuming that these images are saved to your server and are in an image directory called "images" that is in your public_html aka www aka root directory)
That's the best I can explain how to do it. |
![]() |
|
| commander-ZNS | Jun 28 2005, 10:21 PM Post #11 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok thats a great script but like can you make it so its not saved to my server? like i get to use a url of the image not on my serer |
![]() |
|
| FearKiller | Jun 29 2005, 01:47 AM Post #12 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yeah just put the full url of the image. Here's an example of how yahoo.com would be displayed with an image called "yahoo.gif" being called from their server.
|
![]() |
|
| commander-ZNS | Jun 29 2005, 02:18 AM Post #13 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Its not working. Look at it http://www.k-gfx.zerax.net/index.php This is the code i put in randomaffy.txt
|
![]() |
|
| Zach | Jun 29 2005, 03:58 AM Post #14 |
|
Missjayness
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Make sure to save the file as a .php (PHP file extension). ![]() You saved it as a .txt which won't work. It won't allow the PHP to be rendered. |
![]() |
|
| Jory | Jun 29 2005, 01:10 PM Post #15 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try changing to
|
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
5:29 PM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)




5:29 PM Jul 11