It looks like you're new here. If you want to get involved, click one of these buttons!
luisgzafra
newb
Hello, i need save the site name in the db and edit this from the admin panel. ¿How i can do it?
Thanks!
Answers
Can you elaborate more?
- Spam
- Abuse
0 · Insightful Awesome LOL ·It is saved within the config file.
422 Real Estate Australia , now open Check it out
- Spam
- Abuse
0 · Insightful Awesome LOL ·Instead of in the config file need to be stored in the database.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Only
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Is there no way?
- Spam
- Abuse
0 · Insightful Awesome LOL ·no has been the consistent answer.
why do you need it in a database as opposed to reading it from config file?
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
0 · Insightful Awesome LOL ·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).
- Spam
- Abuse
0 · Insightful Awesome LOL ·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()andGnd_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?
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·I'm doing a project based on vanilla forums, that is why I have to make these changes.
- Spam
- Abuse
0 · Insightful Awesome LOL ·