Search Results for 'code'
-
AuthorSearch Results
-
September 21, 2009 at 7:45 am #79536
In reply to: how does bbPress takes care of pagination
Ashish Kumar (Ashfame)
Participantah.. found it
page_topicsunder bb_metaSeptember 21, 2009 at 7:34 am #79478kirpiit
MemberNope, Kawauso.
<?php bb_get_profile_link(post_author()); ?>just renders the poster name, without any link.
September 21, 2009 at 6:37 am #79439In reply to: bbPress Codex – lolz
Ashish Kumar (Ashfame)
ParticipantMore delays, I guess. Read this –
https://bbpress.org/forums/topic/call-for-testers-on-the-09-branch-and-10-trunk#post-58347
September 21, 2009 at 6:20 am #79527In reply to: bbPress loading slower than site.
johnhiler
MemberAh ok, yah mini-stats is a great dashboard plugin which lets you know how many users you have… how many posts and topics they’re creating… and other key metrics like that.
I check it almost every day, and couldn’t run my sites without it… I find it to be one of the most useful plugins out there, if you’re managing a site for growth.
September 21, 2009 at 5:51 am #79526In reply to: bbPress loading slower than site.
chrishajer
ParticipantIf you’re unsure of what PHPINFO is, put this into a file called info.php on your web server, then access it with a browser at http://www.example.com/info.php and paste the info somewhere where we can see it.
<?php
phpinfo();
?>September 21, 2009 at 3:30 am #79451In reply to: hooking a function makes mysql query to return empty
chrishajer
ParticipantCan you post your code?
September 21, 2009 at 3:26 am #79521In reply to: bbPress loading slower than site.
chrishajer
ParticipantI think you first need to determine how long bbPress is actually taking to generate a page, and how long it takes to generate the other pages on the site. You can start with _ck_’s mini-stats plugin for bbPress.
https://bbpress.org/plugins/topic/mini-stats/
[edit: see johnhiler’s link below to the bb-benchmark plugin]
And, on the other part of your site, what is running that? Is it WordPress or just static HTML? If it’s WordPress, you can get a plugin as well to point out performance bottlenecks.
Regardless of what type of software a site (your site) is running, there are lots of tools you can run in your browser to find performance bottlenecks.
Firefox (you need that to run most of these add-ons)
Firebug (all around awesome tool)
There are tons and tons of performance add-ons for Firefox but these will get the job done.
Also, what host are you on, and can you post the URL here so others may see the performance first hand?
September 20, 2009 at 10:04 pm #79395In reply to: Removing brackets in .admin
infected
ParticipantThank you Kawauso! This works perfectly! Problem solved
September 20, 2009 at 9:56 pm #79438In reply to: bbPress Codex – lolz
Adam Harley (Kawauso)
MemberAny chance bbPress will get a codex proper then?
September 20, 2009 at 9:44 pm #79394In reply to: Removing brackets in .admin
Adam Harley (Kawauso)
MemberIn your theme’s topic.php, change
bb_topic_admin();tobb_topic_admin( array( 'before' => '', 'after' => '' ) );or to use<li>instead, putbb_topic_admin( array( 'before' => '<li>', 'after' => '</li>' ) );and put<ul>and</ul>around the <?php tagsSeptember 20, 2009 at 6:19 pm #31821Topic: Adding a sidebar to a theme.
in forum InstallationInvTrdr
MemberIs it possible to add a sidebar in a theme that comes without one? Need a sidebar for navigation and/or ads. I am using the “Structure” theme. If it can be added can I get the code for it probably going into the sidebar.php?
Thank you.
September 20, 2009 at 5:17 pm #69396Adam Harley (Kawauso)
Member$wpdb and $bbdb have nice sanitizing functions and caching of results if I remember correctly
https://codex.wordpress.org/Function_Reference/wpdb_Class
They can also be used to retrieve table names for the respective package
September 20, 2009 at 5:15 pm #78750In reply to: Plugin to display photos and html
chrishajer
ParticipantYou can also explicitly set the link text like this as well, by coding the full anchor link:
To achieve that, I typed this:
<a href="http://google.com/">GO TO GOOGLE</a>September 20, 2009 at 5:11 pm #78749In reply to: Plugin to display photos and html
chrishajer
ParticipantQuickD – if you type a URL, bbPress automatically converts that to a clickable link. I will type just www.google.com and below it will be a link to google with the text
http://www.google.comIt’s actually harder to have bbPress NOT make links out of URLs.
September 20, 2009 at 2:59 pm #79476Adam Harley (Kawauso)
MemberYou shouldn’t need the separate
<a>tag, that function should be returning a complete<a>tag with the text passed to it (or using the ID number if one is given)September 20, 2009 at 1:14 pm #79475kirpiit
MemberYes, this seems to do the trick
<a href="http://www.example.com/forum/profile/<?php bb_get_profile_link(post_author()); ?>">
<?php bb_get_profile_link(post_author()); ?>
</a>Hardcoding the path is not nice, but at least it works.

Thank you!
September 20, 2009 at 10:51 am #79473kirpiit
MemberSo, if I now understand right, I cannot use any piece of it.

Would it really be that hard to get the poster name and link it to his/her profile page, quite simply?
I cannot find how.
September 20, 2009 at 10:47 am #79472Adam Harley (Kawauso)
MemberIt’s generated by the template
logged-in.php, which in Kakumei looks like:<p class="login">
<?php printf(__('Welcome, %1$s'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?>
<?php bb_admin_link( 'before= | ' );?>
| <?php bb_logout_link(); ?>
</p>So you’d want
bb_get_profile_link(bb_get_current_user_info( 'name' ))September 20, 2009 at 6:31 am #79471kirpiit
MemberYet something is wrong. It does not work.
Link should most probably look like
http://www.example.com/forum/profile/userThe right code is probably hidden in the header, where it says
Welcome, User | Log OutThat
Userlink is the one I’m after, but cannot find out how it is built.September 20, 2009 at 6:22 am #79470gerikg
Member<a href="profile.php?id=<?php echo get_post_author_id(); ?>"><?php post_author();?></a>September 20, 2009 at 5:52 am #79467kirpiit
MemberSo in
post.phpthere is this code<p>
<strong><?php post_author_link(); ?></strong><br />
<small><?php post_author_title_link(); ?></small>
</p>which should be changed into…?
The point is that just dropping the
post_author_title_link();wouldn’t do.I need to first have the author display name link to his/her profile page.
But I have no clue…
September 20, 2009 at 5:47 am #79499In reply to: User Activity & Topics Started
Ashish Kumar (Ashfame)
ParticipantReplace the code from the default theme in your code and then try.
September 20, 2009 at 12:23 am #79508gerikg
Memberand you need this for images https://bbpress.org/plugins/topic/allow-images/#post-6
September 20, 2009 at 12:02 am #79507sixyofo
MemberThanks!!
September 19, 2009 at 11:57 pm #79506 -
AuthorSearch Results