vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Edit vBulletin template with a code editor (https://vborg.vbsupport.ru/showthread.php?t=328298)

IT_Smart 10-23-2020 12:16 PM

Edit vBulletin template with a code editor
 
Hello guys
A question about edit templates, is there a way to edit vBulletin templates from an external code editor, like NotePad++ or SublimeText?
But I'm not talking about copy and paste all the code of the template and paste it back into the vBulletin editor, but edit directly the code...

Context: We work with a VBulletin 4.2.3 and edit templates is really a PITA, no color coding, no indentation, you have to be, super-ultra careful when editing code.

This question was published in 2009
https://vborg.vbsupport.ru/showthread.php?t=84525
In this post is mentioned other text editor, but my question is, how can you access a template that is _inside the database and is not a simple file like template.php, how could you achieve that?

I did not want to add to the same thread because is very old, and I think, man, in 11 years things must have changed, so maybe there is a way now.

Please guys could you tell me if you guys were able to edit code with another editor?
I know that the vBulletin version we use is old, is 4.2.3 version when the new version in 5... btw, is the code editor improved?
Thank you all

Dr.CustUmz 10-29-2020 09:24 PM

There was a way way back then and there is a way now, I do this when creating templates myself for the same reasons, all my templates are files, and all I have to do is save the file and refresh the page. I do this my own way, and only really work with vB3 I have never released my product for this. But would be willing to give it vB4 compatibility for a fee.

There is also VDE but I haven't been able to get that working 100% myself. The reason I made my own product for this.

TheLastSuperman 11-03-2020 09:35 PM

Perhaps, you can use something like this https://vborg.vbsupport.ru/showthread.php?t=257072 in a "workaround" manner, edit the templates in the generated file then upload again after modifying in your own text editor.

Dr.CustUmz 11-04-2020 01:03 AM

1 Attachment(s)
why do that when you can just dump your files and write a plugin that reads straight from your files (not for use in a live site of coarse) but great for a dev environment.

x iJailBreak x 11-06-2020 08:09 AM

Quote:

Originally Posted by Dr.CustUmz (Post 2604542)
why do that when you can just dump your files and write a plugin that reads straight from your files (not for use in a live site of coarse) but great for a dev environment.

To be fair, I'd argue to an extent that it'd even be worthwhile having this on a live site to minimize hits to the database. With some work, it'd probably end up being much faster.


All times are GMT. The time now is 02:42 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.01677 seconds
  • Memory Usage 1,719KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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