Jump to content

birbal

Members
  • Posts

    2,543
  • Joined

  • Last visited

Everything posted by birbal

  1. the setting is probably in your admin panel whatever forum software you are using
  2. you can use your host or you can install a server and php on your pc. you can use WAMP,MAMP,LAMP which is package of php,mysql,apache and others for windows,mac,linux respectively. if you want to send the mail from your local server you need a email server in your localhost which you may need to configure to get it working. I use XAMPP which comes with email server so i am not sure wamp,lamp.,mamp comes with email server or not. .your host is probably installed and configured email server to send emails already.
  3. can we see the update code? and what is showing when you run it?
  4. var klappText = document.getElementById('k' + id);var klappBild = document.getElementById('pic' + id);console.log(klappText); //debugconsole.log(klappBild); //debug//It will get all the img node which comes under klapBild nodevar images=klappBild.getElementsByTagName("img");//Loop the images to see what it is holdingfor(i in images){//Get src attributeconsole.log(images[i].src);} if you look into the consoles you will see the node which those variable are pointing. you need to get a tool like firebug open it and load the page.
  5. if it is executing the else part you can use mysqli_error() to see why the query is failing and also if query get succeded but there is no result to fetch then you will see nothing. you can use mysql_num_rows() to determine the number of resulsts.
  6. mailto will always open your local email client .you have to submit your form to any server side pages and you have process it and send the email using any server side language. eg php has mail() function for that.
  7. return false and event.preventDefault() are not actually same. when you use return false; it also stops the event from bubbling up. there is another function event.stopPropogation() which is used specificaly to stop event bubbling. in other word return false is same as using stopPropogation() and preventDefault() together. in depth information about js event could be found herehttps://developer.mo...rg/en/DOM/event
  8. it is not jquery function it is javascript you can find it here https://developer.mozilla.org/en/DOM/event.preventDefault it is part of DOM level 3 event handling
  9. can you elaborate more? you want to execute a functiion only with ajax?
  10. can you elaborate more? you want to execute a functiion only with ajax?
  11. you can bound a submission function which will submit the form on onsubmit event with ajax and can make that function return false or also you can use event.preventDefault(). so that when js enabled it will send the submission but will prvent default action. when js disabled the function wont execute and it will sumbit normaly.
  12. you can bound a submission function which will submit the form on onsubmit event with ajax and can make that function return false or also you can use event.preventDefault(). so that when js enabled it will send the submission but will prvent default action. when js disabled the function wont execute and it will sumbit normaly.
  13. you can use negetive value in y positions so that shadow will be upward in other word your bottom wiil not be any shaddow
  14. you can use negetive value in y positions so that shadow will be upward in other word your bottom wiil not be any shaddow
  15. you are mixing the js function with php. php executes first and served to the browser after that js get executed. myadmin() is not a defined php function so that error is showing
  16. exactly. I was not sure OP needs per user page count or total page count so i tried to mention the possible ways. i should have mention that. thanks for pointing out.
  17. if you want it do it with clients side you can use cookie to store the hits. but cookie goes back and forth with http request. there is another better way to use localstorage. but it is supported only in modern browsers. another way is you can do that in server side. you can append a file which executeon each request and will write and count the hits on somewhere. a flat file would be enough for it. it will works in all case. niche's way will work too untill browser has js enabled. when you use store any data client side its become unsecure. so if it is critical to your application server side solution will be the best.
  18. birbal

    url shortening

    you need to use url rewriting. you can google it.
  19. but you have quote it around. you have to check against string "menu1"if($_GET['x'] == "menu1"){your way will work too. but switch case comes when you have multiple if-else check on variable.
  20. you can do it in text editor alone without using dreamwevaer. photoshop is used for different purpose. it lets you design and modify the site structure which will help you as referer when you code it in text editor. it is also used to slice images from that photshop template into pages. photoshop is graphic software so it will let you do graphicl effects and manupulation.
  21. i am not sure what are you trying to do? if() is not doing anything and also probably out of the context of php. it seems like it is outside php block. to execute control structure like if-else it needs to be in php block.
  22. first define friendship. start with making the table in database for friendship as minimal as three columncolumns int reciverid, int senderid,bool accept reciverid ans senderid is foreign key which will be conncted with userid in user table(which you have already probably) make reciverid and senderid composite uniqe constarint.
  23. yes you need to use double colons when you will access static mehod or properties. if you call genearl method or property using :: it will throw strict level error. it is also used when you will use class constant or when you use inheritance in overrde methodshttp://au2.php.net/m...nekudotayim.php
  24. birbal

    layout problem

    thanks for your help it has been solved. in my situation i cant use font-size i found another work around <div class='wrapper wrapper_100'> <div class='wrapper wrapper_33 expand'><!-- --></div> <div class='wrapper wrapper_33 expand'><!-- --></div> <div class='wrapper wrapper_33 expand'><!-- --></div> </div>
×
×
  • Create New...