Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2020, 12:16 PM
IT_Smart IT_Smart is offline
 
Join Date: Jul 2019
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 10-29-2020, 09:24 PM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 11-03-2020, 09:35 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 11-04-2020, 01:03 AM
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Location: USA
Posts: 647
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Attached Images
File Type: png 2020-11-03_22-02-36.png (65.1 KB, 0 views)
Reply With Quote
  #5  
Old 11-06-2020, 08:09 AM
x iJailBreak x's Avatar
x iJailBreak x x iJailBreak x is offline
 
Join Date: Jan 2011
Location: United Kingdom
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dr.CustUmz View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03632 seconds
  • Memory Usage 2,218KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete