Search Results for 'code'
-
Search Results
-
hi to all

i want to show just resisted users in my forum’s footer. how it will possible. but i don’t want to install mini-stats plugin…. and listen dears…. when we go to the dashboard of bbpress… there we can see the total resisted users in the “Right Now” Column. So I just want to show registed users in footer like that
Total resisted users : e.g 500
plz guide
This is a random question, but is this “Topic Views” plugin (“http://bbpress.org/plugins/topic/bb-topic-views/#post-275″) required to display ‘Topic Views” on one’s front page, etc? Or is there some sort of output code I am missing?
We can display Topic Voices without a plugin using code built into the Core.
The reason for my question is this, if a plugin is required, shouldn’t the “Topic Views” code be built into the Core as well? It’s a rather useful feature and seems to be used on tons of bbPress sites…
Topic: What's wrong with BBPress
I’ve been looking for a solid forum software for quite some time now. vBulletin has a lot of features, but it’s too bloated…it’s “Web 1.0”
I explored Vanilla, EsoTalk, and now bbPress. I thought bbPress would be a good option, but it seems like the developer community has completely abandoned it over the past year. There are no themes, no plugins, and barely any updates to the core forum. As I kept looking for themes, I found this on bbShowcase:
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.
Now I’m back at square one again. Not knowing which forum software to use.
Greetings
I seem to be having many problems with my forum, most of them being mine.
So here goes the next one:
I am in the process of creating an additional item on the topic page that lets the member share the topic on Facebook, Twitter, and the like. I do not wan’t to use SocialIt as it puts it on every post, which starts to look messy. I have a neat forum.
So, I opened topic.php in my template’s directory and found the place where I need to add the code to achieve this.
At first, I added this, which worked: (bb_current_page_url is my own function)
<li><?php printf(__('Share this topic on <a target="_blank" href="http://www.facebook.com/sharer.php?u=%1$s">Facebook</a>'), bb_current_page_url() ?></li>Then I wanted to add a title as per Facebook’s Sharer specifications. This means that I must add &t=<the-title>, where I put the cutom title in <the-title>.
So I did this:
<li><?php printf(__('Share this topic on <a target="_blank" href="http://www.facebook.com/sharer.php?u=%1$s&t=%2$s">Facebook</a>'), bb_current_page_url(), topic_title()) ?></li>and it returned this:
DataSets and DataTableAdaptersShare this topic on Facebook
<string>Note: If you hover your mouse over “Facebook”, you’ll see that the URL has been cut off – which is why the title appears before the entire printf() function.
It should return this:
Share this topic on Facebook
I’m obviously doing something wrong with printf(), but I doubt it as it’s literally a copy-paste from the other printf()’s on that page.
I also want to stick to printf() as I will have multiple sites to link to, and I do not want to keep repeating things. I just want to refer to %1$s and %2$s for each entry.
Could anyone help me get out of this mess?
Michael

)