redbullmarky
Staff Alumni-
Posts
2,863 -
Joined
-
Last visited
Never
Everything posted by redbullmarky
-
got a test username/password? on FF2, a mouseover JS function, setStatus, is throwing errors left right and center according to firebug.
-
hmmm kinda - but I have to go with Jenk on this one. maybe it's actually the code that's the problem, not PHP. Even in some of the hugest webapps i've dealt with, the figures arent even close - both 50 classes and 200 instances are ridiculously high.
-
create a pop up menu using dreamwaver or fireworks
redbullmarky replied to alejandro52's topic in Miscellaneous
you might get a little bit of luck searching for 'accordion menu'. many of the ones you'll find via a google search for accordions will be the smooth, animated type but the principles are similar (and as you need javascript for both types and the scrolling one looks neater, you may end up preferring it ) -
ok, so we've seen them in the movies and it's not exactly a new concept, but still. this is just pretty cool: http://www.microsoft.com/surface/ http://news.bbc.co.uk/1/hi/business/6703249.stm Initially aimed at businesses, it's "expected to cost around $5000 - $10000 (£2,525-£5,050)" initially "with plans to create cheaper versions for the home within 3-5 years."
-
1, neither fact or fiction as it's a theory that hasn't really been proven either way. editto be more decisive, fact. consider any example and its knock-on effects, even if insignificant. 2, fiction, as i dont think it'll be that far away 3, fact. i've seen what aeroplanes do to stray pigeons. 4, fiction. 5, fiction. old myth, woulda found it by now had it been true 6, fact. 7, fact 8, hmm, as number 1 - a theory - but more geared towards fact, or something similar 9, fact 10, some fact. think back 20 years (if youre old enough) to how you saw it being now...
-
it looks pretty good. personally i'm not much a fan of the diagonal background pattern but not just in this case, just in general. I guess my worry with a layout with so much imagery is always how well it handles lots of content - ie, in terms of stretching part of the layout and leaving huge amounts of whitespace elsewhere. i'd also do one of two things with the text - either up the size a notch, or add some line height just to let it breath a bit more. It looks a bit too squashed together. Otherwise, it's a good job!
-
erick, as has already been pointed out - if you need urgent help or someone to write your scripts for you, then post in the freelance forum. This forum is for those that have made the effort and have become stuck with code they've already written. Also - spamming the topic with several posts with nothing but your name in it in order to bump is one way of getting on the wrong side of people that would otherwise have helped - me included. DO NOT DO IT.
-
reorganizing/copying parts of a hierarchical tree
redbullmarky replied to redbullmarky's topic in Application Design
blimey, there's some food for thought! gimme a bit to read it but looks interesting, anyhow. if the pro's of using the other tree method outweight the cons (ie, the fact that it's totally alien to me, amongst other reasons) then i might look at making the switch if it makes it tonnes easier. -
smarty.php.net will do, as will the link a few lines down (www.smarty.net) - both running very slow but they are correct. try again later edit i had more luck with the www.smarty.net site but it did take a few minutes before the page was found
-
google is your friend: http://www.google.co.uk/search?hl=en&q=smarty http://www.google.co.uk/search?hl=en&q=php+template+engine
-
reorganizing/copying parts of a hierarchical tree
redbullmarky replied to redbullmarky's topic in Application Design
if i'm getting you right, i've considered that method but found that maybe it'll play havoc with my ID's. using my first example: - Fruit [id = 1] --- Apple [id = 2, parent = 1] --- Orange [id = 3, parent = 1] --- Banana [id = 4, parent =1] - Cars [id = 5] --- Ford [id=6, parent=5] ------ something [id=10, parent=6] --- BMW [id=7, parent=5] --- Mercedes [id=8, parent=5] ------ blah [id=11, parent=8] ------ hmm [id=12, parent=8] --- Audi [id=9, parent=5] i'd get the maximum ID(in this case 12) and add 1, and if i wanted to duplicate "mercedes" (key = 8 ) and copy it to be a child of 'orange' (key = 3), then i'd probably: 1, find the minimum ID of the tree i wish to copy, to prevent clashes (it'd be straightforward ordinarily, but there are possible occasions where a subcat/item could have an ID lower than its parent if for example i decide to move items) 2, in my example, 8 is the minimum ID of the tree i want to copy and 13 is the next available ID, so i'd add 5 onto all the children/grandchildren of mercedes and write them to the DB 3, set the parent ID of my new parent (ID 13) to 3. now i'd have: - Fruit [id = 1] --- Apple [id = 2, parent = 1] --- Orange [id = 3, parent = 1] ------ Mercedes [id=13, parent=3] --------- blah [id=16, parent=13] --------- hmm [id=17, parent=13] --- Banana [id = 4, parent =1] - Cars [id = 5] --- Ford [id=6, parent=5] ------ something [id=10, parent=6] --- BMW [id=7, parent=5] --- Mercedes [id=8, parent=5] ------ blah [id=11, parent=8] ------ hmm [id=12, parent=8] --- Audi [id=9, parent=5] so it WOULD work, but even in this small example, i've left a gaping hole between record 13 and 16. I'm not sure what impact this would have on a huge database. now as i wrote that, i can see that it'd be easy in this case to rewrite the ID's and parent_id's, but looking further, this would become tricky when introducing grandchildren and greatgrandchildren, etc which is ultimately what's making this tricky any more thoughts? -
yep. though when i switched it to 1024x768, it does kinda overhand the screen on the right hand side a bit so some parts aren't "central". maybe it'd be worth taking 50+ or so pixels off the width altogether. 1024x768 is probably the most common, afterall.
-
reorganizing/copying parts of a hierarchical tree
redbullmarky replied to redbullmarky's topic in Application Design
yeah i'm not comfortable enough with that method as yet, but i'd assume that the principles of duplicating a section of the tree to another node would pose the same sort of issues so just trying to solve the problem with a way i'm already familiar with. selecting parent/children is not the problem as such - but re-assigning ID's is. -
reorganizing/copying parts of a hierarchical tree
redbullmarky replied to redbullmarky's topic in Application Design
* bump * anyone have any ideas? -
it's left aligned here on 1280x800. i do believe it's because, whilst you've set "min-width", you need to set the actual width for margin:0 auto to work correctly edit yep, using firebug to change min-width to just width:980px, the site centers itself. <div id="background_main" style="margin: 0px auto; position: relative; width: 980px; min-height: 650px;">
-
have you got a test installation of it actually running?
-
i wasn't much of a fan of the captcha as they're awkward enough at the best of times. however i read some of the comments (to figure out the exact point) and came across a mention of Google's Image Labeller. The smart gits have turned their dirty work of sorting out/tagging their images into a game of some sort. Clever! http://images.google.com/imagelabeler/
-
I might be missing something that makes this easier than it seems, but: If I have a DB table of categories, subcategories and items, like this: id parent_id type (category or item) name and maybe a structure like this: - Fruit [id = 1] --- Apple [id = 2, parent = 1] --- Orange [id = 3, parent = 1] --- Banana [id = 4, parent =1] - Cars [id = 5] --- Ford [id=6, parent=5] ------ something [id=10, parent=6] --- BMW [id=7, parent=5] --- Mercedes [id=8, parent=5] ------ blah [id=11, parent=8] ------ hmm [id=12, parent=8] --- Audi [id=9, parent=5] lets say that i want to duplicate an entire section (for example, Cars) including its children, giving the clone a totally new set of id's/parent_id's. i'm not really fussed about using other systems of storing tree data, so using this way - what are my options to do this? I was thinking of simply adding a number to all the keys (based on the number of the last record in the DB), but I can see how this can possibly cause issues with my ID's all over the shop. As a second question, lets say (for whatever reason) i wanted to tidy up my database - rewriting the keys from 1 to whatever with no gaps. can this be done easily? are there any special sorts of algorithms for doing something like that? Any thoughts? Cheers
-
i've added the link to your opening post - signatures can be turned off and many other people just ignore them anyway.
-
google results that show major pages
redbullmarky replied to michaellunsford's topic in Miscellaneous
did a google search for "google subpages" and it would seem that it's actually automatic, possibly using Google toolbar data to predict what pages in a site are gonna be the most visitied after first entering the site. i found this link first which seems to have more opinion: http://www.webmasterworld.com/forum30/32228.htm and this one from matt cutts himself that pretty much confirms the opinion as fact: http://www.mattcutts.com/blog/ui-fun-better-snippets/ -
google results that show major pages
redbullmarky replied to michaellunsford's topic in Miscellaneous
well - as stated, type 'HP' into google. underneath the top link for hewlett packard, you'll see 4 links, including "software and driver downloads", etc. the question, i believe, is how to get those on your own site. as for the cigarettes - it's times like that you wish you didn't clean out the ashtray or smoke the nub-ends right down to the filter. in future, buy a packet of rizla and empty the leftover tobacco (minus the ash) from the nub-ends into the rizla, and bob's your uncle. you might feel a bit bad and embarrassed to do it, but it'll do the trick until the shops open again. -
google results that show major pages
redbullmarky replied to michaellunsford's topic in Miscellaneous
haha. someone steal the jam out of your doughnut? -
google results that show major pages
redbullmarky replied to michaellunsford's topic in Miscellaneous
i moved it to Misc as probably more likely to get a broader response. I must note that i'm not 100% sure on my previous answer but i'm almost sure i've read about it in the past and sitemaps were the answer. -
google results that show major pages
redbullmarky replied to michaellunsford's topic in Miscellaneous
google sitemaps -
so would you say then that it's ok (best practice) for the view (be it directly from a template or via a helper) to have access to the model? or is that just the way you'd personally do it?