Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47

Thread: phpBB karma mod

  1. #21
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:phpBB karma mod

    I hit a snag.
    #Open: $PHPBBROOT/viewtopic.php
    #before:
    #//
    #// Again this will be handled by the templating
    #// code at some point
    #//
    #
    #Add:

    //Fetch karma
    $sql = "select karma from " . USERS_TABLE . " where username='$poster'";
    $result = $db->sql_query($sql);
    $array = mysql_fetch_array($result);
    $karma = $array[0];
    Problem is, the comment I am looking for that acts as a reference to where the code should go is.. non-existant...

  2. #22

    Re:phpBB karma mod

    okay, try adding it after this then:
    Code:
            if($span) {
                    $message = "<span style='$span'>" . $message . '</span>';
            }
    but try searching for 'Again' in viewtopic.php, I didn't think that was unique to my forums.
    I'm also working with phpBB 2.0.4, what version are you using?

  3. #23

    Re:phpBB karma mod

    might i suggest a patch/diff?

    diff -urN phpBB2.orig/ phpBB2-with-karma/ > karma.patch

    then apply with patch -p0 < karma.patch

    don't use rook's phpBB to do this though cause rook has a lot of other patches/tweaks (some really nasty ones too, i'd be embarased if you posted a diff here with some of the kludges I put in there :P)

  4. #24
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:phpBB karma mod

    [quote author=countach44 link=board=9;threadid=8472;start=0#msg78791 date=1077199350]
    okay, try adding it after this then:
    Code:
            if($span) {
                    $message = "<span style='$span'>" . $message . '</span>';
            }
    but try searching for 'Again' in viewtopic.php, I didn't think that was unique to my forums.
    I'm also working with phpBB 2.0.4, what version are you using?
    [/quote]
    I'm using phBB 2.0.6, just a few days old. Ah. Found it Thanks.

  5. #25
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:phpBB karma mod

    I got it installed, but I'm getting an error..

    http://www.quickfry.buildtolearn.net...mp;u=&t=12
    Code:
    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/phpBB2/karma.php:2) in /home/username/public_html/phpBB2/karma.php on line 80

  6. #26

    Re:phpBB karma mod

    hmmm, maybe try deleting the <HTML> and </HTML> tags from the script? Also, maybe get the newest version from http://countach44.mine.nu/projects/

    it turns out the version I originally posted was older than my newest. Sorry about that.

  7. #27
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:phpBB karma mod

    Hmm. I get no errors, but karma doesn't update..

  8. #28

    Re:phpBB karma mod

    yeah, you gotta change the stuff in the templates/x/viewtopic.tpl to :
    Code:
    <font size=1>Karma: {postrow.POSTER_KARMA}<br /><a href="karma.php?x=applaud&u={postrow.POSTER_ID}&t={TOPIC_ID}">applaud</a>  /  <a href="karma.php?x=smite&u={postrow.POSTER_ID}&t={TOPIC_ID}">smite</a></font><br />

  9. #29
    Mentor Stuart's Avatar
    Join Date
    May 2002
    Location
    nb.ca
    Posts
    1,087

    Re:phpBB karma mod

    I'm guessing you meant viewtopic_body.tpl
    I just changed it and the karma still doesn't change...

  10. #30

    Re:phpBB karma mod

    When I went on your forum and tried to vote I got a 500 and a 404 for karma.php:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@quickfry.buildtolearn.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Similar Threads

  1. Forums now upgraded to vBulletin from phpBB
    By peter in forum Announcements and Suggestions
    Replies: 1
    Last Post: 01-17-2006, 04:40 PM
  2. phpBB installation problem
    By imported_root in forum Linux - Software, Applications & Programming
    Replies: 9
    Last Post: 09-13-2004, 01:10 AM
  3. Welcome to phpBB 2
    By in forum General Chat
    Replies: 1
    Last Post: 04-19-2004, 10:53 PM
  4. phpbb
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 05-30-2003, 03:27 PM
  5. YaBB vs. phpBB
    By airhead in forum General Chat
    Replies: 3
    Last Post: 06-24-2002, 03:03 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •