- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 22
- Posts with Upvotes
- 15
- Upvoting Members
- 15
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- bikes
- PC Specs
- WordPress, jQuery, CSS, ASP.NET
64 Posted Topics
Re: [wordpress](http://wordpress.org) is the best bet for blogging website. if u want a .net solution you can try [blogengine](http://www.dotnetblogengine.net/) | |
Re: 1) In you users table store the user type 2) while checking for loging creadentials against database, if username and password is correct, check the usertype. 3) if admin redirect to admin page, if user, redirect to user page 4) and do store the usertype in session for checking on … | |
Re: i doubt if there's any full proof way of handling the browser close event.. Ideally what should happen is : 1) javascript captures the browser's close event 2) and makes an ajax call to the server for further processing But a browsers behaviour would be to stop doing anything(stop sending … | |
Hi guys, first of all i am new to php, so please bear with me. I have this requirement wherein i need to automatically create email accounts with my hosting provider through my website's php code. I have a linux hosting account with cpanel interface (its bluehost.com btw, if that … | |
Re: keep footer outside the 'main' div. a strucute like below should work fine: <div id='main'> <div id='left'>....</div> <ul id='sidebar'>...</div> <!-- to clear the float--> <div style="clear:both;"></div> </div> <div id='footer'>....</div> | |
Re: leave the original sidebar as it is, you can register a new sidebar, configure the new sidebar to have <h4> ... before_title' => '<h4>', 'after_title' => '</h4>',.. etc.. and then add the required widget in new sidebar.. you can then include both the sidebars if you want makes sense? | |
Re: Since you are fine with some javascript solution, you should check google graphs. see [this](http://webdeveloperswall.com/javascript/using-google-graphs-on-your-website) page. | |
Re: else { $_SESSION['user_id'] = $login; header('Location: index.php'); exit(); } so you are setting user_id in session. But where are you setting user_level in session? | |
Re: excuse me for going off the topic... >If you don't have access to FTP at all then you would not be able to install a plugin The statement isn't entirely wrong. I've experienced it more than once on separate wordpress installs on different servers. I dont know the exact reasons … | |
Re: >$Dep = "select departmentName from department where userid='$Userid' "; Most likely the column userid would be an int or bigint. In that case you shouldn't enclose its value in quotes. So it should rather be .... where userid=$Userid I can see the same possible error in second sql command as … | |
Re: I can see a workaround ;) so you just want the footer to come from wordpress (installed on a subdomain/or separate domain). Here's what can be done 1) Add a page template into your wordpress theme which just includes footer, no header, no content no nothing :) something like <?php … | |
Re: What is the problem? One problem i can see is that u've not cleared the float, so you wont be seeing the blue background color of the container div. | |
Re: How'd i do it? lets see.. 1 - 5 is $1 (or rather 1unit price), 6 - 10 is $2... so i have a 'range' of 5 I'll need 2 variables $range = 5; $unit_price = 1; /*$1 or may be $10*/ then i'll accept the product count from user … | |
i have this strange report in my profile about the upvotes/downvotes i received.. check the image  . Check the down votes part. The data says that there's one member who has down voted 5 of my separate posts , each once. Second, when i click on the link … | |
Re: > creates a javascript variable out of it I am not sure how you can 'create' a variable dynamically. I can think of having a predefined array, when user selects any product its quantity get added add the next index of array. Does it work for your purpose? | |
sorry couldn't frame a better title. So here's the problem i have a function inside functions.php function show_news(){ $id_counter = 1; $json_news = array( "id" => 0, "title" => "" ); $json_o = json_decode(file_get_contents(JSON_DATA_FOLDER.'news.json')); foreach ($json_o as $id => $news_category) { echo '<h2>'.$id.'<h2>'; foreach ($news_category as $news) { if(IsNullOrEmptyString($news->id)){$json_news['id'] = … ![]() | |
Re: One way would be iterating through all controls on the form, checking if its a textbox and then checking if its blank. Something like foreach (Control cl in this.Controls) { if (cl is TextBox) { if (cl.Text.Trim() == String.Empty) { MessageBox.Show("Please fill all textboxes"); break; } } } Makes sense … | |
Re: Have you already checked that 1) the forms action attribute's path is correct to the main page ? 2) and the form is actually submitting and there isn't any javascript intercepting the forms submit event ? | |
Re: string output=""; for (int j = 0; j<8; j++) { //how to convert array into string with help of loop. output += ar[j]; } Console.WriteLine(output); you can convert the character array into string like that... On a second note, why are u taking a character array?? you can directly use … | |
Re: i dont know if its a simple way (well its not free so not simple :) ) but you can try [ioncube](http://www.ioncube.com/) | |
Hi all, i have the data coming from a json file. I need to print (echo) this into html. here's a part of json file "title": null, "about_us": "Asteria Grill welcomes you! I have tried many times to convince myself not to pursue another restaurant. However, it's my favorite hobby … | |
Hi all, m a .net programmer, fairly new to php can anyone explain me (m not asking to explain in detail) this php code. its in the index.php of an application. I am not gonna irritate you by posting the whole code. so here's the outline: <?php if(!extension_loaded('ionCube Loader')){ $__oc=strtolower(substr(php_uname(),0,3)); … | |
Re: $q = "SELECT * FROM profile WHERE email=`$u` AND passwd=`$p`"; replace it with $q = "SELECT * FROM profile WHERE email='$u' AND passwd='$p'"; | |
Re: how about this: (i haven't tested it) 1) you return false on click of <a> 2) you bind a function to the <span> which is inside <a>, the fuction picks the link from its parent's href attribute and then loads that url.. something like: $("a.someclass span").click(function(){ var link_to_go = $(this).parent().attr('href'); … | |
Re: lemme see if i understood you correctly... you want to check if a visitor has already viewed some page in past. If so then use cookies. update the value of a cookie everytime user visits any page. So next time user visits any page, you check the cookie values to … | |
Re: check [this thread](http://www.daniweb.com/web-development/aspnet/threads/426631/how-to-connect-a-application-to-mysqlwhich-has-been-connected-to-sql-server#post1825084) | |
Re: > var sub1 = document.getElementById("input1") ; sub1 doesn't contain the value of 'input1', its a DOM object so when you do > var GPA = (sub1+sub2+sub3+sub4)/4; GPA doesn't contain the 'average value' of the four inputs, you are adding objects! which obviously will give you null or undefined (unless of … | |
Re: try 'innerHTML' instead of 'innertext'.. . . and BTW you should've rather posted this in javascript forum, isn't it? | |
Re: I'd love to do something of that sort, but as said by zachattack05, time is an issue for me as m on a full time job. But trust me i'd do anything to be a part of any open source development project :) | |
Re: there's already a web browser control provided in .net.. If all goes well i can suggest you a solution for your task.. 1) create a form which has a webbrowser control 2) load the required url in webbrowser control 3) write a javascript which extracts values from all the dropdowns … | |
Re: i doubt you can do it straightaway.. coz javascript wont be executed server side.. so while your php code is getting interpreted at server level you can't increment a javscript variable.. | |
Re: if i understood correctly..... you should try `float`, floating all the inner divs inside container | |
Re: if your Main_Form is closed:- you create a new object of Main_Form, pass the variable as a constructor paramter of the Main_Form object, close the Add_New_Student form and show the newly created Main_Form if both your forms are open simultaneously:- If you have a controller which holds references to objects … | |
Re: yes #div_1 #div_2 .div_3 .div_4_button a and .more_text .more_paragraph .div_4_button a are different selectors and hence will apply different css rules to those two links even though their immediate parent <div> has same class.. **But are you telling this or asking this !!!!??** | |
Re: why dont you just add an if statement $del_id = $checkbox[$i]; if($del_id !=0) { /*your db operation*/ } | |
Re: i had a similar requirement some time ago.. here's how i did it [http://webdeveloperswall.com/php/cpanel-xmlapi-create-email-accounts-through-your-code](http://webdeveloperswall.com/php/cpanel-xmlapi-create-email-accounts-through-your-code) | |
Re: as hericles said, you gonna have to do the necessary changes..If u looking for helper classes to connect to mysql may be this will help you [http://webdeveloperswall.com/dot-net/connecting-to-a-mysql-database-from-asp-net-application](http://webdeveloperswall.com/dot-net/connecting-to-a-mysql-database-from-asp-net-application) | |
Hi all, ok so i want to make a programme to speed up the internet, may be someting like [idm](http://www.internetdownloadmanager.com/). I googled but all i could find was download managers, nothing related to boost up the downloads or something.. I am looking for a c# solution. I am not expecting … | |
Re: the javascript code is doing the following: 1. storing 5 images as variables 2. replaces an image with the said images every 1.5 seconds one by one | |
Re: your *if* block inside try returns a string.. But there's no *else* block, if code execution doesn't enter inside *if* block then your method exits without returning any value !!. And thus compiler is giving the error.. so you have to include an *else* block as well, or do some … | |
Re: you have to include the user id in the where clause to further filter the records for the concerned user $userId = 124;//you program logic to fetch user id $query = mysql_query( "Select * FROM image " . "WHERE image_short_name = '$image_short_name_p' " . "AND user_id=$userId" ); (considering userId is … | |
Re: was just passing by and thought of adding something which BTW is not anywhere near to an answer to your question... I am a .net programmer myself(never got to work with a .net cms though), recently laid my hands on Wordpress and fell in love with it.. there's this wordpress … | |
Re: check out this link [sending email from asp.net](http://webdeveloperswall.com/dot-net/sending-email-attachement-using-smtp-in-asp-net) | |
Re: i've compliled a list of functions(and their overloads) to send emails (with or without multiple file attachements) into a single dll which is available for download here [here](http://webdeveloperswall.com/dot-net/sending-email-attachement-using-smtp-in-asp-net) . you may find it useful | |
Re: if you are on [url]http://youdomain.com/[/url][B]process.aspx?id=124[/B]¶m2=val2 and after the post back you want to redirect to [url]http://youdomain.com/[/url][B]process.aspx?id=982[/B]¶m2=val2 yu can simply use [CODE]Response.Redirect("process.aspx?id="+var_id+"¶m2="+var_param2value)[/CODE] which i believe you already know but dont wanna do.... if you dont want to hard code the page name ([ICODE]process.aspx[/ICODE]) then you can use [ICODE]Request.Path[/ICODE] which will return … | |
Re: see the source of the page in any browser wen u run your page. Most of the times your controls doesn't have the id as you have specified. your button's id might have changed from 'Button1' to something like 'ctplh100_Button1....' and thus jquery can't find any element with the id … | |
Re: put these inside your <head> tag [CODE]<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $("div#sidebar > ul > li > a").click(function () { $(this).parent().find(" > ul").slideToggle(500); }); )}; </script> [/CODE] | |
Re: you gonna have to use some server side technology to do that. for instance in php you define a header.php file, footer.php file and put common elements there. Then on content pages like aboutus.php you simply include header.php and footer.php in proper places.. have a look on w3schools for php … | |
Re: There are some good articles on msdn on url rewriting.. I recenlty worked on a project wherein i implemented url rewriting with http modules. Rules are defined in an xml file. and each incoming request is first intercepted by the httpmodule. internally httpmodule converts 'http://domain.com/products/mouse' to 'http://domain.come/productList.aspx?categoryname=mouse' and 'http://domain.com/product/eyeball-mouse' to … |
The End.