Welcome, Guest. Please Login or Register.
April 22, 2025, 08:14:15 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  ModSettings « previous next »
Pages: [1] Reply Ignore Print
Author Topic: ModSettings  (Read 420 times)
Andi252
Noobie
*
Posts: 22


WHOOT

ModSettings
« on: August 06, 2002, 10:06:35 PM »
Reply with quote

I want to remove the Table Prefix option on the main settings page, how do i do this ?
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:ModSettings
« Reply #1 on: August 07, 2002, 12:02:02 AM »
Reply with quote

Do you just want to remove the textbox or remove prefixes all togeather.  If it is the first one then just edit Admin.php and change the type form text to hidden.
Logged

Andi252
Noobie
*
Posts: 22


WHOOT

Re:ModSettings
« Reply #2 on: August 07, 2002, 02:01:23 AM »
Reply with quote

need to remove it all together to stop people chaging it. I can't find the file that powered the settings page tho.

Thanks  8)
« Last Edit: August 07, 2002, 04:01:24 PM by Andi252 » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:ModSettings
« Reply #3 on: August 07, 2002, 06:38:10 AM »
Reply with quote

The file you want is Admin.php about line 914.

Change
<input type="text" name="db_prefix" value="$db_prefix">
To
<input type="hidden" name="db_prefix" value="$db_prefix">
Logged

Andi252
Noobie
*
Posts: 22


WHOOT

Re:ModSettings
« Reply #4 on: August 07, 2002, 04:00:25 PM »
Reply with quote

Still showing in the html tho

   <td class="windowbg2" bgcolor="#F8F8F8" width="400"><font size="2">Database Tables Prefix</font></td>
    <td class="windowbg2" bgcolor="#F8F8F8"><input type="hidden" name="db_prefix" value="walls_"></td>
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:ModSettings
« Reply #5 on: August 07, 2002, 09:27:29 PM »
Reply with quote

Then do what I did.  Edit the value to no longer be the variable but just some word.  Then scroll down where it writes out your new Settings.php and hardcode your database information into it.
Logged

Andi252
Noobie
*
Posts: 22


WHOOT

Re:ModSettings
« Reply #6 on: August 07, 2002, 11:54:51 PM »
Reply with quote

AHA
Thanks David

your work for board nation right ?
if i wanted to write a system like that, how would i do it ?
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  ModSettings « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.180 seconds with 21 queries.