vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=92410)

Abe1 04-18-2006 02:37 AM

Version 4.0 (4/17/06):
  • [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!

Do to the many changes I made in the templates and plug-ins for AJAX I have jumped to version 4.0. There are no new template edits so to upgrade you only have to upload the XML.

AJAX now runs for the 3 options. Adding thanks by clicking the button, removing your thanks, and removing all thanks.

The thanks button and box with all users who gave thanks will appearer, update, or disappear accordingly with out you having you refresh.

Abe1 04-18-2006 02:50 AM

Any one who download in the passed few min, please re-download. The new templates where not getting cached.

mfizzel 04-18-2006 03:15 AM

WOOO HOOOO :banana:

nix 04-18-2006 03:40 AM

Quote:

Originally Posted by mfizzel
WOOO HOOOO :banana:

What he siad. Love the ajax add on!

RMS-Chef 04-18-2006 03:56 AM

Quote:

Originally Posted by Abe1
Version 4.0 (4/17/06):
  • [ADDED] AJAX technology so your users don't have to refresh the page they are viewing!

Would I expect any added server load for this new feature?
I have threads with hundereds and even a few with X,XXX thanks and my server load is starting to worry me as it is so I am being careful what I add and/or change these days. Just want to make sure if this new update would tend to cause more or less server load then the previous version?

ForeverForums 04-18-2006 03:59 AM

installed it, then uninstalled and went back to 3.3 due to....

when someone would reply they would get taken to a blank white page...however if they pressed stop then then "back" and refresh the page their reply would show up.

anyone else having this same issue ?

mholtum 04-18-2006 04:11 AM

Hmm.. I have been running this mod for quite some time without issue. Now that I have upgraded to the new version, I see no thank you button and all my edits are in place.

Hmm

bairy 04-18-2006 09:40 AM

Quote:

Originally Posted by RMS-Chef
Would I expect any added server load for this new feature?

AJAX will prevent a page refresh when the button is pressed.
There will still be a little overhead while the database is updated, but it won't have to regenerate the entire page, which will save a lot.


Brilliant addition Abe, well done :D

Abe1 04-18-2006 12:17 PM

Quote:

Originally Posted by RMS-Chef
Would I expect any added server load for this new feature?
I have threads with hundereds and even a few with X,XXX thanks and my server load is starting to worry me as it is so I am being careful what I add and/or change these days. Just want to make sure if this new update would tend to cause more or less server load then the previous version?

Well said Bairy.

This hack does not refresh anything automatically so it doesn't waist server resources. The only time query are run is when a user clicks 'thanks'. And now, there are less queries then before since the whole page doesn't have to refresh saving you about 10-15 queries.

EvilHawk 04-18-2006 12:35 PM

Abe1 i like the ajax addition, good job!

But i noticed a small bug, the post_thanks_button appears at all messages even at the forums that is enabled the option to appear at the first post only, the forums that i have the post thanks hack off and it also appears at the pm's.

Abe1 04-18-2006 12:39 PM

Quote:

Originally Posted by ForeverForums
installed it, then uninstalled and went back to 3.3 due to....

when someone would reply they would get taken to a blank white page...however if they pressed stop then then "back" and refresh the page their reply would show up.

anyone else having this same issue ?

Will look into.

Abe1 04-18-2006 12:40 PM

Quote:

Originally Posted by mholtum
Hmm.. I have been running this mod for quite some time without issue. Now that I have upgraded to the new version, I see no thank you button and all my edits are in place.

Hmm

There are many template changes. If you edited any of the templates, you must revert them.

Abe1 04-18-2006 12:42 PM

Quote:

Originally Posted by EvilHawk
Abe1 i like the ajax addition, good job!

But i noticed a small bug, the post_thanks_button appears at all messages even at the forums that is enabled the option to appear at the first post only, the forums that i have the post thanks hack off and it also appears at the pm's.

Thanks. Will look into.

Abe1 04-18-2006 02:17 PM

Quote:

Originally Posted by EvilHawk
Abe1 i like the ajax addition, good job!

But i noticed a small bug, the post_thanks_button appears at all messages even at the forums that is enabled the option to appear at the first post only, the forums that i have the post thanks hack off and it also appears at the pm's.

I tested both and both seem to be working normaly.

Abe1 04-18-2006 02:25 PM

Version 4.1 (4/18/06):
  • [FIXED] Crashing of 'quick reply' when using Firefox.

glorify 04-18-2006 02:51 PM

Will the AJAX version work for 3.5.0?

mfizzel 04-18-2006 02:53 PM

Quote:

Originally Posted by Abe1
Version 4.1 (4/18/06):
  • [FIXED] Crashing of 'quick reply' when using Firefox.

seriously, you're the man, my members reported this bug this morning and I check here and you already have a fix!

Another thing fixed is that members thanked in over 1,000 posts now show correctly - before it just said 'thanked in 1 post'

Abe1 04-18-2006 03:13 PM

Quote:

Originally Posted by glorify
Will the AJAX version work for 3.5.0?

I dont see why not.

EvilHawk 04-18-2006 04:13 PM

Quote:

Originally Posted by Abe1
I tested both and both seem to be working normaly.

You are right, i have reverted the post thank you templates and everything works fine! Sorry for the false alarm! :confused:

firstrebel 04-18-2006 05:11 PM

Quote:

Originally Posted by Abe1
There are many template changes. If you edited any of the templates, you must revert them.

I am confused. I have been running 3.3 and your other instruction for upgrade is to just reimport the product. Can you please clarify.

Thanks.

Bob

Abe1 04-18-2006 06:04 PM

Quote:

Originally Posted by firstrebel
I am confused. I have been running 3.3 and your other instruction for upgrade is to just reimport the product. Can you please clarify.

Thanks.

Bob

There are NO differant template edits that have to be made by YOU, UNLESS you made changes to the templates that come with the hack. If you edited any of the templates like post_thanks_postbit then you must revert it so you can gane the new functions. There where many changed with the templates that come with the hack.

mholtum 04-18-2006 06:25 PM

I dont know what the hell is up. All the edits are the same as they used to be, the postbit template has all the edits, and the button wont show up! ARGH it worked fine before!

Abe1 04-18-2006 06:27 PM

Quote:

Originally Posted by mholtum
I dont know what the hell is up. All the edits are the same as they used to be, the postbit template has all the edits, and the button wont show up! ARGH it worked fine before!

Go make sure you reverted all edited templates that belong to this hack.

mholtum 04-18-2006 06:28 PM

I checked they have not been edited. and cant be reverted..

Abe1 04-18-2006 06:29 PM

Quote:

Originally Posted by mholtum
I checked they have not been edited. and cant be reverted..

Is there a way I can check your APC? I need tmeplates and plugins.

mholtum 04-18-2006 06:34 PM

weird.. Now they all of a sudden are showing up! Sweet

slamdog 04-18-2006 06:43 PM

i just follwed the upgrade instruction. i get a database error, lose the button and all the previous thanks.....

Abe1 04-18-2006 06:45 PM

Quote:

Originally Posted by slamdog
i just follwed the upgrade instruction. i get a database error, lose the button and all the previous thanks.....

All you did was upload the XML?

slamdog 04-18-2006 07:09 PM

yep, thats all i did


Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'post_thanks_on_off',
                                        'post_thanks',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        10,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_off',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        20,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_first_all',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_first',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_date_all',
                                        'post_thanks',
                                        '0',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_date_forum',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        60,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_usergroup_using',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        70,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_user_useing',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        80,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_reputation',
                                        'post_thanks',
                                        '1',
                                        '0',
                                        'number',
                                        '',
                                        90,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_post_count',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        100,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_delete_own',
                                        'post_thanks',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        110,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_button',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        120,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_poster_button',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        130,
                                        0,
                                        1,
                                        'post_thanks'
        );

MySQL Error  : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date        : Tuesday, April 18th 2006 @ 04:09:09 PM
Script      : http://www.dvderotica.net/forums/admincp/plugin.php
Referrer    : http://www.dvderotica.net/forums/admincp/plugin.php?do=productadd
IP Address  : xx.xx.xx.xx
Username    : Slamdog
Classname    : vB_Database


Abe1 04-18-2006 07:10 PM

Quote:

Originally Posted by slamdog
yep, thats all i did


Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'post_thanks_on_off',
                                        'post_thanks',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        10,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_off',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        20,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_first_all',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        30,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_forum_first',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_date_all',
                                        'post_thanks',
                                        '0',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        50,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_date_forum',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        60,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_usergroup_using',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        70,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_user_useing',
                                        'post_thanks',
                                        '',
                                        '',
                                        'free',
                                        '',
                                        80,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_reputation',
                                        'post_thanks',
                                        '1',
                                        '0',
                                        'number',
                                        '',
                                        90,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_post_count',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        100,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_delete_own',
                                        'post_thanks',
                                        '1',
                                        '1',
                                        'boolean',
                                        'yesno',
                                        110,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_button',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        120,
                                        0,
                                        1,
                                        'post_thanks'
        ),
        (
                                        'post_thanks_poster_button',
                                        'post_thanks',
                                        '0',
                                        '0',
                                        'boolean',
                                        'yesno',
                                        130,
                                        0,
                                        1,
                                        'post_thanks'
        );

MySQL Error  : Duplicate entry 'post_thanks_on_off' for key 1
Error Number : 1062
Date        : Tuesday, April 18th 2006 @ 04:09:09 PM
Script      : http://www.dvderotica.net/forums/admincp/plugin.php
Referrer    : http://www.dvderotica.net/forums/admincp/plugin.php?do=productadd
IP Address  : xx.xx.xx.xx
Username    : Slamdog
Classname    : vB_Database


Are you upgrading from the vb 3.0 version?

slamdog 04-18-2006 07:20 PM

no, version 3.4

Abe1 04-18-2006 07:21 PM

Quote:

Originally Posted by slamdog
no, version 3.4

Is there a way I can check out your ACP?

slamdog 04-18-2006 07:34 PM

of course... details in pm.

i'm just very suprised about it deciding not to work. i have the html tags enabled as well at present to see why it is turning off and which templates are failing.

redlabour 04-18-2006 07:50 PM

Same at me - the Button is showing up but every Click on a Thanks Button brings me back to my Portal now. :(

Only uploaded the new *.xml

It only tries to get this URL : http://www.politikstube.de/forum/#38033 on Button. After 2 seconds it switches to Portal.

But the URL from Posting is : http://www.politikstube.de/forum/sho...33&postcount=4

Abe1 04-18-2006 07:57 PM

Quote:

Originally Posted by slamdog
of course... details in pm.

i'm just very suprised about it deciding not to work. i have the html tags enabled as well at present to see why it is turning off and which templates are failing.

Took care of you. You still had some settings from vb3.0. Everything works now.

redlabour 04-18-2006 07:59 PM

Hi Abe1, did you have Time to look for my Problem described above ?

Abe1 04-18-2006 07:59 PM

Quote:

Originally Posted by redlabour
Same at me - the Button is showing up but every Click on a Thanks Button brings me back to my Portal now. :(

Only uploaded the new *.xml

It only tries to get this URL : http://www.politikstube.de/forum/#38033 on Button. After 2 seconds it switches to Portal.

But the URL from Posting is : http://www.politikstube.de/forum/sho...33&postcount=4

I may know why. Can I get access to your ACP? I'm not sure why the link would mess up so I have to test it on your site.

Abe1 04-18-2006 08:00 PM

Quote:

Originally Posted by redlabour
Hi Abe1, did you have Time to look for my Problem described above ?

Calm down! Give me a sec to post :)

redlabour 04-18-2006 08:10 PM

I think this will be a Problem for you to navigate through a german AdminCP. Are you sure ? ;)

redlabour 04-18-2006 08:13 PM

You have PM ! ;)


All times are GMT. The time now is 08:16 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02161 seconds
  • Memory Usage 1,921KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete