vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - [AJAX] Helpful Answers - Allow users to rate individual posts (https://vborg.vbsupport.ru/showthread.php?t=233296)

initiald 03-09-2012 05:32 AM

Quote:

Originally Posted by Ted S (Post 2307757)
I can't do much with "it's not working"... You'll need to provide some actual details to look into...

Have you enabled the mod in the forum you are viewing?

Do the other options work?

Does anything show up in the voting area?

Sorry. I re-edit the post.

It's not working on vBulletin 4.1.11? The thumbup/thumbdown are not showing on the post. I have set it to display on the forum. Every instruction is followed on the install file. When I test the hide function of post with 10 negative posts, it did work and hide , so something is working there. But the thumbup/thumbdown or any other image vote is simply not showing up. please help..

This is my setting..

http://imageshack.us/photo/my-images/715/part1n.png/
http://imageshack.us/photo/my-images/41/part2z.png/
http://imageshack.us/photo/my-images/690/part3vj.png/

Ted S 03-09-2012 06:35 AM

Since multiple sites have the issue we'll definitely take a look and see what changed in 4.1.11

In the mean time you may want to try the manual template placement to see if the hook location was shifted around. It requires a template edit but may be a work around.... assuming that was the issue of course.

For anyone else reading this: there appears to be a compatibility bug with 4.1.11 which will be looked into. As the reason for this bug isn't known there's no ETA but this does not have any documented impact to the forum [other than causing the mod not to show].

initiald 03-09-2012 07:08 AM

Quote:

Originally Posted by Ted S (Post 2307766)
Since multiple sites have the issue we'll definitely take a look and see what changed in 4.1.11

In the mean time you may want to try the manual template placement to see if the hook location was shifted around. It requires a template edit but may be a work around.... assuming that was the issue of course.

For anyone else reading this: there appears to be a compatibility bug with 4.1.11 which will be looked into. As the reason for this bug isn't known there's no ETA but this does not have any documented impact to the forum [other than causing the mod not to show].

Could you please explain how to edit the template (the postbit_legacy right?). Can you post an instruction how to manual do template editing. This might be the cause. I will test it.

Ted S 03-09-2012 07:16 AM

Quote:

Originally Posted by initiald (Post 2307773)
Could you please explain how to edit the template (the postbit_legacy right?). Can you post an instruction how to manual do template editing. This might be the cause. I will test it.

It's explained in the install guide but assumes you have inserted mods into templates before. If not, we'll be looking at things soon.

initiald 03-09-2012 12:21 PM

The install guide didn't include how to edit template. I guess I'll wait for your fix soon. Thanks

Ted S 03-10-2012 04:28 AM

1 Attachment(s)
Quote:

Originally Posted by initiald (Post 2307854)
The install guide didn't include how to edit template. I guess I'll wait for your fix soon. Thanks

We've tested the mod on both our custom style and a stock vBulletin 4.1.11 style with the exact same settings you had [thanks for posting the screen shots] and it loads fine.

Does your postbit / legacy template have any customizations that may be altering how it shows?

The attached version of the mod will print debug code [not pretty so you'll want to disable it after getting a screenshot].

initiald 03-16-2012 10:47 AM

Quote:

Originally Posted by Ted S (Post 2308179)
We've tested the mod on both our custom style and a stock vBulletin 4.1.11 style with the exact same settings you had [thanks for posting the screen shots] and it loads fine.

Does your postbit / legacy template have any customizations that may be altering how it shows?

The attached version of the mod will print debug code [not pretty so you'll want to disable it after getting a screenshot].

It still doesn't show up for whatever reason.

I'm using a customize style from Digitalvb.

https://vborg.vbsupport.ru/showthread.php?t=233338

If it works on that, it should work on mine. I follow instruction but no icon image is shown in the post.

GE-Tom 03-17-2012 11:10 AM

Very nice mod. I have 1 question.

How can i activate or deaktivate it in some forums? I only find the option to activate it in threads but for a forum.

plz help me

Ted S 03-17-2012 11:32 PM

Quote:

Originally Posted by GE-Tom (Post 2310353)
Very nice mod. I have 1 question.

How can i activate or deaktivate it in some forums? I only find the option to activate it in threads but for a forum.

plz help me

I'm not sure what you mean. The mod is enabled forum by forum only via the forum manager...

grey_goose 03-18-2012 05:20 PM

This is probably a user error, but is hard to do a Search for "%1$" :)

I get:
%1$s members found this post helpful. Did you find this post helpful?

Why is it giving me the variable instead of the number?

Ted S 03-18-2012 11:00 PM

That's not the variable field but is of course a bad result.

Is 1 constant or does it change to reflect the number of votes?

grey_goose 03-19-2012 03:37 AM

The '1' is constant.

Ted S 03-19-2012 03:47 AM

and everything in the mod and your postbit template is stock? no code changes?

grey_goose 03-19-2012 03:51 AM

The postbit is heavily modified, and I'm deploying the mod manually, but the only thing I changed on the mod was the images used in the template (from GIF to PNG).

Ted S 03-19-2012 05:52 AM

Quote:

Originally Posted by grey_goose (Post 2310860)
The postbit is heavily modified, and I'm deploying the mod manually, but the only thing I changed on the mod was the images used in the template (from GIF to PNG).

The manual placement may have something to do with it but I'm going to have to dig around a bit... Hopefully it's something I can recreate fairly easily but give me a few days

Ted S 03-22-2012 12:49 AM

Quote:

Originally Posted by Ted S (Post 2310899)
The manual placement may have something to do with it but I'm going to have to dig around a bit... Hopefully it's something I can recreate fairly easily but give me a few days

Can you try changing the voting option to a style other than rollovers? This will help me debug where the issue is coming from...

TheLastSuperman 03-22-2012 12:56 AM

Quote:

Originally Posted by grey_goose (Post 2310860)
The postbit is heavily modified, and I'm deploying the mod manually, but the only thing I changed on the mod was the images used in the template (from GIF to PNG).

Do you mind posting a copy of your postbit template code? It's so much easier for us to review it and look for mistakes or conflicts ;).

GE-Tom 03-23-2012 02:57 PM

Hey,

i have a problem. he shows me "%1$s like that....." if i deaktivate the negativ rating. Can you help me plz? And how can i reset all votings? Is it posible? Thanks a lot.

Ted S 03-23-2012 05:11 PM

Quote:

Originally Posted by GE-Tom (Post 2312499)
Hey,

i have a problem. he shows me "%1$s like that....." if i deaktivate the negativ rating. Can you help me plz? And how can i reset all votings? Is it posible? Thanks a lot.

What happens if you changing the voting style to an option other than the rollover icons?

GE-Tom 03-23-2012 05:41 PM

With Yes or Now it looks right. But in like the other option.

ericholtman 03-28-2012 05:07 PM

This is a really great mod, and I think it's going to do a lot to increase participation on my board.

I have one question: Is there a way to change the font size and color in the phrases ("Did you find this post helpful, etc")?

I apologize if this question is painfully stupid, but my husband usually does the coding, and I'm trying to do everything by myself this time. It's a long and sometimes grotesque process.

Kim

bposner 03-28-2012 05:37 PM

Quote:

Originally Posted by ericholtman (Post 2314330)
This is a really great mod, and I think it's going to do a lot to increase participation on my board.

I have one question: Is there a way to change the font size and color in the phrases ("Did you find this post helpful, etc")?

I apologize if this question is painfully stupid, but my husband usually does the coding, and I'm trying to do everything by myself this time. It's a long and sometimes grotesque process.

Kim

I did this in Phrases, I searched for the term then change the code like this
Code:


<span style="font: verdana; color: Yellow;">Did you find this post Helpful?</span>

May not be the best way, but it worked :)

initiald 03-30-2012 05:28 AM

Hey I finally make it show up but now when I click on the Thumbup/Thumbdown, I received this error.

https://vborg.vbsupport.ru/external/2012/03/2.png

Any idea how to fix this? tx

Ted S 03-30-2012 05:42 AM

Quote:

Originally Posted by initiald (Post 2314924)
Hey I finally make it show up but now when I click on the Thumbup/Thumbdown, I received this error.

Any idea how to fix this? tx

Check the path of the link and tell me what it is versus what it should be.

initiald 03-30-2012 06:08 AM

Quote:

Originally Posted by Ted S (Post 2314925)
Check the path of the link and tell me what it is versus what it should be.

What link or path? Can you clarify more. You mean in root folder?

I notice one thing. In the upload folder, you have helpfulanswer.php and the same file helefulanswer.php in admincp?

ericholtman 03-30-2012 05:37 PM

Quote:

Originally Posted by bposner (Post 2314369)
I did this in Phrases, I searched for the term then change the code like this
Code:


<span style="font: verdana; color: Yellow;">Did you find this post Helpful?</span>

May not be the best way, but it worked :)


Thank you! That worked!! :)

Ted S 03-30-2012 07:08 PM

Quote:

Originally Posted by initiald (Post 2314931)
What link or path? Can you clarify more. You mean in root folder?

I notice one thing. In the upload folder, you have helpfulanswer.php and the same file helefulanswer.php in admincp?

The path of the link... When you click it or hover over it where does it point too? Where should it point too?

There are two helpfulanswer.php files. One in your root folder, one in your admincp. If you upload the upload folder contents into your forum directory in one shot everything will go to the right place.

010081 03-31-2012 07:35 AM

Can i display most helpful members on sidebar.. thanks..

Moreover can i add most helpful members per category..on sidebar..

bfdzio 04-03-2012 03:32 PM

Anyone interested in building a file like the helpfulanswers.php but that would display 'most helpful' posts from the past 24 hours?

Ted S 04-03-2012 04:58 PM

You can simply copy that routine and add one addition WHERE statement to the mySQL query along the lines of

createddate >= DATE_SUB(NOW(),INTERVAL 1 day)

bfdzio 04-04-2012 02:17 PM

Quote:

Originally Posted by Ted S (Post 2316442)
You can simply copy that routine and add one addition WHERE statement to the mySQL query along the lines of

createddate >= DATE_SUB(NOW(),INTERVAL 1 day)


Tried several different things and can't get it to work...where excactly? Also it can't find any 'createddate' but at least got rid of the error when I changed it to post dateline..but nothing shows.

$helpfulanswers = $db->query_read_slave("
SELECT post.postid,post.title as posttile,helpfulpost.goodrank,helpfulpost.totalran k,helpfulpost.lastvote,
thread.threadid,thread.title as title,thread.postusername as postusername,forum.title as ftitle $helpful_selectby
$hook_query_fields
FROM " . TABLE_PREFIX . "helpfulpost as helpfulpost
INNER JOIN " . TABLE_PREFIX . "post AS post ON(helpfulpost.postid = post.postid)
INNER JOIN " . TABLE_PREFIX . "thread AS thread ON(post.threadid = thread.threadid)
INNER JOIN " . TABLE_PREFIX . "forum AS forum ON(thread.forumid = forum.forumid)
WHERE helpfulpost.goodrank > 0
$conditions
$hook_query_joins
ORDER BY $sqlsort $sortorder
LIMIT " . ($limitlower - 1) . ", $perpage
");

Ted S 04-04-2012 04:03 PM

Shoot... createddate is the attribute I usually use in mods but in this one it would be

helpfulanswer.lastvote

However I've over simplified as this is a UNIXTIMESTAMP made by vBulletin rather than a datestamp. That means you have to get more complex in the query...

helpfulanswer.lastvote >= UNIX_TIMESTAMP(DATE_SUB(NOW(),INTERVAL 1 day))

Or something like that

Shill360 04-07-2012 04:19 PM

Bit of a strange one this.

I am entering {vb:raw post.totalrank} in my postbit_legacy template.

And it is showing the number of thanks under the user avatar. But only on that particular post. Is there anyway to show the total number of thanks on all posts for a user. The old variable on the 3.x version was $post[hatotalrank] which showed the total number of thanks on multiple posts for users.

Am I doing something wrong ?

Ted S 04-08-2012 12:22 AM

Quote:

Originally Posted by Shill360 (Post 2317784)
Bit of a strange one this.

I am entering {vb:raw post.totalrank} in my postbit_legacy template.

And it is showing the number of thanks under the user avatar. But only on that particular post. Is there anyway to show the total number of thanks on all posts for a user. The old variable on the 3.x version was $post[hatotalrank] which showed the total number of thanks on multiple posts for users.

Am I doing something wrong ?

post.totalrank is a post variable so it's not strange that it only shows what that post got :D

If you scroll back to the first page of the mod there's a list of accessible variables with brief descriptions. I don't recall them all off hand but if I had any common sense when making this version it would have been post.hatotalrank

bfdzio 04-08-2012 01:42 PM

Quote:

Originally Posted by Ted S (Post 2316736)
Shoot... createddate is the attribute I usually use in mods but in this one it would be

helpfulanswer.lastvote

However I've over simplified as this is a UNIXTIMESTAMP made by vBulletin rather than a datestamp. That means you have to get more complex in the query...

helpfulanswer.lastvote >= UNIX_TIMESTAMP(DATE_SUB(NOW(),INTERVAL 1 day))

Or something like that


Got it working, now I just need to make it show a preview of the post (or the whole post).

Probably more work involved in that though.

Trevor Matthews 04-16-2012 02:06 PM

Hi
I have this installed and all is fine, except that I have just installed Pird of Preys Simple Postbit modification and this mod no longer works in the sections where I have activated Simple Postbits.
Simple Postbits has a box that says Use Postbit Control Hooks, the description is below;

"Choose whether you want to enable the postbit controls template hook. If yes mods that use this hook will be able to place their code in the simple postbit. Enable this if you want a "Like" button or other 3rd party buttons to show."

Does anyone know how I can get Helpful Answers to work again in those sections?
Thanks for any suggestions.

Ted S 04-16-2012 05:19 PM

Quote:

Originally Posted by Trevor Matthews (Post 2320618)
Hi
I have this installed and all is fine, except that I have just installed Pird of Preys Simple Postbit modification and this mod no longer works in the sections where I have activated Simple Postbits.
Simple Postbits has a box that says Use Postbit Control Hooks, the description is below;

"Choose whether you want to enable the postbit controls template hook. If yes mods that use this hook will be able to place their code in the simple postbit. Enable this if you want a "Like" button or other 3rd party buttons to show."

Does anyone know how I can get Helpful Answers to work again in those sections?
Thanks for any suggestions.

I can't debug specific cross-mod issues as there's simply too many combinations but I'd suggest trying the manual placement option and adding the template hook yourself. This takes a couple lines of editing but may solve your issue.

Trevor Matthews 04-16-2012 05:28 PM

Ok, thanks, Pird of Prey is having a look at it for me.
I will report back if I can solve the problem.

Ted S 04-16-2012 05:37 PM

Quote:

Originally Posted by Trevor Matthews (Post 2320662)
Ok, thanks, Pird of Prey is having a look at it for me.
I will report back if I can solve the problem.

If they find a conflict please let me know. It's _generally_ not hard to fix those, it's finding them that's a pain.

Trevor Matthews 04-16-2012 05:47 PM

It has been sorted, I had to modify the template.
Details are Here, should be sorted in later releases.


All times are GMT. The time now is 08:09 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.02448 seconds
  • Memory Usage 1,846KB
  • 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
  • (20)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