Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 31,876 through 31,900 (of 32,411 total)
  • Author
    Search Results
  • #52117

    In reply to: Private Forums Plugin

    Trent Adams
    Member

    Thanks! The plugins work now with the latest code!

    Cheers,

    Trent

    #52114

    In reply to: Private Forums Plugin

    so1o
    Participant

    sorry about the mis communication..

    the latest code for bbpress.. :) coz the is_serialized function is in the latest code but not in blix i think…

    #52113

    In reply to: Private Forums Plugin

    Trent Adams
    Member

    I just redownloaded both site options and private forum plugins and reinstalled them.

    Still get the error:

    Fatal error: Call to undefined function: is_serialized() in /var/www/html/blog/forum/my-plugins/site-options.php on line 179

    Should I just give up and get lastest code?

    Trent

    #52112

    In reply to: Private Forums Plugin

    so1o
    Participant

    The plugin currently works on the latest code.. let me check if i can fix the code to work with blix..

    Trent:

    can you check with the latest code and let know..

    #52111

    In reply to: Private Forums Plugin

    ardentfrost
    Member

    Way to keep the bar raised for developing plugins s101 ;)

    Thanks for the plugin, one less thing I gotta make

    #52110

    In reply to: Private Forums Plugin

    Trent Adams
    Member

    If I submit anything in that page, it gives me the following error:

    Fatal error: Call to undefined function: is_serialized() in /var/www/html/blog/forum/my-plugins/site-options.php on line 179

    Trent

    #52109

    In reply to: Private Forums Plugin

    Trent Adams
    Member

    I am getting this beside each item in the private forum list in the admin:

    Warning: array_key_exists(): The second argument should be either an array or an object in /var/www/html/blog/forum/my-plugins/private-forums.php on line 29

    value="1" > Terms of Service

    Any ideas?

    #50642

    In reply to: rawurlencode() Error

    plognark
    Member

    Well, I came up with an ugly fix, especially since I don’t actually know what I’m doing.

    I’ve been trying to integrate the BBpress forum right inside my WP theme, which is what I imagine you were trying to do.

    To fix it I added this switch right at the top of my bbpress template header:

    $bbpressswitch = 1;

    unset($_SERVER);

    Then I went into classes.php for wordpress and put an if/else ‘switch’, basically:

    The first line there is 1645 in my file

    function build_query_string() {

    $this->query_string = ”;

    foreach ($this->public_query_vars as $wpvar) {

    if (isset($this->query_vars[$wpvar]) && ” != $this->query_vars[$wpvar]) {

    $this->query_string .= (strlen($this->query_string) < 1) ? ” : ‘&’;

    // bug fix for BBpress integration

    if ($bbpressswitch == 1) {

    // $this->query_string .= $wpvar . ‘=’ . rawurlencode($this->query_vars[$wpvar]);

    // if the url is being accessed from a page outside of WP that is using the header

    // or other data, turn off this URL encoding.

    } else {

    $this->query_string .= $wpvar . ‘=’ . rawurlencode($this->query_vars[$wpvar]);

    }

    // end of bug fix

    }

    }

    It’s ugly, and I’m a n00b at this stuff, but it does seem to have cleaned up my error. I guess the bbpress URL’s don’t work so good when sent through the WP URLencode setup, so turning them off when going into a BBpress page seemed like it might work.

    I don’t know if there are any other repurcussions from this change, but again, it turned off the error, and I haven’t seen any fallout…yet.

    There are other sites online that seem to offer a fix for the same issue, like this:

    http://forum.j-prosolution.com/openwp-bugreport/2637-warning-rawurlencode-expects-parameter-1-string.html

    But the fix they suggest kills all of your static pages or category links and always sends you to the main blog page.

    #52061

    In reply to: Simply doesn’t work

    lejovit
    Member

    Wow, that worked, thanks a lot. :)

    #52089
    ardentfrost
    Member

    Until a plugin is made, I think you’d have to pseudo-hardcode it. I was able to limit what admins and regular users could see in my memberlist by adding the following code:

    <?php if (bb_current_user_can('edit_users')) : ?>

    *some code here*

    <?php endif; ?>

    There are other options you can test on, that’s just the one I found to use.

    For you, in the *some code here* part, you’ll need to find a way to pull out what forums you got, and put an if statement to say only to show the Announcements one to admins.

    Looking at the files, I found a function called “forum_dropdown” in template functions. If you go there and within the foreach section, below the $selection part, put the following:

    if ( $forum->forum_name == 'Announcements' && !bb_current_user_can('edit_users') ) { }

    else

    That will do nothing when it gets to listing your “Announcements” section unless the user is an admin. The else is for the echo line below where I told you to put the previous line.

    Of course, this is a change to a core file, but sometimes that’s just what you gotta do until a plugin is made :D Furthermore, there is no filter to be added there, so writing a plugin would mean rewriting that function, dropping it in a plugin file, and calling the replacement function from post-form.php

    #52012
    Null
    Member

    kk thx

    #52011

    If you have no forums … then this will be displayed instead. (Try removing all forums and i think you’ll see it.)

    #1049
    Null
    Member

    Well this is the line near the bottom of front-page.php:

    <h3 class="bbcrumb"><a href="<?php option('uri'); ?>"><?php option('name'); ?></a></h3>

    But what does it do? Deleting this line doesn’t change anything….

    #50205

    In reply to: About Freshness

    thegecko
    Member

    I hope there is a solution/workaround soon…

    My server is in Dallas, I am in London right now, and my users are all over Asia in 3 different time zones :)

    #52082
    spencerp
    Member

    peiqinglong means a “folder” in your forum’s root directory, called: my-plugins ;) :)

    spencerp

    #51559
    Null
    Member

    Fixed it. For some reason putting

    $forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,$number_of_topics")

    in index.php gives the error, but placing it into front-page.php fixes it, no errors and it works…

    #1057

    When I was a wee HTML coder in the 90s at the beginning of the .COM boom in Australia, most of the clients I built sites for wanted counters at the bottom of their pages. This was something I enjoyed placing at the footer of my web pages because I could go back and visit some of my sites and see 37 people had viewed my webpage! We would feed this back to the clients to measure our success.

    Back then, there wasn’t much in the way of stats packages like urchin. There was no google either.

    At the work Christmas Party we joked that about 50% of the time we were tripping the counters ourselves. They weren’t very reliable.

    This trend faded with the advent of stats packages and the disappearance of the blink tag (and MC hammer).

    Anyway I’ve created my own for nostalgic purposes. Maybe it’s a mid life crisis. See the bottom of this page! I started at zero, honest! At the time of this post it’s got to 12. That would have been me.

    If you want to download it for your bbPress forum it’s here. I would appreciate it if you posted about this in your forum! http://www.freelancewebdeveloper.net.au/topic.php?id=49

    Just unpack the ye-olde-counter.zip and upload the counterinstall.php file to your root folder and then browse to it. This creates a table for your counter in your MySQL database. Delete this file after you run it.

    Then upload the ye-olde-counter.php file to your my-plugins directory. You may need to create this.

    Place the code <div id="counter"><?php ye_olde_counter(); ?></div> somewhere in in the footer div tag of your ‘bb-tempaltes/footer.php’ file and place these in your stylesheet

    #counter{text-align: center;padding-top: 20px;}

    .counter_number {color: red;}

    Enjoy! and please let me know how you go.

    you may wish to edit those styles.

    #52057
    Trent Adams
    Member

    Nothing is up yet, but maybe post something over at the following link because it might be just adding a little code to add a forum list to the code in this topic. Might be quick for someone. I would like this as well!

    https://bbpress.org/forums/topic/347?replies=24

    Trent

    #52050

    In reply to: users’ email address

    Trent Adams
    Member

    Temporary fix (REQUIRES CORE HACK).

    Go to bb-admin/admin-functions.php and edit line 288 from:

    function display( $show_search = true, $show_email = false ) {

    to

    function display( $show_search = true, $show_email = true ) {

    That will get it showing the the admin area under users. There might be an easier way or a setting to change without this core hack, but the functionality was already built in.

    Trent

    #52046
    miamiron
    Member

    Thanks again-

    I know I had problems with permalinks in WP and had to hardcode some setting to make them work….

    anyway, I appreciate your help!

    #52048

    In reply to: users’ email address

    ardentfrost
    Member

    do something like this:

    $result = get_profile_info_keys();

    foreach ($result as $key => $label ) {

    if ( $key == 'user_email' )

    echo $label;

    }

    That needs to have some way to pull in the user you’re trying to get though… hmm. It should be close though.

    #52039
    Trent Adams
    Member

    What I would try is getting bbpress site 2 using the WP 1 users directly. Try using the cookie information from the docs:

    If bbPress is not installed in a subdirectory of your WordPress install, you’ll probably need to adjust both bbPress’ and WordPress’ cookies to meet your specific requirements. Below is a brief outline of the variables and constants that control the cookie behavior in the two programs.

    PHP bbPress WordPress

    name $bb->usercookie USER_COOKIE

    name $bb->passcookie PASS_COOKIE

    path $bb->cookiepath COOKIEPATH

    path $bb->sitecookiepath SITECOOKIEPATH

    domain $bb->cookiedomain COOKIE_DOMAIN

    Trent

    #51669
    snowcrash
    Member

    bbpress with plugins such as this is really coming along – great stuff.

    Now if only there was a forum subscribe version, which would send out an email indicating there is a new post on a forum you’ve subscribed too (and better still, could be set to send out only one email or one for each new forum post). Of course probably asking for too much at this stage of development :-)

    #51814

    In reply to: Plugin – Member List

    spencerp
    Member

    Awesome!! Done!.. You’re the greatest, whee!! :D

    http://spencerp.net/forums/mlist

    spencerp

    #51813

    In reply to: Plugin – Member List

    ardentfrost
    Member

    glad it works :D

    And spencer, since you have my post count plugin also, you can uncomment those lines in memberlist.php :D

Viewing 25 results - 31,876 through 31,900 (of 32,411 total)
Skip to toolbar