Results 1 to 7 of 7

Thread: VB10 - VBForums Reputations Saver 2

  1. #1
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,140

    VB10 - VBForums Reputations Saver 2

    If you haven't noticed, the forum only holds your last 48 received reputations and last 50 given, after that they are lost forever.
    This utility saves your reps and their URLs for future reference.
    Name:  VBF_Rep_Saver_2.png
Views: 4
Size:  68.5 KB
    Code:
    VBForums Reputation Saver 2
    ===========================
    Updated for vBulletin 4.2.0,  VBForums update on May 09, 2013.
    
    ' History:
    ' ========
    ' v2.01 - May 12, 2013 - Fix: Launching URLs from Given Reps was broken.
    ' v2.00 - May 11, 2013 - Combined my Reps saver and Reps Given saver into one app.
    
    ' About: 
    '=======
    ' VBForums only shows your last 48 received and last 50 given reputations,
    ' after that they are lost forever. This app saves your reputations!
    '
    ' The code isn't pretty (parts from VB6,etc), but it works! :)
    '
    ' Usage:
    ' ======
    ' On first usage enter your name and password for VBforums in SetUp.
    ' To update click "Import New", this uses a VB Webbrowser control to,
    ' auto login, get & parse your latest reputations and auto logout.
    '
    ' If you have data saved from the older versions (v1.04 +) just copy the,
    ' text files ("VBforumReps.txt" & "VBforums_Given_Reps.txt") to this apps folder.
    
    'Testing:
    '========
    ' Windows 7 (US English), w/IE 10
    ' VB10 w/.Net 4.0.
    NOTE: This is nothing like the original VBForums Reputations Saver by Pradeep1210, which hasn't worked for some time.
    Attached Files Attached Files
    Last edited by Edgemeal; May 18th, 2013 at 02:13 PM. Reason: Upload v2.01

  2. #2
    Frenzied Member
    Join Date
    Sep 06
    Posts
    1,258

    Re: [VB10] VBForums Reputations Saver - and the Ugly

    Thank you very much for sharing this nice tool.

  3. #3
    Frenzied Member
    Join Date
    Sep 06
    Posts
    1,258

    Re: VB10 - VBForums Reputations Saver 2

    Did you changed the format of the file VBforumReps.txt?

    I have added VBforumReps.txt (created by version 1) in the same folder of the version 2 in hope to merge new rep to previous but i got this error


    ---------------------------
    File Load Error
    ---------------------------
    Index was outside the bounds of the array.
    ---------------------------
    OK
    ---------------------------
    When i press OK, only the first rep is loaded!

  4. #4
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,140

    Re: VB10 - VBForums Reputations Saver 2

    Quote Originally Posted by 4x2y View Post
    Did you changed the format of the file VBforumReps.txt?

    I have added VBforumReps.txt (created by version 1) in the same folder of the version 2 in hope to merge new rep to previous but i got this error

    When i press OK, only the first rep is loaded!
    Yeah, It is really only compatible with reps saved from v1.04 & 1.05, which include an extra entry in the reps file for the comment smiley.
    I removed the built-in upgrade fix .
    To fix it so it will work with older saved reps look in, Private Sub LoadReps()
    Note the code that gets the smiley index,...

    Code:
        ' add comment smiley image index to LV Tag prop and set LV subitem image.
        lvi.Tag = entry(6)
        ' set comment column(3) smiley image.
        ListView_SetSubItemImageIndex(ListView1.Handle, ListView1.Items.Count - 1, ListView1.Columns(3).Index, CInt(entry(6)))
    Next ' - next line
    Replace that with this code from the old rep saver...

    Code:
        'v1.04 - add comment smiley image index to LV Tag prop and set LV subitem image.
        ' Note: Since versions before v1.04 didn't support this,
        ' we need to do a length check or will error!
        ' Once data is saved we would no longer need to do this check!
        If entry.Length = 7 Then 
            lvi.Tag = entry(6)
            ' set comment column(3) smiley image.
            ListView_SetSubItemImageIndex(ListView1.Handle, ListView1.Items.Count - 1, ListView1.Columns(3).Index, CInt(entry(6)))
        Else ' data has NOT been saved with v1.04 (or later).
            lvi.Tag = -1 ' -1 = no image.
        End If
    Next ' - next line
    Once your rep file gets updated (got some new reps) it will be saved and include the newer comment smiley indexes, you could then go back to using the newer code.
    Hope that makes sense.

  5. #5
    Frenzied Member
    Join Date
    Sep 06
    Posts
    1,258

    Re: VB10 - VBForums Reputations Saver 2

    Thank you, i have updated my old VBforumReps.txt successfully

  6. #6
    PowerPoster Edgemeal's Avatar
    Join Date
    Sep 06
    Location
    WindowFromPoint(x,y)
    Posts
    3,140

    Re: VB10 - VBForums Reputations Saver 2

    Quote Originally Posted by 4x2y View Post
    Thank you, i have updated my old VBforumReps.txt successfully
    Great, thanks for the feedback!
    BTW, I just updated the app to v2.01, seems the Given Reps URLs wouldn't work with the older vbforums base URL I was using, I hope thats fixed now!

    EDIT: The comment images need some work (resizing?), I just got your rep with the wave and its crunched up.
    Attached Images Attached Images  
    Last edited by Edgemeal; May 12th, 2013 at 02:41 PM.

  7. #7
    Frenzied Member
    Join Date
    Sep 06
    Posts
    1,258

    Re: VB10 - VBForums Reputations Saver 2

    BTW, I just updated the app to v2.01, seems the Given Reps URLs wouldn't work with the older vbforums base URL I was using, I hope thats fixed now!
    Yes it has been fixed

    EDIT: The comment images need some work (resizing?), I just got your rep with the wave and its crunched up
    Only the following images > 16x16
    alienfrog.gif
    completeclear.gif
    confused.gif
    duck.gif
    wave.gif

    There are some images of siz 15x15 but i don't think they are need resizing.

Posting Permissions

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