Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us

Save site name in data base

edited May 2012 in Questions

Hello, i need save the site name in the db and edit this from the admin panel. ¿How i can do it?



  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Can you elaborate more?

    Vanilla is sweet & support is great, to encourage volunteers, please donate.

  • 422422 Developer MVP

    It is saved within the config file.

    422 Real Estate Australia , now open Check it out

  • Instead of in the config file need to be stored in the database.

  • It is saved within the config file.


    grep is your friend.

  • Is there no way?

  • peregrineperegrine MVP
    edited May 2012

    no has been the consistent answer.

    why do you need it in a database as opposed to reading it from config file?

    Monetary Donations will be appreciated if you use my plugins. Thanks in Advance.
    As a waiter gets a tip for a good meal, tips for successful solutions appreciated as well. Peregrine

  • I got it :)

    I created a table with 4 fields, the config.php it does is collect all these areas and turn them into variables with eval (). Then in lybrary / core / class.configuration.php, in the Save, I keep all that data into the DDBB when needed. (This with some minor changes, it worked. I used mysql functions of vanilla).

  • You haven't exlained why you are doign this. I expect it to give you inconsistent results.

    Also serialise and und serialise objects rather than relying on eval if you can help it. Look at Gdn_Format::Serialize() and Gnd_Format::Unserialize()

    People are very quick to edit the core, remember if you edit the core you are maintaining a fork.

    People have misguided ideas about security I wondered if this is the reason, or if you wanted a test,dev, and production configuration options?

    grep is your friend.

  • I'm doing a project based on vanilla forums, that is why I have to make these changes.

Sign In or Register to comment.