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.

Danny87

Members
  • Joined

  • Last visited

Everything posted by Danny87

  1. jQuery MUST be loaded before any other jquery plugins, since slider uses jquery, slide.js must be below jquery . as for your error, everything works good if you do this, open header.js and add this to the top : var $ = jQuery.noConflict(); another method is to open header.js and replace $ with jQuery . both methods works, but I would go with the second one. also don't try using the code Hem mentioned, he has missed something. @hem, the code you have given is inside this file , hence there is no need to add it !
  2. the link you have given yourself seems good,just test it,it won't hurt to try. don't pay attention to ratings,since people rate it down if it doesn't satisfy their needs (I hate these kind of people).
  3. it's easy you have to give float to one of the div's or both of them. an easy example would be : <div class="container" style=""> <div style="float:right;display:inline-block;background:#cee">Right</div> <div style="float:left;background:#dee">Left</div> </div> for the second div I gave it a float left, you can give it right float if you want them to be close,and them give some padding.
  4. if you use post types,you won't need to tell the theme owner what url is,since wordpress will do it automatically every where . are you using a certain php code for creating post type ? if you are what's you code,let me have a look at it. and if you are using a category and you want to show different template for it,open category.php or archive.php and add this to the top : <? if (in_category(5)){ include"cat_template.php"; exit(); } ?> where cat_template.php is template file for your category with the id of "5" ! of course if you name the file : category-5.php wordpress will load this file automatically when user is in the associated category ,but it wouldn't be much dynamic, I would go with the above code since you can specify cat id,you can even add a admin panel and ask admin to choose which category template.
  5. here is the car image location ,it was in css : http://rg18.webd.pl/camcab/templates/beez_20/css/../images/personal/road.png
  6. actually there are a couple of ways to do that ! have you seen sortable tables ? it's a table with javascript that can sort any column or even filter, if you can put the data into the table ,the table would do the rest of the job. you can use this keyword to do a google search : sortable table javascript OR you can checkout this one ,it's pretty easy . this one is cool too ,this one has filters . another way would be to use a custom post type,but it would be a lot of theme editing to implement sorting for wp query. I would go with first option,it's more convenient and easier .
  7. what is your php code ? is it like this : mail($to, $subject, $message, $headers, "-f me@site.com"); I believe only some webmail services show it like that(I know gmail does). @jock even smtp doesn't stop gmail from showing that,you need DKIM signing to hide that . you can use PHPMailer it has built-in support for that, Or you can also use dkim class php which is a lot like phpmailer https://sourceforge....dkim-class-php/ example : include_once('dkim.class.php'); $dkim = new DKIM(); $dkim_header = $dkim -> get_DKIM_header($to, $subject, $message, $headers); mail($to, $subject, $message, $dkim_header.$headers);
  8. use wordpress, it's dynamic and it's pretty easy, even novices can use it .also there are a lot of developers for it. I wouldn't use joomla since it has a very complicated interface as well as complicated code , I've created themes for both of them and wp is much much easier than joomla, also I've made plugins and components for both of them and I warn everybody to stay away from joomla,wordpress gives you power to control every aspect of their Core with out interfering with feature core updates,which joomla doesn't support this and if you mess with the core you'll be toast when a new update is available for joomla.
  9. any error? maybe it's being timed out ? set_time_limit(0);
  10. Danny87 replied to adamsmith's topic in Server Side
    hmm, OK, this depends on what your api is gonna do, if it's simple request like , when they request a credit check on your site,you can just do this : let's say this is your api url : now other apps would just have to call this : now with php you first check username & pass to be valid and if it was,then you goto next parameter here is a sample code : <?php if(isset($_GET['user'])){ $username=$_GET['user']; $password=$_GET['pass']; $action=$_GET['request']; //this line is where you check user & pass if($username & $password) { if($action=="credit") echo"5000"; // echos credit . } } hope it helps, there is no need to over complicate things.
  11. Danny87 replied to adamsmith's topic in Server Side
    they use POST dude I'll give you an example ,put this all in a index.php file and run it in browser : <?php if(isset($_POST['submit'])){ $user=$_POST['username']; $pass=$_POST['password']; echo "Your username is :<b> $user </b>and your password is<b> $pass </b>"; } ?> <form method="POST" action="index.php" > Username : <input type="Text" name="username" /><br> Password : <input type="password" name="password" /><br> <input type="submit" name="submit" value="Submit" /> </form> Hope it helps
  12. Php is the easy one , the hard part is mixing it with html/css/js you want to really learn it ? try making a simple ecommerce script , then you'll know self learning can not be compared to any academy.
  13. Danny87 replied to adamsmith's topic in Server Side
    just to be clear,are you sending this data to a remote website ? or to your own website on the same domain ? if it's on your own site,you shouldn't do this,there is much simpler way . but if you are sending it to a remote site,yes this is the easy way.
  14. yes it can be done with php . you need knowledge of PHP , HTML , CSS also you are gonna need a lot of algorithms which you should be familiar with,if it's your first time programming it's gonna be really really hard. as for where to start, you should start by learning mysql/php/html , you should be able to insert and get data from mysql database.
  15. Danny87 replied to adamsmith's topic in Server Side
    you can only send GET data via file_get_contents , if you want to send data via POST method you can use curl or socks . as for the receiving the data as json, the script that you are sending the data to should return json ,there is not much you can do about what you receive (of curse you can convert it to json yourself), any ways. I'll give you an example Code to get you started : <?php $posturl = "http://yourwebsite.com/form.php"; // Post Data : $postdata = http_build_query(array ( "firstname" => "Danny", "lastname" => "Johnny", "email" => "somemail@somesite.com" )); //fake useragent : $useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5"; $ch = curl_init ($posturl); curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt ($ch, CURLOPT_POST, true); curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); $returndata = curl_exec ($ch); echo $returndata; ?>
  16. Danny87 replied to OwenONeill's topic in Server Side
    I couldn't really understand what you want ,but can't you just use iframe to load xml file ?!
  17. when you are logging the user in , store the username in it like : $_SESSION['user_name']=$username; when you say I'm assuming you have an admin area too,but it shows your username instead of users . if this is the case ,try to save the users username in different session,this will solve your problem.

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.