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)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

billstelling 05-14-2011 05:01 PM

Only one of dbtech's mods worked correctly on my forums. and when I updated the one thing that was yestwrday it ++++ed up my forums. So no more of their stuff for my site. Now sstab won't work to hide the what's new tab on the cmps home page. Had to remove my blog tab for now untill i can figure out what's causing it. Just that tab.. it will still hide the forum tab in the cmps if i toggle it and the what's new on the forum, just not in the cmps.. go figure..
anyone know what code to remove in navtab to get rid of the whats new altogether?

sadiq6210 05-14-2011 05:04 PM

1 Attachment(s)
DragonByte Tech
Thanks for your effort, this is your work and you can promote it as you want even by 1 million .. this is your mod and you are free :)

I have few questions for you please
I am using Abe mod and I am going to buy your pro release to convert it just to get two awesome features (Notifications and searching "Who thanked your post and where?")

But before that, can I make the "pro" release exactly same Abe mod which I am using now (I mean just in appearance)
https://vborg.vbsupport.ru/attachmen...1&d=1305396113

Also,I don't want (like/dislike) or any additional features, I want it simple in function and appearance just like Abe mod


2-
Quote:

Uses only ONE query every time you view a showthread page!
What about your mod?

3-
Quote:

Uses AJAX technology so your users don't have to refresh when they thank
What about your mod?

Thanks and appreciate your effort again :)

djbaxter 05-14-2011 06:45 PM

Quote:

Originally Posted by billstelling (Post 2195653)
Only one of dbtech's mods worked correctly on my forums. and when I updated the one thing that was yestwrday it ++++ed up my forums. So no more of their stuff for my site.

Similar experience: I had to restore my forum from a day old backup after uninstalling one of their mods.

Quote:

Originally Posted by billstelling (Post 2195653)
Now sstab won't work to hide the what's new tab on the cmps home page. Had to remove my blog tab for now untill i can figure out what's causing it. Just that tab.. it will still hide the forum tab in the cmps if i toggle it and the what's new on the forum, just not in the cmps.. go figure.. anyone know what code to remove in navtab to get rid of the whats new altogether?

One option is to try https://vborg.vbsupport.ru/showthread.php?t=228507 instead of SSTab. I found that to be a little less finicky.

To change it manually, I think this should do it:

1. Admin CP >> Styles & Templates >> Style Manager >> {your style} >> Edit Templates

2. Find and edit Navigation / Breadcrumb Templates >> navbar

3. Find and comment out or delete:

PHP Code:

<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li

4. Save

Gradonil_Ral 05-14-2011 06:47 PM

Quote:

Originally Posted by Vaira (Post 2194339)
You have missed the point. You have included the importer which reads abe1's tables into your paid version with the intention to make more profit. You know that abe1 has canceled support and that many of us are using his hack already.
To get paid for own work is out of question. Compared to your free version it is almost no effort to write a script that reads tables. Almost no effort to have most profit. Profit made because of the fact that we are using abe1's tables already.

If I am wrong than just provide the importer at your free version as well.
Anything else is pointless arguing to me.
If you would provide the importer at the free version as well, your profit will decrease. I know that and you know that and hence it is available at your paid version only ;)

Why don't you learn SQL a bit? You only need basic knowledge to run a query that'll import thanks from Abe's hack to DBTech's.
The only problem, for a newbie, might be importing stuff from 2 different tables (yeah DBTech's table doesn't match Cyb's table).

Cyb's "_post_thanks" table has columns:
id
userid
username
date
postid

DBTech's "_dbtech_thanks_entry" table has columns:
entryid <-- you copy Cyb's id here
varname <-- you write "thanks" here
userid <-- you copy Cyb's userid here
contenttype <-- you write "post" here
contentid <-- you copy Cyb's postid here
dateline <-- you copy Cyb's date here
receiveduserid <-- the only problematic column - you need to copy userid from the '_post' table, from the postids matching the contentid that you've just copied.

And no, I'm not gonna write the query here - if you don't wanna buy the DBTech's Pro version, then you should write the query yourself. With my explanation it should be easy enough, anyways.

djbaxter 05-14-2011 06:53 PM

Quote:

Originally Posted by sadiq6210 (Post 2195654)
DragonByte Tech
Thanks for your effort, this is your work and you can promote it as you want even by 1 million .. this is your mod and you are free :)

I have few questions for you please
I am using Abe mod and I am going to buy your pro release to convert it just to get two awesome features (Notifications and searching "Who thanked your post and where?")

But before that, can I make the "pro" release exactly same Abe mod which I am using now (I mean just in appearance)
https://vborg.vbsupport.ru/attachmen...1&d=1305396113

Also,I don't want (like/dislike) or any additional features, I want it simple in function and appearance just like Abe mod


2-
What about your mod?

3-
What about your mod?

Thanks and appreciate your effort again :)

Quote:

Originally Posted by Gradonil_Ral (Post 2195704)
Why don't you learn SQL a bit? You only need basic knowledge to run a query that'll import thanks from Abe's hack to DBTech's.
The only problem, for a newbie, might be importing stuff from 2 different tables (yeah DBTech's table doesn't match Cyb's table).

Cyb's "_post_thanks" table has columns:
id
userid
username
date
postid

DBTech's "_dbtech_thanks_entry" table has columns:
entryid <-- you copy Cyb's id here
varname <-- you write "thanks" here
userid <-- you copy Cyb's userid here
contenttype <-- you write "post" here
contentid <-- you copy Cyb's postid here
dateline <-- you copy Cyb's date here
receiveduserid <-- the only problematic column - you need to copy userid from the '_post' table, from the postids matching the contentid that you've just copied.

And no, I'm not gonna write the query here - if you don't wanna buy the DBTech's Pro version, then you should write the query yourself. With my explanation it should be easy enough, anyways.

Please note: This is NOT the support thread for the DBTech mod. This is the thread for Abe1's Thank you mod.

Gradonil_Ral 05-14-2011 06:57 PM

Quote:

Originally Posted by djbaxter (Post 2195707)
Please note: This is NOT the support thread for the DBTech mod. This is the thread for Abe1's Thank you mod.

Which doesn't work with the current vBulletin, yeah.

djbaxter 05-14-2011 07:04 PM

1. It DOES work. I'm using it quite happily with 4.13.

2. Whether or not it works for you, this isn't the place to promote other mods. If you like the DBTech mod, go over to that thread and promote it there. Those of us who are using Abe1's mod are here to try to help support and troubleshoot issues for others who are using it.

Gradonil_Ral 05-14-2011 07:11 PM

Oh, right. Someone uploaded the updated version recently, but it didn't work ~2months ago so I switched to DBTech's. And no, I'm not a fan of this mod at all - I just decided to reply to Vaira's post.
But ok, let's stop here, cuz like it or not we're both making an OT.

Paul M 05-14-2011 08:04 PM

Quote:

Originally Posted by Gradonil_Ral (Post 2195715)
But ok, let's stop here

Yes, I think its time to do exactly that.

gnrx 05-14-2011 10:00 PM

In some days, I received a email of my forum with database error.

The error is that, a google agent (for example) search old tables of old version of this mod, for example, I received this notification by mail of my forum:

Code:

Database error in vBulletin 4.1.3:

Invalid SQL:

                        REPLACE INTO search (userid, ipaddress, personal, searchuser, forumchoice, sortby, sortorder, searchtime, showposts, orderedids, dateline, displayterms, searchhash)
                        VALUES (0, '66.249.71.19', 1, 'abdo70', '', 'post.dateline', 'DESC', 0.06050, 1, '150333,139614,139554,138804,133802', 1305382860, 'a:6:{s:5:\"words\";a:0:{}s:9:\"highlight\";a:0:{}s:6:\"common\";a:0:{}s:5:\"users\";a:1:{i:7022;s:6:\"abdo70\";}s:6:\"forums\";i:0;s:7:\"options\";a:3:{s:11:\"starteronly\";i:0;s:11:\"childforums\";i:1;s:6:\"action\";s:7:\"process\";}}', 'c6eb59e052c1124968f5ed830e05dd4a');

MySQL Error  : Table 'mydatabase_myusername.search' doesn't exist
Error Number  : 1146
Request Date  : Saturday, May 14th 2011 @ 09:21:00 AM
Error Date    : Saturday, May 14th 2011 @ 09:21:00 AM
Script        : http://www.myforum.com/foro/post_thanks.php?do=findthanks_user_gave&u=7022

Its possible make for not search this old tables (googleboots and others)?

Thanks and regards!

ExcelFox 05-15-2011 03:47 PM

1 Attachment(s)
A great mod, and I am already liking its use very much, and am thankful for developers like yourselves taking out time and effort, to provide us with such free modifications and add-ons.

With due respect, there is a small bug fix that would be nice (which should be a stroll in the park for coders like you). The issue is in the postbit, when this mod is used with ITW - Time Spent Online. So what happens is that the time online is displayed along with the X Thanks in X Posts line which makes reading confusing. If this is not clear, I have posted an image. You could have a look. Thanks again for your time.

For the time being, I have disabled showing the Thank You, but I would really love to have this working.

ExcelFox 05-15-2011 08:07 PM

Took me 3 hours to make my first ever modification in my life. And guess what! It's a success. Not sure how many eyebrows raise if this is a stupid way to make a modification, but hey, I got it all working for me at least.

Well, just in case somebody faces this problem, you can replace the code in the post_thanks_postbit_info style with the one below

PHP Code:

<vb:if condition="$post['userid']">
    <
dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
    <
vb:if condition="$post['post_thanks_thanked_times'] == 1">
        <
dd>{vb:rawphrase post_thanks_time_post}</dd>
    <
vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <
dd>{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <
vb:else />
        <
dd>{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
    </
vb:if>
</
vb:if> 


channelfuse 05-17-2011 01:17 PM

1 Attachment(s)
Here's the fix for the searching. Replace post_thanks.php with this file.

What was wrong:
It was looking in an old table 'search' for the results. This no longer works.

What was fixed:
I have the initial SQL statement grab the thread IDs and post IDs:
PHP Code:

$posts $db->query_read("
            SELECT postid, post.threadid as threadid 

Then, we need to throw them into an array:
PHP Code:

while ($post $db->fetch_array($posts))
        {
            
$orderedids[] = array("1"$post['postid'], $post['threadid']);
        } 

The old code is commented out in other areas.

Then, we need to create our query to match the way vB 4.x wants it.
PHP Code:

$scriteria $search_core->create_criteria(vB_Search_Core::SEARCH_ADVANCED);
        
$scriteria->set_advanced_typeid($vbulletin->GPC['contenttypeid']);
        
$scriteria->set_grouped(vB_Search_Core::GROUP_NO);
        
$crit "'" $db->escape_string(serialize($scriteria)) . "'";
        
$hash "'" $db->escape_string($scriteria->get_hash()) . "'";
                    
//results, confirmed, groups_seen, groups_rejected
        
$sresults serialize(array($orderedids"0", array(), array()));
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "searchlog (userid, ipaddress, searchhash, sortby, sortorder, searchtime, dateline, completed, criteria, results)
            VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string(IPADDRESS) . "', $hash, 'groupdateline', 'desc', '0.999', UNIX_TIMESTAMP(NOW()), 1, $crit, '$sresults')");
        
$searchid $db->insert_id(); 

We create our search criteria, serialize it and then get the hash of it. We then serialize our IDs. The way vB's results.php wants the results is ordered such as:

array of threadIDs/postIDs
number of 'confirmed' posts (No idea what this is, left it as 0).
array of groups seen (No idea on this, just make an empty array).
array of groups denied (Again, no clue. Just made an empty array).

We then insert the data into the searchlog table and use that to generate the search results. I also included some various files at the beginning and setup a variable for the whole search thing:
PHP Code:

require_once(DIR "/vb/search/core.php");
require_once(
DIR "/vb/search/resultsview.php");

$search_core vB_Search_Core::get_instance(); 

That's it. Searching via User CP should work.

Vaira 05-17-2011 04:05 PM

Thanks a lot for your efforts. :)
Do I have to use the fixed version first (post_thanks_7_82.fixed.zip ) and then replace the original one with your post_thanks.php?
Or do I have to use abe1's original version and then replace the post_thanks.php?

https://vborg.vbsupport.ru/showpost....postcount=1433
I am confused since the fixed version has an updated version of post_thanks.js (besides of the product-post_thanks.xml). Is that updated post_thanks.js needed in order to run properly or should I use abe1's original one?

ATM I am running the fixed version from the link above.

Do the recounters options work?

Thanks again.

channelfuse 05-17-2011 06:50 PM

Quote:

Originally Posted by Vaira (Post 2196795)
Thanks a lot for your efforts. :)
Do I have to use the fixed version first (post_thanks_7_82.fixed.zip ) and then replace the original one with your post_thanks.php?
Or do I have to use abe1's original version and then replace the post_thanks.php?

https://vborg.vbsupport.ru/showpost....postcount=1433
I am confused since the fixed version has an updated version of post_thanks.js (besides of the product-post_thanks.xml). Is that updated post_thanks.js needed in order to run properly or should I use abe1's original one?

ATM I am running the fixed version from the link above.

Do the recounters options work?

Thanks again.

My code is based off of the original 7.82. I'm not sure what was changed in 7.82-fixed as the original code still worked (just a few minor cosmetic tweaks for our forum). I'll take a look at the difference between the two and report back.

Edit: It appears his fix was only in the .xml file. Mine was only in the .php. They should work just fine. You can use 7.82-fixed and overwrite the post_thanks.php with my file.

billstelling 05-17-2011 09:30 PM

Quote:

Originally Posted by djbaxter (Post 2195703)
Similar experience: I had to restore my forum from a day old backup after uninstalling one of their mods.



One option is to try https://vborg.vbsupport.ru/showthread.php?t=228507 instead of SSTab. I found that to be a little less finicky.

To change it manually, I think this should do it:

1. Admin CP >> Styles & Templates >> Style Manager >> {your style} >> Edit Templates

2. Find and edit Navigation / Breadcrumb Templates >> navbar

3. Find and comment out or delete:

PHP Code:

<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li

4. Save

thanks DJ, appreciate the input, it was helpful.:D

midnz 05-17-2011 09:31 PM

Awesome stuff channelfuse!! I'm glad I hung on to this hack. It works perfectly now. Thank-you very much indeed :)

billstelling 05-17-2011 09:39 PM

Quote:

Originally Posted by Gradonil_Ral (Post 2195709)
Which doesn't work with the current vBulletin, yeah.

works fine for me in vB 4.1.3
all you have to do is edit this.
Code:

                <dependency dependencytype="vbulletin" minversion="4.0.0 beta 4" maxversion="4.1.0 alpha 1" />
to

Code:

                <dependency dependencytype="vbulletin" minversion="4.0.0 beta 4" maxversion="4.9.99" />
you could change it to 4.1.3 if you wanted but you would need to change it to the current version every time you upgraded vB.

sadiq6210 05-18-2011 09:21 AM

Quote:

Originally Posted by channelfuse (Post 2196762)
Here's the fix for the searching. Replace post_thanks.php with this file.

What was wrong:
It was looking in an old table 'search' for the results. This no longer works.

What was fixed:
I have the initial SQL statement grab the thread IDs and post IDs:
PHP Code:

$posts $db->query_read("
            SELECT postid, post.threadid as threadid 

Then, we need to throw them into an array:
PHP Code:

while ($post $db->fetch_array($posts))
        {
            
$orderedids[] = array("1"$post['postid'], $post['threadid']);
        } 

The old code is commented out in other areas.

Then, we need to create our query to match the way vB 4.x wants it.
PHP Code:

$scriteria $search_core->create_criteria(vB_Search_Core::SEARCH_ADVANCED);
        
$scriteria->set_advanced_typeid($vbulletin->GPC['contenttypeid']);
        
$scriteria->set_grouped(vB_Search_Core::GROUP_NO);
        
$crit "'" $db->escape_string(serialize($scriteria)) . "'";
        
$hash "'" $db->escape_string($scriteria->get_hash()) . "'";
                    
//results, confirmed, groups_seen, groups_rejected
        
$sresults serialize(array($orderedids"0", array(), array()));
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "searchlog (userid, ipaddress, searchhash, sortby, sortorder, searchtime, dateline, completed, criteria, results)
            VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string(IPADDRESS) . "', $hash, 'groupdateline', 'desc', '0.999', UNIX_TIMESTAMP(NOW()), 1, $crit, '$sresults')");
        
$searchid $db->insert_id(); 

We create our search criteria, serialize it and then get the hash of it. We then serialize our IDs. The way vB's results.php wants the results is ordered such as:

array of threadIDs/postIDs
number of 'confirmed' posts (No idea what this is, left it as 0).
array of groups seen (No idea on this, just make an empty array).
array of groups denied (Again, no clue. Just made an empty array).

We then insert the data into the searchlog table and use that to generate the search results. I also included some various files at the beginning and setup a variable for the whole search thing:
PHP Code:

require_once(DIR "/vb/search/core.php");
require_once(
DIR "/vb/search/resultsview.php");

$search_core vB_Search_Core::get_instance(); 

That's it. Searching via User CP should work.

WoooooooW Finally :D

Great job "channelfuse"

You make me very happy when I read your great post
Work like a charm
Appreciate your help and you time consumed on that

Keep it up :up::up::up:

sadiq6210 05-18-2011 09:24 AM

I think by solve searching bug, this hack become live again
I have suggestion If any one can think about it

(Notification when receive new thank)

Will be a great feature

raicars 05-18-2011 01:47 PM

Quote:

Originally Posted by channelfuse (Post 2196762)
Here's the fix for the searching. Replace post_thanks.php with this file.

What was wrong:
It was looking in an old table 'search' for the results. This no longer works.

What was fixed:
I have the initial SQL statement grab the thread IDs and post IDs:
PHP Code:

$posts $db->query_read("
            SELECT postid, post.threadid as threadid 

Then, we need to throw them into an array:
PHP Code:

while ($post $db->fetch_array($posts))
        {
            
$orderedids[] = array("1"$post['postid'], $post['threadid']);
        } 

The old code is commented out in other areas.

Then, we need to create our query to match the way vB 4.x wants it.
PHP Code:

$scriteria $search_core->create_criteria(vB_Search_Core::SEARCH_ADVANCED);
        
$scriteria->set_advanced_typeid($vbulletin->GPC['contenttypeid']);
        
$scriteria->set_grouped(vB_Search_Core::GROUP_NO);
        
$crit "'" $db->escape_string(serialize($scriteria)) . "'";
        
$hash "'" $db->escape_string($scriteria->get_hash()) . "'";
                    
//results, confirmed, groups_seen, groups_rejected
        
$sresults serialize(array($orderedids"0", array(), array()));
        
$db->query_write("
            INSERT INTO " 
TABLE_PREFIX "searchlog (userid, ipaddress, searchhash, sortby, sortorder, searchtime, dateline, completed, criteria, results)
            VALUES (" 
$vbulletin->userinfo['userid'] . ", '" $db->escape_string(IPADDRESS) . "', $hash, 'groupdateline', 'desc', '0.999', UNIX_TIMESTAMP(NOW()), 1, $crit, '$sresults')");
        
$searchid $db->insert_id(); 

We create our search criteria, serialize it and then get the hash of it. We then serialize our IDs. The way vB's results.php wants the results is ordered such as:

array of threadIDs/postIDs
number of 'confirmed' posts (No idea what this is, left it as 0).
array of groups seen (No idea on this, just make an empty array).
array of groups denied (Again, no clue. Just made an empty array).

We then insert the data into the searchlog table and use that to generate the search results. I also included some various files at the beginning and setup a variable for the whole search thing:
PHP Code:

require_once(DIR "/vb/search/core.php");
require_once(
DIR "/vb/search/resultsview.php");

$search_core vB_Search_Core::get_instance(); 

That's it. Searching via User CP should work.

Good man!!
Thanks :up::up:.
Please give for me temp
post_thanks_member_info

Thankssssssssss

robsta 05-18-2011 02:28 PM

how can i add post thx manually in postbit legacy ?

raicars 05-18-2011 02:34 PM

Quote:

Originally Posted by raicars (Post 2197166)
Good man!!
Thanks :up::up:.
Please give for me temp
post_thanks_member_info

Thankssssssssss

Find all thanked posts by User
Find all posts thanked by User


Postbit_legacy

Add new Temp
post_thanks_member_info
Code:

<fieldset class="fieldset">
        <legend>$vbphrase[post_thanks_thanks]</legend>
        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td>
                                $vbphrase[post_thanks_total_thanks]: <strong>$userinfo[post_thanks_user_amount_formatted]</strong>
                                <br />
                                <if condition="$userinfo[post_thanks_thanked_times] == 1">
                                        $vbphrase[post_thanks_time_post]
                                <else />
                                        <if condition="$userinfo[post_thanks_thanked_posts] == 1">
                                                <phrase 1="$userinfo[post_thanks_thanked_times_formatted]">$vbphrase[post_thanks_times_post]</phrase>
                                        <else />
                                                <phrase 1="$userinfo[post_thanks_thanked_times_formatted]" 2="$userinfo[post_thanks_thanked_posts_formatted]">$vbphrase[post_thanks_times_posts]</phrase>
                                        </if>
                                </if>
                        </td>
                </tr>
                <tr>
                        <td>
                                <a href="post_thanks.php?$session[sessionurl]do=findthanks&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user]</phrase></a>
                        </td>
                        <td>
                                <a href="post_thanks.php?$session[sessionurl]do=findthanks_user_gave&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_thanks_search_user_gave]</phrase></a>
                        </td>
                </tr>
        </table>
</fieldset>

Replace temp: post_thanks_memberinfo_block

Code:

<h5 class="subsubsectionhead">{vb:rawphrase post_thanks_total_thanks}</h5>
<dl class="stats">
        <dt>{vb:rawphrase post_thanks_total_thanks}</dt>
        <dd>{vb:raw userinfo.post_thanks_user_amount_formatted}</dd>
</dl>
<ul class="group">
        <li>
        <vb:if condition="$userinfo[post_thanks_thanked_times] == 1">
                {vb:rawphrase post_thanks_time_post}
        <vb:else />
                <vb:if condition="$userinfo[post_thanks_thanked_posts] == 1">
                        {vb:rawphrase post_thanks_times_post, {vb:raw userinfo.post_thanks_thanked_times_formatted}}
                <vb:else />
                        {vb:rawphrase post_thanks_times_posts, {vb:raw userinfo.post_thanks_thanked_times_formatted}, {vb:raw userinfo.post_thanks_thanked_posts_formatted}}
                </vb:if>
        </vb:if>
        </li>
<li>
                <a href="post_thanks.php?{vb:raw session.sessionurl}do=findthanks&amp;u={vb:raw userinfo.userid}">{vb:rawphrase post_thanks_search_user, {vb:raw userinfo.username}}</a>
        </li>
        <li>
                <a href="post_thanks.php?{vb:raw session.sessionurl}do=findthanks_user_gave&amp;u={vb:raw userinfo.userid}">{vb:rawphrase post_thanks_search_user_gave, {vb:raw userinfo.username}}</a>
        </li>
</ul>




Demo: http://www.yhanoi.com/forum/member.php?u=1

Vaira 05-18-2011 05:21 PM

It finally works! (I am using legacy display mode).

(I have reverted the hack to abe1's original one before, replaced the post_thanks.php, edited the alignment to {vb:stylevar left}, and fixed the inline mod issue at post_thanks_box template)

A big thanks to channelfuse. :up::up::up:

Also for raicars reminding me to add / modify the 2 templates to get it finally to work. :up:

I am really grateful that I (we) still can use the original hack and don't have to go for a paid copy with more features I don't need at all.

Thanks to all who have contributed with useful solutions, I'm happy. :)

raicars 05-19-2011 01:23 AM

1 Attachment(s)
Product update
Find all thanked posts by User
Find all posts thanked by User

Fix temp:
post_thanks_postbit_info
post_thanks_javascript template

Fix version

raj4x 05-19-2011 09:48 PM

Wow, nice updates, thanks Abe of course....and channelfuse for the updates..!

Can someone direct me towards moving these lines in the Postbit info (want to nudge them a bit to the right and down by 2-3 points - don't even know if that's possible...):

Thanks: 0
Thanked 1 Time in 1 Post

Once again, thanks for the help! :)

Raj.

andy626 05-19-2011 11:54 PM

Quote:

Originally Posted by raicars (Post 2197392)
Product update
Find all thanked posts by User
Find all posts thanked by User

Thanks a million for this, exactly what I was after!!!:up:

andy626 05-20-2011 12:09 AM

Quote:

Originally Posted by raicars (Post 2197392)
Product update
Find all thanked posts by User
Find all posts thanked by User

Does anyone know if this will delete all of the current thanks that the members have already?

raicars 05-20-2011 02:15 AM

Quote:

Originally Posted by andy626 (Post 2197803)
Does anyone know if this will delete all of the current thanks that the members have already?

This is upgrade product. This will not delete all of the current thanks that the members ;).
Demo new version:
http://www.yhanoi.com/forum/member.php?u=1
Code:

Total Thanks

Total Thanks
    382

    * Thanked 1,200 Times in 332 Posts
    * Find all thanked posts by Phở
    * Find all posts thanked by Phở


andy626 05-20-2011 09:50 AM

Quote:

Originally Posted by raicars (Post 2197839)
This is upgrade product. This will not delete all of the current thanks that the members ;).
Demo new version:
http://www.yhanoi.com/forum/member.php?u=1
Code:

Total Thanks

Total Thanks
    382

    * Thanked 1,200 Times in 332 Posts
    * Find all thanked posts by Phở
    * Find all posts thanked by Phở


Thanks for getting back to me, appreciate it!

andy626 05-20-2011 10:38 AM

Arrgh, sorry everyone I'm having problems.

I have uploaded the files into correct spots but I don't understand this step below

3) Edit settings in the Admin CP. (Integration settings are in the Groan Hack).

I have searched here for the groan hack for VB4 but there is no download for that hack and I'm not even sure what I'm supposed to do in this step?

Chase 05-23-2011 09:31 PM

I'm trying to figure out how to put the

Thanks: #
Thanked x times in x posts

in a BG box thingy.

I have this in my additional CSS

PHP Code:

.pbit {
padding-left3px;
padding-right0px;
padding-top2px;
padding-bottom2px;
background-color#F4F4F4;
border-top1px solid #D8D8D8;
border-right1px solid #D8D8D8;
border-left2px solid #AD1515;
border-bottom1px solid #D8D8D8;
margin-bottom2px;


And I need to place this somewhere in my post_thanks_postbit_info to get it in a BG box

PHP Code:

<div class="pbit">Thanks</div

Any ideas?

DS MrSinister 05-23-2011 11:13 PM

Quote:

Originally Posted by Chase (Post 2199256)
I'm trying to figure out how to put the

Thanks: #
Thanked x times in x posts

in a BG box thingy.

I have this in my additional CSS

PHP Code:

.pbit {
padding-left3px;
padding-right0px;
padding-top2px;
padding-bottom2px;
background-color#F4F4F4;
border-top1px solid #D8D8D8;
border-right1px solid #D8D8D8;
border-left2px solid #AD1515;
border-bottom1px solid #D8D8D8;
margin-bottom2px;


And I need to place this somewhere in my post_thanks_postbit_info to get it in a BG box

PHP Code:

<div class="pbit">Thanks</div

Any ideas?

try this replace your post_thanks_postbit_info template with this one. hope this helps.

Code:

<div class="pbit">
<vb:if condition="$post['userid']">
        <dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
        <vb:if condition="$post['post_thanks_thanked_times'] == 1">
                <dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
        </vb:if>
</vb:if>
</div>


Chase 05-24-2011 02:47 AM

Thanks that worked!

DS MrSinister 05-24-2011 02:52 AM

very welcome.

Chase 05-24-2011 02:54 AM

1 Attachment(s)
Only problem I have is that I can't get the "Thanked x Times in X Posts" to stay inside the box and not push on outwards. Take a look at the attached pic.

Any suggestions here?

Chase 05-24-2011 02:57 AM

How can I fix this without having to keep widening the postbit width?

raj4x 05-24-2011 07:35 AM

Thanks DS MrSinister and Chase, excellent! :)

Chase: perhaps have the second line wrapped?

Chase 05-24-2011 09:46 AM

thanks for the response! How would I wrap the secound line? :)

raj4x 05-24-2011 11:36 AM

Chase, here's what I found:

Look for "nowrap" and change to "wrap".

So in this case, for example:
PHP Code:

<dd style="white-space:nowrap; ... 

now becomes:
PHP Code:

<dd style="white-space:wrap; ... 

And it should work.

So the new code snippet for the "post_thanks_postbit_info" template (you'd have to play with where to use nowrap and wrap):

PHP Code:

<div class="pbit">
<
vb:if condition="$post['userid']">
    <
dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
    <
vb:if condition="$post['post_thanks_thanked_times'] == 1">
        <
dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_time_post}</dd>

    <
vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <
dd style="white-space:wrap; display:inline;">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>

    <
vb:else />
        <
dd style="white-space:wrap; display:inline;">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
    </
vb:if>
</
vb:if>
</
div


Hope this works for ya.

Cheers. :)


All times are GMT. The time now is 11:41 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.04402 seconds
  • Memory Usage 2,018KB
  • 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
  • (8)bbcode_code_printable
  • (22)bbcode_php_printable
  • (20)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
  • (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