Search Results for 'code'
-
AuthorSearch Results
-
October 8, 2009 at 11:03 pm #80306
In reply to: Making `from` a link in Topic View
Peter A. Gebhardt
ParticipantBut it’s a nice place to look for nice_name’s …
)
October 8, 2009 at 10:49 pm #80305In reply to: Making `from` a link in Topic View
Adam Harley (Kawauso)
MemberI find looking at a bbPress install database pretty unnerving with all the relational IDs around the place
October 8, 2009 at 10:32 pm #80304In reply to: Making `from` a link in Topic View
Peter A. Gebhardt
ParticipantSolution found –
bb_user_nicename_sanitize()
– needs peer review because of possible side-effects (UTF8 etc.)<span><?php if ( 1 < get_topic_posts() ) : ?>
<?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (bb_user_nicename_sanitize(get_topic_last_poster(),50)); ?>"><?php echo get_topic_last_poster(); ?></a>
<?php endif; ?>
</span>PS: A look into one’s database via phpadmin produces the right insights …
October 8, 2009 at 10:27 pm #80303In reply to: Making `from` a link in Topic View
Adam Harley (Kawauso)
MemberOh, that’s
get_user_profile_link( $topic->topic_last_poster )
thenit seems that usernames don’t contain spaces (only the display name does), the username is converted to using a – instead of any invalid characters
October 8, 2009 at 9:15 pm #80301In reply to: Making `from` a link in Topic View
Adam Harley (Kawauso)
Memberget_user_profile_link( $topic->topic_poster )
, rather than all that sanitize/echo stuff. Can’t check it 100% since my test server is dead, but that should be right I think.October 8, 2009 at 8:47 pm #80300In reply to: Making `from` a link in Topic View
Peter A. Gebhardt
ParticipantThe code developed so far (resembling the buddyPress Forum experience):
...
<span id="topic_posts"><?php topic_posts_link(); ?>, </span>
<span id="topic_voices"><?php printf( '%s voices', bb_get_topic_voices() ); ?></span>
<span><?php if ( 1 < get_topic_posts() ) : ?>
<?php printf(__('- <a href="%1$s">Latest reply</a> from '),attribute_escape( get_topic_last_post_link()) ) ?>
<a href="<?php bb_option('uri'); ?>profile.php?id=<?php echo (sanitize_user(get_topic_last_poster(),true)); ?>"><?php echo get_topic_last_poster(); ?></a>
<?php endif; ?>
</span>does only generate an “User not found.” error with:
..../profile.php?id=Test%20User
October 8, 2009 at 8:40 pm #80284In reply to: Adding a Navigation Bar to the Kakumei theme.
Adam Harley (Kawauso)
MemberIt’d be too broad a subject to cover really, but menus are generally done from using
<li>
/<ul>
and using CSS to style those to appear how you want. There should be some examples on CSS styling tutorials and the like though.October 8, 2009 at 8:38 pm #80199In reply to: Showing more tags on Heatmap.
Adam Harley (Kawauso)
MemberYep, pretty much. Don’t be afraid to just give it a try and see what happens, it’s how you learn with these things
October 8, 2009 at 8:29 pm #80283In reply to: Adding a Navigation Bar to the Kakumei theme.
InvTrdr
MemberWill try. Not too good at it yet. Am learning from the great WP and bbPress community as I go. Thought there might be a default stock theme with a navigation bar on it. Or can you guide me as to what code needs to be added in the CSS and header.php files?
Thanks.
October 8, 2009 at 8:25 pm #80198In reply to: Showing more tags on Heatmap.
InvTrdr
MemberYes. Just wanted to see for myself. Will change it back to 40 as I did not know what is below before.
Also is what I would do below be correct?
So am I replacing this line in the code above
<p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(); ?></p>
with this line below?
<p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(array( ‘smallest’ => 9, ‘largest’ => 38, ‘limit’ => 80) ); ?></p>
Thank you.
October 8, 2009 at 8:17 pm #80196In reply to: Showing more tags on Heatmap.
InvTrdr
MemberI did find it and it is set at “45” and there is another similar code set to “40”. That is the one it is using. I changed it to 45 and it is showing 45 now. Thanks once again.
Thanks.
October 8, 2009 at 7:52 pm #80195In reply to: Showing more tags on Heatmap.
InvTrdr
MemberAlso is what I would do below be correct?
So am I replacing this line in the code above
<p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(); ?></p>
with this line below?
<p class=”frontpageheatmap” style=”text-align: center;”><?php bb_tag_heat_map(array( ‘smallest’ => 9, ‘largest’ => 38, ‘limit’ => 80) ); ?></p>
Thank you.
October 8, 2009 at 7:49 pm #79987In reply to: removing tags
InvTrdr
MemberIs it possible to at least tell me where I can find the “delete tag” code/script so I can look for it in my theme and compare it to the stock theme?
Thanks.
October 8, 2009 at 5:11 pm #32008Topic: Making `from` a link in Topic View
in forum ThemesPeter A. Gebhardt
ParticipantHow can I complete the from part with a clickable link to the profile of the latest poster?
34 posts, 2 voices - Latest reply from ...
The user name ist
Test User
– it does contain a space.October 8, 2009 at 5:04 pm #73219In reply to: How do I move a topic to another forum
johnhiler
MemberOh no… please don’t test it unless you are on 0.8.x!!
It’s definitely not recommended for 0.9 or 1.0… I just linked to it so you could check out the code, in the event that you were interested in adapting it to support more recent bbPress versions!
October 8, 2009 at 4:57 pm #73218In reply to: How do I move a topic to another forum
Fernando Tellado
ParticipantThank you John, I’ll test it
October 8, 2009 at 1:20 pm #80194In reply to: Showing more tags on Heatmap.
Adam Harley (Kawauso)
MemberIn the first line of function
bb_tag_heat_map
:$defaults = array( ‘smallest’ => 8, ‘largest’ => 22, ‘unit’ => ‘pt’, ‘limit’ => 40, ‘format’ => ‘flat’ );`
Line 3158 of
functions.bb-template.php
in my slightly outdated SVN of 1.0.2October 8, 2009 at 11:44 am #80191In reply to: Showing more tags on Heatmap.
InvTrdr
MemberWithout the above code where is it getting the 40 from? That is still a mystery to me if it is not called for from anywhere.
Thanks.
October 8, 2009 at 11:41 am #80190In reply to: Showing more tags on Heatmap.
InvTrdr
MemberSo am I replacing this line in the code above
<p class="frontpageheatmap" style="text-align: center;"><?php bb_tag_heat_map(); ?></p>
with this line below?
<p class="frontpageheatmap" style="text-align: center;"><?php bb_tag_heat_map(array( 'smallest' => 9, 'largest' => 38, 'limit' => 80) ); ?></p>
Thank you.
October 8, 2009 at 11:38 am #80189In reply to: Showing more tags on Heatmap.
InvTrdr
MemberI found it. It was in the sidebar.php file. What do I need to change in the code below to control the number of tags shown in the heat map?
Thank you.
<div id="sidebar" class="right">
<div class="menu">
<?php
login_form();
if(is_bb_profile()) profile_menu();
?>
</div>
<div class="menu">
<h2 class="section-header"><?php _e('Tags','rag'); ?></h2>
<p class="frontpageheatmap" style="text-align: center;"><?php bb_tag_heat_map(); ?></p>
</div>
<?php if(bb_is_user_logged_in()) : ?>
<div class="menu">
<h2 class="section-header"><?php _e('Views','rag'); ?></h2>
<ul id="views">
<?php foreach(bb_get_views() as $the_view => $title) : ?>
<li class="view"><a href="<?php view_link($the_view); ?>"><?php view_name($the_view); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
</div>October 8, 2009 at 12:12 am #80231bbhack
MemberI hear that. bbPress is missing a lot of the documentation and help that WordPress has. Fortunately, bbPress plugins really are a lot like WordPress plugins. They make use of actions and filters just like WordPress does. The assumption is that you’ll read all about WordPress plugins and then know how to write plugins for bbPress.
You can read all about WordPress plugins and actions and filters at codex.wordpress.org/plugins although this is the page you really want to go to:
https://codex.wordpress.org/Plugin_Resources
You can grep around in the bbPress files to see what actions and filters are available. If you don’t want that much work though go here:
http://www.mittineague.com/dev/bbpaf1_0.php
This site listing all of the bbPress functions is also invaluable:
http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html
October 7, 2009 at 9:25 pm #80153In reply to: my users do not receive the password
Jiyong
MemberThank you very much johnhiler.
The solution is smtp-mailer-for-bbpress
October 7, 2009 at 9:25 pm #80248In reply to: bb-admin: Forums Not Displaying
Chip Bennett
ParticipantIt appears that the problem appears when activating the My Views suite, specifically, the Topic Views sub-plugin.
The source isn’t helpful. There is just nothing at all rendered where the forum list should be:
<div class="wrap">
<h2>Forums</h2>
FORUM LIST GOES HERE
<hr class=”settings” />
But, I can live without that particular plugin.
October 7, 2009 at 9:20 pm #80279In reply to: Removing (1 post) (1 voice) from View
chrishajer
ParticipantLook in your template files for calls to
bb_topic_voices
andbb_get_topic_voices
and remove them.October 7, 2009 at 8:55 pm #80244In reply to: bb-admin: Forums Not Displaying
Chip Bennett
Participant@ chrishajer: Here are my active plugins:
Akismet
bb-NoSpamUser
BBcode Buttons Toolbar
BBcode Lite
bbPress signatures
bbPress Smilies
bb Topic Views
Best Answer
Bozo Users
Check For Updates
Enhanced Registration
Human Test for bbPress
Ignore Member
Mass Delete Users
Members Online
Mini Stats
My Views
My Views module – Most/Least Posts
My Views module – Most/Least Views
My Views module – Started/Participated Topics
New User Notification Email
Post Count Plus – Dynamic.Titles & More!
Post Count Plus for WordPress
Related Topics
Reputation (Karma) for bbPress
Skip Akismet
Subscribe to Topic
Topic Icons
Unread Posts
The really strange thing is, the Dashboard shows 18 forums (which is the correct number), but bb-admin/forums.php just won’t display them.
I suppose I can try disabling all plugins, and see if forums.php then displays the forums properly?
-
AuthorSearch Results