Info
- 17 posts
- 7 voices
- Started 5 years ago by actorjiml
- Latest reply from Omegacool
- This topic is not a support question
Plugin: Graphic Display Ranks
-
- Posted 5 years ago #
I have just finished my first plugin. It is, as they say, rough as a cob. It allows you to display an image with the author's name based on the number of posts they have made. You can download it here:
http://www.brightandearlyblog.com/bbPress/downloads/display_rank_images.zipYou can see it in action at http://www.brightandearlyblog.com/bbPress and then looking at any topic.
Suggestions are greatly welcome. I have submitted it to the development center plugin repository.
-
- Posted 5 years ago #
-
- Posted 5 years ago #
It has been added to the Plugin Repository
-
- Posted 5 years ago #
Nice plugin Jim!
Trent
-
- Posted 5 years ago #
Thanks Trent. For me the best part was what I learned about making plugins as much as the plugin itself.
-
- Posted 5 years ago #
This Plugin wont work for me.
I downloaded from the repository and installed as instructed, but I get an error that it cannot find config.php in the ranks subdir.
shouldn't it be looking for gdr_config.php ????
I tried renaming that to config.php on my server, but it still caused errors.
Does anyone have a working version of this they could send me?
-
- Posted 5 years ago #
it's ok I fixed it. the gdr_config.php file in this zip should start with <?php
and needs to be renamed config.php.Once that's done it seems to work.
-
- Posted 5 years ago #
Someone else just mentioned this as well. I'll upload the "correct" zip when I get home from work. Thanks for pointing out the error.
-
- Posted 4 years ago #
when accesing admin control panel this plugin returns this error;
Warning: include(my-plugins/ranks/config.php) [function.include]: failed to open stream: No such file or directory in \wordpress\bbpress\my-plugins\display-rank-images.php on line 43
what's wrong?
-
- Posted 4 years ago #
Like medden said, presumably:
gdr_config.phpshould be renamedconfig.php(and needs to start with<?phptoo). -
- Posted 4 years ago #
"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 \wordpress\bbpress\my-plugins\display-rank-images.php on line 43
More people having the same problem here -> http://bbpress.org/forums/topic/665?replies=2#post-3964
but I thought it would be better to follow the original thread here :)
-
- Posted 4 years ago #
There 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? -
- Posted 4 years ago #
I can't follow you, fel64 :(
I tried to e-mail the plugin author but I didn't find his email address in his web
-
- Posted 4 years ago #
Sorry. 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.
-
- Posted 4 years ago #
Hey fel64, you made it again! Thanks a lot, now it works fine.
-
- Posted 4 years ago #
BTW, 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 :)
-
- Posted 4 years ago #
plugin original does not work but with the modifications it does without problems. My problem is that I cannot cause that they work ranks special, anybody has some idea of like doing it?
-
You must log in to post.