logo
IRC Archive / Freenode / #wordpress / 2010 / April / 24 / 3
obert-
Bolkonskij multiple loops
maxaud
obert-: I would create a page template that uses get_categories and loops through the returned array creating a query displaying the most recent X number of posts for each of them
that was meant for Bolkonskij
Bolkonskij
Hm
setht
maxaud: all plugins disabled. the function __popular_posts is coded in the functions.php template file sometimes 2 or 3 times. I could manually remove them just dont know if theres an easier way?
maxaud
setht: you'll receive errors so long as their is more than one of the same function defined
setht
how can I specify WP_DEBUG but only display E_ERRORS? php error_reporting gets overwritten
maxaud
their = there
setht
np ill manually fix those
obert-
damn previous_posts_link,i never get it works in the whole site at first try
previous_posts_link('prev','0'); is it ok in category.php?
ansimation?
ansimation
i dont see why not
Bolkonskij
maxaud|sleep: Thanks, I got it working nicely with get_categories and get_posts.
obert-
ansimation> cause it no shows links
previous_posts_link -- previous_post_link i never remember it
grr
<?php previous_post_link('%link', 'Prev', TRUE); ?> in posts, previous_posts_link in permalink?
uarf
ts
sunil00
hi wordpress , i have been applying for gsoc so can i know any clue for getting accepted or rejected
?
http_Hikari_WS
what's gsoc?
coax
http_Hikari_WS google summe of code
according to google =P
jmut
ls -la
oops. sorry
on vanila 2.9.2 I get Fatal error: Call to undefined function wp() Any clue?
got it whats wrong :) thanks I had empthy wp-config.php
phrozen77
whats the best way to put /wp-content/ and /wp-content/uploads/ on their own subdomain to speed up loading times?
MrDudle
easy
just tell wordpress that the uploads folder is a specific domain etc
also would that really speed up load times?
phrozen77
it should - browsers would (should?) treat as a different host and request in parallel
Viper007Bond
phrozen77: set up a subdomain in some folder somewhere. go settings -> misc and enter the full path to that folder and then the proper url
i do that for one of my sites as the main site is apache and the static.domain.com is nginx
works great
phrozen77
well, both are nginx so it'll be fine if someone decides to pound it into oblivion
but sadly, browsers do not do this
Viper007Bond
don't forget the additional dns lookup though
phrozen77
hm, that takes care of wp-content/uploads
Viper007Bond
moving wp-content is totally possible, but many, many plugins are coded like crap and won't play nice if you move them
i wouldn't bother
phrozen77
mhmm chances are that with 45 plugins _something_ will go wrong
:P
MrDudle
45 0.o
phrozen77
any thoughts on compressing images to css sprites?
from what i gathered this could (is?) counterproductive since it'll wait until *all* images are loaded (since it'll be *one* sprite)
Viper007Bond
phrozen77: served as one image and gzip'ed is supposedly faster. supposedly.
phrozen77: there's plugins that'll automatically sprite your blog
phrozen77
yeah, i know
i just wonder if it's worth bothering
Viper007Bond
(Action) shrug
s
phrozen77
then again.. you got the problem that it *might* load faster (in the end) but rendering the site will slow down
Viper007Bond
MrDudle: /shrug i have 50 activated at the moment
MrDudle
0.o
i have no idea why so many
Viper007Bond
why not?
it doesn't matter
MrDudle
Viper007Bond: i just can't think of what they could all be
alex88
hi guys, i'm trying to write a translate plugin, those that i've tried translate evrything, also the highlighted code os it's not working fine for me..
phrozen77
there you said it
_you_
:P
alex88
i've done the post translate except what the user want..now i'm trying to make the url_rewrite rule to set the language..
every language code has 2 chars.. so it's easy to use something like site.com/nl/permalink, but how can i handle it?
Viper007Bond
alex88: that sounds tricky. site.com/permalink/nl/ would be significantly easier
alex88
Viper007Bond: ok that's also possible, but after the rule.. which page should i call?
or, is there a simplier way to just get the desidered language to translate?
Viper007Bond
alex88: not sure if this is the best way to do it or not, but this plugin makes site.com/permalink/print/ that outputs a printable version: http://wordpress.org/extend/plugins/wp-print/
alex88
i mean, create a link to a page, then the plugin just do something like if(isset($_...('translate_to')) -> translate
Viper007Bond: ok i'll search in source code..thank you
Viper007Bond
just make a rewrite rules that does the /nl/ into -> ...&lang=nl and then filter the_content based on $_GET['lang']
alex88: there's also quite a few multi-lingual plugins out there already, so it'd probably be worth seeing how they do it
and no, i don't know the names of them as i only speak english
alex88
Viper007Bond: some plugins just get the url to their plugin php, then translate permalink with google and post google page.. so it sometimes break template
Viper007Bond
alex88: no, there's plugins out there that have you type out your post in multiple languages and displays them based on the user's perference
another solution is to not mess with the urls (have it always be site.com/permalink ) and set a cookie as to the user's language perference
then display the content based on the cookie
i.e. cookie = nl, replace it with nl version, etc.
alex88
Viper007Bond: does it work with google? i wanted to make links so google will indicize also the translated posts
Viper007Bond
oh, no
yeah, you'd need different urls for that then
but there's plugins for that
dunno if they work with the latest version of wordpress or not though
.codex Multilingual WordPress > alex88
Viper007Bond
alex88: a few plugins at that url
at least one of them works with 2.9 and 3.0
alex88
Viper007Bond: well, if i can handle the current wordpress rewrite rules, i can simply add to the destination url the language to translate
Viper007Bond
alex88: why not use one of the existing plugins?
alex88
btw, let me search more.. :)
Viper007Bond
alex88: read that link ;)
alex88
Viper007Bond: i use geshi highlighter, and i cant translate also the code..
Viper007Bond
alex88: read that link ;)
alex88
Viper007Bond: those plugins translate evrything, also code..
Viper007Bond: reading.. :)
Viper007Bond
alex88: as mentioned there, there are multiple solutions. the most popular ones are that you write out your post yourself in multiple languages and the plugin takes care of the rest
alex88
Viper007Bond: i know, but i don't want to do.. i'm italian and my english is not good enough to write all articles also in english.. and with translate i can also do what i want in every language..
btw, here is an example of simple url rewrite http://wordpress.org/support/topic/333848
just need to add add_rewrite_endpoint
Viper007Bond
.codex Global Translator > alexmglover
Viper007Bond
er
.codex Global Translator > alex88
Viper007Bond
automatic translation and does site.com/nl/permalink
alex88
Viper007Bond: what has site.com/nl/permalink to do with that page?
i've read it
Viper007Bond
whoops!
.plugin Global Translator > alex88
doc-bot
alex88: http://wordpress.org/extend/plugins/global-translator/
Viper007Bond
wrong bot command :)
alex88
mmmhhh....
i'm looking at the code..so complex..
Viper007Bond: shouldn't be simplier to find the current permalink url rewrite, add at the beginning the language, and add the language to the url?
Viper007Bond: i mean, if it's ^permalink$ url change to ^language/permalink$ url?translateto=language
how can i get the properties?
global wp_rewrite then?
nkuttler
yay, http 500 on wp-admin/
wtf is with shared hosts not having an error log...
alex88
nkuttler: a bad shared hosts..xD
MrDudle
nkuttler: i don't think i could go back to shared hosting
nkuttler
MrDudle: it's not mine obviously :/
alex88
MrDudle: what you have now?
nkuttler
vps
er, me
alex88
i've vps too.. where you've it?
MrDudle
vps
rapidxen.net
alex88
i'm waiting some month to the actual contract to finish and i rent at keyweb.de
Northwoods
i've vps too @ godaddy
MrDudle
(Action) is gonna lose it at his mouse
alex88
i've searched a lot and i think that keyweb is very cheap for what offers
for example i'm going to buy 50GB HDD, 768MB RAM, 3000GB/month at 9.90¬/month
how can i access to a property of wp_rewrite class?
nkuttler
ok... installing 2.8, uprading, adding plugins worked...
MrDudle
aren't we on 2.9.2 or something
nkuttler
hrm. still getting 500s on automatic upgrades though :/
obert-
again..i would to use one general template to show a list of posts from a specific cat per page
but seems that i must to use a class per wished page with query_posts(catname), right?
nkuttler
great. wp 2.8 works, 2.9 has random errors. i guess 2.8 for that client
newkind
hi
does any one knows if there's a conditional tag or anything that would let me check if the registration is open ?
or the "anyone can register" ?
Kawauso
it's probably retrievable with get_option(), one sec
newkind: get_option('users_can_register')
nkuttler
amazing. 1und1 has a proprietary .htaccess rule to use php5 instead of php4. and they must have a patched php4 which is more broken than the default one...
newkind
ok awesome
thnks :)
obert-
brrr <span class="currency_converter_text"> (</span> is the default output of wp_list_categories('show_count=1&hide_empty=1?
Kawauso
obert-: doesn't sound right no, might be a plugin filtering the output?
obert-
how and why:)
qtranslate? mm nah
dunno.
but very ugly.uhmf
domcat
is it possible to order posts by custom field parameter?
ShawnRisk
domcat: yes
domcat
I found it :)
orderby=meta_value
ShawnRisk
:)
jmut
nextGen gallery. any way to upload zip files directly...not one by one..cause I have to upload some .zip files to ~200 Wordpresses having nextGen gallery
nkuttler
jmut: that sounds like a question for the plugin dev or a paid consultant
ShawnRisk
jmut: asking the plugin dev first is the correct way
MrDudle
jmut: i believe you can do that with nextgen
jmut
nkuttler: ShawnRisk MrDudle thanks. sorry
MrDudle
no worries
jmut: iirc
and i'm not necessarily
when creating a gallery with nextgen
nkuttler
jmut: there's no need to apologize.
MrDudle
you can specify a directory to pull images from
or you can upload a zip
WDS-Brad
you can also upload multiple files at the same time in NextGen
nkuttler
yeah, but afaik there's nothing that triggers an import when you upload a zip via ftp etc
jmut
I have prepared all images in zip files...question is howto do it without the web..programatically. but heading for nexgen docu and forum
MrDudle
jmut: upload to a directory
extract the files
problem solved
virtually any web server can do it
jmut
MrDudle: isn't it writing stuff to db ? thumbs etc?
nkuttler
MrDudle: he has ~200 blogs
MrDudle
oooooooh
i thought he said ~200 pics
jmut: you can specify when creating a gallery which directory to pull images from
jmut
MrDudle: thanks. I think this will help else will be done with rsync or something
coax
thats pretty crazy
why do you need 200 blogs?
jmut
SEO ;)
MrDudle
let me guess
google bombing?
jmut
content is unique and nice . will definately not name it spamming or anything
anyhow. thanks a lot for help
MrDudle
if you have 200 unique ones
kudos
coax
you need to have the blogs on different ips at least
otherwise links might not count
jdingman
let's leave SEO discussion at the door, thx