Forum Replies Created

Viewing 15 replies - 106 through 120 (of 131 total)
  • Forum: Plugins
    In reply to: wp-People
    Thread Starter LoganSix

    (@logansix)

    @anatman – I posted a solution to your question on my forum.
    wp-people hack thread
    It requires editing the template-functions.php file. I am guessing that this file would be updated if you updated WordPress, so you would have to make this change again.

    Forum: Plugins
    In reply to: wp-People
    Thread Starter LoganSix

    (@logansix)

    it would also be excellent if it would still create the links despite differences in uppercase/lowercase

    This is fixed now.
    Check out my forum for the simple solution.
    wp-people hack thread

    Forum: Plugins
    In reply to: wp-People
    Thread Starter LoganSix

    (@logansix)

    @sindas
    Apparently the link doesn’t even work.
    You only have one entry in your wp-people database.
    Try testing it out on someone with a longer name. I’m not sure if that would be an issue, but I will recheck.
    Try pulling up the popup, by putting in the url and a value for the person.
    /wp-people-popup.php?person=1
    @lectique

    1. I’ll look into nick names, but I don’t see how you could do that, because if you know more than one person called Joe, how are you going to tell the difference. The most I could do is, you put in the persons full name and the link will display a nickname.
    2. The nophoto was just a image place holder, it doesn’t matter in the admin screen, because you would have “no photo”. The directory was the /images directory. So, that would be your root directory. I guess I will have to add a vars page, so you can specify the directory in the vars page and it will change in both places. But, you could add the url to your default “no photo” and it should show up on the admin screen too.
    3. change peopleDefine($bio); to just $bio, if you don’t want the bio’s to create a people link. I added that so you could create a relationship between people. In my example, Deb and Jon are married, so I wanted a link between their bios.
    4. Make sure your browser cache is cleared. IE has a problem of saving past pages too well.

    @anatman
    Not exactly sure, but you could could try changing your index.php page where it includes the post. You would have to alter the author part.
    peopleDefine(the_author(););
    Or you would have to change it in the wp-includes/template-functions.php file.

    Forum: Plugins
    In reply to: wp-People
    Thread Starter LoganSix

    (@logansix)

    @sindas
    What is your site? Can I look at your example?
    @mtanner
    You can enter anyone you like. When ever that name appears, then the link is created. I suggest that you use full names, so you don’t have multiple people with the same name, like Bob or Dave.

    Call me nit picky or something, but I think using the referrerLib is probably better for getting a more accurate count. What’s the point of putting a count out, if you can’t make it as accurate as possible.
    Now, I can see were having the count shoot up like a Saturn V rocket would help a person’s ego, but I prefer to get a more realistic view of who’s checking out my posts.
    Thanks for the work David, I look forward to the updated version to try out.

    I haven’t made any changes to get this working properly, but I want to point out that you should also put a IP tracker in it, so that refreshing the page doesn’t add to the count.
    Just a thought.

    Forum: Plugins
    In reply to: wp-People
    Thread Starter LoganSix

    (@logansix)

    Anybody using my hack yet?
    Besides the selfish need for attention, I want to know if anyone is having any problems with it.
    Thanks.

    LoganSix

    (@logansix)

    Doh!! Last post was by me. Thought I was logged in.

    LoganSix

    (@logansix)

    On the using the same session variables topic.
    From the phpBB knowledges base.
    Basic tutorial on how to keep sessions going across phpBB and your site
    Let’s not argue about which BB is used and work towards a solution that would work for most BB’s and WP. That being said, if the BB can’t use session variables to log in, then it would be off the list. We want to a minimal of modification to the BB.

    LoganSix

    (@logansix)

    In theory, you could setup WP to have an option to choose which BB system you are using. Then it would create the appropriate Session variable for whichever BB you choose.
    This would solve the debate about which BB to synch it with, but obviously there would have to be a script written for each BB to call the correct session variable and decode the information and ect…
    The problem with this is that you couldn’t log into WP from the BB’s, unless WP looked for that BB’s session variable.
    Hmmm, I think I might have come up with the outline for the complete answer. WP would only have it’s own session variable, if you didn’t assign a BB.
    Now the only issue would be automatic registration from the BB to WP or from WP to the BB. But, that could be solved with a Admin screen in WP to “synch BB registration”. Which would go to the BB tables and pull any new member information into the WP tables.

    LoganSix

    (@logansix)

    Reverted add_count back to what you had.
    Added suggested changes.
    Still no luck.
    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/deanlog/public_html/blog/my-hacks.php on line 14

    Forum: Plugins
    In reply to: Weather Hack
    LoganSix

    (@logansix)

    Weather reports are created each hour, unless the weather changes dramatically.
    phpWeather uses caching and database tables. Which basically the same as this hack.

    LoganSix

    (@logansix)

    I had to switch it because I was getting more errors the other way. This hack was breaking my wp-people hack.
    Now I only get the one error, I just want it to go away. Please let me know what you figure out.
    It only shows up when you click on the post to view it.

    LoganSix

    (@logansix)

    Running into an error:

    Warning: mysql_affected_rows(): A link to the server could not be established in /home/deanlog/public_html/blog/wp-includes/wp-db.php on line 173

    $this->rows_affected = mysql_affected_rows();
    I think it has something to do with the $wpdb call.
    Is there a way to close the $wpdb connection?
    I use it in another hack, so I could use this script the way it was created.
    My revised script:

    function add_count($p_number) {
    global $wpdb;
    $result = $wpdb->get_results("SELECT post_ID, postView_cnt FROM b2postView WHERE post_ID = $p_number");
    $test = 0;
    if($result){
    foreach ($result as $result){
    $newCount = $result->postView_cnt + 1;
    $postquery = ("update b2postView SET postView_cnt = $newCount WHERE post_ID = $result->post_ID");
    $results = $wpdb->query($postquery);
    $this->results = false;
    $test = 1;
    }
    }
    else{
    $postquery = ("insert INTO b2postView VALUES($p_number, 1)");
    $results = $wpdb->query($postquery);
    $this->results = false;
    }
    }

    LoganSix

    (@logansix)

    Bringing this thread back to life.
    I think it might be easier to change the User table columns in WP to match with phpBB and possiblity 4images. From what I can tell, they both use session variables to determine who is logged in. However, they determine the user access level based off of the base user information session variable. So, the same amount of variables might need to be passed in order for the login to work.
    Check out the auth.php and session.php files in phpBB includes folder.
    I think you would have to change the register screen in WP to call the register action form in phpBB, so it would add the user to both places. The only changes that should pass over from one area would be the profile info and password. Changes to the preferences would only happen when in the particular application.
    Once the tables are sync’d then you would have to change each applications Log-in areas to create a session variable for each application or change the session variable names so that they are all the same and can be used by all applications. Not sure if the later would work with password part, if they use different encryption methods.
    From what I see, this would be more than a my-hacks addition.
    I think it would be nice if part of the setup options if you could designate your blog, gallery and forum programs, so that the login’s could be combined.

Viewing 15 replies - 106 through 120 (of 131 total)