Quote:
Originally Posted by metalguy639
Is it possible to make this where when it asks for the mod version number that instead of a drop down this can be a blank field that members just fill in the version number? The forum I'm going to be running this on does all kinds of mods for all kinds of scripts not just vbulletin. Can you tell me what to change to get it to do this?
Thanks
Damien
|
Nevermind, I figured it out myself

For those of you who might want to do this here's how:
1. Login to your admincp & scroll to "Styles & Templates" find "Style Management" and click on it. Find the skin you have this mod installed on and click on the drop down to get the "Edit Templates" options & choose it.
2. Expand the templates & scroll down to wehre you see the modsystem_post_settings template - double click on it to open.
FIND:
Code:
<fieldset class="fieldset">
<legend>$vbphrase[modsystem_editmod_versions]</legend>
<div style="padding:3px">
$vbphrase[modsystem_editmod_version]:
<select name="mod_vbversion">
$version_options
</select>
</div>
</fieldset>
Replace With:
Code:
<fieldset class="fieldset">
<legend>Mod/Style Version</legend>
<div style="padding:3px">
Software Version: <input type="text" name="mod_vbversion" value="$thread[mod_vbversion]" class="bginput" />
</div>
</fieldset>
You can change the parts in red to be whatever you want them to be. Ultimately you can also change these in the phrases and not change the names from the phrases if you like. Its up to you. I just changed it in the code because it was here & easier to do right then.
If you were to keep the phrases in tact then the replacement code would look like this:
Code:
<fieldset class="fieldset">
<legend>$vbphrase[modsystem_editmod_versions]</legend>
<div style="padding:3px">
$vbphrase[modsystem_editmod_version]: <input type="text" name="mod_vbversion" value="$thread[mod_vbversion]" class="bginput" />
</div>
</fieldset>
I tested it and it works just fine and renders the correct version number that I put into the post.