Buy Sell Discuss UK Domain Names at AcornDomains.co.uk affiliate window

Today's Drop Dates are: 19-02-2012 or 26-02-2012   All times are GMT. The time now is 12:42:48 PM.
Domain Name Sales Domain Software Calculate UK Domain Drop Dates Domain Registration NameDrive Domain Parking Subscribe to our Domains For Sale newsletter
Go Back   Domain Forum Acorn Domains Buy Sell Auction UK Domains > Website Design and Promotion > Website Design > Scripts and Coding
Connect with Facebook

Scripts and Coding PHP, MySQL, scripts

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-08-2010, 11:36:41 PM     #1 (permalink)

 
woopwoop's Avatar
 
Join Date: Jan 2007
Posts: 1,586
woopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond repute

Is this possible in PHP (or other languages)

At the moment i can retrieve information from a DB and display it nicely in a vertical line of boxes (some boxes with extra information as needed).

I basically need a version of this with exactly the same information, but instead of a top-down list of divs (boxes), I need them to be displayed going around a circle (starting top centre, going clockwise).

Does anyone know if this is possible?
And how easy would it be? Any scripts?

It's already taken me ages to get the list pulling the appropriate info and displaying in a straight line.

Thanks for any help/direction.


Added: The number of divs displayed will be variable depending on what's in the DB. So I can't count on their being a certain number. Therefore the 'circle' would need to re-size in some way?!

Last edited by woopwoop; 05-08-2010 at 11:39:15 PM.
woopwoop is offline  
Old 06-08-2010, 02:01:47 AM     #2 (permalink)

 
Skinner's Avatar
 
Join Date: Jul 2008
Location: Manchester
Posts: 2,507
Skinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond reputeSkinner has a reputation beyond repute

You could do it in Javascript or Ajax (JS + PHP), but don't think PHP alone would produce nice of even elegant results.

You also have the issue of some of your time places being long and over writing others to consider.

You could look at Tag Cloud code for idea's on position, or clock face code in Javascript like http://www.dynamicdrive.com/dynamicindex6/analog.htm and then strip the code down and latch in PHP and you'd be away pretty quickly.

I can't think of an easy way tho.
__________________
Browse:
Skinner is offline  
Old 06-08-2010, 12:27:20 PM     #3 (permalink)

 
woopwoop's Avatar
 
Join Date: Jan 2007
Posts: 1,586
woopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond repute

Cheers Skinner - will take a look at the JS.

It's pretty tricky to accomplish what I wanted so may have to change my expectations.

Many thanks.
woopwoop is offline  
Old 06-08-2010, 01:21:09 PM     #4 (permalink)

 
bensd's Avatar
 
Join Date: Jan 2007
Location: Wiltshire, UK
Posts: 4,148
bensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond reputebensd has a reputation beyond repute

I don't know php so feel free to correct me!

Could you design a circle in html/css and put php calls in the relevant divs?
bensd is offline  
Old 06-08-2010, 01:43:08 PM     #5 (permalink)

 
Join Date: May 2007
Posts: 1,148
monaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond repute

Whether you use JS, AJAX, PHP or anything else, the resulting output will need to be DIV's or other tags that you position with CSS (unless you output as a graphic).

If you use the item number in the ID of the DIV you could use a dynamically created style sheet to position the DIV's according to the number of results returned. If you have a known number of results you could cache a few common style sheets and just reference the desired CSS file.
__________________
Alex Monaghan - Drop Catch & Drop Lists - PM for details
Online Accounting|Pine Furniture|Barbie
monaghan is online now  
Old 06-08-2010, 02:59:20 PM     #6 (permalink)

 
woopwoop's Avatar
 
Join Date: Jan 2007
Posts: 1,586
woopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond reputewoopwoop has a reputation beyond repute

Quote:
Originally Posted by bensd View Post
I don't know php so feel free to correct me!
Could you design a circle in html/css and put php calls in the relevant divs?
This was originally my first thought. But the number of divs is variable based on query results. My final product needed to have divs within the divs that were spread around the circle too - so even more complicated and the circle would definitely need to be produced variably (in size).

Quote:
Originally Posted by monaghan View Post
Whether you use JS, AJAX, PHP or anything else, the resulting output will need to be DIV's or other tags that you position with CSS (unless you output as a graphic).

If you use the item number in the ID of the DIV you could use a dynamically created style sheet to position the DIV's according to the number of results returned. If you have a known number of results you could cache a few common style sheets and just reference the desired CSS file.
Yeah this is what I was thinking. Just too many variables for me to juggle given that I need the script to function with the results from each query that's sent (which always gives variable results):

The initial size of circle and position of main divs would depend on:
1. number of divs
2. size of each div (based on div content, and if there are 0-2 extra divs inside that div)

Divs could have a fixed width, but as they are positioned around around the circle, some of the corner positions would be adjusted for the fact they are on the 'left' side of the circle, or on the top or bottom, whereas those divs on the right would have a position where the top left corner of the div could be on the circumference.

I think I'm best to save this part for a future project. I'm just so happy that I am getting this to work perfectly (so far) in a linear (top-down) design.

Probably best to quit while I'm ahead!

Thanks for your help.
woopwoop is offline  
Old 06-08-2010, 03:20:58 PM     #7 (permalink)

 
Join Date: May 2007
Posts: 1,148
monaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond reputemonaghan has a reputation beyond repute

If you have a PHP file as the CSS file and pass the number of results returned you can then do the maths for the corner positions and output CSS rather than HTML. Just run the DB query before you start outputting the main HTML so you have the count saving a duplicated SQL query in the CSS PHP.
__________________
Alex Monaghan - Drop Catch & Drop Lists - PM for details
Online Accounting|Pine Furniture|Barbie
monaghan is online now  
Closed Thread



Bookmarks

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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Domain Name Community Replies Last Post
PHP Sockets Help chrisvaughanuk Scripts and Coding 7 24-07-2010 07:57:49 PM
.Tel to Launch IDNs in 16 Languages in June - Domain Name Wire (blog) RSS Domain Name News 0 30-03-2010 03:59:01 PM
PHP include in a Smarty Template admin Scripts and Coding 1 13-05-2008 06:37:26 AM

75% off Domains at Network Solutions®.


All times are GMT. The time now is 12:42:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0 RC 2
All content on Acorn Domains is member generated and is not moderated before posting. All content is viewed and used by you at your own risk and AD does not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributors and not necessarily those of AD. Please contact us to report any issues or send a PM to "Admin".