Quantcast
Channel: Question and Answer » default
Browsing all 17 articles
Browse latest View live

Should all classes have a default constructor as part of good coding convention

From the texts I have read so far, the conventions talk about organizing constructors, starting with the default, if any. I am wondering, should all classes have a default constructor anyway. This will...

View Article



Image may be NSFW.
Clik here to view.

Default Opengeo suite print module- scales given in selector differ when...

Using a default installation of the 3.0.2 suite, opening the Composer view(with the MapQuest OSM tiles as background) and clicking print (to pdf) to activate the print preview there appears to be a...

View Article

Data loads with preset symbology in ArcMap

I have a set of points in a file gdb. When I load them in ArcMap or ArcCatalog, the data displays with unique value symbology based on a field rather than “single symbol”. How do I get the data to load...

View Article

Why do folders have Empty Index.php Pages?

/wp-content/ /plugins/ /themes/ All have empty index.php files in it. Are they safe to delete? What is their purpose, why even be in the default install if they’re empty? What is their purpose?

View Article

Delete pages and Create default pages for all new network sites

I am using the following code to delete some default pages and to also create some default pages for all new sites that are created. It work as is now but that is only because I purposely have a...

View Article


How to Create a Custom WordPress Install Package?

I downloaded the latest version of WordPress (3.5) and created a custom theme. I plan to upload and install it for multiple clients. Is it possible to customize the default settings such as not have...

View Article

set custom value on default admin columns based on row values

I added some foreign key to wp_comments db table. Some comments could be indipendent from post. For these comments I’ve comment_post_ID set to 0. So i need something like:...

View Article

Default WP search excluding specific characters, is it possible?

I would like to know if it possible to customize the default search module of WordPress. I’ve a website dealing with teams and teams’ news. Some of those teams has their names written like this H.M.S....

View Article


Redirect page to default subpage

On a site that I’m working on I have a particular page that has four subpages, which act like process steps. I want the parent page to always redirect to the first of these as a default, should the...

View Article


View content from uploaded file in editor

I have a custom metabox that let’s the user upload .csv files while creating a page. The content of the .csv is shown on the created page at the “front-end”. I would like to show the content on the...

View Article

show random image in loop if image is not set

I want to show a random image from a few options in my loop if a custom field hasn’t a certain value, or it could be if it had no thumbnail. In any case, it should spit out one of the random images....

View Article

Images give 404 after changing default domain

Never encountered this issue before. So I’ve just moved a site for a client to another server and for some reason all images give me a 404 when I change the default domain in the database (siteurl and...

View Article

Setting Default Category for Custom Post Type Upon Autosave

I’ve been searching for a couple hours and consulted multiple posts, but I seem to get this to work. I have this weird bug where users cannot see their drafts of a custom post type if they don’t assign...

View Article


How can I set a custom site template to the default choice?

Is there a way, in SharePoint 2013, to change the default site template, so that when a user goes to create a new site they aren’t by default using the SharePoint “Team Site” Template? I want our...

View Article

Change default “Apply Changes To” radio option when editing images

I have a theme where when the user edits images, I want the changes to apply to “all sizes except for thumbnails”. She remembers to check this box most of the time, but not always, and it is very...

View Article


SP2013 MySite default page redirect to Person.aspx after patch

Recently we have patched our development farm. It is a SharePoint 2013 enterprise edition on-premise farm. After patch (product config wizard have completed successfully), when any user browse the...

View Article

How to pre-set WordPress settings for specific posts?

The WP site I am creating requires creating diff posts for diff categories. What I like is that if someone chose to post under category A, i have a bunch of pre-set settings (tags, banner image etc) in...

View Article

Browsing all 17 articles
Browse latest View live




Latest Images