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 05-05-2006 01:10 PM

Quote:

Originally Posted by Cybernetec

This one would take a while. I need some thinking behind it.

TomasDR 05-05-2006 04:07 PM

Quote:

Originally Posted by Abe1
Did you edit any of the templates? There were some major template edits. Make sure you revert the templates.

I just had installed your hack for the first time a little over a week ago, v4.2. When I came on the other day I noticed your upgrade so I downloaded it. I even checked your template edits against each other, since they were the same I did nothing except upload the product with overwrite on.

The only thing that is slightly different is I also have vBookie installed.
https://vborg.vbsupport.ru/showthread.php?t=94128

And that hack requires the template edit
Code:

  <if condition="$vboptions['vbookiecashon']">
      <br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
  </if>

In the templates postbit AND postbit_lagacy right where you require the addition of:

Code:

<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->

So mine reads:

Code:

      $vbphrase[posts]: $post[posts]
  <if condition="$vboptions['vbookiecashon']">
      <br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
  </if>
<!-- Start Post Thank You Hack -->
....

As for access to my ACP that would be ok but I do run a graphic adult site.

Abe1 05-05-2006 04:30 PM

Quote:

Originally Posted by TomasDR
I just had installed your hack for the first time a little over a week ago, v4.2. When I came on the other day I noticed your upgrade so I downloaded it. I even checked your template edits against each other, since they were the same I did nothing except upload the product with overwrite on.

The only thing that is slightly different is I also have vBookie installed.
https://vborg.vbsupport.ru/showthread.php?t=94128

And that hack requires the template edit
Code:

  <if condition="$vboptions['vbookiecashon']">
      <br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
  </if>

In the templates postbit AND postbit_lagacy right where you require the addition of:

Code:

<!-- Start Post Thank You Hack -->
<if condition="$post[userid]">
<br />
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
<!-- End Post Thank You Hack -->

So mine reads:

Code:

      $vbphrase[posts]: $post[posts]
  <if condition="$vboptions['vbookiecashon']">
      <br />$vbphrase[vbookie_vcash]: $post[vbookie_cash]
  </if>
<!-- Start Post Thank You Hack -->
....

As for access to my ACP that would be ok but I do run a graphic adult site.

I mean did you edit any of THIS HACK templates? Not the actual edits I say to make.

TomasDR 05-05-2006 04:59 PM

Quote:

Originally Posted by Abe1
I mean did you edit any of THIS HACK templates? Not the actual edits I say to make.

No not at all, actually when you were asking for more information I was going back and forth litterally just uploading the product with overwrite on.

RFViet 05-05-2006 05:37 PM

Quote:

Originally Posted by RS_Jelle
AdminCP => vBulletin Options => vBulletin Options => Post Thank You Hack => Post Count

Set that option to Yes ;)

I know that, but I want to be real post !!! like the way it was in vB3.07

Abe1 05-05-2006 06:00 PM

Quote:

Originally Posted by TomasDR
No not at all, actually when you were asking for more information I was going back and forth litterally just uploading the product with overwrite on.

I would have to look at your APC to figure out the problem.

Abe1 05-05-2006 06:01 PM

Quote:

Originally Posted by RFViet
I know that, but I want to be real post !!! like the way it was in vB3.07

If you want it a real post, then you dont need this hack. Just tell your users to post Thank You.

What do you mean by 'like it was in 3.0.7'? It was the same way as now.

vktechnology 05-06-2006 12:41 AM

I have error when press thank button

PHP Code:

Fatal errorUsing $this when not in object context in /home/palungjit/board/showthread.php(88) : eval()'d code on line 137 

what should i do ?

vktechnology 05-06-2006 12:44 AM

I have same problem.....
" the Thanks part does not appear unless they refresh their browser."

cavyspirit 05-06-2006 01:36 AM

I'd like to add one more (well, two, because I want the same thing for groan, also) queries in the memberlist area.

I'd like a query that shows all thanks (and groans) given by user.

Find all Thanked posts by Username (exists)
Find all Thanks given by Username (would like)

&

Find all Groaned at posts by Username (exists)
Find all Groans made by Username (would like)

That would be just great!! :)


All times are GMT. The time now is 12:26 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.01885 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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