Jump to content
xisto Community

Deaths Aprentice

Members
  • Content Count

    125
  • Joined

  • Last visited

Posts posted by Deaths Aprentice


  1. Hello everyone,

     

    I created this mod a long time ago, back when i was till running an IPB.

    I've been running vB for a long time now, and forgot about this hack.

     

    Now, I've just found it here on my system, so i thought I'd share it :D.

    This hack was made for IPB version 1.2, I have not tested it on any other versions. However, I'm quite sure it will work on newer versions aswell.

     

    Ok, lets start.

     

    Download the required files here.

     

    Description of Mod:

    Show a bar in the topic and at the Memberlist

    100% means a users has visit your board every day

    0% means a user didn't visit your board yet (but he/she did sign up)

     

    Upload all direcories to the root of your forum

    Upload trap17_ipbmod.php to the place where index.php is and run it.

     

    Open sources\functions.php

    Find

     

    if (!$this->member['last_visit'])

    {

    // No last visit set, do so now!

    Add Above

    // activity mod | xgnews.tk

    $date_now = getdate($this->time_now);$date_last = getdate($this->member['last_activity']);

    if($date_now['year']!=$date_last['year'] or $date_now['mon']!=$date_last['mon'] or $date_now['mday'] != $date_last['mday'])

    {

    $DB->query("UPDATE trap17_ipbmembers SET activity=activity+1 WHERE id='".$this->member['id']."'");

    }

    // activity mod | xgnews.tk

    Close & Save

    Open sources\Topics.php

    Find

    m.warn_level, m.warn_lastwarn,

     

    Add Directly After

     

    m.last_activity,m.activity,

     

    Find

    if ($row['author_id'] != 0)

    {

    Add Above

     

     

    $d_t=getdate(time());$d_m=getdate($row['joined']);

    $numofdays=(mktime(0,0,0,$d_t['mon'],$d_t['mday'],$d_t['year'])-mktime(0,0,0,$d_m['mon'],$d_m['mday'],$d_m['year']))/(24*60*60);

    $numofdays=round($numofdays);$activ=100;

    if($numofdays!=0) $activ = floor(100*($row['activity']/$numofdays));

    if($activ >100) $activ=100;

    $row['acti']= "$activ% of max. days online";

    $row['actip']= ($activ-1)."%";

     

    Close & Save

    Open skin\s*\skin_topic.php

    Find

     

    {$author['member_joined']}<br />

     

    Add Directly After

    {$author['acti']}<br />

    <table width="100" border="0" cellspacing="0" cellpadding="0"><tr><td>

    <img src="html/bar/bxg.gif" width="{$author['actip']}" height="9" alt='bar' /><img src="html/bar/bxb.gif" width="1" height="9" alt='bar' />

    </td></tr></table>

    Close & Save

     

    Open sources\Memberlist.php

    Find

    , me.photo_dimensions

     

    Add Directly After

     

    , m.activity

     

    Find

     

    $member['joined'] = $std->get_date( $member['joined'], 'JOINED' );

     

    Add Above

    // activity mod | xgnews.tk

    $d_t=getdate(time());$d_m=getdate($member['joined']);

    $numofdays=(mktime(0,0,0,$d_t['mon'],$d_t['mday'],$d_t['year'])-mktime(0,0,0,$d_m['mon'],$d_m['mday'],$d_m['year']))/(24*60*60);

    $numofdays=round($numofdays); $activ=100;

    if($numofdays!=0) $activ = floor(100*($member['activity']/$numofdays));

    if($activ >100) $activ=100;

    $member['acti']= "$activ%";

    // activity mod | xgnews.tk

     

    Close & Save

    Open skin\s*\skin_mlist.php

    Find

     

    <th class='pformstrip' align="center" width="10%">{$ibforums->lang['member_group']}</th>

    Add Below

    <th class='pformstrip' align="center" width="5%">{$ibforums->lang['member_activ']}</th>

     

    Find

    <td class='row2' align="center" width="20%">{$member['group']}</td>

     

    Add Below

     

    <td class='row4' align="center" width="10%">{$member['acti']}</td>

     

    Find

     

    colspan="9"

     

    Replace with

     

    colspan="10"

     

    Find

     

    colspan="9"

     

    Replace with

     

    colspan="10"

     

    Find

     

    colspan="9"

     

    Replace with

     

    colspan="10"

     

    Close & Save

    Open lang\en\lang_mlist.php

    Find

     

    );

    ?>

     

    Add Above

     

     

    member_activ => "Activity",

     

    Close & Save

    Open sources\Profile.php

    Find

     

    $info['joined'] = $std->get_date( $member['joined'], 'JOINED' );

    Add below

    // activity mod | xgnews.tk

    $d_t=getdate(time());$d_m=getdate($member['joined']);

    $numofdays=(mktime(0,0,0,$d_t['mon'],$d_t['mday'],$d_t['year'])-mktime(0,0,0,$d_m['mon'],$d_m['mday'],$d_m['year']))/(24*60*60);

    $numofdays=round($numofdays); $activ=100;

    if($numofdays!=0) $activ = floor(100*($member['activity']/$numofdays));

    if($activ >100) $activ=100;

    $info['acti']= "$activ%";

    // activity mod | xgnews.tk

     

    Close & Save

    Open Skin\s*\skin_profile.php

    Find

    <tr>

    <td class="row3" valign='top'><b>{$ibforums->lang['joined']}</b></td>

    <td align='left' class='row1'><b>{$info['joined']}</b></td>

    </tr>

    Add below

    <tr>

    <td class="row3" valign='top'><b>{$ibforums->lang['act_mdo']}</b></td>

    <td align='left' class='row1' width="90%"><img src="html/bar/bxg.gif" width="{$info['acti']}" height="9" alt='bar' /><img src="html/bar/bxb.gif" width="1" height="9" alt='bar' />

     {$info['acti']}

    </td>

    </tr>

     

    Close & Save

    Open lang\en\lang_profile.php

    Find

    );

    ?>

     

    Add Above

     

    "act_mdo" => "max. days online",

     

    Close & Save

     

    Now re-upload all the files, and you're done!


  2. let's make insert.php (or something else):

     

    <?php

    if($go){ // if var $go is set

    mysql_query("INSERT INTO table(name,description,image,location) VALUES ('$name','$desc','$image','$location') or die (mysql_error());

    echo "Done!";

    exit;

    } else { // not really required at this case but...

    ?>

     

    <form action="insert.php" method="post">

    Name: <input type="text" name="name"><br>

    Description: <input type="text" name="desc"><br>

    Image: <input type="text" name="image"><br>

    Location: <input type="text" name="location"><br>

    <input type="submit" name="go" value="Submit">

    </form>

    <?php

    }

    ?>

     

    But don't forget to connect this page with the database. I suggest that you make a new page called conection.php with all the details and connections, and put: include("conection.php"); at the top of the pages which requires an connection.

    40226[/snapback]


    My changes are in bold, some of them are not really needed, but this way it's better :D

     

    EDIT: Heh, sorry, thought there was only 1 page ^.^, didn't see the other replys.

     

    PS Have you been trying out with this script, is MySQL down because of this xD?


  3. It seems like everycouple of days the mysql databases for my site go down from anywhere of minutes to hours. Is this supposed to happen and I am using phpnuke cms. If this happens alot I may be convinced to switch to paid hosting if paid hosting doesnt have mysql go down for extended periods. Yarr.

    48181[/snapback]

    Paid hosting indeed doesn't have quite as many downtimes, because they don't have noobs playing around with faulty MySQL commands...

  4. THESE THINGS LAST FOR ABOUT 10 - 15 MINUTES and

    Lol?
    In Christmas holliday I've expierenced downtimes of over 2 hours.

    To make this clear:
    Your Cpanel gets the MySQL data from the MySQL server.
    If this is shut down, or not working for one reason or another, Cpanel cannot get the data from the MySQL server.
    It will look like there are no MySQL databases, but actually the server is just not functioning correctly.

  5. Tested them, here's what I've found so far:Config like PHPBB, plain and easy (I don't like it).The skin creater thing, is almost the same as with PHPBB, but with a visual example of what you're creating. (I like it, but I prefer creating my own skins using .xml).Setting moderators for forums is very unclear, and annoying.For the rest it's kinda like PHPBB, but then a little more advanced.Not worth the money if you ask me, you could get praticly the same by modifying a PHPBB board :\


  6. I don't like how forums appears when using vBulletin. It's like it's not professional. In IPB, it's like you have a forum that is very expensive! :D

     

    So, vBulletin is the answer? Is there any version of vBulletin that is premodded? How can I get vBulletin for free? I have no money! :D

    47121[/snapback]

    With the right portal software, and a nice skin, vB looks very proffesional :D.

    A free vB download used to be at my forum, but I removed it a while back, heh.


  7. PHPBB sucks, once you tried vB :D.
    IPB is stable, because it is harder to modify.
    vB is easy to modify, and mistakes just aren't parsed.(e.g. you added a wrong piece of code in the templates, so it won't show up).
    Once you them install another hack, which then uses that code, your system will not perform at its maximum.

    IPB is used most, because it's the cheapest compared to vB.
    I never tried simple machines, so I can't judge that one.

    vBulletin is used by 2 groups:
    1. Big rich companies, who can afford the yearly license cost/the high buying price.
    2. People who like coding, and like coding hacks.

    If you want, you can go to vbulletin.org, find a hack you wanna see, then use this site to download it.


  8. Heh, there is a difference between installing hacks and coding them :D.Editing templates in vBulletin, and installing hacks, is extremely easy.Coding them, is harder. Still, coding hacks for vBulletin is easyer than coding them for IPB, but harder than coding for PHPBB.PHPBB has more limits though.vBulletin also has a big hack writing helpfull community, and if you would really need help (screwed up while upgrading or something), someone can help you out for ~10 $ !People like me (vBulletin hack coder) aren't rare at all, so you will find lots of help at the vbulletin.org forums :D. (vb.org is the vbulletin hack community)


  9. I myself use vBulletin.I used to have an invisionfree forum, when i started my community.I didn't like the options you got, there were just too few.So, soon I got myself a very bad free host, and hosted a PHPBB board on it.Then, I found Xisto, got myself some posts and uploaded that same PHPBB Board.While scrolling around in the Cpanel, I found the IPB installer.I always wanted an IPB Board, so I installed that right away.After that, I was thinking of getting a professional host, and made some polls at some forums to ask which forum was best.Many people then sayd that vBulletin was the best, so I tried the online demo.I was instaltly amazed by its many options, it's oh-so flexible template system, and it's huge range of hacks!I went on with my research, and found that vBulletin was one of the best boards to install hacks on.(one of my hobies).I then bought vBulletin, and uploaded it to my Xisto account.Now, I'm still using that same vBulletin board, on that same Xisto account :D.If you have a lot of free time, and you're good with vBulletin, you can even make a lot of money by coding hacks for other companies! (something I do now).


  10. Thanks for the replys everyone!alperuzi: It looks expensive because you can get the same model but with a 754 socket for 2/3 of the price ;DT100: I really only need 80 GB, I'm now using 40 GB and that's no problem :PA 9800 Pro costs a nice 230 euro, so I don't think I'll buy it... for now.I'll save up for it after I bought this one, heh.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.