vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - vB.org Rating System Replica (https://vborg.vbsupport.ru/showthread.php?t=155701)

ran_iu_Conan 01-03-2008 11:00 PM

i like it.
thanks so much
love you ^^~

gldtn 01-29-2008 01:40 PM

Any plans on updating this to vB3.7?

baz_kingfish 02-06-2008 02:22 AM

Quote:

Originally Posted by yoyoyoyo (Post 1370163)
here are the template edits in TMS (Template Modification System) XML format - if anyone has TMS installed all they need to do is import this.

yoyo,
I ran the XML in TMS and created the templates, but nothing is showing up in my forum. All of the TMS modifications are "enabled", what am I missing? Lastly, is the XML based on Rich's hack or the one from Mangus?
Thanks,
KF

mangandini 02-07-2008 07:20 PM

The plugin have a bug if a thread id doesnt' exist, just modify the first line.
;-)

PHP Code:

if ($vbulletin->userinfo['userid'] && $threadinfo[threadid])
{
    if (
$rating $db->query_first("
        SELECT *
        FROM " 
TABLE_PREFIX "threadrate
        WHERE userid = " 
$vbulletin->userinfo['userid'] . "
            AND threadid = 
$threadinfo[threadid]
    "
))

 { 
   
$rated true
 }  



Quote:

Originally Posted by codehack (Post 1400164)
PHP Code:

Invalid SQL:

        
SELECT *
        
FROM threadrate
        WHERE userid 
1
            
AND threadid =;

MySQL Error  You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Error Number 
1064
Date         
ThursdayDecember 13th 2007 03:01:01 AM
Script       
http://www.xxxx.com/forum/showthread.php?t=1
Referrer     
IP Address   
Username     
Classname    vB_Database 

help me!!:(


baz_kingfish 02-07-2008 07:33 PM

Mang,
What about my problem...can you help me with that?
Thanks,
KF

Quote:

Originally Posted by baz_kingfish (Post 1437161)
yoyo,
I ran the XML in TMS and created the templates, but nothing is showing up in my forum. All of the TMS modifications are "enabled", what am I missing? Lastly, is the XML based on Rich's hack or the one from Mangus?
Thanks,
KF


Rich 02-07-2008 08:46 PM

I don't use the TMS so i don't know how it operates, nor am I interested in installing it to see how it operates. (no offense to its creator. Its just not a mod I need right now.)

I am hoping to have a new version released within the next 2 weeks.

baz_kingfish 02-07-2008 08:56 PM

Thanks for responding. All the TMS does is apply the edits to the respective Template without having to go and manually search and find everything. It works beautifully. Any idea what the problem might be as to why the ratings box is not showing up? I don't even know where to start looking. Will your next release be a plugin or just a Template Mod...I can wait.

baz_kingfish 02-07-2008 09:12 PM

Quote:

Originally Posted by yoyoyoyo (Post 1370163)
here are the template edits in TMS (Template Modification System) XML format - if anyone has TMS installed all they need to do is import this.

These XML template edits DO NOT WORK or test successfully in 3.6.8...

Scamorz 02-10-2008 10:59 AM

Hi, a little problem:

when i delete a post in a thread rated and then write the post link it show me an error:

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:

                SELECT *
                FROM vb_threadrate
                WHERE userid = 3
                        AND threadid =;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Error Number : 1064
Date        : Sunday, February 10th 2008 @ 12:54:23 PM
Script      : http://www.mysite.com/forum/showthread.php?p=84858
Referrer    :
IP Address  : 87.4.173.165
Username    : user
Classname    : vb_database


My plugin code is:

Code:

if ($vbulletin->userinfo['userid'])
{
    if ($rating = $db->query_first("
        SELECT *
        FROM " . TABLE_PREFIX . "threadrate
        WHERE userid = " . $vbulletin->userinfo['userid'] . "
            AND threadid = $threadinfo[threadid]
    "))

 {
  $rated = true;
 } 
}

Please anyone can help me?

Thank you!

Scamorz 02-11-2008 05:36 PM

This is the exact code:
PHP Code:

if ($vbulletin->userinfo['userid'] && trim($threadinfo[threadid])!='')
{
    if (
$rating $db->query_first("
        SELECT *
        FROM " 
TABLE_PREFIX "threadrate
        WHERE userid = " 
$vbulletin->userinfo['userid'] . "
            AND threadid = 
$threadinfo[threadid]
    "
))

 { 
   
$rated true
 }  




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