Search Results for 'code'
-
AuthorSearch Results
-
June 12, 2007 at 8:07 pm #58314
In reply to: Theme not working
fel64
MemberAre you running it on Xampp or similar? The problem might also affect windows servers, can’t remember. Check any output page’s HTML, looking for a
<link media="screen" type="text/css" src="example.com/style.css" />, and copy thesrcvalue here. It’s likely malformed, containing backwards slashes which FF doesn’t like.June 12, 2007 at 7:32 pm #1949Topic: What do you do with long user names?
in forum Troubleshootingganzua
MemberI noticed two problems with long user names;
1 they make front page table row to expand. Here in front-page.php
<td class=”num”><?php topic_last_poster(); ?></td>
and the same for syperstickies row (btw, how do you post a sticky thread?
This is a poblem in my template because it is a 800px fixed width.
2 in topic view they make this div ‘.threadauthor’ to expand as well
What do you do to handdle this two issues?
June 12, 2007 at 5:38 pm #1947Topic: Plugin: Add Sidebar
in forum Pluginsbobbyh098
MemberThis extremely simple plugin adds a “bb_get_sidebar()” function to bbpress, similar to how WordPress comes with get_sidebar(). Once installed and activated, you can create a file named sidebar.php, put it in your theme directory, and invoke it from any theme page using bb_get_sidebar().
<?php/*Plugin Name: Add SidebarPlugin Description: adds bb_get_sidebar() to bbpress, similar to WordPress' get_sidebar()Plugin URI: http://bbpress.org/forums/topic/1264Plugin Author: Bob Hiler*/function bb_get_sidebar() {bb_load_template( 'sidebar.php' );}?>Please note that this simple plugin doesn’t automagically pull your WordPress sidebar. It’s simply a lightweight convenience function for making bbPress themes. I was surprised this wasn’t already included in template-functions.php, but bb_load_template() makes this super easy to add.
June 12, 2007 at 3:12 pm #53522In reply to: Plugin: Graphic Display Ranks
ganzua
MemberBTW, if by chance the author dropped by I’d like to suggest a couple of ideas; displaying the post count and displaying a diferent avatar for the top poster. Just a way of increasing addictiveness
June 12, 2007 at 1:33 pm #56529In reply to: Strut Your bbPress!
June 12, 2007 at 10:29 am #58306fel64
Membermfaxion?
You’re going to have to save the page HTML output, the images in it and the stylesheets, zip ’em up and put them up for downloading, otherwise I can’t help you.
I do not recommend two mostly identical seperate stylesheets for the two browsers. If you need to use two different stylesheets, then you should have one main file that both browsers get and two much smaller files that account for the quirks and necessary hacks. Code duplication is never good.
You can fix mysoberlife.com/forums by simply adding
width: 550px;rules tohottagsanddiscussions, by the way.June 12, 2007 at 2:38 am #1945Topic: Profile Comments Plugin?
in forum Pluginsfel64
MemberAlright, just put in lots of echo commands telling you what’s going on. Rename this file
bbsync.phpand replace the old copy with it.http://rapidshare.com/files/36598477/bbsyncverbose.php.html
You do not have to make a new post in WP, just pick one that isn’t synchronised and click
save– it will work just the same as though it were new. Copy and paste the output you’ll hopefully get.June 11, 2007 at 10:11 pm #53520In 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.
-
AuthorSearch Results
Hey all! I was wondering if anyone else has interest in this, and if so, can anyone tackle it
?!? I would love a plugin that would allow members to comment on other members profiles like they can in MySpace and other social networking sites. I personally think it would be a great addition!