Hi all,
Is there any way to list the random listing block horizontally rather than vertically?
Cheers
Mitchell
Hi all,
Is there any way to list the random listing block horizontally rather than vertically?
Cheers
Mitchell
Where are you trying to place the block??? Is the main page content, in the center?
If so, my first suggestion would be to make a duplicate copy of the original block... Both the .php file and the .html file. Edit the .php file to reflect the new name given to the block. Then edit the .html file for horizonal use. Its just a matter of changing the HTML code to display it the way you want![]()
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
Thanks for the quick reply, I want to do it the same way as I have done on this site on the main page;
http://www.weddingsonly.com.au/index.php
Please check the "IN THE SPOTLIGHT" section, I have done it but not the correct way, so I need to do it correctly.
I checked the bolck's html it doesn't have any thing like table, or horizontal listing!
regards
Mitchell
I'm not sure what you mean by "I have done it but not the correct way"?!?!? What is incorrect about the way you did it there??
Just add any HTML code to display it the way you want in the HTML file. Another words, customize the HTML code in the HTML file for the way you want it to display. Standard HTML code will work fine in that file.
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
If it's working, it's the "correct" way, and it looks like it's working to me.
So what I have done is I used a table and 5 X Random Block Listing, here is the code below;
<tr align="middle">
<td width=20%><%block_random_listing max_item="1"%></td>
<td width=20%><%block_random_listing max_item="1"%></td>
<td width=20%><%block_random_listing max_item="1"%></td>
<td width=20%><%block_random_listing max_item="1"%></td>
<td width=20%><%block_random_listing max_item="1"%></td>
</tr>
</table>
The problem here is that as there are five of the same code, SOMETIMES the suppliers might be duplicated. I need to use the code ones only so I don't get the same suppliers listed twice or even 5 five times (JACKPOT )![]()
I wouldn't be too concerned about that.
But if you are concerned, copy the block, rename it and then rewrite the code in it to put it into a table.
you need to edit block.random_listing_rows.html to change the HTML
If you're copying them then you would need to edit both.
Thanks Bruce, all done.
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
Well, I tried that and it listed all five Vertically, I have fixed it now, have a look below;
http://www.weddingsonly.com.au/index.php
Let me know if you would like the code.
Thank you any way
Mitchell
Just for giggles... Try this
If you try it, let me know if it worksHTML Code:<tr align="middle"> <td width=100%><%block_random_listing columns="1" max_item="5"%></td> </tr> </table>![]()
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos
Sorry it didn't work, it list all five in one column, under one another.
This is what I have done and worked;
in the main page I change it to;
and I modified the block_random_listing_rows.html block to this;PHP Code:<table align="middle" cellspacing="2" cellpadding="2" border="0">
<tr align="middle">
<%block_random_listing max_item="5"%>
</tr>
</table>
I hope this saves some one elses time.PHP Code:<%$hook_html_block_random_listing_rows_begin%>
<td width=20%>
<a href="<%$site_url%>/<%$detail_page_url%>" name="link_<%$link_id%>"><img src="http://image.picoshot.com/thumbnail.php?url=<%$url%>" alt="<%$title%>" align="middle"><br /><b><%$title|truncate:28%></b></a>
<br />
<%$description|truncate:50%>
</td>
<%$hook_html_block_random_listing_rows_end%>
Last edited by Mitchell; 04-22-2008 at 01:49 AM.
I see your using the
statement, so this would be coding for version 6. Probably good to note that so that someone else using 5.4 and searching the forums wont get screwed up by itHTML Code:<%$hook_html_block_random_listing_rows_begin%>![]()
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
Follow Us On Twitter | FaceBook Profile | YouTube Videos