w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Can't display the description of a list of sub categories
You should try something like that. <?php $subcategories = get_categories('&child_of=5&hide_empty'); foreach ($subcategories as $subcategory):?> <div style="position:relative;float:left;width:100%;margin:0 0 20px 0;border-bottom:1px dashed #cdcdcd;padding:0 0 20px 0"> <a class="newstitle" href="<?php echo get_category_link($subcategory->term_id) ?>" style="margin:0"><?php echo apply_filters('get_term', $subcategory->name) ?></a> <div class="cat-desc"> <p> <?php echo category_description($subcategory->term_id); ?> </p> </div> <br /><br /> </div> <?php endforeach ?>

Categories : PHP

Google Geocode Components two countries
This is not currently possible. Please vote up issue #4233 if you want to see this happen. For time being I can suggest three possible workarounds, none of them perfect: Make multiple requests and merge the result sets manually. This will give the best accuracy, but is obviously the slowest. Use the manually merged bounds trick in HerrSerker's question, then manually filter out results where the short_name of the address_components element with a types of country is not in your list of countries. Drop the component filter entirely and include "Austria OR Germany" in your search string. Again, you will want to manually filter the results.

Categories : Api

An RSS feed shows description in Firefox but content:encoded in ie
It seems that Firefox is unaware of the RSS extension content:encoded (In Firefox, RSS Feeds using Full Text displays as Excerpt, apparently unreported in Bugzilla). You could consider switching to an Atom feed: `<content type='xhtml'>' is handled by Firefox.

Categories : Xml

Google Maps API, place markers on countries without using coordinates
I don't think it is possible because marker need a lat / lng to exist on the map. However, you can take a look at this Stackoverflow question and at the example given in first answer.

Categories : Javascript

Google Maps API - Geocode countries then zoom to bounds of country on click
The geocoder-result also returns the geometry for an address, which contains the bounds. Use the bounds as argument for the fitBounds-method of the map: google.maps.event.addDomListener(marker, 'click', function () { this.getMap().fitBounds(results[0].geometry.bounds) });

Categories : Javascript

How can I get the description and the url picture for a Google Chrome tab?
Try this jQuery solution: var faviconUrl = $('link[rel="shortcut icon"]')[0].href; Source: Jquery: Get favicon with full path

Categories : Javascript

How to show categories when search on google my web?
It's not something you can straightforwardly set up. Google will determine whether sitelinks are displayed for your search result. http://support.google.com/webmasters/bin/answer.py?hl=en&answer=47334

Categories : Search

Google map kml with 2 points and descriptions but same description displays for both
Looks to me like the Point coordinates are in the wrong polygons. Why that confuses KmlLayer, I can't say: http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=http://www.geocodezip.com/geoxml3_test/NoosaWaters11.kml?nocache=121213 The star for "Lock and weir" is in the polygon for the "Noosa Croquet Club" and the start from the "Noosa Croquet Club" is in the polygon for "Lock and weir" It is possible that the star for "Lock and weir" is not clickable and I am just seeing the infoWindow for the Polygon it is on top of.

Categories : Google Maps

Description of app in Google Play Games Services
Yes it is necessary to have this information. The data is displayed in another application from google called "Google Play Games". You can download "Google Play Games" from the regular Google Play Store.

Categories : Android

Snippet Description is not displayed in Google Plus Post (Android)
Verify that you have enabled deep linking in the Google APIs Console under Client ID for installed applications. If that is enabled for your Android client, try and see if the sample code from the documentation works, I just tested it and it works for me: PlusShare.Builder builder = new PlusShare.Builder(this, mPlusClient) .setText("Lemon Cheesecake recipe") .setType("text/plain") .setContentDeepLinkId("/cheesecake/lemon", /** Deep-link identifier */ "Lemon Cheesecake recipe", /** Snippet title */ "A tasty recipe for making lemon cheesecake.", /** Snippet description */ Uri.parse("http://example.com/static/lemon_cheesecake.png")) .getIntent(); Something to note: PlusShare.Builder(this) will use an unauthorized client and will f

Categories : Android

HTML5 - meta description tag isn't working when shown in google
Just wait some hours so that Google can crawl your site again. Did you register your site to Google Webmaster Tools?

Categories : HTML

Shell Script to change Jenkins build description picking bogus old description
I always see the null result for descriptions that haven't been set (in Jenkins 1.517). The difference that @DavidW sees is that null is used for unset descriptions and "" (the empty string) is used for a description that had a value that was cleared.

Categories : Bash

Tabhost with Google map android api v2 is not showing google map it shows only title issues in fragmentActivity in tabhost
I had the same problem (google maps v2 showed only a grey grid in a tab, but if I load it as a main activity without tabs than it works). Then I added mMapFragment.onResume() and now it works in a tab! Try this: mMapFragment = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)); mMapFragment.onResume(); // needed to get the map to display immediately I've found the solution here: http://stackoverflow.com/a/16960527/185493

Categories : Android

Mysql - store description and short_description or use SUBSTRING(description..)
No, it isn't (i.e. it isn't wasting space) in general. In all MySQL 5 versions there are: MySQL never uses indexes with functions in conditions (something like WHERE SUBSTR(X, 1, 2)=Y) You can build an index on VARCHAR column. I.e. if you will use short text - you'll be certain that you can use indexing by it and that index will be used. On TEXT column building an index is possible only with certain length. So if you have many SELECT queries - it's a good idea to have short descriptions (besides written above, TEXT fields are stored separately, so accessing them could cause the worst issue - disk operations). In this case you'll be able to create and use index with avoiding unnecessary disk reading operations.

Categories : Mysql

Thumbnail Gallery: Displaying only Main Categories, and not the Sub-Categories
Given the code presented, there seem to be two possibilities. 1) Modify WP_Query arguments $et_current_term_query = new WP_Query( array( 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'listing_category', 'field' => 'id', 'terms' => $elist_listing_category->term_id, 'include_children' => false // <--- ADD THIS ) ) ) ); 2) Modify the listing terms call used with get_terms $elist_categories_args = array( 'hide_empty' => 0, 'parent' => 0 ); // ADD parent

Categories : PHP

Google map api v3 shows half a map?
The map div has zero width. To use a percentage width, you have to define the width of all its parents (or at least up to a fixed size element that can be used to compute the width). See Mike Williams' Google Maps API v2 tutorial page on percentage sizing

Categories : Javascript

build category tree for categories and sub categories
Please clarify your question as it's bad idea to override core functionality because same function is used by different modules instead you can check functionality of these app/design/adminhtml/default/default/template/catalog/product/edit/categories.ph‌​tml app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Categories.php and then reflect these to your template files

Categories : Magento

sql self join, select categories and sub-categories from one table
Replace ON fcat.fcat_id = fsub.fsub_parent with ON fcat.id = fsub.fsub_parent QUERY: SELECT fcat.id fcat_id, ... FROM forum_categories fcat LEFT OUTER JOIN forum_categories fsub ON fcat.id = fsub.fsub_parent ORDER BY fcat.id;

Categories : SQL

Show categories with subcategories and n-sub categories using PHP+MySQL
Try this $result = mysql_query("SELECT * FROM users WHERE username = '$username' AND admin = '1'"); $rowCheck = mysql_result($result, 0); //if the query returns a number, we know the user is an admin. And here we can VIEW our categories if($rowCheck > 0) { //First fetch only parent categories $first_level_cats = mysql_query("SELECT * FROM categories WHERE user = '$id' AND parent_id = 0"); echo '<ol>'; while($row = mysql_fetch_array($first_level-cats)) { ?> <li><a href=""><?php echo $row['name']; ?></a></li> <?php $second_level_cats = mysql_query("SELECT * FROM categories WHERE user = '$id' AND parent_id = $row['id']"); echo '<ol>'; while($row = mysql_fetch_array($second_level-cat

Categories : PHP

Google Maps API v3 | shows no map data
See Mike Williams' description on percentage sized maps from his v2 tutorial You need to add definitions to all the parent elements of the map to allow the browser to calculate a non-zero size. working example <!DOCTYPE html> <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> html,body { width: 100%; height: 100%; } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function initialize() { var mapOptions = {

Categories : Google Maps

App shows grid screen instead of google map
Which certificate did you use to generate the API key? If you launch from Eclipse, your apk is signed with a debug certificate, not your release certificate, so you need a different API key for the debug keystore. See these instructions.

Categories : Android

Google places shows blank
Create a new project in google api provide the details like name and you package name and your sha1 key then click android in that. After that it show new key there you find generate new keys(browser,server,android) you can create the keys for both browser and android. First enable the following services in google Api console 1.Google Maps API v2 2.Places API 3.Analytics API <uses-permission android:name="(YourPackageName).permission.MAPS_RECEIVE"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOC

Categories : Android

Android google map shows blank
Either you don't have internet connectivity (my guess), or the key you entered in incorrect. Double check both these things. Also, ensure the emulator you are using to test (if applicable) has the Google APIs installed.

Categories : Android

Google Play shows no supported devices
Well your minsdkversion is 17, corresponding to android 4.2+. That's currently run on only a small fraction of devices!

Categories : Android

Google maps shows grey tiles only not map
Use below Permissions: <uses-permission android:name="android.permission.INTERNET"/ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> check your api key is right or not.

Categories : Android

Google maps V2 shows blank map in new activity
Did you double check that the Google Maps app is installed on the device you're running this on? Your issue sounds very similar to this issue: Google Maps Android API V2 check if GoogleMaps are installed on device

Categories : Java

Google Maps API v3 shows GRAY BOXES only
You are trying to use Google Maps Android API v1, which is deprecated since december 2012 and will not work for new projects since march 2013. The easiest way to switch to API v2 is by 1) removing all your code related to maps, 2) following instructions here: https://developers.google.com/maps/documentation/android/start.

Categories : Java

Google Map View only shows grey tiles
I can see a bunch of stuff mising (like api key on manifest) Check http://www.vogella.com/articles/AndroidGoogleMaps/article.html. It may help. Imo this one is better http://www.youtube.com/watch?v=awX5T-EwLPc

Categories : Android

Google map version2 shows blank space in android?
Answer for your second question how to reposition the zoom control button to top right or left corner Two options explained in this previous post: 1, Access the view used to display the standard zoom buttons and then adjust its position 2, disable the standard buttons and add your own custom buttons at desired location

Categories : Android

Nested google map 2.0 fragment shows static picture
have you tried to initialize your map onActivityCreated? if (mapFragment == null) { mapFragment = SupportMapFragment.newInstance(); fm.beginTransaction().replace(R.id.about_map, mapFragment).commit(); fm.executePendingTransactions(); } if (map == null) { map = mapFragment.getMap(); if(map != null){ Log.d(TAG, "map in AboutFragment initialized!"); drawPositionOnMap(); }else{ Log.d(TAG, "map in AboutFragment is null!"); } }

Categories : Android

Google Chrome shows gray circle cursor
This cursor indicates a "touch", such as your finger, for emulating touch events in Chrome browser. In the dev tools window, click the settings (gear) button in the bottom right. Go to the Overrides tab and disable Emulate touch events. I'm posting this here because it took me a LONG while to find it via searches, and I know others have been having the same issue. Update via Paulo Manuel Santos' comment: From Chrome 32 the Emulation is configured in a different place. This is how I get to it: Elements, press Esc, Emulation, Sensors, Emulate touch screen

Categories : Google Chrome

Google Play shows Sony Tablet S as incompatible for my app
You may want to try explicitly declaring that you app supports xlarge screen sizes: <supports-screens android:xlargeScreens="true"> By default this is not always set to true.

Categories : Android

Google API Key for Android Xamarin / C#. Map shows only a grey grid
After changing from MapActivity to FragmentActivity I got past this error. Then I encountered another error, claiming that my project does not have/can't find Google Play Services. At this moment I started wondering, if the emulator was the reason, so I tried deploying the new version to a dev phone we have at the office and BOOM it works. Therefore I'd recommend everyone to try the Fragment way of creating the map if you are getting this error with no way to fix it.

Categories : C#

categories and sub-categories sql order sorting
SQL-SERVER versio: ;WITH groups AS (SELECT ID , Name , ParentID , 0 AS Level , CAST(Name AS VARCHAR(255)) AS Path FROM Category WHERE ParentID = 0 UNION ALL SELECT c.ID , c.Name , c.ParentID , g.Level + 1 , CAST(CAST(g.Path AS VARCHAR(255)) + CAST(' -> ' AS VARCHAR(255)) + CAST(c.Name AS VARCHAR(255)) AS VARCHAR(255)) FROM Category c INNER JOIN groups g ON g.ID = c.ParentID ) SELECT g.Name , g.Level , g.Path , ISNULL(itm.Title, 'No items') AS Title FROM groups g LEFT JOIN Item itm ON itm.CategoryID = g.ID ORDER BY g.Path If you want show result as in question, than this part of work for User-interface(your application) SQL Fiddle for example/testing

Categories : Mysql

IOS categories - Is it ok to create dependencies between categories?
There's nothing deeply wrong with it, but it may suggest an overuse of categories. While they are a powerful tool for certain problems, and definitely can create some conveniences, I generally wouldn't build a complex system on them. I usually find that overuse of categories is based on too much IS-A thinking rather than HAS-A thinking. In other words, if you're putting a lot of categories on an class to act as a fancy kind of subclassing, you may be better off using composition instead. Rather than adding lots of category methods to NSArray (as an example), you would want an data object that has an NSArray property and provides the interface you want. But this is just advice if you're overusing categories. There's no fundamental problem with having categories import other categories. Ho

Categories : IOS

Categories and Sub Categories in custom taxonomies
It turned out, the code works as I wanted, but if it can be optimize I'll be glad to help ... This code displays the subcategories to the main categories of taxonomies. If anyone should use, just change 'auto' to the name of your taxonomy. my custom taxonomy is 'auto' <?php if(is_tax()) { $subcategories = get_terms('auto', 'parent='.get_queried_object()->term_id); if(empty($subcategories)) { $thiscat = get_term(get_queried_object()->term_id,'auto'); $subcategories = get_terms('auto', 'parent='.$thiscat->parent.''); } if(empty($subcategories)) $subcategories = array(); if(!empty($subcategories)) { echo '<ul>'; foreach($subcategories as $subcat) { if(get_queried_object()->term_id == $subcat->term_

Categories : Wordpress

Google Plus button not showing: FireBug shows a "NetworkError: 404 not found"
You can use this code instead : <div class="g-plusone" data-annotation="inline" data-width="300"></div> Javascript : window.___gcfg = {lang: 'da'}; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); Result : http://jsfiddle.net/L3XR7/

Categories : Javascript

Google AppEngine blacklist page shows server error
Then the error is probably not caused by the dos.yaml file. Open the Applications list in your browser and select your application to see the Dashboard. Click on the Logs link (third one down on the left) to see the actual error.

Categories : Google App Engine

Bolded google font shows text lower than usual
Maybe this is a lineheight or padding problem. Try "inspect element" in chrome or safari (right-click) and view which styles are active on the input form. Did you try adding reset css? http://meyerweb.com/eric/tools/css/reset/

Categories : HTML

Android google map version 2 shows blank white page?
Because when you sign an application it's SHA1 fingerprint changes. So when you make it a signed application take the SHA1 which eclipse gave you on signing proccess and write it to the allowing applications in Google API CONSOLE

Categories : Android



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