vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Post Thank You Hack 1.10 (https://vborg.vbsupport.ru/showthread.php?t=73410)

Abe1 05-09-2005 03:25 PM

Quote:

Originally Posted by -=Sniper=-
ok its working :) thanks

also during the upgrade process all my settings were reset :( had to redo them, could you avoide the problem in the future updates?

demo: http://www.hardwareforums.com/showthread.php?t=5319

thanks for the excellent hack.

You only needed that correction for one spot? I'm not going to implement it unless I see others have the problem also. I don't know why you got the error.

I gave a warning when you first clicked 'upgrade' that the settigns are being reset and that you should remeber what they are. In the future, I 'hope' I wont have to reset them again.

I'm glad you like it :)

-=Sniper=- 05-09-2005 03:30 PM

yeh only one spot, as metioned above, one strange thing happening now is the template condition for when only one user has said "thanks" is not working.

on mine I have it it like this

PHP Code:

<if condition="$nb == 1"><phrase 1="User" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
<else /><
phrase 1="$post[post_thanks_amount] Users" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if> 

even with one thanks it says "1 users"

btw: did the upgrade have any effect on the templates? changes?

Abe1 05-09-2005 03:45 PM

Quote:

Originally Posted by -=Sniper=-
yeh only one spot, as metioned above, one strange thing happening now is the template condition for when only one user has said "thanks" is not working.

on mine I have it it like this

PHP Code:

<if condition="$nb == 1"><phrase 1="User" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase>
<else /><
phrase 1="$post[post_thanks_amount] Users" 2="$post[username]">$vbphrase[post_thanks_users_say]</phrase></if> 

even with one thanks it says "1 users"

btw: did the upgrade have any effect on the templates? changes?

in includes/functions_showthread.php
find all the times
PHP Code:

$number_rows 

and replace with
PHP Code:

$nb 

I'll update the zip download in a min. Also, anyone else who installed v1.10 alreadyshould do this.

Abe1 05-09-2005 03:49 PM

Zip updated. Anyone who downloaded and installed already, just follow the instructions in the previus post.

Watson 05-09-2005 04:01 PM

Thanks for this, will give it a shot when I got my forums back online, doing some maint, and upgrading

konstance 05-09-2005 04:06 PM

When I updated the functions_showthread.php, and then went to showthread.php page, I get the following error:

Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209

Please advise what to do about that.

thanks!

snake-boy 05-09-2005 04:24 PM

Tried to upgrade as instructed, and when posting a message I get "error in functions_showthread.php"

Now clicking on any post gives me:

Database error in vBulletin 3.0.7:

Invalid SQL: SELECT * FROM award AS award ORDER BY awardid ASC
mysql error: Unknown column 'awardid' in 'order clause'

mysql error number: 1054


Got no errors during the install process, made the file changes with no probems as directed by the installer.

Help?

-snake

Abe1 05-09-2005 04:28 PM

Quote:

Originally Posted by konstance
When I updated the functions_showthread.php, and then went to showthread.php page, I get the following error:


Warning: Invalid argument supplied for foreach() in /includes/functions_showthread.php on line 209

Please advise what to do about that.

thanks!

Find:
PHP Code:

    foreach ($post_thanks_cash AS $thanks)
    {
        if (
$thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
        {
            
$post_thanks_already ++;
        }
    } 

and replace with this:
PHP Code:

    if ($post_thanks_cash)
    {
        foreach (
$post_thanks_cash AS $thanks)
        {
            if (
$thanks[userid] == $bbuserinfo[userid] AND $thanks[postid] == $post[postid])
            {
                
$post_thanks_already ++;
            }
        }
    } 


Abe1 05-09-2005 04:35 PM

I just updated the zip again with this last fix. Everything should work fine now (I hope).

konstance 05-09-2005 04:38 PM

Thanks Abe1, it works fine now.


All times are GMT. The time now is 01:40 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.01456 seconds
  • Memory Usage 1,762KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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