106 reputation
9
bio website imagewize.com
location Bangkok, Thailand
age
visits member for 1 year, 4 months
seen May 16 at 1:48
stats profile views 41

whoami

I am rhand or Jasper, a web lover, polyglot, WordPress addict and HTML5 evangelist. I love to code in and learn more about jQuery, WordPress, Joomla! and I also dive into OSCommerce and Magento regularly.

pwd

Currently I am in sunny Thailand, but I am always on the move. I work for my own Hong Kong based company Imagewize and with my Dutch partner Doede at Doede.net. Here are four sites associated with me: Imagewize.net, doede.net, jasperfrumau.com, Imagewize.com (Future site for Imagewize)


Mar
18
comment Menu with parents, children and or siblings pages display
As in a WordPress 3.0 widget menu? Well, as the setup was initially simple, as I use pages only and I thought it would be nice to have it auto-generated I went for this. And thanks to some help I got pretty far. Another large issue is that I have different menu displays per level (parent, child, sibling). I show children now and siblings when there are and if there are no children or siblings I show the standard wp_list_pages How would I do that using wp_nav_menu() ?
Mar
17
comment Hide Slider on Post Type Page
Added some answers to questions I found solutions for and accepted some answers when they were correct. Now let's crack this one..
Mar
17
comment Hide Slider on Post Type Page
Well, I guess the profile page is an author page with several author_meta fields so I could have done that too. Not sure if I can migrate all easily to a public author page and keep the access code rule running. Going to try your conditional tag now.
Mar
17
comment Password protected Profile View
See complete solution in question
Mar
17
comment Gettext Loads slightly different text
Thanks for the feedback. Could be the case. Will try to check this when the site has low traffic somewhere this weekend or next week.
Mar
17
comment Hide Slider on Post Type Page
Yeah, still have some open questions. Did answer some myself already. But will look into this. Will accept rate go up when I answer my own questions then? Will see
Mar
14
comment Load parent pages when there are no child pages
Brilliant piece of code. Just what I needed. Thanks!
Feb
26
comment Show tarifs page with menu a or b depending on menu of origin
Hmm, as I have several pages with content + child pages underneath I cannot convert those into posts as I need some to be posts and categories to make my hack work. And then I wind up having pages domain.com/regular-clients/tarifs/tarifs . I do not want to repeat a term in an url, but I do not want to create the tarifs page two times either. Too bad WordPress does not support the adding of one child under more than one parent. Been Googling on this for quite a while now, but have not found a good hack for this issue
Feb
25
comment How to create menu spread over four lines including images
By custom code you mean creating custom widgets like justintadlock.com/archives/2009/05/26/… ? Would probably be convenient to create a widget with several text fields, one for each menu item. But it would require me to learn something new while I am already behind schedule. Did reduce sidebars already and added some floats and it is looking better. Looking into custom widgets to see if this can be done quickly and will improve maintenance. If not I will stick to what I have now: three sidebars and many widgets.
Feb
25
comment How to create menu spread over four lines including images
Thanks for your input. Was reading on the walker class and how they use it to for example add a description to a menu. But yeah, I am leaning towards widgets. It is just that I would need 10-12 widgets for the homepage alone. All these widgets will be added one below each other in appearance widgets. Unless I go for three sidebars.., but still a lot of widgets to maintain. And as all menu boxes need custom colors..
Feb
24
comment Show tarifs page with menu a or b depending on menu of origin
Solved it here with the help of stack exchange folks: stackoverflow.com/questions/9430539/…
Feb
24
comment Show tarifs page with menu a or b depending on menu of origin
Found code to grab current url here: webcheatsheet.com/php/get_current_page_url.php. Actually not to hard. Just need to get a check for cat slug now and then an if elseif. Checking PHP string functions now.
Feb
24
comment Show tarifs page with menu a or b depending on menu of origin
I made the tarifs page a post under several categories. I thought I could use the category as a way to determine what menu to show. If in_category('pros)) { echo "menu-1";}. But the issue is that the if elseif, else statement I used is always true and I therefore I will get the menu stated in the if statement and never in the elseif or else statement. This so because the post is under all three categories in statement. How do I filter? Looking into cat ID now, but I need something like if pros is in url or permalink..
Feb
22
comment Internationalize plugin so strings can be translated in WPML
Well, with some help form WPML I made progress. Was able to register the string: icl_register_string('Accompany Text','Widget Text', $text); and echo attribute_escape (icl_t('Accompany Text','Widget Text', $text)); and get it to load the string from WPML string management. Somehow the final widget text is stored/grabbed by WPML and the initial two are not. Not sure yet why. Updated code here: pastebin.com/gy6CNwUT
Feb
19
comment Password protected Profile View
Oops. All good now. wp_generate_password() function is next.
Feb
19
comment Password protected Profile View
I tried $querystr = $wpdb->prepare("SELECT ID FROM wp_7d8ftw_users WHERE ID='%s'",$getId); but got Fatal error: Call to a member function prepare() on a non-object
Feb
16
comment Internationalize plugin so strings can be translated in WPML
Asked WPML a question about it. Will wait and see
Feb
16
comment Internationalize plugin so strings can be translated in WPML
With WPML I am supposed to be able to grab text and translate that as I can do with text in pages, posts and custom posts. See wpml.org/documentation/support/… , but now that I am reading it again it all seems more complicated..
Feb
16
comment Internationalize plugin so strings can be translated in WPML
Yeah, pastie wasn't updated. Checked you updated answer. Using printf(_(attribute_escape($d)), $text); for the text area now. I cannot use e as I work witha variable in the text area that loads the text. But it seems the text like this is not loaded in the widget in the Dashboard not does it get loaded as a string. I guess the $d variable used in the sample is only for comment spam..
Feb
16
comment Internationalize plugin so strings can be translated in WPML
On line 35 (code: pastebin.com/81wKEitR )I used gettext call __() as seen codex.wordpress.org/Translating_WordPress and codex.wordpress.org/I18n_for_WordPress_Developers using printf to echo it as I have variables there. That does not seem to work. Checking all once more now