vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - [AJAX] Post Groan Hack (https://vborg.vbsupport.ru/showthread.php?t=255226)

Phaedrus 04-03-2011 02:04 AM

Quote:

Originally Posted by hoadiem (Post 2180247)
vb 4.1.2

how do i fix this issue:

Thanks: 2
Thanks 2 Times in 2 Posts0 ( where the 0 should be on Groans line)
Groans :
---------->Groaned 1 Time in 1 Post

should be looking like this:

Thanks: 2
Thanks 2 Times in 2 Posts
Groans : 0
Groaned 1 Time in 1 Post

In the post_groans_postbit_info template, change stylevar right to read stylevar left.

Phaedrus 04-06-2011 02:06 AM

Okay, I'm going to post the version that I have integrated with the thanks hack on my site, the search feature is off until I can figure out the correct search string to find all thanks/groans. I'll also post the thanks that I added changed slightly for integration. If you upgrade check your dbase for an extra "post" in your dbase in the post_thanks/post_groans tables. For some reason it adds an extra one that is useless.

Tell me if there are any issues, if this is clean I guess I can post a new thread with both hacks with credit to the original coders...

chrisdaman 04-06-2011 06:20 PM

Quote:

Originally Posted by Phaedrus (Post 2181394)
Okay, I'm going to post the version that I have integrated with the thanks hack on my site, the search feature is off until I can figure out the correct search string to find all thanks/groans. I'll also post the thanks that I added changed slightly for integration. If you upgrade check your dbase for an extra "post" in your dbase in the post_thanks/post_groans tables. For some reason it adds an extra one that is useless.

Tell me if there are any issues, if this is clean I guess I can post a new thread with both hacks with credit to the original coders...

Ok, the 2 seem to be working fine together, thanks and groans.

The only issue I see with the groans, is if someone gives a groan beneath the first post (eg. 2nd or 4th, 5th post), it will show up, but after you refresh the page, it will still show your groan given, but not your username. It just shows a blank space where your username should be within the groan box.

Any ideas?

Phaedrus 04-06-2011 06:22 PM

Quote:

Originally Posted by chrisdaman (Post 2181609)
Ok, the 2 seem to be working fine together, thanks and groans.

The only issue I see with the groans, is if someone gives a groan beneath the first post (eg. 2nd or 4th, 5th post), it will show up, but after you refresh the page, it will still show your groan given, but not your username. It just shows a blank space where your username should be within the groan box.

Any ideas?

I'll look into it, the java must be calling a dbase string that isn't rendering the username. Dangit, I thought I had it. Garrr... This mod will be the end of me. It should work. Thanks for reporting back though. My users really want this, and just as you mentioned it my first "groans" hit and I'm seeing some, but not all, of the groans. I don't get it. It seems to work in every other aspect though, so there's got to be something simple I am missing. Unfortunately I'm learning as I go, and this mod's variables are a string of groans groaned groan times blah...

Phaedrus 04-06-2011 08:59 PM

Okay, I had an odd hiccough, however I shut it off, cleared the cache, rebuilt post cache, turned it back on.. and boom, it's working. Give that a quick test and see if it works for you. All this rendering, etc. has changed how hacks load. I think we'll be running a lot of post cache rebuilds...

Also, if you are upgrading, run your counters for the mod (they're in the Mod's settings) after you are done and make sure to set it to overwrite. I have some tweaks to make to the phrases, etc. (especially the postbit, I changed the templates a bit and need to add those to the mod), for some reason the blog links get in the way and I haven't figured out how to make it not straddle the blog button and link in the postbit... My users are ecstatic, they're favorite mod is working again... (hopefully permanently).

But if this actually will work on other boards, it is ready with just minor changes and I'll upload both mods with total credit given to the original authors.

Oddly enough, I went on as a "guest" to my site and saw every groan with no problem. Logged in as a registered user, some groans, some I couldn't see. Logged back out, saw them all again... Logged back in as an Administrator, some there some not... There's something very odd going on, there is no limitation as to who can see the groan box that part of the hack is exactly the same as the Thank you hack with a one-word change.

baileyjojoms 04-07-2011 03:50 AM

Excellent! I added the Groan and your fixed Thank You! Worked like a charm on VB4.1.2

Phaedrus 04-07-2011 05:23 AM

Most excellent.

Phaedrus 04-07-2011 02:59 PM

I'm making some updates, when I am done and tested I will create new threads for both so people can receive updates. If the original authors come back, I'll hand it all over to them. Mine Gott...

BTW - chrisdaman, the two mods were working on the same executionorder and that is causing some of the problems, I've updated that on the next release as well as making cosmetic changes to where the buttons show up if you have the blog feature turned on and in the postbit info section as to how the thanks/groans information shows up. Previously if you had the blog feature turned on it would straddle them and the information got all mucked, I've fixed that on my site.

chrisdaman 04-07-2011 03:40 PM

Sounds good, thanks! I did as you said and turned off product, cleared cache and rebuilt post and it seems to be showing up correctly. But I will still update to the next release.

Phaedrus 04-07-2011 05:33 PM

Very good.


All times are GMT. The time now is 05:46 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.01048 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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