Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,051 through 30,075 (of 32,491 total)
  • Author
    Search Results
  • #49942

    In reply to: En español

    Covi
    Member

    Emmm… 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 :D ) 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 :D

    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 :(

    #58017

    In reply to: bbSync

    fel64
    Member

    This 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.

    http://rapidshare.com/files/36033986/bbsync.zip.html

    #1938
    maphew
    Member

    Hi, 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!

#57762
maphew
Member

Trent:

$bb->akismet_key = '12345678'; // Example: '0123456789ab'

but I think drmike might be right.

#58016

In reply to: bbSync

fel64
Member

I 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)

#57721
ganzua
Member

I’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? :)

#49941

In reply to: En español

ganzua
Member

Hola 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. :(

#49940

In reply to: En español

Covi
Member

Bufff…. 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…

#49939

In reply to: En español

Covi
Member

Alguien 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.

#49938

In reply to: En español

Covi
Member

Ganzua, la cuestión es más o menos esa, al activar la integración con WordPress se incluyen archivos idénticos tanto desde WordPress como BBpress. A mí me ocurre con el primer archivo que se incluye streams.php y a tí con otra función también “redeclarada”, en este caso clase: CachedFileReader.

Esto ocurre porque son archivos necesarios para la traducción, si alguien no traduce el sitio: “BBLANG sin definir, es_EN por defecto” imagino que no se usan.

Tal y como funciona el asunto, la solución inminente sin indagar algo más en el tema es no incluir estos archivos desde alguo de los sistemas, yo prefiero quitarlo de bbpress.

Cómo solucionar la traducción??…

No caigo ahora mismo ^^! , si no incluimos esos archivos desde bbpress me temo que no traduce la aplicación a no ser que… podamos meter el archivo de traducción a mano.

En definitiva, personalmente y hasta la fecha las funciones de WP solo las quería para los templates así que me basta con “alargar” las rutas a los archivos necesarios.

Para las funciones genéricas bbpress usa practicamente las mismas funciones.

Para integración de usuarios no es necesaria: son los mismos.

Para integración de post, etc… se tendrían que hacer a mano y puesto que es la misma DB no es gran cosa :)

Además, el config.php es bastante flexible a la hora de crear variables ;)

…pedazo tocho :(

#53360
Covi
Member

Doesn’t work on my site :___( :

Can’t show on Panel Presentation, doesn’t work with

Theme Name: Refresh

Theme Name: refresh the path of template.

I’m trying it…

PD: Some plugin is required?

Edit1:

After 1 minute …

Checking permissions of path…

LoL, soooorry ^^!

#57826
howtogeek
Member

Ok, this version fixes the issue with spaces in the profiles… it’s mostly a hack, but I haven’t found any issues with it.

<?php

/*

Plugin Name: HowToGeek Functions

Plugin URI: http://www.howtogeek.com

Description: Cleanup functions for bbPress issues

Author: The Geek

Author URI: http://www.howtogeek.com/

Version: 0.0.1

*/

function htg_resanitize( $text, $raw ) {

return preg_replace(‘/[^ ta-z0-9_-]/i’, ”, str_replace(“%20″,” “,$raw));

}

function htg_repermalinkfix($permalink){

return str_replace(” “,”%20”,$permalink);

}

function htg_wp_redirect($location,$status){

global $is_IIS;

if(!stristr($location,’ ‘)){

return $location;

}

$location = preg_replace(‘|[^ ta-z0-9-~+_.?#=&;,/:%]|i’, ”, $location);

$location = wp_kses_no_null($location);

$strip = array(‘%0d’, ‘%0a’);

$location = str_replace($strip, ”, $location);

if ( $is_IIS ) {

header(“Refresh: 0;url=$location”);

} else {

if ( php_sapi_name() != ‘cgi-fcgi’ )

status_header($status); // This causes problems on IIS and some FastCGI setups

header(“Location: $location”);

}

return false;

}

add_filter(‘wp_redirect’,’htg_wp_redirect’,1,2);

add_filter(‘bb_repermalink_result’,’htg_repermalinkfix’,1,1);

remove_filter(‘bb_user_sanitize’,’bb_user_sanitize’);

add_filter(‘bb_user_sanitize’,’htg_resanitize’,1,2);

?>

#57824
howtogeek
Member

I created a plugin that allows usernames with spaces… not in the most elegant way, but it seems to work for me.

<?php

/*

Plugin Name: HowToGeek Functions

Plugin URI: http://www.howtogeek.com

Description: Cleanup functions for bbPress issues

Author: The Geek

Author URI: http://www.howtogeek.com/

Version: 0.0.1

*/

function htg_resanitize( $text, $raw ) {

return preg_replace(‘/[^ ta-z0-9_-]/i’, ”, str_replace(“%20″,” “,$raw));

}

function htg_repermalinkfix($permalink){

return str_replace(” “,”%20”,$permalink);

}

add_filter(‘bb_repermalink_result’,’htg_repermalinkfix’,1,1);

remove_filter(‘bb_user_sanitize’,’bb_user_sanitize’);

add_filter(‘bb_user_sanitize’,’htg_resanitize’,1,2);

?>

#58002
jetson
Member

Hehe, hi fel64. ;-) Thanks for your reply!

I just put an underscore at the end of the folder name and it worked.

Yes, there wasn’t any change before concerning my language problem. I tried to switch to the spanish language file but it doesn’t get recognized by bbpress, too. No change.

#58001
fel64
Member

Dear individual,

that is strange. What did you change the name of that made it work? my-templates to what, or was it the name of the forum?

There is no such DB entry as far as I know.

There was absolutely no change just before bb switched to english?

#57997
ganzua
Member

Thanks fel64!

I won’t give up bbpress by now :)

Regarding Quicktags, can you use it for wordpress as well? I’d like to display the same forms in both, wordpress and bbpress.

#57996
fel64
Member

Not as far as I know. The worst is behind you, and if you’ll be administrating the site in the future then it’s a good idea for you to do this yourself anyway. Cursing about implementing it now will save you a lot of cursing in the future when something breaks, because you’ll roughly know where things are and how they work. Everything you’ve mentioned there has been done, though, or has a plugin for it. Plus we’re willing to help.

I recommend Quicktags over tiny mce, but it’s a personal thing really. :)

#57994
ganzua
Member

“It is just nice to know where things are going if you are interested!”

-> you’re right :) I’ll join

#57992
ganzua
Member

Hi Trent! Thanks for your message;

Dou you mean this list? -> https://lists.bbpress.org/mailman/listinfo/bbdev

I am not a developer anywhere, just a bb/wordpress theme clumsy modifier, not sure if I should join. :)

#1932
ganzua
Member

I integrated wordpress and bbpress; I succeded in displaying wordpress header, footer and sidebar in bbpress, and user logins are integrated which is great :)

However, each bbpress modification is being a big step for me and I’m finding quite difficult to add things like emoticons beside post-forms, tiny mce in forms, avatars, ranks, quote buttons…

Is there any theme with this kind of stuff already implemented?

#1931
ganzua
Member

Feedback for bbpress developers;

Regarding wordpress-bbpress integration, don’t you think wordpress and bbpress projects are starting to overlap?

I’ve been trying to integrate wordpress and bbpress and now I have;

* two login forms and profiles

* there are some css properties in the style sheet that are defined with same names that in wordpress; h2, h3, .alt …

* Afer adding <?php require_once(‘/wamp/www/wordpress/wp-blog-header.php’); ?> for integration, I load wordpress functions again if accessed the web through wordpress frontpage.

* Some times I’d like to use the same plugins in both; wordpress and bbpress, or any other feature/modification, so I need to duplicate the work. You activate a wordpress plugin and you have to find a similar plugin that could work in bbpress or any workaround.

I wonder if developers are considering a bbpress version as a plugin for wordpress :)

imho

#57981
ganzua
Member

Thank you very much Schmuck :-)

this one is working ok so far as well;

</div> <!– moved here –>

<?php if ( bb_is_user_logged_in() ) : ?>

<div id=”viewdiv”>

#57980
Schmuck
Member

Try this one:

<?php endif; else : ?> line. Below this it should have code for <h3 class=”bbcrumb”> … and then <?php post_form(); endif; ?>

It will help!

Greetz

#57988
fel64
Member

Relevant also is #thread li.

Note that threadauthor has position: absolute; so it won’t affect the height of the post. As soon as you get rid of that it, the post is pushed to full height.

Alternatively, you could give #thread li the min-height: 200px property, which will make sure it’s at least 200 pixels high which should be sufficient to accomodate for avatar and username. However IE6 does not support the min-height property.

margins will push things apart, which might be what you’re looking for. Also .post needs to have a bigger margin.

Both approaches will give you a workable design. However when you’re working on these things there are really two things you should do:

  1. Change one thing at a time. Check result.
  2. Use Firebug.

Both of those are lifesavers and greatly reduce the amount of work and panic you’ll have. Switch to FF if you have to, Firebug is pure gold and absolutely worth it when you’re making websites.

#1929
mikeh269
Member

I’m just fiddling around with the Crystal theme and trying to get it to match my installation of Unsleepable on wordpress.

I also decided to put in avatars.

I’ve made a bit of a mess of it.

http://www.mikeh269.com/forum/topic.php?id=1&page&replies=3

As you can see, all the posts are somewhat pushed up so they are all together. I would appreciate it if I could get some help.

Here’s my post.php

<div class="threadauthor">
<p><strong><?php post_author_link(); ?></strong><br />
<small><?php post_author_title(); ?><br /><?php post_avatar(); ?></small></p>
</div>

<div class="threadpost">
<div class="post"><?php post_text(); ?></div>
<div class="poststuff"><?php printf( __('Posted %s ago'), bb_get_post_time() ); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?></div>
</div>

And the relevant parts of style.css

.poststuff{
font:10px Verdana,Arial,Helvetica,sans-serif;
text-transform:uppercase
}

.threadauthor small{font:11px Verdana,Arial,Helvetica,sans-serif}

.post {
margin-left: 100px;
position: absolute;
padding-left; 100px;
padding-up; 50px;

}

.threadauthor {
margin-left: 10px;
overflow: hidden;
position: absolute;
max-height: 215px;
width: 150px;
}

Any help would be appreciated.

Viewing 25 results - 30,051 through 30,075 (of 32,491 total)
Skip to toolbar