Search Results for 'code'
-
Search Results
-
Topic: bbShowcase shut down?
I just tried to drop by bbShowcase and found this waiting for anyone visiting
The bbPress Showcase has been discontinued.
The removal of Sam Bauers and the halting of bbpress.org 2.0
was a clear and final sign that there is no interest in allowing
bbPress to become a mature, robust program and community.
By now bbPress 1.5 could have been in alpha but instead
bbPress development has been deliberately stagnated,
which should be a very alarming warning to everyone.
In addition, bbShowcase had only six donations in 2009,
which indicated to me there was no interest in my work.
My code will remain on bbpress.org as open source GPL
for those that wish to use it, however I caution you to
consider bbPress’s lack of leadership before continuing to use it.
I’m running bbPress 1.0.2.
I’m having problems with the “PREVIOUS” link when using the “bb_latest_topics_pages” function.
I have the following code on my frontpage.php
<?php endforeach; endif; // $topics ?>
<?php bb_latest_topics_pages( array( ‘before’ => ‘<div class=”nav”>’, ‘after’ => ‘</
div>’ ) ); ?>
It display paged frontpage topic links (1, 2, 3, Next) but whenever I’m on a page other than the frontpage … for example, Page 2, both the Previous and Page 1 link points to the current page and not the previous page.
Topic: rss.php patch
Hey there, just had an issue with the “favorites” RSS and wanted to share my solution in case anyone else was having the same problem. Maybe it was just a Firefox thing, but the favorites URL (e.g., rss.php?profile=1) was interpreted as “unformatted XML”–there was an error message and the entire markup was displayed. I eventually discovered this was caused by an
<a>
tag inside the channel’s<link>
tag. By changing the “bb_get_profile_link” call to a “get_user_profile_link” call in rss.php I got the URL without the tag, and the feed was interpreted correctly.Incidentally, I also noticed a couple other things about the script that seemed a bit off–
1) There are a number of calls to “die()” if the feed turns out to be empty–seems like either an empty feed or an error page would be preferable to this silent failure.
2) The “bb_send_304()” call doesn’t take into account that the feed itself may have changed recently, e.g. threads added to a “favorites” list won’t show up until activity on one of the threads causes the feed to be refreshed. (Which is not totally illogical, but it can be confusing for the user to add a favorite, refresh the feed, and still not see the newly-added thread.)
I thought about working up a patch to address these issues, but decided to post this first–maybe the script’s working exactly as intended and I’m just not understanding it correctly.
I am sharing this, just in case it may help someone else looking to implement this feature. There is a great plugin that does this, bbAvatars, but it was interfering with other functions I wanted to implement, so I had to find a workaround (bbPress 1.0.2).
With the premise that I really don’t like to edit core files, because you have to remember to edit them each time you upgrade, this time I had no choice, as any avatar plugin I tried did not work out for my purposes. There are a few simple steps you can use to set your own custom avatar, when users have not set a gravatar account.
1 – I have noticed that the “blank” choice in the settings is the only one that refers to an internal image, so you just want the code to point to your own custom image, rather than “blank.gif” (which may be also used for other calls, so I wanted to leave that one alone and not replace it with another custom blank).
In “bb-includes”, look for the file “functions.bb-pluggable.php”, and edit around line 895, where it says
case 'blank':
$default = bb_get_uri( 'bb-admin/images/blank.gif', null, BB_URI_CONTEXT_IMG_SRC );and change blank.gif with your image, default.jpg or any other name.
2 – Upload your custom image in bb-admin/images (if you store it somewhere else, change the path in the code above accordingly).
3 – In your Admin Dashboard –> Settings –> Discussions, set the choice to “blank”.
Voila!!!!
To change the avatar size from the bbpress default size, in post.php of your templates, look for
<?php post_author_avatar_link(); ?>
and add the number of pixels inside (), for example:
<?php post_author_avatar_link(80); ?>
Hope this helps!
So the background is this: I’m creating a website that is basically just one single forum, and it’s important that it be as private as possible. I understand that it’s impossible to guarantee security for pretty much anything online, and I’m not talking about huge matters of national security or anything; it’s just an online extension of a support group I’m part of, and it would be easier to talk about some of the difficult things we’re talking about if it we felt relatively secure that it was just us reading it.
And I’m being extra-difficult by trying to make the “front page” actually be the forum page – seeing as how there’s only one, it seemed silly to click through two screens to get to the content. I followed chrishajers’ ninja code here and it’s awesome.
Then I tried to find the Force Login plugin but got a 404 when I tried to download it. So I tried the Hidden Forums plugin and chased my own tail for a few hours trying to get it to work. Couldn’t do it, gave up, found this version of Force Login, installed it, all good! (Well, except for there not being an option to register, only log in, but I can deal with that later.)
Then I got paranoid and figured I’d try adding Hidden Forums again (JUST TO BE SAFE DON’T YOU KNOW) and I found this. Neat! Changed that line of code, and everything was great when I logged in as admin/keymaster. It was great when I logged in as a test member who had access to the forum. Then I tried to log in as a test member who did NOT have access to the forum, and it threw Foxfire into a redirect loop and timed out. I couldn’t get the login page back at all, so I manually deleted the Hidden Forums plugin from my server & I could get back in.
It makes perfect sense that bbpress wouldn’t really know what to do when it’s simultaneously told “don’t show any hidden forums!” and “there’s only one forum and it’s hidden!” So I’m wondering what the best way is to proceed…if I just have Force Login working (as well as Approve User Registration), is Hidden Forums overkill? Or is Hidden Forums a stronger plugin, and I should lose Force Login? Or does it make sense to try to get them both to work?
And as far as other security measures go, I’ve got this going on in the header:
<META NAME="ROBOTS" CONTENT="NONE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
…and a robots.txt with this:
User-agent: *
Disallow: /
Am I missing anything? Many thanks for your help, and even more for your patience.