Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jokerxfx

Members
  • Joined

  • Last visited

Everything posted by jokerxfx

  1. Hi there, I'm having an issue with my code and I cannot for the life of me figure out what I'm doing wrong. The best way is probably to just show you and provide a list, so here is a link to the test site: http://uberdelic.com/abtest/index.php And here's your list: When I add an item to the cart everything works fine apart from the item number is 0 If i add another item, the new items number is also 0, next is 1, 2, 3 and so on. Now if i try and empty the cart, it does nothing....but click twice and the cart empties? And I'll paste my cart.php code below. Thankyou to anyone who actually looks through this, cos it's a mess and as it's not an easy one, or at least I haven't found it to be.... encouraging huh? <?php session_start(); include 'header.php'; ?> <div id="uber-body"> <h1>My cart</h1> <?php ///This section is for pulling the cart id and +1 if(isset($_POST['pid'])){ $pid = $_POST['pid']; $wasFound = false; $i = 0; if(!isset($_SESSION["cart_array"])||count($_SESSION['cart_array'])<1){ $_SESSION["cart_array"]=array(0 => array("id" => $pid, "quantity" => 1)); }else{ foreach($_SESSION["cart_array"] as $each_item){ $i++; while(list($key,$value)=each($each_item)){ if($key == "id"&&$value==$pid){ array_splice($_SESSION['cart_array'],$i-1,1, array(array("id" => $pid, "quantity" => $each_item['quantity']+1))); $wasFound=true; } } } if($wasFound == false){ array_push($_SESSION["cart_array"], array("id"=>$pid,"quantity" => 1)); } } } ?> <div id="cart-products"> <a href="#bottomview"></a> <?php //Render the cart $cartOutput=""; $cartTotal=""; $pp_checkout_btn=""; $product_id_array=""; if(!isset($_SESSION["cart_array"])||count($_SESSION['cart_array'])<1){ $cartOutput="<h3 align='center'>your cart is empty</h3>"; }else{ $pp_checkout_btn.='<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <input type="hidden" name="business" value="uberdelic@gmail.com">'; $i=0; foreach($_SESSION["cart_array"] as $each_item){ $id = $each_item['id']; $prod_name = $each_item['prod_name']; $prod_price = $each_item['prod_price']; $prod_short = $each_item['prod_short']; $prod_delivery = $each_item['prod_delivery']; $prod_sku = $each_item['prod_price']; $prod_img = $each_item['prod_img']; $result = $db_conx->query("SELECT * FROM wallhangings WHERE id='$id' "); while($rows = $result->fetch_array()) { $prod_id=$rows["id"]; $prod_name=$rows["prod_name"]; $prod_short=$rows["prod_short"]; $prod_price = $rows["prod_price"]; $prod_img = $rows["prod_img"]; $prod_delivery = $rows["prod_delivery"]; $prod_sku = $rows["prod_sku"]; $producttotal=$rows["prod_price"]+$rows["prod_delivery"]; $subtotal=$prod_price*$each_item['quantity']; $subsubtotal=$prod_delivery*$each_item['quantity']; $pricetotal=$subtotal+$subsubtotal; $x=$i+1; $pp_checkout_btn.='<input type="hidden" name="item_name_'.$x.'" value="'.$prod_name.'"> <input type="hidden" name="amount_'.$x.'" value="'.$producttotal.'"> <input type="hidden" name="on0" value="'.$prod_sku.'"> <input type="hidden" name="quantity_'.$x.'" value="'.$each_item['quantity'].'">'; $product_id_array.="$prod_id-".$each_item['quantity'].","; } $cartTotal = $pricetotal+$cartTotal; $cartOutput.="<div class='cart_prod'><strong>ITEM $i</strong>"; //$cartOutput.= "item id".$each_item['id']."<br />"; $cartOutput.= "<div class='cartimg'><img src='".$prod_img."'/></div><br />"; $cartOutput.= "product name:<h4 class='prod'><br />".$prod_name."</h4></p>"; $cartOutput.= "discription: ".$prod_short."<br />"; $cartOutput.= "price(per item:) £".$prod_price."<br />"; $cartOutput.= "quantity: ".$each_item['quantity']."<br />"; $cartOutput.= "delivery charge: £".$prod_delivery."<br />"; $cartOutput.= "product sku: ".$prod_sku."<br />"; $cartOutput.= "total price: £".$pricetotal."<br />"; $cartOutput.= '<form class="prod_del" action="cart.php#bottomview" method="post"> <input name="index_to_remove" type="hidden" value="'. $i .'"/> <input name="deletebtn'.$id.'" type="submit" value="delete"/> </form></div>'; //while(list($key,$value)=each($each_item)){ // $cartOutput.="$key:$value<br />"; $i++; echo $cartOutput; } $pp_checkout_btn.='<input type="hidden" name="custom" value=".$product_id_array."> <input type="hidden" name="notify_url" value="http://www.uberdelic.com/new/storescripts/my_ipn.php"> <input type="hidden" name="return" value="http://www.uberdelic.com/new/checkout_complete.php"> <input type="hidden" name="rm" value="2"> <input type="hidden" name="cbt" value="return to the store"> <input type="hidden" name="cancel_return" value="http://www.uberdelic.com/new/paypal_cancels.php"> <input type="hidden" name="lc" value="GB"> <input type="hidden" name="currency_code" value="GBP"> <input class="paypal_btn" type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!"> </form>'; } ?> <?php // if item removed if(isset($_POST['index_to_remove'])&&$_POST['index_to_remove']!=""){ $key_to_remove = $_POST['index_to_remove']; if(count($_SESSION["cart_array"])<=1){ unset($_SESSION["cart_array"]); }else{ unset($_SESSION["cart_array"]["$key_to_remove"]); sort($_SESSION['cart_array']); } } ?> <?php ///This section is for emptying the ubercart if(isset($_GET['cmd'])&&$_GET['cmd']=="emptycart"){ unset($_SESSION["cart_array"]); } ?> </div> <div id="paynow"> <p class="center"> <strong> Total: £<?php echo $cartTotal; ?> </strong> </p> <?php echo $pp_checkout_btn; ?> <p class="center"> <a href="cart.php?cmd=emptycart#bottomview"> Click here to empty your cart </a> </p> <div class="clear"></div> </div> </div> <?php include 'footer.php'?>
  2. Hi there, I've got a database set up and it connects just fine, but when trying to log into the admin area I was getting about 10 errors, now I've cut it down to the final two but I can't figure it out. So any help would be greatly appriciated!! Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/content/12/11792312/html/myshop/storeadmin/admin_login.php on line 17 Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /home/content/12/11792312/html/myshop/storeadmin/admin_login.php on line 19 and here is the admin login page: <?php session_start(); if(isset($_SESSION["manager"])){ header("location:index.php"); exit(); } ?> <?php if(isset($_POST["username"])&& isset($_POST["password"])){ $manager = preg_replace('#[^A_Za-z0-9]#i', ',' , $_POST["manager"]); $password = preg_replace('#[^A_Za-z0-9]#i', ',' , $_POST["password"]); include"../storescripts/connect_to_mysql.php"; $sql = mysqli_query("SELECT * FROM admin WHERE username='$manager' AND password='$password' LIMIT 1"); $existCount = mysqli_num_rows($sql); if($existCount == 1) { while($row = mysqli_fetch_array($sql)){ $id = $row["id"]; } $_SESSION["id"] = $id; $_SESSION["manager"] = $manager; $_SESSION["password"] = $password; header("location:../index.php"); exit(); } else { echo'UberPass Failed - <a href="index.php">Click here</a>'; exit(); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin Homepage</title> <link href="../style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="mainwrapper"> <?php include_once("../template_header.php");?> <div id="maincon"> <form id="form1" name="form1" method="post" action="http://www.uberdelic.com/myshop/storeadmin/admin_login.php"> <p>Username: <input name="username" type="text" id="username" size="40"/> </p> <p>Password: <input name="password" type="password" id="password" size="40"/> </p> <p> <input type="submit" name="button" id="button" value="Log In"/> </p> </form> </div> <?php include_once("../template_footer.php");?> </div> </body> </html>
  3. Hi there, I'm updating a Magento site with a new SSL certificate as it is now invalid. I've purchased a new one from godaddy ssl store and have downloaded the certificate files (.CRT files) but now I'm kind of lost... I presume that I need to rewrite the current SSL file through FTP, which is fine - but I cant find it in the directory. I'll also need to restart the apache server but since speaking to my server host, rebooting the whole server should achieve this - so that's all okay. But I need to know: Are my current instructions correct / unlikely to cause any problems? Where is the SSL currently located in the Magento ftp directory? And if there is anything else I should be aware of when updating an SSL? I have been reading up about SSL in regards to Magento for a long time now(a full day) but I seem to have a few puzzle pieces missing. Thanks for reading and any answers are greatly appreciated!
  4. Thanks Guru! I had a look through and I've got SSH down, but the update manual reffers to updating it to 1.7 and not the new 1.8. Do you think the process will work just the same if i replace the version number in all the code required for execution? Cheers!
  5. Hey! I need to update my Magento community edition from 1.6.2.0 to the new 1.8.0.0 version. I’m just guessing but I presume that in order to do this I need to download the new files and then replace the old files on the server using an FTP client. So other than needing advice on how to execute the actual update, I also need to know of any precautions that I need to make so that my database, files, personally created code and general design all stay preserved. Either that or just point me in the genreal direction! I’ll be very appreciative for any answers! Thank you for reading zee post (http://www.magentocommerce.com/download?icid=BLOG_magentoce18release_downloadbutton)
  6. Thats awesome! Couldn't have asked for a better answer! Thankyou!!
  7. Hi, I need to edit the header image of the website. Rather than a logo on the left I'd like to give it a "background-image" with the logo included. I found the header file after getting into WHM and setting the FTP details so I could connect, its a PHTML file, I'm aware of HTML and CSS, but the file seems to consist of a few line's of random echo'd Javascript content. Could anyone advise me? My knowledge doesn't go much further than HTML and CSS. Many thanks
  8. Hi there, Ive got to grips with Joomla's basics recently, but I'm lost on how to reduce the space between the car image in the header and the content box below. I thought I would just have to cut the image down, but its split into 3 parts The logo (top left) The road sign (right) and the car image (Which i presume includes the gradient below it, as its not on the road sign or the logo. Both the Road sign and logo are present within the media manager gallery, but I just cant find the car image. So my question is, does anyone know where it could be? Is it part of the template and will my hypothesis even make a difference? Oh, and here is the link: http://rg18.webd.pl/camcab/ Many thanks
  9. Hi there, Just a quick question, its probably fairly simple, Ive continued working on a website using Joomla for a client. Never used it before, found it farley easy and good to be honest. - But the website currently has a URL: http://rg18.webd.pl/camcab/ - Before I give it back to the client as a finished product, how would I change the web address to match their old site which is being updated with this one? Many thanks Gordon
  10. Forgot to post, thanks for the reply guys, I did the honest thing... And figured Joomla out, whoah, extreamley simple, you were all 110% correct.
  11. This is my invoice for a 18 page HTML+CSS site, I just want some advice on whether or not the prices were satisfactory? Price(Per unit) Website page (£11) x 18 CSS Dropdown Navigation (£30) x 01 CSS Image Gallery (£30) x 02 (Light box galleries) Photo enhancement and resize (£05) x 13 (For galleries) Page Content fill (£05) x 18 ("Filling the page content", realigning ect) Filler Images (£05) x 13 ("Images to fill space to compensate for lack of current content") Basic SEO Optimization (£10) x 18 TOTAL:£688 (I'm also hiring a graphic designer to help get it perfect, I was just going to pay him out of the total price rather than try charge the client since it was my idea. Is that the best idea?) I'm still new at charging people, and i struggle lol Thanks for reading and thanks for any replies!
  12. Hey all, Thanks to anyone who reads, and double thanks to anyone that replies!! So i got this job, just a little one, to add an extra page to a site, and move another around, the guy called me up, said its a few days work, I said thats cool, gave him my email and then I waited for a message. Aftew a few weeks of back and forth I got the site files from his 'underdog' who said a student had made it (Im also a student) - But the site files weren't what I was expecting as im a front end coder, I don't know PHP ect.. Turned out the directory was ripped from one of their PCs program files, I put my hands up and said Ive never used it but ill give it a good go, he found that fine and left me to it. About a week later, Ive been racking my brains trying to get their template to load into it, to find out that its probably better to do a backup of their actual live server and use that, because the directory I had included no content.... which didn't make much sense to me since I could see some of the content, but an expert told me otherwise. - So instead of trying to get him to backup something which he doesn't know how to do I said that I could allways completely rebuild his site in HTML CSS - It would be one of a kind and I could do some SEO on it afterwards and also do any updates for him with ease, or he could go get a Joomla specialist. He decided that I could re-build it. So im talking to him now about the inner workings of a PHP Accounts forum that's on there and I realized I haven't even asked him about payment, I was going to say: "I didn't get a chance to speak to ***** about payment when he gave me this job, should I just do the work and give you an invoice? or would you prefer a definite price?" I just think I sound very unprofessional and I just want to do this properly, so sorry if it doesn't seem like a valid question but, how should I go about trying to price this now? - It seems kind of unspoken of at this point >_< Cheers
  13. Thanks Inspired, your a legend I just have a few more questions, the content which I need which is on their server, how will I identify it? For example, what kind of file extensions are they? and how do I turn them into an installable template, just because all the examples I have seen so far have been done with a zipped file? Thanks again for your answer
  14. Hey all, just having some more trouble with Joomla, Im experienced in web design but this is one of my first time's using a CMS system and I'm not very impressed so far, but I'm obviously doing something wrong So any answers are very appreciated! So I got this job, took it on, did not know it was made on Joomla, eventually get it installed after installing Xampp and that's where I got stuck. They sent me their Joomla directory with their templates, I assume the: "beez_5" + "Atomic" + "beez_20" are all default templates? As when i reinstalled Joomla they were once again in the joomla directory. So here is a screen of their joomla directory (the one they sent me) and their templates folder so i can explain the rest = (Image attachment 1 + 2) Also, the contents of the "beez_20" template folder (The one i was sent) = (Image attachment 3) I need to get that template installed on Joomla so that I can edit it and send it back to be uploaded to their server right? So when i try to install the template by zipping their template folder (beez_20) (Which does include all their content ect but has the same name as a default folder?) and try to install by sourcing the zipped file (After moving it into the Joomla directory) it asks if I am trying to install an already installed template. (I only noticed this version after a few tries) - so in the template manager section, the default templates are there, which DOES include the beez_20 template, but when i view the site its still all just like a default site with all the same information about Joomla. I'm sorry if thats really confusing, but I myself am SUPER confused! Ive tried reinstalling joomla as i mentioned before, I've watched a million youtube videos and searched far and wide, does anyone have an answer? Cheers
  15. That's awesome! Thanks for all your helps guys! You've practically spoon fed me ahah and you've given this forum a good name Thanks again!
  16. Ahh, right! You watered it down for me lol thanks a bunch, really appreciate it! ...But i do have just a couple more questions, then youve cleared everything up for me, and i should finally be able to manage How do i put their template into my Joomla install? And what do you mean by activate it?
  17. Okay, this is starting to make more sense. So if i import the directory that they sent me (Shown in my first post) and worked on it through the XAMPP localhost/Joomla extension, I could then send the directory back after editing it on my local host? - and since I shouldn't edit it when live, does this mean that when working through joomla you have to work locally all the time? Cheers
  18. Hey, Thanks for the reply's guys! I have just downloaded and XAMPP, I can then install joomla through it and then put the host name and joomla account details in and then presumably be able to access their directory from there? Otherwise im going to have a look at the template PHP files, see if i could get away with just editing them and sending the directory back to them, but how would i preview the website If i was just working on them through notepad? - Also, I was recommended by another firm, the guy just sort of threw the job at me but I need the cash so im trying my best to get it done Thanks again =]
  19. Hey all, First time posting on here I've got a problem as im not experienced in the CMS area at all, I've created a good few websites using only HTML and CSS and i have messed around with a few backend languages but I don't know PHP well enough to hand code myself for example. But anyway, I've to edit a current site, so i asked for the site files, which they gave me this directory (Image attachment 1) So after being confused as there were no HTML files at all, I searched through the live host source code to find that it had been coded by a CMS program called Joomla. (http://www.joomla.org) I then asked them for the Username and password to the Joomla account as I foolishly presumed that it would have been a Dreamweaver type program, but you need to install it on the host server and not your own hard drive. - so I thought this must mean that its already installed on their live host server. My question is, does anyone know if Joomla will actually have HTML files in the live host directory if I get the un and pw? or will it be the same directory that they sent me when I requested it? - And would I just need to use an FTP program such as filezilla to access joomla? Any replies would be appriciated, sorry for the long read, Thanks!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.