Hi all,
I was bored so created a little script for UberCMS. If you know what you are doing you could make this compitable with another CMS.
What you need to do is simple. Create a file "additional_texts.php".. Make sure it's php!Code:<?php @require("../global.php") or die("ERROR. Could not establish link to global.php!"); $tmp = dbquery("SELECT * FROM external_texts"); while($row = mysql_fetch_object($tmp)) { echo $row->skey . "=" . $row->sval."\n"; } ?>
And add this to your client.php "BELOW" "external.texts.txt" :
Make sure the php file above has access to your database.Code:"external.override.texts.txt" : "linktophpfileabove.php?hash=<?php echo rand(0,99); ?>",
The hash= future is for the cache. Suggest that you leave it there.
MySQL codes;
Code:CREATE TABLE IF NOT EXISTS `external_texts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `skey` text NOT NULL, `sval` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
Explination about the script;
When you have a housekeeping. You can go to there and add some text for badges etc. To set this up you probably need to have some skills. However its worth a try.
This is another step to lazyness.
Kind regards,,


Reply With Quote![[Release][PHP-Override-Texts] additional.php [Recommended for UberCMS]](http://ragezone.com/hyper728.png)


