Search Results for 'code'
-
AuthorSearch Results
-
June 11, 2007 at 10:11 pm #53520
In reply to: Plugin: Graphic Display Ranks
fel64
MemberSorry. I meant, replace line 43 (the one that says
include(my-plugins/ranks/config.php)) with this:include_once BBPLUGINDIR . '/ranks/config.php';and see how it works.
June 11, 2007 at 5:29 pm #53519In reply to: Plugin: Graphic Display Ranks
ganzua
MemberI can’t follow you, fel64
I tried to e-mail the plugin author but I didn’t find his email address in his web
fel64
MemberIf you look in FTP, there should be a file just called
error_log, or at least there is for me. Not that familiar with it. Anyway, just open that with a plain text editor and read what it says. There’s probably one in most folders, not quite sure how the errors are distributed to log files so it’s worth looking in root,htdocsorpublic_htmlor similar or in your wp plugins directory. Perhaps someone else can say more specifically? My guess is it would be in your public html folder (or whatever it’s called).It’ll be organised by date, just look for the right time and any errors occuring in
bbsync.php.June 11, 2007 at 4:53 pm #53518In reply to: Plugin: Graphic Display Ranks
fel64
MemberThere should be a constant,
BBPLUGINDIR, that you can use to add an absolute path. Lemme check.[Edit]
BBPLUGINDIRyou can use. You’d do something like this:include_once BBPLUGINDIR . '/ranks/config.php';I think. No linebreak, bb is being odd here. One line. [Edit once more] Nope, it’s the CSS – it’s changed to
overflow: hidden;so it wraps. Why, Trent?! Purrlease can we haveoverflow: auto;back?June 11, 2007 at 2:57 pm #49953In reply to: En español
ganzua
MemberDespues de hacer esto;
define(‘BBLANG’, ‘/wp-includes/languages/es_ES.mo’);es BBLANGDIR
He copiado un .mo del bbpress en el .mo del wordpress y no traduce. Supongo que habrá que hacer algo tambien con el archivo .po que viene aparejado.
June 11, 2007 at 1:03 pm #53517In reply to: Plugin: Graphic Display Ranks
ganzua
Member“Like medden said, presumably: gdr_config.php should be renamed config.php (and needs to start with <?php too).”
-> I made all the corrections before trying ; renaming gdr_config.php, adding <?php and changing gif extensions.
The plugin works fine but when you acces the admin control panel displays this error;
Warning: include(my-plugins/ranks/config.php) [function.include]: failed to open stream: No such file or directory in wordpressbbpressmy-pluginsdisplay-rank-images.php on line 43
More people having the same problem here -> https://bbpress.org/forums/topic/665?replies=2#post-3964
but I thought it would be better to follow the original thread here
fel64
MemberThat’s right, to the best of my knowledge it just needs the user tables to be integrated. I suppose I could actually change it so you can set the account you want to post with, if anyone cares for that?
Sneaky, the only other steps should be to configure the plugin. I need some info on what’s going wrong!
By the way, I prefer lower-case fel64 or just call me Felix.
June 11, 2007 at 9:03 am #53516In reply to: Plugin: Graphic Display Ranks
fel64
MemberLike medden said, presumably:
gdr_config.phpshould be renamedconfig.php(and needs to start with<?phptoo).June 11, 2007 at 12:33 am #49951In reply to: En español
ganzua
Member“aún no he intentado un “único login”, primero integración visual ^^”
-> yo puse login único al configurar (estoy de pruebas aun en el servidor de mi ordenador) y es el menor de los problemas
Los problemas vienen luego porque tienes dos formularios para hacer login y dos profiles. Además cuando haces login desde el wordpress te redirecciona al dashboard/profile del wordpress y esto es algo que quiero solucionar ya que mis usuarios no son precisamente geeks y si les sacas del interface los descolocas. Tengo ganas de ver que haras en tu web
a ver si te copio. Gracias por la aclaración de la constante bblang
June 10, 2007 at 8:29 pm #56528In 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 BBLANGDIR
Ademá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 ^^).
-
AuthorSearch Results