vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=122944)

class101 10-17-2007 10:50 AM

You must include $template_hook[postbit_controls] in your postbit and legacy templates, read the Template Edits for Custom Styles.txt inside the zip guys, for some reason me I didnt have to do theses changes, the product install added it for me but he did put the instructions in the txt I guess in the case the product install didnt changed your templates.

karnevil 10-17-2007 12:03 PM

I have installed the hack and it works on my default style forum perfectly however we dont use that we use a second style forum.

It shows up on profile, adds to reps okay etc all functions fine - except theres no button in the posts to click ??

Any ideas. I have been through the instruction edit templates file and done that.

The only bit I cant find is

<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>

in postbit and postbit legacy

so havent pasted

$template_hook[postbit_userinfo_right_after_posts]

in.

I assume this is the problem ?

class101 10-17-2007 12:20 PM

The variable to control de button is $template_hook[postbit_controls]

me I have it setup that way in my postbit template:

Code:

div style="margin-top: 10px" align="$stylevar[right]">
                        <!-- controls -->
$template_hook[postbit_controls]
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

This put it to the left of the edit button instead of to the full right which is not a really visible position

5th-Level 10-17-2007 10:12 PM

i mean instead of it saying Thanks: 0
Thanked X in X posts

i wanted make it so that it says

Thanks:
Thanked:

powerful_rogue 10-17-2007 11:32 PM

Quote:

Originally Posted by class101 (Post 1362280)
The variable to control de button is $template_hook[postbit_controls]

me I have it setup that way in my postbit template:

Code:

div style="margin-top: 10px" align="$stylevar[right]">
                        <!-- controls -->
$template_hook[postbit_controls]
                        <if condition="$post['editlink']">
                                <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />

This put it to the left of the edit button instead of to the full right which is not a really visible position

Hi, Thanks for your advice, worked a treat putting the code below instead of above. My only other problem is with:

Quote:

find:
--------------------------------------------------------------------
<!-- post $post[postid] popup menu -->
--------------------------------------------------------------------

place BEFORE:
--------------------------------------------------------------------
$template_hook[postbit_end]
--------------------------------------------------------------------
By doing this it ends up looking massive as shown in the attatchement. Ive tried moving the code around but without any luck. Heres a section of my code before and after:

Quote:

<if condition="$show['redcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
<else />
<if condition="$show['yellowcard']">
<a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
</if>
</if>
<!-- / controls -->
</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
Ive removed it for the moment until hopefully im able to get this bit sorted. So close to getting it working!

Any help really is greatly appreciated.

Pocket Aces 10-18-2007 03:10 AM

Recounters or deletion of all user thanks on ACP is not working. Kindly check on that. I have a banned member who abuses the thanks system and i couldnt mass remove his thanks given. We're using vb 3.6.8

wangjunyu 10-18-2007 09:22 AM

Nice hack!

Omega409 10-18-2007 12:10 PM

Update from 6.0 to 6.3

Quote:

Datenbankfehler in vBulletin 3.6.8:

Invalid SQL:

SELECT thread.threadid, post.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastpostid, thread.lastposter, thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, thread.forumid, post.postid, pagetext, allowsmilie

FROM thread AS thread
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN postparsed AS postparsed ON (postparsed.postid = post.postid AND postparsed.styleid = 1 AND postparsed.languageid = 2)
WHERE thread.threadid IN(9011)


GROUP BY post.postid
ORDER BY sticky DESC,thread.dateline DESC
LIMIT 2;

MySQL-Fehler : Table './usr_web0_1/postparsed' is marked as crashed and should be repaired
Fehler-Nr. : 145

CBTS Pennywise1 10-18-2007 01:11 PM

Where do it try to pull the image from? Instead of the Image I have Thanks. I think I put the image in all my Styles.

Nvm I just changed the directory to pull the Image from the main Image Folder.

mystic10 10-18-2007 07:04 PM

everytime i upload the xml file using plugin it gives me fatal error i dont know why

this is the error msg:
error:
Warning: require_once(/home/yahoocit/public_html/includes/functions_post_thanks.php) [function.require-once]: failed to open stream: No such file or directory in /includes/class_postbit.php(268) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required '/home/yahoocit/public_html/includes/functions_post_thanks.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/yahoocit/public_html/includes/class_postbit.php(268) : eval()'d code on line 1


All times are GMT. The time now is 10:25 PM.

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.03056 seconds
  • Memory Usage 1,757KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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