Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > Blocks and Modification
Register Projects FAQ Members List Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2008, 10:02 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default How to list the random listing block horizontally

Hi all,

Is there any way to list the random listing block horizontally rather than vertically?

Cheers
Mitchell
Reply With Quote
  #2 (permalink)  
Old 04-21-2008, 10:17 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

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! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 10:34 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
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
Reply With Quote
  #4 (permalink)  
Old 04-21-2008, 11:24 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

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! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #5 (permalink)  
Old 04-21-2008, 11:41 AM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

If it's working, it's the "correct" way, and it looks like it's working to me.
Reply With Quote
  #6 (permalink)  
Old 04-21-2008, 08:51 PM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

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 )
Reply With Quote
  #7 (permalink)  
Old 04-21-2008, 09:54 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

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.
Reply With Quote
  #8 (permalink)  
Old 04-21-2008, 10:20 PM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
Do I have to Modify
block.random_listing_rows.html

or
block.random_listing.php

or both to add list them in one row?
Reply With Quote
  #9 (permalink)  
Old 04-21-2008, 10:49 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

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.
Reply With Quote
  #10 (permalink)  
Old 04-21-2008, 11:27 PM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Thanks Bruce, all done.
Reply With Quote
  #11 (permalink)  
Old 04-21-2008, 11:50 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Code:
Content visible to License Owner only.

Instead of doing whats above, why couldn't you do


Code:
Content visible to License Owner only.
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #12 (permalink)  
Old 04-22-2008, 12:08 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
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
Reply With Quote
  #13 (permalink)  
Old 04-22-2008, 01:55 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

Just for giggles... Try this

Code:
Content visible to License Owner only.
If you try it, let me know if it works
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #14 (permalink)  
Old 04-22-2008, 02:47 AM
Mitchell's Avatar
Active Member
 
Join Date: Oct 2007
Location: Sydney
Posts: 584
Mitchell is on a distinguished road
Default

Code:
Content visible to License Owner only.
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;

Code:
Content visible to License Owner only.
and I modified the block_random_listing_rows.html block to this;

Code:
Content visible to License Owner only.
I hope this saves some one elses time.

Last edited by Mitchell; 04-22-2008 at 02:49 AM.
Reply With Quote
  #15 (permalink)  
Old 04-22-2008, 09:32 AM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

I see your using the

Code:
Content visible to License Owner only.
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 it
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Random paid listings block? akamaka Blocks and Modification 15 11-04-2008 12:46 PM
emails from listing onto mailing list CotswoldAdvisor Blocks and Modification 5 03-19-2008 08:30 AM
Random Site of The Day echo@ Blocks and Modification 6 11-24-2007 11:46 PM
random link ? dbmg v5.x 6 03-28-2003 03:07 AM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 03:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate