Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16

Probable Bug in Google Analytis Code

This is a discussion on Probable Bug in Google Analytis Code within the Bug Reporting forums, part of the vBSEO SEO Plugin category; Has I report the original Bug for vBulletin but it is a vBSEO issue. See it here Threaded Mode - ...

  1. #1
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times

    Probable Bug in Google Analytis Code

    Has I report the original Bug for vBulletin but it is a vBSEO issue.

    See it here
    Threaded Mode - vBulletin Community Forum - Projects

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    Please try to modify functions_vbseo.php file:
    FIND:
    PHP Code:
    if($tmode=='threaded'
    REPLACE WITH:
    PHP Code:
    if($tmode=='threaded'||$tmode==1

  3. #3
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    Tried, but don't fix

  4. #4
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    The Java Script Error
    'curpostid' not defined

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Could you please open a ticket with FTP access and testing forum account for troubleshooting?

  6. #6
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    To get it work the Code should be:

    FIND:
    PHP Code:
    if($tmode=='threaded'
    REPLACE WITH:
    PHP Code:
    if($tmode='threaded'||$tmode=1

  7. #7
    Senior Member Shadab's Avatar
    Real Name
    Shadab
    Join Date
    Oct 2007
    Location
    Bhopal
    Posts
    821
    Liked
    0 times
    Blog Entries
    12
    Thanks for posting.
    Btw, I won't be affected, as I have disabled the hybrid/threaded views.

    @ Threaded Mode - vBulletin Community Forum - Projects
    You will need to harass their developers, or disable the plugin (I don't know which one; wild guess says is certain "SEO" addon) to correct this issue.
    LOL.

  8. #8
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    Heh
    I think that he was only ironic (maybe!)

  9. #9
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Quote Originally Posted by Sysop View Post
    To get it work the Code should be:

    FIND:
    PHP Code:
    if($tmode=='threaded'
    REPLACE WITH:
    PHP Code:
    if($tmode='threaded'||$tmode=1
    are you sure?

    that's not exactly a logical statement.

    = is an assignment
    == is a comparison

  10. #10
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    are you sure?

    that's not exactly a logical statement.

    = is an assignment
    == is a comparison
    it works in that mode for me
    if I use == comparison
    I get the result how I do nothing

  11. #11
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    if($tmode='threaded'||$tmode=1)

    ASSIGNS $tmode to 'threaded', and then to 1
    thus the 'if' will always be true

  12. #12
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    The same result is if using
    PHP Code:
    if($tmode=='threaded'||$tmode=1
    combined comparison and assignment to $tmode variable, and I think this is better then above solution that I have posted

  13. #13
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Again, that's not really logical.

    because you are effectively DEFINEING $tmode, it will ALWAYS be true.

    what you have is the same as

    if(1)

    1 certainly exists.

  14. #14
    Senior Member Sysop's Avatar
    Real Name
    Toni
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    176
    Liked
    0 times
    What you say is probable true, but in that way it works.

  15. #15
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Right, it will work for threaded view.

    but, are you breaking linear mode because of it?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. New Google Analytics Code
    By woostar in forum General Discussion
    Replies: 34
    Last Post: 05-11-2008, 06:01 AM
  2. Google Analystic Code
    By MxSoNiC in forum Deutsch
    Replies: 5
    Last Post: 04-10-2008, 01:22 PM
  3. Replies: 3
    Last Post: 01-01-2008, 07:51 AM
  4. 2.2.2/2.3.0 Google Analytics Code
    By Keith Cohen in forum Bug Reporting
    Replies: 4
    Last Post: 12-08-2005, 12:11 PM
  5. internal redirects due to probable configuration error
    By DerTobi75 in forum Troubleshooting
    Replies: 3
    Last Post: 11-30-2005, 08:59 PM

Posting Permissions

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