| 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,129 Views) | |
| FearKiller | Jun 29 2005, 01:12 PM Post #16 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
There were also some problems in my coding as well. I was unaware that array_rand() selected random keys rather than random values when selecting more than one entry in an array. Here is the corrected code.
I also forgot to end the anchor element in the last code as well. :$ EDIT: Changed $imgs to $affs. Thanks Qj for pointing out that mistake. |
![]() |
|
| Jory | Jun 29 2005, 01:28 PM Post #17 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Still need to do that <_< now, array_rand() attempts to get 5 keys/values from the array $imgs, but there is no such array. Its all in $affs. |
![]() |
|
| commander-ZNS | Jun 30 2005, 08:02 PM Post #18 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Cool it worked now but it didn't work the way I wanted it. Ok first of all check out how it looks here http://www.k-gfx.zerax.net/index.php. See how it is set up so all of them are on top of each other in a line. I don't want it like that. I want it like the picture below where the table is set up so it is 3 row and 2 colums. If than is not possible I can also make an affialite were it says VIEW ALL and it take you to the main affialite page so like the APPLY now and VIEW ALL are next to each orther and the RANDOM affialites is even number . |
![]() |
|
| mathiaus | Jun 30 2005, 08:24 PM Post #19 |
|
mathiaus maximus™
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
which code are you now using? |
![]() |
|
| commander-ZNS | Jun 30 2005, 09:44 PM Post #20 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
This one that FearKiller posted above on the 2nd page.
|
![]() |
|
| Jory | Jul 1 2005, 06:32 AM Post #21 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Just change the last part a bit:
I think this would do it. Edit: This is the part that comes AFTER
|
![]() |
|
| FearKiller | Jul 1 2005, 11:37 AM Post #22 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That opening table column tag after the end anchor tag should be a closing table column tag. So that line should look like this.
You could also probably get away with just increasing the width of the main affiliates column so that the images have enough space to fit and won't wrap to the next line. |
![]() |
|
| commander-ZNS | Jul 1 2005, 04:27 PM Post #23 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok I am totally confused about what you said. I dont know anything about coding. So can you please edit the code and give me the new one. Also is it possible to remove that blue border around the affialite? |
![]() |
|
| FearKiller | Jul 1 2005, 05:00 PM Post #24 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
After
in your HTML coding add these following lines.
That should give you the appearance of two columns and remove the blue border around the images. If you still see only one column, edit line 1 above where it says "width: 190px" and increase the width from 190px to like 195px or 200px etc. and your going to want to use the original code for this and not the editted version Qj created above as that will put each of your images in a table column. As always I suggest using proper and up to date code. I suggest you validate your coding and convert to CSS positioned DIVs rather than table based layouts in the future. |
![]() |
|
| Jory | Jul 2 2005, 02:36 PM Post #25 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
:$ Silly me. And what is wrong with putting them in different table cels? Oh, as for the blue border, change
To
|
![]() |
|
| commander-ZNS | Jul 2 2005, 03:08 PM Post #26 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
I did what FearKiller said and it wokred great. But there is one more problem. Just look at my site http://www.k-gfx.zerax.net/index.php . Do you see how those affialites are touching the border on the left. How do I make them go a little bit to the right so its in the middle. I tried to align it to center but it doesn't working. |
![]() |
|
| Jory | Jul 2 2005, 04:10 PM Post #27 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That should do it. Otherwise, try
(Though the first would look better and just is, really.) |
![]() |
|
| commander-ZNS | Jul 2 2005, 05:40 PM Post #28 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
It worked but still not perfect. Anyway to fix it? http://www.k-gfx.zerax.net/index.php I used this
|
![]() |
|
| mathiaus | Jul 2 2005, 06:17 PM Post #29 |
|
mathiaus maximus™
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
the width is wrong. The cell its in is only 180px wide! <td width="180" valign="top"> so changing it to 180 or under and then centering everything? EDIT: just checked witht he edit css tool for firefox (very handy) the below should be used!
|
![]() |
|
| commander-ZNS | Jul 2 2005, 09:26 PM Post #30 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]()
|
wow worked perfectly Iwould like to thank each and everyone that helped. |
![]() |
|
| 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