Users config . An idea
Is it possible, by a click of a button.. For a user to generate a config panel, consisting of forum version, enabled plugins etc. With no confidential info. That they can paste here when asking for support?
Just an idea
There was an error rendering this rich post.
Best Answer
-
peregrine MVP
name the file myconfdisplayer.php
<?php $filename = "conf/config.php"; $fp = fopen($filename, "r"); if($fp) { echo "<br /><code><br>"; echo "<br /><code><br>"; while(!feof($fp)) { $line = fgets($fp); if (preg_match('/Version/',$line)) { echo "Version: $line<br />"; } if ((preg_match('/Plugin/',$line)) && (!preg_match('/GettingStarted/',$line))) { echo "Plugin: $line<br />"; } if ((preg_match('/Debug/',$line)) || (preg_match('/Errors/',$line))) { echo "Debugging: $line<br />"; } } echo "<br /></code><br>"; echo "<br /></code><br>"; } ?>
run it
http://"putyourhosthere"/vanilla/myconfdisplayer.phpand it displays plugins, version info, and debugging info.
Version: $Configuration['Conversations']['Version'] = '2.0.18.4';
Plugin: // EnabledPlugins
Plugin: $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
Plugin: $Configuration['EnabledPlugins']['OnlyRead'] = TRUE;
Version: $Configuration['Garden']['Version'] = '2.0.18.4';
Debugging: //Errors
Debugging: $Configuration['Garden']['Debug'] = TRUE;
Debugging: $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';
Plugin: // Plugins
Plugin: $Configuration['Plugins']['OnlyRead']['ButtonLabel'] = 'My New button';
Version: $Configuration['Vanilla']['Version'] = '2.0.18.4';I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
1
Answers
It's a good idea, but it needs to be created, it's not available at the moment as far as I can see...
There was an error rendering this rich post.
Wonder if one of the plugin gurus here could make it?
There was an error rendering this rich post.
If only there were someone around here that knew php and how to write plugins for vanilla....
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
what do you want?
I don't think a plugin is a good idea, since vanilla might not be functional.
but they could download a script like this if there was a place to download it from on vanilla forums and cut and paste results.
place this file in /vanilla directory it will skip database, password private info.
and run http://"putyourhosthere"/vanilla/myconfdisplayer.php
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thats cool, could you show us some demo output? Please
There was an error rendering this rich post.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thats good, i was thinking more like.
Vanilla version: xyz
Plugins enabled:
Buttonbar v .123
Voting v. Abc
Etc
There was an error rendering this rich post.
it could be condensed but it lists all the info that helps debug plugins to with option settings.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
slimmed down
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Now your talking, thats brilliant. If that info could be formatted for posting on the forums or sharing with devs would be ace.
This needs to be a core function of vanilla.
There was an error rendering this rich post.
results with cut and paste
Version: $Configuration['Conversations']['Version'] = '2.0.18.4';
Plugin: // EnabledPlugins
Plugin: $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
Plugin: $Configuration['EnabledPlugins']['OnlyRead'] = TRUE;
Version: $Configuration['Garden']['Version'] = '2.0.18.4';
Plugin: // Plugins
Plugin: $Configuration['Plugins']['OnlyRead']['ButtonLabel'] = 'My New button';
Version: $Configuration['Vanilla']['Version'] = '2.0.18.4';
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Smartarse ! Goodonya
There was an error rendering this rich post.
name the file myconfdisplayer.php
run it
http://"putyourhosthere"/vanilla/myconfdisplayer.php
and it displays plugins, version info, and debugging info.
Version: $Configuration['Conversations']['Version'] = '2.0.18.4';
Plugin: // EnabledPlugins
Plugin: $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
Plugin: $Configuration['EnabledPlugins']['OnlyRead'] = TRUE;
Version: $Configuration['Garden']['Version'] = '2.0.18.4';
Debugging: //Errors
Debugging: $Configuration['Garden']['Debug'] = TRUE;
Debugging: $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';
Plugin: // Plugins
Plugin: $Configuration['Plugins']['OnlyRead']['ButtonLabel'] = 'My New button';
Version: $Configuration['Vanilla']['Version'] = '2.0.18.4';
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Awesome
There was an error rendering this rich post.
I changed code to pre
There was an error rendering this rich post.
Added this to functions: $today = date("F j, Y, g:i a");
and this after the second echo:
echo "Generated".' '.$today.'< br>';
I think my php is correct ( remove space from < br> )
There was an error rendering this rich post.
Added the script inc readme to our downloads section:
http://vanillaskins.com/downloads/
Direct download link: Here
There was an error rendering this rich post.
goodonya.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@422
one suggestion put the two files (readme and program) in a folder (e.g. myconfapp) and then zip the folder.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
thats how its done:
zip is display_my_configuration.zip
inside myconfidisplayer.php and readme.txt
Readme:
There was an error rendering this rich post.