w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Is it possible to create wordpress category pages like home pages? (designed)
Firstly your question is not clear and you just asked a general question for that answer is Yes absolutely Possible. Without any specific information of theme or error, we cant help you. Here is some thought: You can easily customize wordpress theme category page category.php or even if you want a different category template for only one category, you can do that. To do that, create category-[slug].php or category-[id].php file in your theme files - replace slug or id whatever you use with that of category you want a different tempelate. Once you edit template for category page, you can add all options yourself - Good option is to display a Slider of category page and query posts for that category only to show on that slider or show promotional stuff on top from that category in slide

Categories : Wordpress

How to Create ASPX web pages dynamic when the site is run(Like Tag Pages)?
Suppose: Table - Article : I am considering only few columns with their datatypes that relates to an article. Id (PK, Autogenerated), Title(varchar(1000)), Description(ntext), ArticleDate(datetime2), Tags(varchar(1000)) Allow user to select multiple tags as SO does or a text box where tags will be entered as comma separated value. Suppose after entering a record we have Id | Title | Description | ArticleDate | Tags --------------------------------------------------------------------------------- 1 | How to use tags in article? | blah!blah!blah! | 09/07/2013 | c#,asp.net, English,.net, sql say front end has link having tag SQL.

Categories : C#

How do I create redirects in Umbraco when old pages have same directory as new pages?
this will tell you how MVC is interpreting the route http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx

Categories : Asp Net Mvc

C# WebBrowser Control - for some pages I get a blank screenshot
I solved it by creating a new dummy thread, make it wait for a few seconds and then return. (so the Control thread is not blocked). turns out that webbrowser needs a small amount of time to actually render the page after final DocumentCompleted event is fired

Categories : C#

Symfony All blank pages after cache clear
You seem to have run cache:clear as root user without the --no-warmup flag. Now symfony has warmed the cache after clearing it using the root account which would result in the newly created cache files being owned by your root user. Depending on your umask the webserver-user now might not have r+w access to these files. Make sure your webserver-user / cgi-user has read and write access to your cache folder or give the ownership back to this user. sudo chown webserver_user:webserver_group -R app/cache sudo chmod 770 -R app/cache # or use acl to permit read/write to your webserver-user

Categories : PHP

Can't create Segue from UIScrollView
A push segue is only meant to be used with any type of button (ex. UIButton, UIBarButtonItem) or cell (UITableViewCell). Push segues are used to show another view controller over the current one. UIScrollView is only meant to scroll the content on the current view controller, just in case the content of the view controller exceed the screen size. I suggest you look at the Apple UIScrollView Class Reference page here to get a better understanding of UIScrollView

Categories : IOS

How to create a top fade effect using UIScrollView?
The views are all subviews of the scroll view so they each have their own alpha. You can act as the delegate for the scroll view and in scrollViewDidScroll you can check the contentOffset and change the alpha of any of the subviews you want.

Categories : Iphone

How to create uiscrollview with custom shapes in ios?
Here's what I would do. I just tried this out and it works. All you need to do is add a mask to the view that contains the scroll view as a subview. (self in this case is the view itself.) CAShapeLayer *maskLayer = [CAShapeLayer layer]; maskLayer.path = [UIBezierPath bezierPathWithRoundedRect:CGRectInset(self.frame, 5, 5) cornerRadius:50.0f].CGPath; self.layer.mask = maskLayer; Here's a gist from my working code: https://gist.github.com/rcdilorenzo/6437136

Categories : Iphone

JFolder::create: Could not create directory in all pages
The 755 permission gives the group/others the read and execute permissions in the directory. This means, that non-group members cannot create new directories. Make sure that the owner of the directory is the user that the server is running as. To figure out which user that is, you can use: $ echo $(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {if ($1) print $1}') And if does not provide the desired result, simply explore the output of: $ ps aux | grep -E "httpd|apache" | grep -v -E "root|grep" You can find which group it belongs to by using: $ groups [userName] Next, change the owner of the joomla folder. I am using www-data as an example: # chown -R www-data:www-data path/to/your/joomla/root/dir PS, lines preceded by $ can be executed b

Categories : Joomla

UITextView in UIScrollView both inside another UIScrollView
It seems you use the same textField2 everytime. (so, basically you're releasing it every iteration, which should show you the last one. instead of: _textView2 = [[UITextView alloc] initWithFrame:textRect]; try : UITextView *textView2 = [[UITextView alloc] initWithFrame:textRect];

Categories : IOS

Create a blank workbook which is not saved
If you want to create a new blank workbook, stop trying to open an existing one. Just change the line Set wbExcel = xlApp.Workbooks.Open("C:UsersPRASHPRADesktopBook.xls") to 'Add a new, empty workbook Set wbExcel = xlApp.Workbooks.Add For more information, see Creating a New Workbook (the link is for Excel 2003, because it's the first one I found via Google, but it still applies, and if you want a more recent link you can probably find it the same way I did).

Categories : Excel

Need to create a custom blank page in drupal
You will have to create a module in order to add php code to drupal. Try this to understand better what u need to do https://drupal.org/node/1074360

Categories : PHP

Create a blank array from a model in cakephp
Well, if its ok, you could create a custom function in your model and pass in the result to it, like: //can be added to your model function reset_values($array, $replace_with) { foreach ($array as $key => $arr) { if(is_array($arr)) $res[$key] = reset_values($arr,$replace_with); else $res[$key] = $replace_with; } return $res; } $resetedArr = reset_values($arr, null); //replace values with null echo "<pre>"; print_r($resetedArr);

Categories : PHP

How to create sub pages with ID's
When we create an article it is stored in the db with a unique ID. Then the developer creates a single page which is pretty a much a template that shows the title, description, date, likes, shares, etc. The page uses the unique ID of the post that was stored in the Database to get it's likes, shares and all the things! And yes, they are the auto-generated sub-ids but are generated by the Database itself. I would recommend you creating a single page like article.php and send a ID of the article by fetching it from the database thorugh the super global ($_GET) <-- if using PHP. Then make queries or a query to get the data from the database's table and display it to the end user in a nice and clean manner.

Categories : PHP

Blank menu, NullPointerException in Android Studio 0.2.5 when trying to create new module
I was able to add a new module by manually creating a new folder and copy/pasting: Another module IML file (renaming it after) build.gradle file from another module creating all the Android files manually (Manifest, RES files, SRC files) Then if you restart Android Studio, it should see it a new module. This is not the best solution but a workaround in the meantime.

Categories : Android

Create a nested element with blank namespace in a schema definition
You could do something like the following. Since elementFormDefault is unqualified all global elements (BalanceResponse and BalanceResult will be namespace qualified and all local elements (Balance and amount) won't be. <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.com/balance" xmlns:tns="http://example.com/balance" elementFormDefault="unqualified"> <element name="BalanceResponse"> <complexType> <sequence> <element ref="tns:BalanceResult"/> </sequence> </complexType> </element> <element name="BalanceResult"> <complexType> <sequence>

Categories : Java

Create dynamic .aspx pages in asp.net
Make sure your web project is declared as a web site rather than a web application. A web site is willing to dynamically compile each page on demand, unlike a web application, so something like this is in principle doable. If you really want to do it.

Categories : C#

form_for in pages other than create and edit
Yes, you can. First initialize your Model object in show method like this: def show @project = Project.new end and in your show.html.erb, use for_for like this: <%= form_for @project do %> ##your form stuff <% end %> Hope it will help. Thanks

Categories : Ruby On Rails

Using PHP to dynamically create pages from a template
In general, I would do it more or less like this: 1. Create a 'Blogs' SQL database table. Create an 'id' column (primary key), and columns for fields like 'blog_date', 'title', 'author', and 'html_content'. 2. Create a 'Blog' class using php. Create properties which correspond to the SQL fields in your 'Blogs' table, including 'id'. 3. Create public 'loadFromDB()' and 'saveToDB()' methods These methods should load and save the SQL values of a row in 'Blogs' (selected by id) to and from the class properties. 4. Create a public 'view()' method for the 'Blog' class This is simply an HTML view/template of a single blog entry displaying date, title, author, etc. 5. Create an 'index.php' blog page in a folder on the server You want to use this page to display a single blog entry. Use a blog

Categories : PHP

How to create two separate pages in ember
I think that changing your js structure, to reflect your dependencies can solve this problem. // App.js App.Router.map(function() { this.route('color'); this.route('shade'); }); // Color.js // here all color resources App.ColorRoute = Ember.Route.extend({ // your implementation }); // Shade.js // here all shade resources App.ShadeRoute = Ember.Route.extend({ // your implementation }); In your ApplicationResources.groovy modules = { application { dependsOn 'jquery', 'handlebars', 'ember' resource url:'js/App.js' } shade { dependsOn 'application' resource url: 'js/Shade.js' } color { dependsOn 'application' resource url: 'js/Color.js' } } In shade.gsp <r:require modules="shade"/> In color.gsp

Categories : Javascript

how do I create a "blank" redirect page in HTML that has Google Analytics code in it?
use javascript to redirect to the "blank" page then place your google code on the blank site then use javascript to redirect to wherever you want and make sure you have the same google analytics code on the landing page you are sending them.

Categories : HTML

Remove blank spaces from variable to create valid html element id?
use preg_replace <div id="image-<?php preg_replace('/(s/', '', the_title()); ?>" style="display: none;"> A better regex would be [^A-Za-z0-9-_:.]. This matches all invalid characters for an html ID according to What are valid values for the id attribute in HTML?.

Categories : PHP

How to Create multiple word documents(blank) thru excel macro, with specific name?
I've quickly whipped this up, which opens your word document, saves it based on the directory in Range("A2"), with the filename in Range("B2"), and then closes the file. Sub Button1_Click() Dim oWord As Word.Application Set oWord = New Word.Application oWord.Visible = True oWord.Documents.Add Template:="Normal", NewTemplate:=False, DocumentType:=0 oWord.ActiveDocument.SaveAs2 Filename:=Range("A2") & Range("B2") oWord.ActiveDocument.Close SaveChanges:=False oWord.Quit Set oWord = Nothing End Sub This should provide you with a good basis for cycling through your A column, and save the documents, and then correcting any empty directories (can be done with an if statement). You will have to ensure that you have the Microsoft Word Reference checked - to do this, ensure you're in the

Categories : Excel

Wordpress Create Frontend pages with plugin
You can use wordpress' wpdb functions to query any database that you have created. This can be on any page/template within wordpress. http://codex.wordpress.org/Class_Reference/wpdb function displayStuff(){ global $wpdb; $query = "SELECT * FROM yourdatabase"; $results = $wpdb->query($query); } If using outside of wordpress, just use standard php mysql_connect & mysql_query, or include wordpress in your page: require($_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php');

Categories : PHP

How do I create animated page transitions between different pages?
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-load-in-and-animate-content-with-jquery/ Take a look here loading with ajax with Slide Down You can work a little bit this Tutorial to load the whole Page as drop down or fadeIn. Only with CSS I think it is not possible.

Categories : Javascript

How can I create a "sliding pages" effect in KnockoutJS?
This can be done with a binding, but first we need a helper function for our buttons. It returns a click handler that sets an observable to a specific value. It can be used like data-bind="click: page.set(1). ko.observable.fn.set = function(value) { var obs = this; return function(){ obs(value); } } Now our HTML will have a binding in the page container (.pages) telling us what page to be on. Each page has a simple class which we use in to describe them. <div class="pages" data-bind="page: page"> <div class="page text-center"> <h1>Page 1</h1> <button class="btn" data-bind="click: page.set(1)">Go to Page 2</button> </div> </div> Our CSS is a little strange. We need to make .pages much larger than the body, and hide th

Categories : Javascript

How do I create CSS only tabs/pages with #hash URLs?
full demo uses this menu. Layout To do this, first layout your document so that you have multiple .pages, and each has a unique id. <div class="page" id="home"> <h1>Home</h1> <div class="body"> </div> </div> Then create a menu, or some other structure that contains links. These should have hashes that match your ids. For example id="home" and href="#home". <ul> <li><a href="#home">HOME</a></li> </ul> CSS You now have to decide how you want your pages to transition. I choose to use a combination of top and opacity. Also note, that it's highly recommended to set your elements initial position to the top of the page. When you click one of those links, the browser will automatically make the top-

Categories : CSS

Using Node.js to create bucket and push object, extra blank file created?
var s3bucket = new AWS.S3({params: {Bucket: 'test_bucket/sub_bucket'}}); will create an extra file. Take out the params in the parentheses. I found out that Amazon's quick start guide example creates an extra file. This way is the correct way to do it. // Create a bucket using bound parameters and put something in it. var s3bucket = new AWS.S3(); s3bucket.createBucket(function() { var params = {Bucket: 'bucket/sub-bucket', Key: 'file_name1', Body: 'Hello!'}; s3bucket.putObject(params, function(err, data) { if (err) { console.log("Error uploading data: ", err); } else { res.writeHead(200, {'Content-Type':'text/plain'}); res.write("Successfully uploaded data to bucket/sub-bucket/"); res.end() } }); });

Categories : Node Js

Ruby on Rails, dont create entry to model if user input is blank
If you want some database related columns (form is generated byform_for helper) to have value for sure, than in Patient model: validates :vorname, :nachnahme, :presence=> true Also, you can validate length, uniqueness of record (with Rails default validators) and write your own, if you would like to.

Categories : Ruby On Rails

How to create resolution-sensitive web pages that adapt themselves automatically?
Look into css media queries. You can do stuff like: @media all and (max-width: 699px) and (min-width: 520px), /* Target only screen with resolutions between 520px to 699px;*/ }

Categories : Asp Net Mvc

paypal different pages - visa/debit payment not create account
If you're using Payments Standard this experience is cookie based as you mentioned. If you want to make sure the full credit card form shows up and allows people to pay with a credit card without creating an account you can use the Express Checkout API instead. In your SetExpressCheckout request you just need to set SOLUTION=Sole and LANDINGPAGE=Billing.

Categories : Paypal

How to create a facebook-event for a page without posting it to the pages wall?
When creating the event through Graph API, add the no_feed_story parameter set to true. You can create an event for a page by issuing an HTTP POST request to PAGE_ID/events with the create_event permissions and the following parameters. no_feed_story: Suppress the creation of a feed story - the default value is false https://developers.facebook.com/docs/reference/api/page/#events

Categories : Facebook

how to create web pages in which network requests cannot be captured by browser's debugger
Applets are completely different world. Its almost as good as running a .net application on your client machine. What you see in the debugger are ajax requests and resources loading. If a site doesn't make them, you won't see any network requests in the browser. That doesn't mean that you can't capture the data being send. You can always use a debugging proxy like fiddler to see what traffic is going across. Ofcourse a secure site would secure their traffic over https. Applets require a java plugin in your browser. There are similar plugins like Silverlight, flash/shockwave(swf) that too can make network requests.

Categories : Javascript

Efficient way to create pages from multiple similar type links
Using plain HTML you won't be able to do this. The most straightforward way to do it, I think, is using server-side scripting to implement a rendering template. You could then have a default "main" template with everything those 30 pages have in common and then in each of those pages use the main template and load the custom content. So if you want to modify something in the main template you'd only have to modify the main.html (or whatever you called it) page and not each of the 30 pages. See this.

Categories : HTML

How to create a page in a given SharePoint 2010 Pages Library using PowerShell
get your publishing web like this: $SPWeb = Get-SPWeb $websiteUrl -AssignmentCollection $spAssignment $pweb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($SPWeb) get the list of pages: $pages = $pweb.GetPublishingPages($pweb) get a page layout: $ctype = $psite.ContentTypes["Your Page Layout Content Type"] $pageLayouts = $psite.GetPageLayouts($ctype, $true) $pageLayouts | ForEach-Object { if ($_.Title -eq "Your Page Layout Title") { $layout = $_; } } look for your page like this $pages | ForEach-Object { if($_.Name -eq "default.aspx") { $page = $_; } } update the layout this way if ($page -ne $null) { $page.CheckOut() $page.Layout = $layout; $page.Update(); } create a page based on a layout like this $page = $pa

Categories : Sharepoint

UIScrollView at the bottom of a UIScrollView
Apple provides this functionality for free, so the good news is you don't need to actually directly code anything here (unless you want something a little funky). The effect is achieved through paging scrollView.pagingEnabled = YES; Before this will take any real effect, you will need embed your subviews (both the UIView and the UIScrollView) in the master scroll view. Each of them should be the same size, or size of a single page. So let's say the master scroll view is 100, 100 points, we could set it up like so: CGRect pageRect = CGRectMake(0, 0, 100, 100); NSInteger pageCount = 2; UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:pageRect]; scrollView.pagingEnabled = YES; UIView *page1View = [[UIView alloc] initWithFrame:pageRect]; page1View.backgroundColor = [UIColor

Categories : IOS

How do I create a popup Jquery-mobile window with multiple pages that can be swiped through
Are you looking for some swipe libraries? http://jgestures.codeplex.com/ http://labs.rampinteractive.co.uk/touchSwipe/demos/

Categories : Jquery

If no blank lines preceding an outline heading `**`, then insert one blank line
The problem with using delete-blank-lines is that its behavior depends on the number of blank lines around point. Here is an very inelegant way to solve the problem: (save-excursion (beginning-of-buffer) (while (re-search-forward "^[*][*]" nil t) (forward-line 0) (newline) (forward-line -1) (delete-blank-lines) (delete-blank-lines) (newline) (forward-line 1)))) It hurts my eyes a little and it does look more like a macro than a function, but I think that it does the job.

Categories : Emacs

In Excel, how to fill blank cells with the last preceding non-blank cell?
In a "manual" fashion, you could do the following: Select the column, go to Edit > Go To > Special > Blanks, type = in the formula bars, hit the up arrow then Ctrl+Enter. you should now have the cells fill with the values above In a more "automated" fashion using VBA, you could do the following: Select the range where you want to fill the blank cells, Then click on Developer Tab -> Visual Basic -> Insert -> Module Then paste the code in the Module, and click on run: Code: Sub Fill_Blank_Cells() Selection.SpecialCells(xlCellTypeBlanks).Select Selection.FormulaR1C1 = "=R[-1]C" End Sub As @Jerry rightfully pointed out, make sure to copy-paste special the values in order to remove the formulas behind your filled column. This will prevent any undesirable results later!

Categories : Excel

Moving the UIImageView Place in UIScrollview to Another UIImageView Placed on Next UIScrollview
You can use a PanGestureRecognizer for this. You need to move the view to the superview of the scrollView while dragging and then after releasing it, you need to place it in the new scrollView correctly. I wrote a library for exactly this, check out my JDDroppableView Library: https://github.com/jaydee3/JDDroppableView

Categories : Iphone



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.