Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,401 through 23,425 (of 32,468 total)
  • Author
    Search Results
  • #79471
    kirpiit
    Member

    Yet something is wrong. It does not work.

    Link should most probably look like

    http://www.example.com/forum/profile/user

    The right code is probably hidden in the header, where it says

    Welcome, User | Log Out

    That User link is the one I’m after, but cannot find out how it is built.

    #79470
    gerikg
    Member

    <a href="profile.php?id=<?php echo get_post_author_id(); ?>"><?php post_author();?></a>

    #79467
    kirpiit
    Member

    So in post.php there 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…

    #79499

    Replace the code from the default theme in your code and then try.

    #79508
    gerikg
    Member
    #79507
    sixyofo
    Member

    Thanks!!

    #79506
    gerikg
    Member
    #31815
    sixyofo
    Member

    I’m trying to embed one in this topic

    <object width=”560″ height=”340″><param name=”movie” value=”http://www.youtube.com/v/pM1Z1y4-Ylg&hl=zh_TW&fs=1&”></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/pM1Z1y4-Ylg&hl=zh_TW&fs=1&&#8221; type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”560″ height=”340″></embed></object>

    NOt working.. > <

    #31814
    gerikg
    Member

    I’m using this in BP under the user’s profile.

    <h3 id="useractivity"><?php _e('User Activity') ?></h3>

    <div id="user-replies" class="user-recent"><h4><?php _e('Recent Replies'); ?></h4>
    <?php if ( $posts ) : ?>
    <ol>
    <?php foreach ($posts as $bb_post) : $topic = get_topic( $bb_post->topic_id ) ?>
    <li<?php alt_class('replies'); ?>>
    <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> -
    <?php if ( $user->ID == bb_get_current_user_info( $user->ID ) ) printf(__('You last replied: %s ago'), bb_get_post_time()); else printf(__('User last replied: %s ago'), bb_get_post_time()); ?> |

    <span class="freshness"><?php
    if ( bb_get_post_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
    printf(__('Most recent reply: %s ago'), get_topic_time());
    else
    _e('No replies since');
    ?></span>
    </li>
    <?php endforeach; ?>
    </ol>
    <?php else : if ( $page ) : ?>
    <p><?php _e('No more replies.') ?></p>
    <?php else : ?>
    <p><?php _e('No replies yet.') ?></p>
    <?php endif; endif; ?>
    </div>

    <div id="user-threads" class="user-recent">
    <h4><?php _e('Topics Started') ?></h4>
    <?php if ( $topics ) : ?>
    <ol>
    <?php foreach ($topics as $topic) : ?>
    <li<?php alt_class('topics'); ?>>
    <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> -
    <?php printf(__('Started: %s ago'), get_topic_start_time()); ?> |

    <span class="freshness"><?php
    if ( get_topic_start_time( 'timestamp' ) < get_topic_time( 'timestamp' ) )
    printf(__('Most recent reply: %s ago'), get_topic_time());
    else
    _e('No replies.');
    ?></span>
    </li>
    <?php endforeach; ?>
    </ol>
    <?php else : if ( $page ) : ?>
    <p><?php _e('No more topics posted.') ?></p>
    <?php else : ?>
    <p><?php _e('No topics posted yet.') ?></p>
    <?php endif; endif;?>
    </div>

    but I get: No replies yet. & No topics posted yet.

    what am I missing?

    #79497
    Mark
    Member

    I turned them on.

    I found the problem though, some time in the middle of last night I had some hair brained idea to reverse integrate bbpress back into WordPress so I could display forums in my sidebars and what not… well I’m running ยต and I didn’t want everybody who hosts with us to have to load bbpress and not even get to use it, so I was being ‘crafty’. Somehow I managed not to break WP, but I busted bbPress. :) Woke up this morning and forgot all about it.

    #79488
    gerikg
    Member

    or just <?php forum_name($topic->forum_id);?>

    #79486
    gerikg
    Member

    Go it <?php global $topic; forum_name($topic->forum_id);?>

    with the help of _ck_’s post: https://bbpress.org/forums/topic/retrieving-forum-id-from-post-id#post-21521

    #79465
    kirpiit
    Member

    Plugins are good but as my humble experience goes the less I use of them the better: it is not rare that they conflict with each other. In other cases they also switch unexpected behaviours somewhere. Moreover, that plugin seems to be much more than I need.

    Most probably in this very case a simple code edit in the right template would do, but I do not know where and how to touch. Does anybody have an idea of the needed change, please?

    #79492
    frasermassey
    Member

    Dont have a statistics plugin as far as I know, checked the plugin directory and cannot see it.

    Thanks Johnhiler, I saw that post previous and have checked and they do have start times. I was hoping it was that also :)

    keep suggestions coming please.

    #79437

    In reply to: bbPress Codex – lolz

    johnhiler
    Member

    That url has been mapping to buddypress for a while now… not sure what’s going on, but guessing it’s just random.

    #31811
    frasermassey
    Member

    Hi

    I run a WP site and BBpress forum. Recently upgraded to BBpress latest release version and now when I log in I cannot view any old posts and when I try to create a new topic is reports ‘This topic has been closed’

    On the top of dashboard I get the following…

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 214

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 194

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 174

    Warning: Division by zero in D:inetpubvhostssunstridercats.orghttpdocsbbpressbb-includesfunctions.bb-statistics.php on line 244

    I know this warning is shown if it belives there are no posts but the forum has been fine for a long time and has showing on the overview of the dashboard..

    39 forums

    82 topics

    457 posts

    So the posts are still there although I cannot see them or add to them.

    Any help would be greatly appreciated.

    #31810
    gerikg
    Member

    How do I add forum name to latest discussion.

    so instead of saying,

    call for testers on the 0.9 branch and 1.0 trunk

    to say,

    Requests and Feedback: call for testers on the 0.9 branch and 1.0 trunk

    I’ve tried <?php forum_name(); ?>

    kirpiit
    Member

    The default Kakumei theme shows two variables in the user section of every post, at left.

    You can see them both here as well, in this very post.

    The first one is defined in the profile page as Display name as and links to whatever appears in the Website field.

    The second one is defined in the profile page as User Type (which most often defaults to Member), links to the Profile page of the specific user, and could be changed by the Custom Title field.

    How would it be possible to drop the User Type and just keep the Display name as linking to the user Profile page?

    How does using $wpdb & $bbdb differs from using $results=mysql_query($query);?

    #79386

    They will be fixed in upcoming versions. Its reported in the Trac now. Till they are fixed, bear them & it should not be hard as regular users don’t see them :P

    #31807

    I wrote a plugin which will show some data by a mysql query and I am doing it using $bbdb and I hooked it to the post_post_form but the problem is that the variable intended to store the query result is empty.

    However if I manually call the function in the template it works fine.

    I am using the default theme. What could be the problem?

    #79436

    In reply to: bbPress Codex – lolz

    _ck_
    Participant

    That’s just a domain mapping problem, it’s not the bbpress.org site.

    They just both are parked right now on the same automattic server.

    #79435

    In reply to: bbPress Codex – lolz

    chandersbs
    Member

    I think it’s very cool, I love it.

    #79442

    Didn’t get what are you trying to do.

    Are you trying to move the forums list to your sidebar or what?

    Try cutting the php code out of your theme to the place where you want it.

    #79434

    In reply to: bbPress Codex – lolz

    I was able to login using the forum’s login credentials.

    Here is my profile : https://codex.bbpress.org/developers/ashfame/

Viewing 25 results - 23,401 through 23,425 (of 32,468 total)
Skip to toolbar