vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   template questions (https://vborg.vbsupport.ru/showthread.php?t=74530)

hotnuts21 01-17-2005 04:48 PM

template questions
 
Ive put together a mod for vbulletin but it requires I alter three areas of the template table.
navbar,
standard_error
standard_error_lite

now i patched the template, but I only patched the template field not the template_un too. When i made some cosmetic changes in the admincp my changes didnt show up, and the new changes did.

So my question is quite simple, if I want to patch the template fields mentioned above, what is the best way to do it, do I have to fill in all the fields, or can I just change an existing one? I need it so that if any alterations are made in the admincp they are made in our revised edition and do not create a new table entry.

Thanks and i hope I have made myself clear :)

Andreas 01-17-2005 04:55 PM

You should not edit the tempaltes in the database directly.
Use Styles Manager to do so (Admin CP / Styles & Templates)

Zachery 01-17-2005 04:56 PM

Quote:

Originally Posted by KirbyDE
You should not edit the tempaltes in the database directly.
Use Styles Manager to do so (Admin CP / Styles & Templates)

Infact its really never best to edit any of vB's data directly in the database...

Andreas 01-17-2005 05:00 PM

Well, depends ;)

If, for example, I want to mass-close all polls there AFAIK isn't a straight-forward way to do so (without a query).

Zachery 01-17-2005 05:18 PM

Quote:

Originally Posted by KirbyDE
Well, depends ;)

If, for example, I want to mass-close all polls there AFAIK isn't a straight-forward way to do so (without a query).

Well right, I am talking more about chaging certin bits of data though somthing like phpmyadmin, like editing options or forum permissions ect.

hotnuts21 01-17-2005 06:09 PM

Thanks for that guys, but as the changes requested above are only a small part of the changes, a lot of which require database changes, during the installation of the hack. Its an automated process which runs on a php script. So we have to alter the database, or at least alter it the same way you would if you edited it from admincp.

So what info do i need to input, currently we only change the template field, as our data is raw, but we have not changed the template_un table. Up untill now its worked fine, however one person who has changed the layout of his site using the admincp our changes have dissapeared. So I need to know the answers to the questions above.

If i have to patch the sql directly, and its just the template table, what info do i need to enter in and whats the difference between the info in template and template_un

thnx

Andreas 01-17-2005 06:20 PM

template is the compiled template, template_un is the original template code (used for editing, etc.)
There is no template_un table, only a column template_un in table template.

... and I still don't understand why you want to modify the DB directly.


All times are GMT. The time now is 02:42 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.01064 seconds
  • Memory Usage 1,723KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete