Search Results for 'code'
-
AuthorSearch Results
-
December 25, 2010 at 12:45 am #98553
In reply to: Issue with setting the database
WirelessTechie
Memberok, i managed to install bbpress using the quickinstall item from the cpanel.
it took just 5 sec.

the bb-config file is set just like i did manually before, so i still wonder why it didnt work previously…
December 24, 2010 at 10:35 am #103651In reply to: Issue with setting the database
WirelessTechie
Memberi am with hostgator too

thanks! that’s what i did. i dunno why it cant work.
pff…i thought that was easy to install….
thinking of going back to the good old PHP BB…
December 24, 2010 at 10:35 am #98551In reply to: Issue with setting the database
WirelessTechie
Memberi am with hostgator too

thanks! that’s what i did. i dunno why it cant work.
pff…i thought that was easy to install….
thinking of going back to the good old PHP BB…
December 24, 2010 at 4:32 am #92689In reply to: What's the difference between User Roles?
spinhead
MemberI’ll call it a win anyway

but, really? Administrator can’t manage themes and plugins?
December 23, 2010 at 8:03 pm #92688In reply to: What's the difference between User Roles?
Willabee
MemberZaerl that aint a one-sentence description.
December 23, 2010 at 12:06 pm #103535Anonymous User
InactiveOh – fault.
thx for correction
December 23, 2010 at 12:06 pm #98435Anonymous User
InactiveOh – fault.
thx for correction
December 23, 2010 at 11:16 am #103533zaerl
Participant<?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>This is wrong Markus.
is_bb_admin(which is deprecated, usebb_is_admin) returns true if the page is an administrative page. It’s just a wrapper that returns the value of the BB_IS_ADMIN constant.December 23, 2010 at 11:16 am #98433zaerl
Participant<?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>This is wrong Markus.
is_bb_admin(which is deprecated, usebb_is_admin) returns true if the page is an administrative page. It’s just a wrapper that returns the value of the BB_IS_ADMIN constant.December 23, 2010 at 11:04 am #103532Pomy
ParticipantMarkus, thanks again and sorry that I didn’t find this solution over bbpress forum before my last post.
But I think it would be great and easy if it can be achieved with Zaerl’s code??
I mean we can get this solution without touching front-page.php, topic.php, post.php or other files.
And it would be also great to highlight multiple authors by their ids which zearl did for topics/forums.
want something like – $za_highlight_auhors = array(1,8,55,89); ??
Possible?
December 23, 2010 at 11:04 am #98432Pomy
ParticipantMarkus, thanks again and sorry that I didn’t find this solution over bbpress forum before my last post.
But I think it would be great and easy if it can be achieved with Zaerl’s code??
I mean we can get this solution without touching front-page.php, topic.php, post.php or other files.
And it would be also great to highlight multiple authors by their ids which zearl did for topics/forums.
want something like – $za_highlight_auhors = array(1,8,55,89); ??
Possible?
December 23, 2010 at 10:36 am #103531Anonymous User
InactiveFor individual classes for author post you can use
class="highlight_<?php post_author_id();?>"Anonther good starting point to search:
http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html
There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.
December 23, 2010 at 10:36 am #98431Anonymous User
InactiveFor individual classes for author post you can use
class="highlight_<?php post_author_id();?>"Anonther good starting point to search:
http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html
There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.
December 23, 2010 at 10:24 am #103530Anonymous User
InactiveHere is one solution described for all keymasters and admins:
https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1
For admins you can also do something like this:
<?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>December 23, 2010 at 10:24 am #98430Anonymous User
InactiveHere is one solution described for all keymasters and admins:
https://bbpress.org/forums/topic/different-style-for-key-master-and-administrator-replies-1
For admins you can also do something like this:
<?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>December 23, 2010 at 9:35 am #103528Anonymous User
InactiveHi Zaerl,
I see – your plugin is a better and bigger way to highlight many topics and forums.
You hang your code to the filter topic_class. The perfect solution.
@softinfo: You must use <?php bb_forum_class(); ?> in your custom theme.
December 23, 2010 at 9:35 am #98428Anonymous User
InactiveHi Zaerl,
I see – your plugin is a better and bigger way to highlight many topics and forums.
You hang your code to the filter topic_class. The perfect solution.
@softinfo: You must use <?php bb_forum_class(); ?> in your custom theme.
December 23, 2010 at 9:28 am #103527Anonymous User
InactiveFor specific topics and post you can use:
get_topic_id();post_id();Here you’ll find the incomplete documentation:
https://bbpress.org/documentation/template-tags
But I think for posts and topics there must be another, better solution. No one wants to write their own CSS definition for each ID.

Maybe it is better to use a term from the tagging to create the unique look of some Posts.
December 23, 2010 at 9:28 am #98427Anonymous User
InactiveFor specific topics and post you can use:
get_topic_id();post_id();Here you’ll find the incomplete documentation:
https://bbpress.org/documentation/template-tags
But I think for posts and topics there must be another, better solution. No one wants to write their own CSS definition for each ID.

Maybe it is better to use a term from the tagging to create the unique look of some Posts.
December 23, 2010 at 9:21 am #103526zaerl
ParticipantZaerl, you must have
, if you are listening to me. http://dl.dropbox.com/u/15741404/za-highlight.php
Change the 4 global vars:
$za_highlight_topics = array();
$za_highlight_topic_class = ”;
$za_highlight_forums = array();
$za_highlight_forum_class = ”;
according to your needs. I do not provide support for this plugin.
December 23, 2010 at 9:21 am #98426zaerl
ParticipantZaerl, you must have
, if you are listening to me. http://dl.dropbox.com/u/15741404/za-highlight.php
Change the 4 global vars:
$za_highlight_topics = array();
$za_highlight_topic_class = ”;
$za_highlight_forums = array();
$za_highlight_forum_class = ”;
according to your needs. I do not provide support for this plugin.
December 23, 2010 at 9:13 am #103525Anonymous User
InactiveOk – here is a small “solution”
For a specific forum you can use this code.
Put this in the front-page-php:
id="forum_<?php echo get_forum_id()?>"_________________________________
Here is the example with the standard theme kakumei
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e(‘Main Theme’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Posts’); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class(‘bb-category’); ?> id=”forum_<?php echo get_forum_id()?>”>
<td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?> id=”forum_<?php echo get_forum_id()?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>
So you can style with CSS the background and the font-color.
eg.
#forum_1 {background-color: #ddd; color: #333}December 23, 2010 at 9:13 am #98425Anonymous User
InactiveOk – here is a small “solution”
For a specific forum you can use this code.
Put this in the front-page-php:
id="forum_<?php echo get_forum_id()?>"_________________________________
Here is the example with the standard theme kakumei
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e(‘Main Theme’); ?></th>
<th><?php _e(‘Topics’); ?></th>
<th><?php _e(‘Posts’); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<tr<?php bb_forum_class(‘bb-category’); ?> id=”forum_<?php echo get_forum_id()?>”>
<td colspan=”3″><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>
</tr>
<?php continue; endif; ?>
<tr<?php bb_forum_class(); ?> id=”forum_<?php echo get_forum_id()?>>
<td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><?php forum_name(); ?><?php forum_description( array( ‘before’ => ‘<small> – ‘, ‘after’ => ‘</small>’ ) ); ?><?php bb_forum_pad( ‘</div>’ ); ?></td>
<td class=”num”><?php forum_topics(); ?></td>
<td class=”num”><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>
So you can style with CSS the background and the font-color.
eg.
#forum_1 {background-color: #ddd; color: #333}December 23, 2010 at 8:07 am #103524Pomy
ParticipantMarkus Pezold take your time brother..
It will be my pleasure to wait your next post.
Well, I’m using a custom theme. Its not available on internet.
But If you want from me to show off my template code, then please tell me.
December 23, 2010 at 8:07 am #98424Pomy
ParticipantMarkus Pezold take your time brother..
It will be my pleasure to wait your next post.
Well, I’m using a custom theme. Its not available on internet.
But If you want from me to show off my template code, then please tell me.
-
AuthorSearch Results