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)

Dollah 01-19-2006 08:05 PM

[QUOTE=Dollah]i have used this on my default skin werks fine.........but on my new in my navar bar template this is what i have
Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">
                <if condition="is_array($navbits)">
                        <table cellpadding="0" cellspacing="0" border="0">
                        <tr valign="bottom">
                                <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
                                <td>&nbsp;</td>
                                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
                        </tr>
                        <tr>
                                <td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
                        </tr>
                        </table>                       
                <else />
                        <div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
                </if>
        </td>       
       
<if condition="$show['member']">
       
                <td class="alt2" valign="top" nowrap="nowrap">
                <div class="smallfont">
                        <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
                        <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
                        <if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
                </div>
                </td>
               
        <else />
               
                <td class="alt2" nowrap="nowrap" style="padding:0px">
                       
                <!-- login form -->
                <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
                <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
                <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <tr>
                        <td class="smallfont">$vbphrase[username]</td>
                        <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
                        <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[password]</td>
                        <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
                        <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
                </tr>
                </table>
                <input type="hidden" name="s" value="$session[sessionhash]" />
                <input type="hidden" name="do" value="login" />               
                <input type="hidden" name="vb_login_md5password" />
                <input type="hidden" name="vb_login_md5password_utf" />
                </form>
                <!-- / login form -->
                       
                </td>
               
        </if>       
       
</tr>
</table>
<!-- / breadcrumb, login, pm info -->

  <div class="spacer"></div>

<if condition="$show['forumdesc']">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
                <td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
        </tr>
        </table>
        <br />
</if>

is their any way u can help me with this please my users loves this and so do i thanx....[/QUbesides that i wave noticed it raise the post count but doesnt change th erep or is not adding it ..and it does not display whom has thanked a post or any thing so please help some one....

thedvs 01-20-2006 01:12 PM

this is about the 8th time i've tried to install this.

yes the template postbit/legacy were done correctly.
the gfx is in the right place.
the import was fine.
all options set correctly...

the button isnt showing even when logged in as another user at all

running vb 3.5.3, tren_Z skin from extremepixels.com

aranthorn 01-20-2006 02:33 PM

This is odd, I've recently had a couple users say the button "disappeared". Checked all the settings, checked all the styles. I can see it and most other users can, but they're saying they can't. Even provided a screenshot of it. There wouldn't be anything M$ may have done in an update or something is there?

Abe1 01-20-2006 02:39 PM

Quote:

Originally Posted by aranthorn
This is odd, I've recently had a couple users say the button "disappeared". Checked all the settings, checked all the styles. I can see it and most other users can, but they're saying they can't. Even provided a screenshot of it. There wouldn't be anything M$ may have done in an update or something is there?

If they gave thanks already, then they wont see it.

aranthorn 01-20-2006 07:55 PM

I should have given more info. They don't see it anywhere at all. Not even in new threads.

Damien2005 01-24-2006 04:29 PM

thanks for this great hack mate ;)

Dreamchaser 01-26-2006 04:28 AM

everything went fine, but I don't see the thankyou button in any threads ? am i missing something ? using vb 3.5.3 and iSkin from exteremepixels!

Abe1 01-26-2006 12:16 PM

Quote:

Originally Posted by Dreamchaser
everything went fine, but I don't see the thankyou button in any threads ? am i missing something ? using vb 3.5.3 and iSkin from exteremepixels!

You wont see it in your own posts. Look at someone elses.

Dreamchaser 01-26-2006 02:24 PM

Quote:

Originally Posted by Abe1
You wont see it in your own posts. Look at someone elses.

I did confirm that, I could not see the thank you button even on others post... any help on this issue ?

vietfancy 01-28-2006 02:19 AM

great, installed

Abe1 01-28-2006 09:52 PM

Quote:

Originally Posted by Dreamchaser
I did confirm that, I could not see the thank you button even on others post... any help on this issue ?

Did you do all the template edits? (In all styles if you have more then one)

cd1986 01-29-2006 12:54 AM

Same problem as above - the button doesn't appear to be showing in postbit for everyone, including me as admin. All template edits done correctly etc.

Tulsa 01-29-2006 04:08 AM

It can't be the hack as it works flawlessly on my site. I've tested with both PC and MAC, all sorts of browsers and I have 2200 users who love this hack.

I did have a guy on my site say the Thanks button went away for him, he turned off his ZoneAlarm Pro and everything came back.



those users sure would like a groan button though.. ;)

kregger 01-29-2006 05:59 PM

Works great!

*clicks thanks err....install*

aranthorn 02-01-2006 12:47 AM

HAH! I found the answer for sometimes the button not appearing! (at least for Zone alarm users)

Here is what you do if you want to fix it:
Open up your Zone Alarm control panel
Under the PRIVACY tab you have to disable the following
Cookie control > OFF
AD Blocking > OFF
Mobile Control Code > OFF

worked for the people having the issue on my forum :D

Abe1 02-01-2006 12:50 AM

Quote:

Originally Posted by aranthorn
HAH! I found the answer for sometimes the button not appearing! (at least for Zone alarm users)

Here is what you do if you want to fix it:
Open up your Zone Alarm control panel
Under the PRIVACY tab you have to disable the following
Cookie control > OFF
AD Blocking > OFF
Mobile Control Code > OFF

worked for the people having the issue on my forum :D

Does this have to do with the button leading to a pop-up?

lazyseller 02-01-2006 02:27 PM

This is a great mod and thanks for releasing it. I do have a question though what happans if there is around 20 to 30 thanks per thread ? How is it formatted ?

Abe1 02-01-2006 03:05 PM

Quote:

Originally Posted by lazyseller
This is a great mod and thanks for releasing it. I do have a question though what happans if there is around 20 to 30 thanks per thread ? How is it formatted ?

Each post gets it's own box. In each box shows all users who gave thanks. The box only shows once a user has thanked a post.

lazyseller 02-01-2006 04:18 PM

How do i fix this ?

after i remove thanks it says cannot find phrase post_ thanks

Abe1 02-01-2006 04:29 PM

Quote:

Originally Posted by lazyseller
How do i fix this ?

after i remove thanks it says cannot find phrase post_ thanks

I have to see why that happens. I hope to have it fixed by next version.

lazyseller 02-01-2006 04:31 PM

Thanks... i do have a question though... if a thread is deleted will it also delete the thank you's as well ?

Abe1 02-01-2006 04:43 PM

Quote:

Originally Posted by lazyseller
Thanks... i do have a question though... if a thread is deleted will it also delete the thank you's as well ?

No it will not. They will remain in the database as of now.

lazyseller 02-01-2006 04:51 PM

Quote:

Originally Posted by Abe1
I have to see why that happens. I hope to have it fixed by next version.

When can we expect another release ? and whats new in this release ?

How do i display how many thanks are given on a certain thread ?

For example:

The following user says thank you to x for this useful post:

I would like it to say

The following user says thank you to x for this useful post(10 members)

Abe1 02-01-2006 06:05 PM

Quote:

Originally Posted by lazyseller
When can we expect another release ? and whats new in this release ?

How do i display how many thanks are given on a certain thread ?

For example:

The following user says thank you to x for this useful post:

I would like it to say

The following user says thank you to x for this useful post(10 members)

Look at the screen shots.

A new version is expected in the near future.

lazyseller 02-03-2006 01:28 AM

this is a weird request but is there a simple way where i can allow members to give thanks to their own thread ?

Abe1 02-03-2006 02:47 AM

Quote:

Originally Posted by lazyseller
this is a weird request but is there a simple way where i can allow members to give thanks to their own thread ?

Simple if you know php.

Morning Glory 02-03-2006 06:41 AM

Works great.

Thank you.

lazyseller 02-03-2006 10:27 AM

Not so simple then =) Thanks though working great so far..

One more question i am trying to integrate this great mod with show first post on every page

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

but for some reason on the 2nd page... the thank you list and button isnt there anymore

Any ideas whats happening ?

Parham 02-04-2006 07:10 AM

i had install this extension on my site and after edit template I can't see thanks button or Thanks Option ... btw I use VBulletin 3.5.3

Parham 02-04-2006 07:17 AM

where can i find these option :) ?!

Tulsa 02-04-2006 07:58 AM

admincp/vbulletin options/post thank you hack

Parham 02-04-2006 02:23 PM

Thanks Tulsa, btw I had try to edit template again but i can't see any Post Thanks Option on my Forum ... Like This or This

Tulsa 02-04-2006 03:04 PM

Did you make the edit changes in the Postbit and/or Postbit_Legacy templates, depending upon which one you use or preferrably both?

Parham 02-04-2006 03:13 PM

oops i forgot to change postbit templates... thanks again ...

keithnec 02-04-2006 03:52 PM

in the latest version one of the listed changes is as follows: "[CHANGED] Made a pop-up now when you click Thanks instead of refreshing the page."
can anybody tell me if this is selectable back to the earlier version as I would prefer the hack to just update the thread with the user name in the thanked box rather than have a pop-up that the user then has to close?.

Abe1 02-04-2006 10:58 PM

Quote:

Originally Posted by keithnec
in the latest version one of the listed changes is as follows: "[CHANGED] Made a pop-up now when you click Thanks instead of refreshing the page."
can anybody tell me if this is selectable back to the earlier version as I would prefer the hack to just update the thread with the user name in the thanked box rather than have a pop-up that the user then has to close?.

Next release will either go back to the other way or have an option to do either.

keithnec 02-05-2006 05:34 AM

thanks for the info abe1

lazyseller 02-05-2006 02:40 PM

If you can make a option to be able to thank your own post im willing to give a 20.00 donation.

Tulsa 02-05-2006 02:59 PM

You want to thank yourself, publicly?

LBSources 02-05-2006 03:23 PM

Lmao! :d


All times are GMT. The time now is 11:38 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.02006 seconds
  • Memory Usage 1,847KB
  • 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
  • (1)bbcode_code_printable
  • (12)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