Search Results for 'code'
-
AuthorSearch Results
-
October 8, 2009 at 8:38 pm #80199
In 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.phpin 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_voicesandbb_get_topic_voicesand 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?
October 7, 2009 at 8:49 pm #80286In reply to: Extending number of characters in post title
chrishajer
ParticipantThe topic title is varchar(100) in the database. You have 80 characters displayed there. The four fancy quotes got encoded and took up 6 characters a piece in the database, which is why you have just 80 characters there (I THINK.)
One other problem is the maxlength for the topic title in the new topic form is 80, so you could only type 80 characters in there too.
None of that solves your problem, but it does identify a couple of the limitations.
October 7, 2009 at 8:35 pm #80188In reply to: Showing more tags on Heatmap.
chrishajer
ParticipantSomething in one of your files is creating that tag heat map. Maybe in your theme it’s not included in front-page.php. Look through your other files for calls to that
bb_tag_heat_mapfunction. Looking at that theme, it looks like it has a sidebar. So, is the call to that function in sidebar.php?October 7, 2009 at 7:57 pm #80187In reply to: Showing more tags on Heatmap.
InvTrdr
MemberI did not even see the code in my front-page.php file of the theme. Below is the code. Can I try to add it to it to play around with the heat map?
Thanks.
?php bb_get_header(); ?>
<?php if($forums) : ?>
<?php if($topics || $super_stickies) : ?>
<div class="breadcrumb section">
<h2 class="section-header"><?php _e('Latest Discussions','rag'); ?></h2>
</div>
<table id="latest">
<tr>
<th class="topic"><?php _e('Topic','rag'); ?> — <?php new_topic(); ?></th>
<th class="posts"><?php _e('Posts','rag'); ?></th>
<th class="last-poster"><?php _e('Last Poster','rag'); ?></th>
<th class="freshness"><?php _e('Freshness','rag'); ?></th>
</tr>
<?php if($super_stickies) : foreach ($super_stickies as $topic) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
<td><?php topic_posts(); ?></td>
<td><?php topic_last_poster(); ?></td>
<td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif;?>
<?php if($topics) : foreach($topics as $topic) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
<td><?php topic_posts(); ?></td>
<td><?php topic_last_poster(); ?></td>
<td><a href="<?php echo str_replace("&", '&', get_topic_last_post_link()); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; ?>
</table>
<?php endif; ?>
<?php if(bb_forums()) : ?>
<div class="breadcrumb section">
<h2 class="section-header"><?php _e('Forums','rag'); ?></h2>
</div>
<table id="forumlist">
<tr>
<th><?php _e('Forum','rag'); ?></th>
<th><?php _e('Topics','rag'); ?></th>
<th><?php _e('Posts','rag'); ?></th>
</tr>
<?php while(bb_forum()) : ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad('<div class="nest">'); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description(); ?><?php bb_forum_pad('</div>'); ?></td>
<td><?php forum_topics(); ?></td>
<td><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; ?>
<?php else : ?>
<?php post_form(); ?>
<?php endif; ?>
<?php bb_get_footer(); ?>October 7, 2009 at 6:18 pm #80251In reply to: Show all posts a member has made
Navin
MemberActually I was looking more for a way to achieve this, or similar:
http://www.sitedeals.nl/search.php?searchid=853849anyone?
October 7, 2009 at 5:56 pm #80185In reply to: Showing more tags on Heatmap.
chrishajer
ParticipantI have this near the top of my front-page.php:
<p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>That’s where you would make the modification.
front-page.php does not use tags.php. Those two different php files do two different things. tags.php displays this: http://invictatrader.com/bbpress/tags/
front-page.php displays the front page of your forum:
http://invictatrader.com/bbpress/
And the tags are just a small part of the front page, provided by the function
bb_tag_heat_map();, called with whatever parameters you want.October 7, 2009 at 5:40 pm #79984In reply to: removing tags
chrishajer
ParticipantA user normally sees an X next to a tag they added, and they can delete that tag. A normal user cannot modify tags they did not add and there is no X next to them.
Maybe it’s checking the wrong permission to see
if user can delete tagsor something?To find the problem, I think I would look at the kakumei theme and compare it to your theme to see where the differences lie. Maybe the theme is using older function names or something.
October 7, 2009 at 4:28 pm #80233In reply to: Modifying header.php
Adam Harley (Kawauso)
MemberWe can’t see your header’s source code by just looking at the PHP file, you’d need to use a .phps extension or .txt, or similar…
-
AuthorSearch Results