[VB10] VBForums Reputations Saver 3-VBForums
Results 1 to 9 of 9

Thread: [VB10] VBForums Reputations Saver 3

  1. #1

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    3,650

    Post [VB10] VBForums Reputations Saver 3

    A utility to save your VBForum reputations and their URLs for future reference.
    VBForums only saves your last 50 or so reputations, after that they are lost forever.


    Code:
     Usage:
     ======
     On first usage enter your name and password for VBforums in Setup
     Click "Import New" to update.
    
     Testing:
     ========
     Windows 7 (US English), VB10(VS 2010) /.Net FW 4.0.
     Forum Software: vBulletin 4.2.0.
    
     History:
     ========
     v3.04 - Sept 12, 2014 
     * Last and Final update.
     * Minor fixes/changes.
    
     v3.03 - July 14, 2014 
     * Add support for new Spam smiley (in comments).
     * Fix: Reputation placeholder image was misnamed.
    
     v3.02 - July 01, 2014 
     * Replaced status label with a combo to hold a status message history.
     * Check what ver of vBulletin VBForum is running.
     * Other minor changes, encrypt & login classes.
    
     v3.01 - May 01, 2014. Main Changes
     * Fix: Partial comment text when added between smiley image.
     * Optimize comparing & adding new reps.
     * Uses HttpUtility.HtmlDecode to convert html tag to text.
     * Add search option.
    
    Note: August 2013: Version 2.x uses a Web Browser control and is no longer updated.


    Notice: About Your Given Reputation Links
    There is a bug in the forum software when creating your Given Reputation links.
    When launched the links will only auto scroll to a post that is on the first page of a thread.

    Just so you know, the bug isn't from this utility. Some testing of the given rep links discussed here.


    Update Note: Sept 23, 2014.
    The received reputation URLs are saved with HTML tags such as "&" (which should be "&").
    If you have a problem launching these URLs (or want to modify them, for example as single post view), try the following.

    1) Open the file "VBforumReps.txt" in a text editor, and replace "&" with "&" (without the quotation marks), save the file.

    2) In VS, open FrmMain to code view, and in Function ParseReps replace this,...

    tempRep.URL_ID = GetTextBetween(sTmp, "?", """>").Trim
    with this,...
    tempRep.URL_ID = System.Web.HttpUtility.HtmlDecode(GetTextBetween(sTmp, "?", """>").Trim)


    Also see:
    [VB10] Parsing VBForums by Edgemeal
    [VB10] VBForums Monitor by Edgemeal
    Another VBForums Reputations Saver by ident
    VBForums Reputations Saver by Pradeep1210 (which unfortunately hasn't worked for some time).
    Attached Files Attached Files
    Last edited by Edgemeal; Sep 23rd, 2014 at 05:08 PM. Reason: Received reputation URL note.

  2. #2
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    1,699

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

    Thank you very much for sharing this nice tool.

  3. #3
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    1,699

    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

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    3,650

    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 2006
    Location
    Egypt
    Posts
    1,699

    Re: VB10 - VBForums Reputations Saver 2

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

  6. #6

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    3,650

    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.
    Last edited by Edgemeal; Feb 25th, 2014 at 04:21 PM.

  7. #7
    Frenzied Member
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    1,699

    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.

  8. #8

  9. #9

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    3,650

    Re: VB10 - VBForums Reputations Saver 2

    Quote Originally Posted by 4x2y View Post
    Only the following images > 16x16
    alienfrog.gif
    completeclear.gif
    confused.gif
    duck.gif
    wave.gif
    Well I finally updated those images (v3.0 Beta 06), I'm not an artist so I just cropped and re-sized em.

    EDIT 2 :
    v3.0 BETA 06 was pulled due to errors.
    If you updated your reps with v3.00 - BETA 06 and have incorrect reputation or smiley images, open your Rep files and remove those lines, save the text files and re-run "Import New" to correct.
    Last edited by Edgemeal; Mar 29th, 2014 at 12:13 AM.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.