![]() |
vBengine
Latest Version: 1.1
Yesterday evening i wrote this hack instead of studying math :D. Actually the code is not really difficult, but the hack itself can make many things much easier. First feature: you can create new php-files thru your admin cp. You can choose if you wanna include the header and footer template and if you wanna create a new template for the content. Screenshot 1: http://partylife.ch/misc/vbengine1.jpg Second feature: The script reads all files in your forum and admin directory and you can choose one for editing. So you can edit every file thru the admin cp. This can be usefull for changing small things. You can also choose if you want a backup of the file you are editing. Screenshot 2: http://partylife.ch/misc/vbengine2.jpg Screenshot 3: http://partylife.ch/misc/vbengine3.jpg Installation Everything is clearly explained in the readme file. Download Voil?: http://partylife.ch/misc/vBengine1.1.zip Note! I'd really like to get every feedback you guys can give me. Also post bugreports and suggestions to improve this script. If you have installed this hack, pls click on the install button to receive updates thru email. Thank you :). |
nice hack i'll install it later
|
great idea.
2 month ago I wrote a simple editor but I canceles the project because of needing write access to the directory. PS: you put a wrong readme.txt into the zip. |
ehm.. well you cannot get around the access thing. so if somebody wanna use this .. he has to give the write-access.
whats wrong with the readme-file? =) |
wow very nice, ill install it later also :)
|
I tried this and it worked fine except the php file it created was empty except for calls to the header, footer & engine templates... It also has a parse error when I try and load it, whether I create templates or not...
|
ehm.. well did you create a new template or just add some code/text?
could you post the content of the created file? |
i just thought of a security issue, since vb doesnt allow people to reset the admin log via the ACP and makes them edit the config file, this will allow people to reset the admin log
|
Quote:
|
Ok I got rid of the errors but now it just makes a blank page...
This is the php: PHP Code:
|
Ignore me, I added the engine template to the wrong style... oops works dandy now... ;)
|
hehe.. nobody's perfect :).
|
Hi,
2 suggestions. 1.) untested: If only those may use these function, witch may view the adminlog, put the following line after cpheader("..."); PHP Code:
PS: should the readme.txt not contain the information how to integrate the new functions to index.php? |
thank you, harvey for the suggestions.
the first one is a very good idea.. which i'll add. the second one.. well do you think it would be usefull? |
Quote:
|
Hi.
Perhaps it makes sense to backup files automatically. Imagine, you edit a file incorrectly but you don't know exactly where the error is and you don't have the previous version downloaded before. (hope this sentence is understandable). If I download the attachment the readme.txt contains this: Code:
******************************** |
just a quick note. i looked at the posts made by other users that installed this hack. there is no need to add the $headinclude, $header and $footer in the file, if you call the global.php file. they are included there.
|
ouh.. cool.. thanks nakkid.
@Harvey: lol funny, ehm pls.. download the zip-file again.. im quite sure that not this readme file is in the file. ;) (btw: du sprichst doch deutsch nicht? :)) |
ja, eigentlich nur :)
|
Also another thing you may want to add is a search feature ;)
|
Very interesting, I'm gonna check it out with a test board and post some comments :)
|
This is great man I am going to have to install this :)
|
ouh search feature.. very nice idea.. i'll work on that tonight or tomorrow.
thanks JulianD for testing.. and neo for installing ;) :) |
Quote:
again excellent hack!!! I have not installed it yet, I?ll wait to the next version :D thanx dm |
hehe.. well you dont have really much to install.. just upload the file.. and add a new template.. (plus giving access to the files) then everything should work :).
next version comes soon. |
to Vivi Ornitier: what kind of search feature would you like? searching thru all files? or just search thru the current opened file? (like the displaying of templates)
|
I love this hack. Especially for editing things like the cp.css file. Good job.
|
Cool hack! I already have something in mind to use this with :)
|
Great Job! I installed it.....
I have a few requests... 1. Ability to edit the files in the admin directory 2. Search Feature 3. Ability to download ALL files with the click of a button...for backup purposes |
I get this error when ever changing a file
PHP Code:
|
Searching through the current opened file of course ;)
that was editing will be easy :) |
Shroomboy: you have to make the file you wanna edit (in your case announcement.php) writable. so use you ftp-client and change the rights.
|
Everything works great here. Thanks!
|
i'm happy to hear that c-prompt :). update to v1.1 in a few mins.
|
okey.. version 1.1 is available.
changes: - search feature added (as suggested) - backup feature added (as suggested) - admin and forum dir editable (as suggested) further suggestions? :) |
mhmm the webmaster doesn't allow chmod 666 and the PHP-scripts run under user nobody.
sorry,for writing the rest in german. Schade, denn ich habe auf der Malloche kein FTP. Es sei denn ich arbeite in dringenden F?llen direkt auf der Firewall, aber davon ist unser Admin nicht wirklich begeistert. Und ich dachte schon, ich k?nnte zusammen mit Dir ein High-End-Produkt rausbringen ;) (aber das ist es ja schon: sehr gute Arbeit) |
[german]
hehe, danke dir. :) Dein Board ist ziemlich beeindruckend, muss ich sagen. Sauberes Design, ?bersichtlich, riesiges Forum.. und alles passt sch?n zusammen. Wirklich super Arbeit. [/german] hmm.. i don't know how to change the rights (chmod) for files thru php. and how to change user too. can there somebody help? |
Quote:
|
i found one little complication:
when you edit the cp.css and want to make a backup.. the backup file is named cp.css.bak.php ;). ehm.. well just notice that, if you wanna edit "non-php" files :). |
Ok, I am sort of a newbie to this. I added it just fine. WOrks great to edit files. However, I am having a little issue with making a new file, and having it use the "Use the header and footer template of your style?" option for making a new file.
The line PHP Code:
|
All times are GMT. The time now is 04:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|