Results 1 to 15 of 23
Page 1 of 2
FirstFirst 1 2 ... LastLast

Thread: [RELEASE] Thread Start date/time

  1. #1
    Senior Member nuno has disabled reputation nuno's Avatar
    Join Date
    Apr 2001
    Age
    34
    Posts
    4,377

    [RELEASE] Thread Start date/time

    Inspired in wluke's hack:

    open forumdisplay.php

    find code:

    $threads=$DB_site->query("
    SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
    thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
    lastposter,thread.dateline,

    replace it with:

    $threads=$DB_site->query("
    SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
    thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
    lastposter,thread.dateline AS threadstart,

    find code:(2x)

    $thread[lastreplydate]=vbdate($dateformat,$thread[lastpost]);
    $thread[lastreplytime]=vbdate($timeformat,$thread[lastpost]);

    insert after it:

    $thread[threadstartdate]=vbdate($dateformat,$thread[threadstart]);
    $thread[threadstarttime]=vbdate($timeformat,$thread[threadstart]);

    save and close forumdisplay.php

    edit forumdisplaybit template

    find:

    <td bgcolor="{secondaltcolor}" width="30%" nowrap><normalfont>$thread[postedby]

    replace it with:

    <td bgcolor="{secondaltcolor}" width="30%" nowrap><smallfont>$thread[threadstartdate] <font color="{timecolor}">$thread[threadstarttime]</font><br> by $thread[postedby]</smallfont></td>

    save it

    done
     

  2. #2
    Senior Member RobAC has disabled reputation
    Join Date
    Jan 2001
    Posts
    1,296
    What does this hack do and where can we see an example of it?
    Rob
     

  3. #3
    Senior Member h4p3 is on a distinguished road
    Join Date
    Apr 2001
    Location
    Vienna, Austria
    Age
    27
    Posts
    215
    It displays you when the thread was started.

    For example:
    thread starter
    nuno
    on 05-26-2001 05:28 PM
     

  4. #4
    Senior Member nuno has disabled reputation nuno's Avatar
    Join Date
    Apr 2001
    Age
    34
    Posts
    4,377
    Last edited by nuno; Sat 26th May '01 at 2:05pm.
     

  5. #5
    New Member Rosevalley is on a distinguished road
    Join Date
    Jan 2001
    Age
    30
    Posts
    22
    Nice hack man !!! its working great ! easy to install, i had it working in 3 minutes. nice !!!

    My members are very happy now, tnx again.

    RoseValleY
     

  6. #6
    Senior Member BluSmurf is on a distinguished road BluSmurf's Avatar
    Join Date
    May 2001
    Location
    smurfland
    Age
    32
    Posts
    111
    Great hack , install it with ease!
     

  7. #7
    Senior Member JJR512 is on a distinguished road JJR512's Avatar
    Join Date
    Dec 2000
    Location
    Glen Burnie, MD, USA
    Age
    34
    Posts
    507
    Odd. I've been doing the same thing all along, only my version is much simpler.

    Here are my instructions for the same thing:

    Find this code in forumdisplay.php: (NOTE: it appears TWICE. You are looking ONLY for the SECOND instance of this code!)
    PHP Code:
    $thread[lastreplydate]=vbdate($dateformat,$thread[lastpost]); 
    $thread[lastreplytime]=vbdate($timeformat,$thread[lastpost]); 
    ...and after the SECOND instance of the above code, add:
    PHP Code:
    $thread[firstpostdate]=vbdate($dateformat,$thread[dateline]);
    $thread[firstposttime]=vbdate($timeformat,$thread[dateline]); 
    Save and upload the file.

    Next, edit the forumdisplaybit template. Look for:
    PHP Code:
    <normalfont>$thread[postedby]</normalfont
    ...and replace it with this:
    PHP Code:
    <smallfont>$thread[firstpostdate$thread[firstposttime]<br>by <b>$thread[postedby]</b></smallfont
    ALSO, in the opening <td> tag that this bit is in, you should add this:
    Code:
    align="right"
    This alignment, along with the formatting in the replacement code, will give the thread start time and started by username the same appearance as in the column for the last reply time and last reply user. But you can feel free, of course, to give it your own desired style.

    ***
    So you can see the differences between my version and nuno's version is that I get the thread start time and date from the dateline directly: "$timeformat,$thread[dateline]", whereas in nuno's version you have to edit a select query earlier in the code, and get the start time and date from the query results. It's just simpler this way, although obviously either way works.

    Example: http://www.jjr512.com/forums/forumdi...p?s=&forumid=1
    -Justin "JJR512" Rebbert
    JJR512.com: Chat about anything!
     

  8. #8
    Senior Member JJR512 is on a distinguished road JJR512's Avatar
    Join Date
    Dec 2000
    Location
    Glen Burnie, MD, USA
    Age
    34
    Posts
    507
    I'd also like to add that in the forumdisplay_threadslist template, I changed Thread Starter to Thread Started, because with the new information in that column, the word "started" is more accurate. It follows more naturally: "Thread Started date by username", rather than "Thread Starter date by username".
    -Justin "JJR512" Rebbert
    JJR512.com: Chat about anything!
     

  9. #9
    Senior Member express is on a distinguished road express's Avatar
    Join Date
    Apr 2001
    Location
    Flora Il
    Age
    47
    Posts
    1,457
    Thanks For the hack, worked great!



    Joey
     

  10. #10
    Senior Member ethank has disabled reputation ethank's Avatar
    Join Date
    Apr 2001
    Location
    Santa Barbara, CA
    Age
    30
    Posts
    604
    One issue that I can't figure out is why the username link is underlined in the "Thread Started" column, but not in the Last Post column. I followed the instructions to the letter!

    Ethan
     

  11. #11
    Senior Member JJR512 is on a distinguished road JJR512's Avatar
    Join Date
    Dec 2000
    Location
    Glen Burnie, MD, USA
    Age
    34
    Posts
    507
    ethank, that's not the case with my board. Which version of the hack did you use, mine or nuno's?
    -Justin "JJR512" Rebbert
    JJR512.com: Chat about anything!
     

  12. #12
    Member Zarkov is on a distinguished road
    Join Date
    May 2001
    Posts
    43
    ethank, the thread starter was already "underlined" without this hack and the last post members name wasnt.

    It has nothing to do with the hack m8, Although i cant see where the underline is comming from
     

  13. #13
    New Member west is on a distinguished road
    Join Date
    May 2001
    Location
    Paris France
    Age
    39
    Posts
    3

    THX

    thanks a lot /\/uno !!!

    it was very simple and it works great and now my members

    are very pleased...

     

  14. #14
    Senior Member hacker is on a distinguished road hacker's Avatar
    Join Date
    Mar 2001
    Posts
    111
    Originally posted by Zarkov
    ethank, the thread starter was already "underlined" without this hack and the last post members name wasnt.

    It has nothing to do with the hack m8, Although i cant see where the underline is comming from
    I applied the hack, but the color of the time is not the same as in Last Post.
     

  15. #15
    Senior Member almighty one is on a distinguished road almighty one's Avatar
    Join Date
    Feb 2001
    Posts
    393
    just my opinion but wouldnt it look better if it had the posters name then the date and time? maybe it is easy to do i havent even tried to install it maybe ill do this and have the name appeare above time thanx for hack
     

Page 1 of 2
FirstFirst 1 2 ... LastLast

Similar Threads

  1. Putting thread start date with thread starter name
    By Dream in forum vBulletin 3.0 How Do I and Troubleshooting Forum
    Replies: 2
    Last Post: Fri 26th Sep '03, 3:23pm
  2. users want to sort based on start date/time
    By remlle in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 1
    Last Post: Sat 15th Feb '03, 10:43pm
  3. thread start date
    By zoaner in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 0
    Last Post: Tue 1st May '01, 7:20pm

Bookmarks

Posting Permissions

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