116 reputation
112
bio website imagewize.com
location Bangkok, Thailand
age
visits member for 2 years, 3 months
seen Apr 17 at 8:08

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 some of the sites associated with me: jasperfrumau.com, Imagewize.com (current site for Imagewize)


Mar
28
comment Get basic Image Uploader on User Profile Page
Perhaps an implementation such as at plupload's sample could be a cool thing. Just need to en-queue scripts properly and pick a <div> as uploader it seems. Only need data to be stored for a user so a particular image is loaded per profile.
Mar
28
comment Get basic Image Uploader on User Profile Page
@Soulseekah That plugin's drag-and-drop feature is really cool I must say! But for my situation I only need a profile image uploader to work. I do hope your brother's plugin gets to be accepted to core as it is awesome!
Mar
28
comment Get basic Image Uploader on User Profile Page
The profile images need to be added to a specific folder and the path has to be added to a specific user_meta field so the profile page can load the image connected to a user ID with <?php if(get_the_author_meta( 'userphoto_thumb_file', $getId )!=""){?> <img src="<?=$uploads['baseurl'];?>/thumbs/<?=get_the_author_meta( 'userphoto_thumb_file', $getId );?>" /> I do not see how Koshenin's code can achieve that. But will check it out. Saw you helped with it too Soulseekah!
Mar
19
comment Menu with parents, children and or siblings pages display
@ kaiser. As I have been at it with this menu on and off for two weeks now and need it to function like the site mentioned I doubt I can simply create this. I would appreciate some guidance. Will look into wp_nav_menu again of course and see how I can convert all the added code plus make changes to make it look like the sidebar on the mentioned site.
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