| PierreMinik | Crap I need Xcode to be installed before I can install MacPorts... Any way around that? |
| xentek | no |
| xentek | xcode is needed to get gcc on the system |
| PierreMinik | Right |
| johnpbloch | is anybody else using Otto's Simple Facebook Connect Fanbox Widget? |
| http_Hikari_WS | I simply can't get a comment-page-3, it always splits all comments in 2 pages, without even respecting the amount I set |
| rainrain | am getting "Call to a member function get_results() on a non-object" - can anyone help me out a bit ? |
| Utkarsh | Hikari, custom theme or default? |
| http_Hikari_WS | Utkarsh: my theme, but I think it has nothing that whould break it |
| http_Hikari_WS | wp_list_comments('style=ol&type=comment&callback=hksmtc_comment'); |
| Utkarsh | not sure, have you tried switching theme? |
| Utkarsh | paginated comments are worknig fine for me. |
| http_Hikari_WS | ok I'm gonna test kubrick :/ |
| Utkarsh | twentyten |
| xentek | rainrain you are calling something like this $var->get_results() but $var is not an object ... var_dump the variable and see what it actually is and work backwards from there |
| Utkarsh | kubrick is old :p |
| http_Hikari_WS | I doubt it works with 2.9.2 |
| Utkarsh | kubrick then |
| Durchfall | Is anyone from germany here? |
| zorzar_ | Durchfall: yeah |
| http_Hikari_WS | the problem is that it doesn't count comments |
| Durchfall | zorzar_: What do you think of my new nickname? |
| PierreMinik | Anybody familiar with the internationalization process? I get an error when using the makepot.php file |
| brianrichards | johnpbloch: still kicking around? |
| johnpbloch | sort of |
| brianrichards | haha |
| zorzar_ | Durchfall: well... kinda offtopic |
| johnpbloch | now I've got my own soul-crushing problem... |
| johnpbloch | I really really hate Facebook... |
| Durchfall | zorzar_: Is my nick off topic, or is the question...? |
| PierreMinik | Facebook APi is a pain to get around, what you need to di, johnpbloch? |
| PierreMinik | s/di/do |
| Durchfall | Hey, I'm also struggeling with the facebook api. Trying to upload images from wordpress to fb. |
| Durchfall | Not going so good though... |
| brianrichards | johnpbloch: i really hate checkboxes |
| johnpbloch | brianrichards: touche |
| Durchfall | Perhaps curl has something against http-address-uploads? |
| johnpbloch | ;) |
| johnpbloch | PierreMinik: I'm using Otto's Simple Facebook Connect fanbox widget |
| http_Hikari_WS | Utkarsh: ok 35 on main ugly page... well it's the same, comment-page-1 has all others and comment-page-3 is empty |
| brianrichards | last night i had a framework that could create any type of option you wanted, but i was afraid it would make too many db entries |
| rainrain | xentek: thanks but what does "not an object" - i have this almost same piece of code working properly in another place and that var is just meant to take the output and store it |
| johnpbloch | and the darn thing won't apply my styles! |
| rainrain | !!! ..... not an object "mean" !!! sorry |
| zorzar_ | Durchfall: the question |
| xentek | rainrain show me? paste it here: http://p.baf.cc/ |
| Durchfall | zorzar_: Just tell me - is my nick awesome? |
| zorzar_ | Durchfall: yeah it is... |
| Durchfall | IT'S TOTALLY AWESOME! |
| xentek | Druchfall diarrhoea == awesome? |
|
|
| Durchfall | Now to the important stuff - is curl able to upload http-hosted files, or do they have to be locally stored? |
| Durchfall | xentek: Right on! |
| brianrichards | johnpbloch: lets say i wanted to bail on how i'm currently registering all of my defaults |
| brianrichards | where would you hook them? |
| rainrain | xentek: not sure if i used that right --- do you need the url ? http://p.baf.cc/3550 |
| johnpbloch | brianrichards: I'd hook them onto a block of cement and drop it into the Potomac |
| johnpbloch | ;) |
| brianrichards | ha! |
| brianrichards | nice |
| Durchfall | Gee, get a room- |
| brianrichards | i've been cloned! |
| xentek | yeah, so rainrain so if you put var_dump($wpdb); right after global $wpdb; you should get some clue |
| xentek | but... do you already have the post_id? |
| xentek | nevermind |
| Durchfall | Anyone who want to finish my plugin and struggle with Facebook API for a while? |
| rainrain | xentek: yes it's null and it's supposed to be "globalized" ( which im not 100% sure on " - but for the other function ( which worked ) all i did was write global $wpdb; at the top of the function - thanks for your help - any ideas |
| xentek | so yeah, $wpdb is out of scope so you can't use it directly |
| xentek | however |
| xentek | what are you trying to do? see if the $post_id in question has a metakey of 'balance' whose value is greater than zero? |
| rainrain | why would it be out of scope --- it could be that i am calling the function via jquery ? |
| xentek | have you looked at this? http://codex.wordpress.org/Function_Reference/get_post_meta |
| xentek | also, what do you mean by 'via jquery'? |
| xentek | where does this function live? |
| xentek | (theme, plugin, functions.php)? |
| rainrain | xentek: no - but it looks like it might work or if not some other function - hadnt tahoughot ofthat - thanks |
| rainrain | jquery ajax $.ajax({ |
| rainrain | i think get_post_meta might work for me - will try it out - was thinking querying the db was a bit mad |
| rainrain | thanks |
| johnpbloch | brianrichards: gotta go. good luck with the checkboxes |
| brianrichards | ha, thanks |
| Kawauso | rainrain: good luck using $.ajax in stock wp ;) |
| techrush | everytime i insert an image into a post its making it a link by default...how can i just insert the image without it becoming a link ? |
| Durchfall | brianrichards: I got something for you.. |
| brianrichards | yeah? |
| Durchfall | http://jilvero.se/hiv.php |
| rainrain | Kawauso: Thanks - yes it's a bit of a nightmare - all i wanted to do was call a function via a link - what's the best way |
| xentek | rainrain you almost NEVER have to query the db directly w/ WP |
| xentek | if you want to do ajax requests in WP |
| xentek | check these out: http://codex.wordpress.org/AJAX_in_Plugins |
| xentek | http://old.nabble.com/ajax-to-call-function-in-theme-td26116790.html |
| xentek | http://www.wphardcore.com/2010/5-tips-for-using-ajax-in-wordpress/ |
| xentek | its actually very straight forward once you get the pattern down |
| zorzar_ | hey, what's the difference between getting posts via query_posts() and the loop in index.php? in the index.php i get post-teasers, is there a way to get the same output like on the index page but on a complete seperate page by including wp-blog-header.php? at the moment i can only get full posts or the_excerpt which isn't exactly what's on index.php |
| brianrichards | Durchfall: thanks |
| Durchfall | np |
| rainrain | xentek: now am getting "Call to undefined function get_post_meta()" maybe it's again to do with $.ajax like kawauso was saying ? |
| rainrain | what is the best way to provide a button or link on the front end that calls a function ? |
| FirstSgt | wtf. Why does $wpdb->update($wpdb->prefix."cmm_logindata", array('active' => 'Y'), array('id' => $_GET['lid'], 'password' => $_GET['key'])); .... turn into $wpdb->last_query : UPDATE `wp_cmm_logindata` SET `active` = 0 WHERE `id` = '113' AND `password` = '445bb366989740352a9e69bf1478315462489dea'; |
| FirstSgt | does anyone see anything wrong with that? |
| FirstSgt | ... |
| zorzar_ | a |
| zorzar_ | rainrain: what do you want to do? |
| rainrain | zorar_: i want a list of posts in the front end - each displayed with a link or button to the right to enable deletion ( but the delete code needs to be accompanied with some other code) - is this not commonly done? |
| rainrain | zorar_: was thinking of having a form for each post with the submit button reloading the page and using isset ? |
| zorzar_ | rainrain: can you show me your code please? |
| rainrain | would just love to know what the standard way(s) of doing something like this would be ? |
| zorzar_ | rainrain: did you read xentek's links? |
| rainrain | no - i havent done it yet - i was using ajax and it was causing multiple issues |
| foomarks | I have a lot of grouped categories: grandparent -> parent -> child. I want to list all the parents, but not the children. How do I do this with wp_list_categories? |
| rainrain | zorar_ not fully read yet - i am not great on ajax and was wondering if there was a better way of doing this simple thing |
| zorzar_ | rainrain: i wouldn't delete posts from the frontend, the backend is where most people do this ;) |
| rainrain | i know i'ts a bit complicated but is it not possible ? |
| rainrain | ... i mean complicated to explain why i would want to do this |
| zorzar_ | rainrain: shure it is |
| zorzar_ | rainrain: possible |
| rainrain | zorar_: what would be the best way |
| rainrain | zorar_: i assume i'd have to choose between either a link or a form button - and a link would imply using ajax--- correct ? |
| zorzar_ | rainrain: if you do a ajax request to you plugin php-file you have to be shure you load up everything wordpress related. this can be done by importing wp-blog-header.php |
| zorzar_ | rainrain: well you can't POST using a link but you could use GET params with a link |
| rainrain | right- never used GET really - i might try that then because i'm not at all comfortable with ajax yet - only looked into it to get the funcion running off the link |
| alk | rainrain: have you looked at jQuery |
| rainrain | zorar_: gotta go here - sorry to be rude thanks for your help |
| rainrain | zorar_: will try out the GET |
| alk | that's a nice way to do ajax |
| rainrain | thanks alk - that's what i was doing |
| zorzar_ | rainrain: i think including/requiring wp-blog-header.php will solve your problems |
| goudaface | hey all. any idea how i would add a unique class to the menu item directly following the current menu item? |
| fris | what is rainrain trying to do |
| DaydreamA | hello everybody! i've got a problem with the login from new users, i've added. login via "admin" is no problem, but when i want to log on with a new user and password, it shows me the dashboad. when it want's to load news etc. it prints the login-form in these field. thats it. i can't work with other users. i'm using the new wordpress version. any hints? |
| goudaface | DaydreamA - did you do anything to customize your install? |
| DaydreamA | goudaface: i've installed nexgen-gallery and SMF2WP |
| DaydreamA | and my apache-error-log is silent :-/ |
| goudaface | DaydreamA: if you deactivate those plugins do you still get the login-forms showing? |
| goudaface | DaydreamA: any chance you could share a screenshot too? |
| DaydreamA | goudaface: ok i'll try with deactivation ... just a second |
| DaydreamA | doh! |
| DaydreamA | :-/ |
| DaydreamA | shame on me |
| toscho | hiho |
| DaydreamA | goudaface: thanks. it's the SMF2WP-Plugin ... |
| goudaface | DaydreamA: cool. gotta hate it when a plugin screws with your dashboard. |
| goudaface | you might try buddypress for forums? |
| FirstSgt | why is wpdb->update changing my values ?! |
| goudaface | i'm sorry, bbpress |
| DaydreamA | goudaface: well i think i'll have to ^^ thought SMF would work fine, and i like the idea of a "standalone"-forum. |
| Kawauso | FirstSgt: sanitizing? |
| http_Hikari_WS | which $_SERVER variable am I able to get the #anchor part of a URL? |
| Kawauso | http_Hikari_WS: it's not sent |
| http_Hikari_WS | Kawauso: sent? |
| toscho | http_Hikari_WS The browser doesnt tell the server about the anchor. |
| http_Hikari_WS | so, how can I retrieve it? |
| toscho | http_Hikari_WS Per Javascript. |
| http_Hikari_WS | ah :( |
| vbena | hello |
| leks | there a way to show posts from two categories without writing a new loop? something like /category/cat1+cat2/ ? |
| vbena | :hlin |
| vbena | has anyone played with a child theme of twentyten? |
| toscho | vbena: You may get better answers by just describing your problem. |
| Kawauso | 1 hour for 700mb, the joys of DSL... |
| http_Hikari_WS | is there a global variable equivalent to $numpages to know how many comment multipages we have? |
| coldhost | can someone help me up with a weird thing |
| coldhost | http://favorta.com/blog/ |
| coldhost | whatever post i click |
| coldhost | it takes me to the first post |
| coldhost | :( |
| alman | is there a plugin that you can put in the sidebar that will do the following. Display preview images taken from the posts and rotate them randomly. When you click the image it goes to that post -- or when you do a rollover on a text link (recent posts) it shows the image from that post? |
| Revolt | ive uploaded a favicon.ico to my webspace, how to i actually implement it into my page now :/ |
| Kawauso | Revolt: if it's in root, then most browsers should pick it up automatically, but you can use the shortcut icon <meta> tag for it too |
| leks | <link href="/path/to/your/favicon.ico" type="image/x-icon" rel="icon" /> |
| PierreMinik | So I made 2 .po and 2 mo. files for my theme and I'm using 2 languages on the front end, how do I make it load the other .po file when the WordPress language is set for only one of them? |
| Chien^andalou | is wordpress able to use the included jquery lib instead of the external one? (if so: how?) |
| Revolt | can someone tell me if the favicon works then? www.nxpaintball.co.uk think it may just be a cookie issue for me ? |
| Revolt | should be a blackish logo with "NX" |
| leks | Revolt: you want /favicon.ico not /public_html/favicon.ico. also you want <html> and <head> elements. |
| http_Hikari_WS | ok, I set to have 5 comments on each comment page, and post has 26 comments, why do I keep having only 2 pages, 1 with 15 comments and the other with 12? |
| vbena | you're right :toscho, my problem is that I want to add a sidebar to a twentyten child theme I made, since it comes standard with two sidebars. But My question is...do I need to make a new function or can I just copy the register sidebar function and then just add the additional sidebar to the template or o sidebar.php |
| leks | http_Hikari_WS: you looking at comments+trackbacks count? |
| http_Hikari_WS | no trackback |
| toscho | vbena You can reuse the existing code, your second option. |
| Revolt | leks how u mean html and head elements? :S sorry im total noob |
| makeshift | where in the css style sheet do i edit the way my text looks when i make a post? i'd like to make the text 14px and add some padding. |
| vbena | oh, and then just add that code to my new functions.php file in my childtheme? |
| vbena | I guess this is what threw me off: (message in functions.php file): * To override twentyten_widgets_init() in a child theme, remove the action hook and add your own |
| vbena | * function tied to the init hook. |
| leks | Revolt: the basic layout of an html file is <html><head>[title and meta and link elements]</head><body>[content to show]</body></html> and you're missing that first <html><head> |
| makeshift | i searched for entrytext in style.php nothing came up. what in the style.php normally controls the way text looks in a post? |
| Revolt | ah ok |
| Revolt | work now ? :p |
| toscho | vbena Oh, I see. Copy and rename twentyten_widgets_init() in your own functions.php and call add_action( 'widgets_init', 'my_new_twentyten_widgets_init' ); |
| toscho | vbena: Dont forget remove_action( 'widgets_init', 'twentyten_widgets_init' ); |
| leks | Revolt: look at your HTML. you have two <meta>s and a <title> before your <html><head> |
| Revolt | fixed but it still aint showing on mine |
| Revolt | someone else said it workin on theres ^_^ must be cookies? |
| Kawauso | Revolt: restart your browser |
| Revolt | i just did :'( |
| Revolt | and deleeted cookies etc |
| Revolt | works in firefox, dont mind if it dont work for me does for everyone else, cheers guys :) |
| Revolt | ~*hugs leks* |
| vbena | :toscho, oh that's it? ok, cool! thx...got a little confused by that :-) |
| toscho | vbena Yeah, the original function looks a bit noisy and confusing. |
Popular searches: