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)
-   -   Template Manager 0.6 (https://vborg.vbsupport.ru/showthread.php?t=91038)

Xplorer4x4 12-31-2005 01:55 PM

Quote:

Originally Posted by Yorixz
This hack seems to work correctly on vB 3.5.2 - the only (quite big) error I'm getting is that it can't find the table with the templates, which is correct because it's ignoring my prefix.

Does anyone know a way to solve this?

Edit:
Got it.

In line 1834 replace
Code:

        $sql = 'SELECT title, template_un FROM template
with
Code:

        $sql = 'SELECT title, template_un FROM " . TABLE_PREFIX . "template
Except for that place everywhere it's checked if you're using a prefix ;)

Done and I still have the problem:
Database error in vBulletin 3.5.1:

PHP Code:

 Invalid SQL:
SELECT titletemplate_un FROM " . TABLE_PREFIX . "template
WHERE templateid 
388 ORDER BY title;

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 '" . TABLE_PREFIX . "template
WHERE templateid = 388 ORDER BY tit
Error Number : 1064
Date         : Saturday, December 31st 2005 @ 04:40:42 PM
Script       : /Doms/admincp/custom_template_manager.php
Referrer     : /Doms/admincp/custom_template_manager.php
IP Address   : 
Username     : Xplorer4x4
Classname    : vb_database 


waza 12-31-2005 01:58 PM

".TABLE_PREFIX." should be with ' ' instead of " "
so replace that with ' . TABLE_PREFIX . '
and it will work

grz,
seba

Xplorer4x4 12-31-2005 02:06 PM

Quote:

Originally Posted by waza
".TABLE_PREFIX." should be with ' ' instead of " "
so replace that with ' . TABLE_PREFIX . '
and it will work

grz,
seba

Um can I can I get an example? Not quite understanding you. Sorry, and Thanks.

waza 01-01-2006 10:11 AM

k, srry

I guess you now have:
Quote:

$sql = 'SELECT title, template_un FROM " . TABLE_PREFIX . "template
Replace that with:
Quote:

$sql = 'SELECT title, template_un FROM ' . TABLE_PREFIX . 'template
so you see, the [" "] have been replaced with [' ']

grz,
seba

Snake 01-02-2006 11:31 AM

Nice but is this going to work on v3.5.2?

Xplorer4x4 01-02-2006 03:19 PM

Thanks wazza and i had no problems running this on 3.5.2.

Snake 01-02-2006 05:35 PM

Quote:

Originally Posted by Aftermath
Nice but is this going to work on v3.5.2?

Is there someone who is gonna answer back to my question?

Xplorer4x4 01-02-2006 05:37 PM

Read my post before yours......

https://vborg.vbsupport.ru/showpost....5&postcount=66

Snake 01-02-2006 05:59 PM

Whoa my bad. :D

evenmonkeys 01-03-2006 01:23 AM

Can this put templates into groups?


All times are GMT. The time now is 10:49 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.01155 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_php_printable
  • (5)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