a way to list elements by name, html, php - php

I'm creating a small car dealership website, and on my inventory page I need to be able to list all the cars I have , and a way to narrow them down.
Whats the best what to achieve this? The simpler way the better even if i need to do abit more work.
I thought each car entry has to be an element with specific name and than I would use the navigation to list the element by selected name. But im not sure where to start with this. Cant seem to find any good tutorial. However been what it is i feel like there should be tons of solution for my problem..
Basically each element needs to have title , description and a picture. Please point me in the right direction, a database perhaps? I could do abit of mysql but nothing pass the beginner levels

well, i will suggest you to use any shopping cart or any e-commerce solution which will be available free of cost and you can make tweaks when you get the knowledge about these stuff.
i will suggest you to use "Wordpress + WP-E-Commerce" you just need to install the wordpress, you can create your own theme or can find a good theme while wp-ecommerce is also having free version which will solve your all problems you stated above.
feel free to ask me if you have any other question

Related

Wordpress: How to integrate Find Nearest Shop function

Firstly thank you for taking the time to look at my question.
I have a project where I have integrate a find nearest location function on a Wordpress website. The functionality should work as:
A user inserts their postcode into the search bar, and the results shown are shops which are nearest to their postcode.
Has anyone done anything like this before and if so do you have any recommendations on plugins or tutorials which could possibly help me.
Thanks
The functionality you are looking is basically radius search for given zip code. I will suggest you to go through with this nice article to get start and complete your task.
https://www.dougv.com/2009/03/27/getting-all-zip-codes-in-a-given-radius-from-a-known-point-zip-code-via-php-and-mysql/
After much research I found a suitable plugin for the job:
https://wordpress.org/plugins/gwebpro-store-locator/
There are many plugins out there with the same functionality, but I chose this one.
I edited the plugin heavily to get it to work how I want it to work.

Joomla 3 custom Template

I'd like to achieve the following content structure but no template I know fits it.
Can you advice me from what Template to start modifying? I thought of "Category Blog".
I'm currently planning to integrate the years by adding categories that contain categories with caption/description containig articles I want to be shown completely in this view.
In addition I'd feel grateful to you providing me sources to learn more about how to get the data I need (categories with description, articles with headline and content).
I until now just did CSS adjustments for Joomla based websites and therefore don't know that much about how to actually reviece data from the DB.
PHP and MySQL aren't a problem though.
A bit fuzzy maybe because I don't exactly know where to start but I'm hoping the best.
Thanks a lot :)

Generating an image from pre-existing ones?

This is kinda confusing, so forgive me if you don't understand what I am asking. I'm trying to develop my skills and I wanted to move onto images as a next step. I did a bit of searching and I thought a good way to try this would maybe be to generate military ribbon racks depending on the options the user selects.
(See something like this as an example: http://www.ribbon-rack-builder.com/ribbons/build/4)
Now, from looking at the source code I can see that the creator of that website creates a form with all of the different ribbons and allows the user to select the ones they want with checkboxes. This form is then posted to some PHP on the page somewhere.
Being new to the image concept I have no idea what kind of PHP this would be. Could anyone give me an idea of how this website could do this and where I should start should I want to create something similar?
Thanks very much!
First, you'll need to get which checkboxes were checked:
Set the name in the form to check_list[] and you will be able to
access all the checkboxes as an array($_POST['check_list'][])
Second, you'll most likely want to use the GD and Image Functions built into PHP.
There is a lot there, and it can be confusing, so I suggest you do some reading through questions on SO on the subject: https://stackoverflow.com/search?q=merge+image+[php]

Referencing node/nid in hook_menu_local_tasks in Drupal 6

I'm working on theming an insurance system, where each product (for example MyInsuranceCompany) is saved as a node, with all tasks available for that product as menu_local_tasks. I want to be able to add a menu item in that will display the node title. So for example the list will read "MyInsuranceCompany, View, Edit, Documentation, Etc".
It sounds very simple but I can't work out how to do it. I've tried using arg() but that appears to return something completely unrelated about json; I tried setting a global variable in preprocess_node but I imagine the bootstrapping process isn't the right way round to do that. Not sure if it's an obvious solution that I'm missing but hopefully one of you lovely ladies & gents can help out! (If that's not buttering up I don't know what is!)
Hope I've explained myself well-
Thanks!
Matt

How can I create a list catalouge page for my website, without shopping cart/detailed product page functions

I want to make Newegg's like catalouge functionality for my little website. I want mine to be sligthly different(greatly simplified) though. I haven't done anything so advanced(atleast in my books) before, and wanted to know if it's possible to do. I want to use PHP and JS. The new records will be added manually through using either phpMyAdmin or pehaps I will install and use either SQLyog, HeidiSQL or Navicat for such purposes. Could someone point me to the right resources to get this kind of job done as fast as possible and properly?
What I had in mind was:
For example the cell which contains the thumbimage, all the mini information about the product and the big price tag will not have a separate, more detailed page. Everything user will need to know will be inside that product cell.
Right under the thumbnail image there will be numbers(1 2 3 4 5 6), and when you hover over them, under the cursor, a big version of one of the all available images will appear.
Lastly, it should have the page generation(don't know what you call it). For example there's more than 20 product entries on the page, then the server should create a new page(First 1 >2< Last) to hold the older records.
Oh and there won't be any shopping cart functionality. You can't really "order" these kinds of products, you just find something you like and call me up about it.
TIA
I'm sure there are dozens of books on this subject. I'm attempting a short reply, however:
This sounds like something that could profit from:
a MCV-framework like CakePHP (or Django, Ruby on Rails etc), which could handle database-logic (including pagination, which is the word you're looking for), and
a JavaScript library like JQuery to handle Ajax, JavaScript and other UI-related stuff.
++?
For the page numbers, I recently had to do this. The technique is called pagination, and this thread helped me out immensely: PHP Formula For a Series of Numbers (Mathy Problem)
The thumbnail effect you want to include would need to be done in javascript. I'd recommend learning jQuery, as it is pretty easy to use for this sort of thing.
This is a hard question to answer because you haven't given much indication as to your skill level, or progress towards accomplishing your goal. Assuming we're starting at 0, there is probably more to discuss than this thread can contain. :\
UPDATE
To learn PHP's database functions, I would lean on W3School's PHP/MySQL tutorial for a quick summary, referring to the php manual's mysql documentation for details and code examples when W3schools isn't enough. This should at least get you the markup you will need to work with.
For the thumbnails, I would reiterate my recommendation for jQuery, specifically attaching a .hover() event to the image numbers (this is equivalent to the onmouseover and onmouseout events in JS) that uses the .fadeIn() and .fadeOut() animations to show and hide your full size images. Hope that helps.

Categories