I tried to troubleshoot my problem by placing XOOPS code in a custom block - it does work. I just can't get an a php include to work. I don't know enough about php coding to attempt to readjust the code, which is why I'm here asking for advice.
I too have tried to include php below in a custom block. If I removed <?php & ?> with php script enabled I'm sent back to the admin menu. If I leave it in and do a preview I see my block title and nothing else. The block doesn't show up.
<?php include "./gallery/plugins/cpmfetch/cpmfetch.php"; $objCpm = new cpm("/gallery"); $objCpm->cpm_viewRandomMedia(6,1,2); $objCpm->cpm_close(); ?>
I am the admin for a site that is closed to user registration. Is it possible to remove the News --> Submit --> Archive from the menu and still have the News items show up on my start page?
I am not able to connect to my database due to an error in class/database/databasefactory.php line 34 Below is the piece of the code that is causing the error. This is strange an may be a server issue instead of an XOOPS issue. Any ideas?
function &getDatabaseConnection() { static $instance; if (!isset($instance)) { $file = XOOPS_ROOT_PATH.'/class/database/'.XOOPS_DB_TYPE.'database.php'; require_once $file; if (!defined('XOOPS_DB_PROXY')) { $class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseSafe'; } else { $class = 'Xoops'.ucfirst(XOOPS_DB_TYPE).'DatabaseProxy'; } $instance =& new $class(); $instance->setLogger(XoopsLogger::instance()); $instance->setPrefix(XOOPS_DB_PREFIX); if (!$instance->connect()) { trigger_error("Unable to connect to database", E_USER_ERROR); } } return $instance; }
I've tried pical and it doesn't work very well. I get all sorts of error and events posting over several days even when I have and ending date and time.
I was hoping that something like the room booking module could be altered to achive appointment bookings. A calendar just doesn't do it!
No, most people get a message saying they have already voted if they attempt to vote more than once. I had ten people email to say they voted and when they check the results the count had not changed. Last night I had a friend (who has not previously voted) visit the site and vote - the result count is still at seven! The poll has worked perfectly in the past but with all the php changes and ISP changes I may be missing something. I just can't seem to narrow it down.
I tested the new "Poll" module even thought I know its basically the same as Xoopspoll - and I get the same result. "Poll" counted seven votes before it stopped.
Since I can't get these modules to work correctly, can anybody suggest an open source program that I can incorporate on my index page?