Search Results for 'code'
-
AuthorSearch Results
-
June 10, 2007 at 8:29 pm #56528
In reply to: Strut Your bbPress!
Swap
MemberBlog: http://www.swaroophegde.com/
Forums: http://www.swaroophegde.com/discuss/
Lotsa useful plugins + custom coding = perfect bbpress
like5
MemberHas been relaunched new design
http://www.like5.com is in beta
June 10, 2007 at 7:02 pm #49950In reply to: En español
Covi
MemberYa vi la web, está muy bien. ¿Estas poniendo los formularios de login del bbpress no?
Están por defecto, aún no he intentado un “único login”, primero integración visual ^^
Por cierto, emmm:
-> ahhhh, no me fije, por defecto venia BBLANG sin el dir.
BBLANG es una constante y BBLANGDIR otra
La primera indica el lenguaje a usar codificado como (ABREVIATURA_abreviatura) y la segunda indica el directorio donde está ese archivo, aunque si en la segunda no se usa la variable $mofile, que es la que guarda el lenguaje y se especifica el nombre del archivo da igual
S!
June 10, 2007 at 1:06 pm #49949In reply to: En español
ganzua
Member” Aquí: define(‘BBLANG’, ‘/wp-includes/languages/es_ES.mo’);es BBLANGDIR
“
-> ahhhh, no me fije, por defecto venia BBLANG sin el dir. Lo he probado y no da errores, tengo que copiar todavía algun .mo de BBPress en castellano a ver si funciona.
“Conociendo los sistemas se pueden hacer bastantes cosas apañadas ^^, este es el sitio donde lo tengo integrado y en breve intentaré un único login:
http://www.laguardiadejaen.com/web/foro/”
Ya vi la web, está muy bien. ¿Estas poniendo los formularios de login del bbpress no?
fel64
MemberYes, I’m fairly sure that’s where the problem is. Anything in your error logs?
Luckily once this is fixed if you simply edit any non-synced posts and save them they will be synced
Unfortunately the topic time will be whatever time it is when you first saved that post.
Grab 2.2, not only might it make things work for you but it’s always safer to upgrade anyway. I don’t think that the 2.1 branch will be maintained, and there’s a very serious XML-RPC issue in 2.1.2 that leaves you very vulnerable (note 2.1.3 isn’t worth upgrading to as I don’t think it’ll get more fixes).
June 10, 2007 at 10:16 am #56618In reply to: Reverse the display of the messages
fel64
MemberPravin seems to have a solution. The moderators would have to add a section to the profile and then conditionally change the code to Pravin’s if that’s what the user set. If Pravin has the solution, everything else is trivial (in complexity), but it will mean some coding and modification of core files for someone.
June 10, 2007 at 10:13 am #58301In reply to: favorites in profile
fel64
MemberI think that’s a tricky one. The code block that makes the output of favourites is below, but since it checks
if( $topics )
the actual getting of favourites I guess happens much earlier on in bbPress’ execution. Can’t think how you’d get around that easily.<?php if ( $topics ) : ?>
<table id="favorites">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Freshness'); ?></th>
<th><?php _e('Remove'); ?></th>
</tr>
<?php foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td class="num"><?php topic_posts(); ?></td>
<td class="num"><small><?php topic_time(); ?></small></td>
<td class="num">[<?php user_favorites_link('', array('mid'=>'x'), $user_id); ?>]</td>
</tr>
<?php endforeach; ?>
</table>June 10, 2007 at 6:56 am #49946In reply to: En español
Covi
MemberAquí:
define('BBLANG', '/wp-includes/languages/es_ES.mo');
es BBLANGDIRAdemás la ruta debe ser la correcta a tu archivo, seguramente no tire ningún error para no caerse el sistema y solo: no te traduce.
Anieto es un crack
PD: Siento no poder mirar nada más detenidamente.
sneakym
MemberFix for the check boxes worked. I can see the options now in the post.
with regards to the backing up of databases/error logs, it isnt that serious. The posts still post to WP and all, but, there is no post confirmation page, the page just goes blank. It seems like there is an interruption between the post being published and confirmed that is caused by bbsync. The interruption is probably somewhere in the code where the post is picked up by bbsync and sent to bb.
WP 2.1.2 and 1.o BB.
Thanks again!
June 10, 2007 at 6:07 am #58303In reply to: Need Help Finding Location Of Function
jaruff
MemberThanks mate. This is really the first time I’ve dug into the bbPress code, so I’ll definably take a look at the GREP command.
June 10, 2007 at 6:00 am #58302In reply to: Need Help Finding Location Of Function
howtogeek
MemberIt’s in bb-includes/pluggable.php somewhere around line 116 (in the version I’m using)
You should read up on the grep command
fel64
MemberDid you back up your databases? Then you can restore them until it’s figured out
Have you checked your error logs? I’d expect a fatal error if it goes blank. That could really help.
No problem, did it for myself. Just sorry it’s not working for you yet!
June 9, 2007 at 2:52 pm #58295In reply to: Bandwidth usage vs phpBB
Trent Adams
MemberIn my opinion it would require less bandwidth as this was the first thing I noticed when I switched over from phpBB to bbPress myself. I would imagine this is due to the fact that bbPress is less ‘bloated’ with code in the core, but if you use a bunch of plugins, this can get you back up again. The database structure is less and the number of calls is less, but that has nothing to do with bandwidth.
The data served is about the same.
I think it is less, others have a comment on this?
Trent
June 9, 2007 at 2:02 pm #49945In reply to: En español
ganzua
MemberUnos links en castellano sobre wordpress;
http://www.planetawordpress.org/
y aquí un nuevo foro sobre wordpress hecho en bbpress
a ver si ponen un apartado específico;
June 9, 2007 at 1:59 pm #49944In reply to: En español
ganzua
MemberHola otra vez!
“Opino que… si te falla una función: añade otra tuya o arréglala a tu gusto, los “hacks” son chungos y muy al estilo de phpbb pero a falta de pan…”
-> ya me gustaría saber hacerlo
Como mucho llego a arreglarmelas para modificar código ya hecho.
“”Pero que bbpress ni wordpress traigan nada “de casa” me parece perfecto, porque lo único que se consigue es ensuciar el sistema… croe yo, por muy bien hecho que esté se hace complejo y se engorda con cosas que los mismo otro no necesita.”
-> si, opino que es un foro muy para geeks
A mi se me está haciendo infernal
“hay muchos CMS completos y complejos, Joomla, Drupal, Xoops..”
en estos no se pueden integrar los logins ¿no?. En el Drupal he visto soluciones duplicando los logins pero eran para el phpbb.
He probado esto;
define(‘BBLANG’, ‘/wp-includes/languages/es_ES.mo’);
y da el mismo error de streams;
Fatal error: Cannot redeclare class CachedFileReader in
wampwwwwordpressbbpressbb-includesstreams.php on line 163
June 9, 2007 at 12:54 am #49943In reply to: En español
Covi
MemberPor cierto…
Personalmente, me niego a traducir “archivo por archivo” un sistema
, no es nada profesional gg y me recuerda a los tiempos de php-nuke, que asco
Opino que… si te falla una función: añade otra tuya o arréglala a tu gusto, los “hacks” son chungos y muy al estilo de phpbb pero a falta de pan…
MISMA TRADUCCIÓN:
No lo he probado, pero imagino que:
Abrir el .po, por ejemplo, de WordPress y añadir la traducción del .po de bbpress.
Cambias las rutas a los archivos de referencia de uno u otro sistema.
Generas un nuevo y único .mo.
Usas el mismo .mo desde ambos sistemas cambiando las rutas de la variable $mofile o la constante BBLANGDIR, ruta:
/* bb-includes/languages/l10n.php, Línea 72: */
$mofile = BBLANGDIR . "$locale.mo";En WordPress:
/* wp-includes/... */
$mofile = ABSPATH . LANGDIR . "/$locale.mo";->Hola! ¿Como se configura bbpress para que lea el archivo .mo de wordpress?
Sustituye la constante BBLANGDIR por la ruta al archivo .mo de WordPress:
/* bb-includes/languages/l10n.php, Línea 72: */
$mofile = BBLANGDIR . "$locale.mo";o
define la constante en tu config.php, por ejemplo y si tienes el foro dentro del directorio de tu wordpress:
define('BBLANGDIR', '../wp-includes/languages');
El mayor problema o trabajo es lo dicho anteriormente, hay que cambiar las rutas de los archivos de referencia de cada definición (nada que una macro de reemplazo no deba poder hacer ^^).
June 9, 2007 at 12:36 am #49942In reply to: En español
Covi
MemberEmmm… creo que todos tenemos las mismas inquietudes y las mismas necesidades…. vayamos por partes:
La traducción de los meses creo que no te va porque no está activa, es decir, el tema anteriormente comentado: Al intentar integrar BBpress falla la inclusión de los archivos streams.php y el otro que no recuerdo, así que imagino que no los habrás incluido, por lo tanto no traduce, función:
__e()
.De igual manera, si has traducido los archivos a mano y has quitado la función de traducción no traducirá como es lógico, es que no sé si te entiendo bien en ese problema.
A mí me funciona bien sin incluir las funciones de wordpress, es decir, sin incluir el wp-head.php y tal.
Y, en concreto, creo que esa función falla porque está mal escrita, ‘F’ es el mes para un datetime() -creo-, pero la traducción se realiza antes de la salida de la función: el mes “June” en este caso, así que no sabe traducir “F”. Pero el .mo de bbpress incluye la traducción de meses, al menos el que yo uso.
—
Respecto al resto de temas… hoy no he hecho nada más que pensar en eso durante el curro ^^ ggg, un único sistema de login porque la verdad es un poco follón, igual me ocurría con Vanilla de lussumo.
No sé si hay algún plugin de integración que desactive uno u otro y tal, pero de nuevo la técnica la vieja le dice a uno (que es mu cutre siempre
) que la solución es desactivar y redireccionar.
Desactivar para el caso en que fallen las redirecciones y redireccionar a un único formulario. No lo creo muy complicado pero hay que ponerse :S
—
Sobre el tema de bbpress… umm
Es complicado, hay muchos CMS completos y complejos, Joomla, Drupal, Xoops.. pffff, estos tendrán lo que buscas.
Si yo elegí bbpress es porque me gusta mucho WordPress, mucho mucho, sobretodo la filosofía y ya lo conozco bastante así que editar bbpress será (es) muy parecido.
Para mí WordPress es perfectamente válido como CMS, completo eh… y sino existe el plugin que necesito hago yo los arreglos o uno, que por cierto soy bastante enemigo de plugins “tontos”, es decir, todo un plugin para añadir una imagen y un enlace como el ejemplo del meneame.
Pero que bbpress ni wordpress traigan nada “de casa” me parece perfecto, porque lo único que se consigue es ensuciar el sistema… croe yo, por muy bien hecho que esté se hace complejo y se engorda con cosas que los mismo otro no necesita.
Los plugins son fáciles de instalar, personalizar y usar… no veo ningún problema, añaden funciones temporalemente, es perfecto
Yo optaba por Vanilla de Lussumo, me gusta muchísimo y su código es de lo mejorcito que he visto, pero la integración de la base de datos me parece mejor con bbpress que se acerca y mucho a Vanilla.
Ambos hacen gala de los mismo: elegante, simple y bonito, en ambos existía el mismo problema, qué gestión de usuarios usar y en ambos lo suyo creo que es una desactivación que yo no sabré hacerla elegante pero que creo funcionará ^^
Y otro tocho…. tengo que dejar este foro si no aporto nada
fel64
MemberThis is more like it! Had to use bb_set_current_user() to make that work if anyone’s curious. I also found that adding $bb_cache to the list of globals removed an error similar to the one I was getting with $bbdb (so adding
global $bbdb, $bb_cache
is worth a go if it gives an error as in post #1).Should work now, it’s generally nicer plus you can set the forum and excerpt length on a per-post basis if you want to. Hopefully stupidity on the scale above is avoided.
June 8, 2007 at 6:06 pm #1938Topic: email registrations/password resets not sent
in forum Troubleshootingmaphew
MemberHi, bbPress appears to run well on the popular http://sourceforge.net/, with the notable and problematic exception of emailing users passwords, both on registration and for password resets.
A thread from last year posted a workaround for new users, bypass email and show users their generated password in the browser. http://bbpress.org/forums/topic/82?replies=14#post-349
However the patch no longer applies, or at least I couldn’t see how and where to apply it. There seems to have been quite a bit of code change in the last 7 months, and the fellow who posted that patch seems to have chosen a different route as the forums are no longer there on his site.
Even if this patch could be updated to apply to the current bbPress code base however it would not deal (I think) with the also much needed function of resetting passwords.
Sourceforge has posted a workaround for projects who need to use email registration, basically queue the messages up and fire them off in a cron job. http://sourceforge.net/docman/display_doc.php?docid=4297&group_id=1#email
I personally would be happy to see that implemented in bbPress, as a plugin since it’s SF specific, however I’ve seen a number of other threads which indicate a more generic solution would be useful:
- http://bbpress.org/forums/topic/807?replies=6#post-4906
- http://bbpress.org/forums/topic/1213?replies=2
- http://bbpress.org/forums/topic/1089?replies=2#post-6870
Will someone please help? I can’t write the code to make it so, but am willing to trade time with someone who can. Or perhaps you’d like a nice map or poster from the Yukon? Just let me know what you’d like.
Thank you for your time and reading this far,
-matt
—
For what it’s worth, the scenario that got me started on this was being locked out of my own forum while testing, exactly like this fellow:
http://bbpress.org/forums/topic/770?replies=3#post-4650
thank you Trent for the workaround posted there!
June 8, 2007 at 5:17 pm #57762In reply to: akismet says my API key is invalid, why?
maphew
MemberTrent:
$bb->akismet_key = '12345678'; // Example: '0123456789ab'
but I think drmike might be right.
fel64
MemberI should have tested everything. >_< A new problem’s come up somewhere down the line and new topics are not created. On the one hand it’s not working for me … on the other hand I’m too tired to fix it now.
I don’t advise download until I’ve fixed it.
Crowspeaker, started working on that but it’s been a little disrupted.
Sorry >_<
bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '', , '', '2007-06-08 00:25:43'' at line 4]
INSERT INTO bb_topics (topic_title, topic_slug, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id) VALUES ('Lorem, err, what was it again?', 'lorem-err-what-was-it-again', , '', , '', '2007-06-08 00:25:43', '2007-06-08 00:25:43', 5)June 7, 2007 at 4:12 pm #57721In reply to: One profile page to rule them all
ganzua
MemberI’m trying to find a solution for this same issue and I know that it can be done because it has be done before here;
http://www.babyquestions101.com/signup/
unfortunately I don’t know exactly how. I guess all wordpress login links has been removed and replaced for bbpress login. The problem is that you lose access to wp control panel
and that you are depending completely on the bbpress installation.
I wish we could integrate;
login
profile
avatars
ranks
message counts
signatures
forms toolbars
emoticons
…
I presume there isn’t any project to build a bridge like this, is there any?
June 7, 2007 at 3:32 pm #49941In reply to: En español
ganzua
MemberHola Covi!
Gracias por responder. Una solución que tengo en mente para arreglar lo de la traducción es traduccir archivo por archivo a mano. Esto lo hice en el wordpress, en el que actualmente no estoy usando .mo de traducción (el error de streams.php que comenté lo tengo sin que el wordpress esté usando lenguajes).
Sin embargo preferiria poder usar un .mo de lenguajes para ambos y no se como
Respecto a tu arreglo de las fechas lo he puesto en el template-functions.php y funciona salvo por el nombre de los meses que quedan sin traducir. Aun no me he puesto a indagar donde hay que traducirlos.
Respecto a la integración wp-bb ojalá hubiese un foro específico porque todavía no se que voy a hacer con muchas cosas. Por ejemplo, con el profile y el login, me gustaría usar solo uno, integrado en el template y desde la barra de navegación. Me gustaría poner la misma barra de utilidades en los formularios de wp y bb, ahora tengo un plugin para wordpress, el tinymcecomements y otro distinto para el bb, el quicktags. Me gustaria poner avatares integrados, cuenta de mensajes integrados y rangos tipo phpbb integrados. En fin, integrar un montón de cosas que parece que no se tuvieron encuenta al hacer la integración bb-wp.
Y respecto al bbpress parece que está muy en pañales, la verdad es que estoy intentando ponerlo porque es el único foro medio decente que se pueda integrar con wordpress, pero parece que siguen la misma política que con el wordpress; un foro pelado y plugins para todo si es que alguien los hace. Yo creo que cosas como emoticonos, barra de utilidades en los formularios, avatares… deberían venir ya puestas.
June 7, 2007 at 11:33 am #49940In reply to: En español
Covi
MemberBufff…. arreglado con la técnica la abuela, si alguien se interesa habría que mirar la forma de estandarizarlo o algo así.
Arreglo del template-functions.php, línea 1134:
/* COVI: Localizando date format desde el original: */
//echo "t<dd>" . gmdate(__('F j, Y'), $reg_time) . ' (' . bb_since($reg_time) . ")</dd>n";
$dia = gmdate(‘j’,$reg_time);
$mes = gmdate(‘F’,$reg_time);
$agno = gmdate(‘Y’,$reg_time);
$fecha_reg = “$dia de ” . __($mes) . ” de $agno”;
echo “t<dd>” . $fecha_reg . ‘ (‘ . bb_since($reg_time) . “)</dd>n”;
Sucio pero funca:
http://www.laguardiadejaen.com/web/foro/profile/17
…estudiándolo…
June 7, 2007 at 11:24 am #49939In reply to: En español
Covi
MemberAlguien ha conseguido traducir algunos formatos de fecha??…
En bb-includes, funciones de themes: template-functions.php tenemos alrededor de la línea 1134:
echo "t<dd>" . gmdate(__('F j, Y'), $reg_time) . ' (' . bb_since($reg_time) . ")</dd>n";
la fecha de registro del perfil en formato anglosajón con intento de traducción ^^:
gmdate(__('F j, Y'), $reg_time)
Y aunque tengamos el archivo de localización traducido no va, supongo que la función de traducción “__()” se realiza antes que “gmtdate” y por lo tanto no sabe traducir el valor “F” que aún no es “June” por ejemplo.
He probado de varias formas y nada:
__(gmdate('j F Y'))
gmdate('j '.__('F') . ' Y')Un formato pesonalizado desde el config para usar como:
gmdate(bb_option('cnfdateformat'))
y es casi peor.
No me gustaría usar una fecha internacional:
(d/m/y)
pero por ahora no veo otra solución… alguien tiene algo??Un saludo.
-
AuthorSearch Results