21
Shelia
Re: PHP in a block
  • 2006/9/8 2:22

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


snow77,

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.



22
Shelia
Re: PHP in a block
  • 2006/9/8 0:35

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


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();
?>

BTW - gallery is in my root directory not xoops



23
Shelia
SOLVED - Removing News from menu
  • 2006/8/17 15:20

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


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?



24
Shelia
Remove posterid
  • 2006/8/10 23:19

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


Is it possible to remove the posterid from the news mod?

Shelia



25
Shelia
Unable to connect to database
  • 2006/6/22 1:03

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


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;
}



26
Shelia
Re: Appointment Module
  • 2006/2/5 21:12

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


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!



27
Shelia
Appointment Module
  • 2006/2/5 2:44

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


I am hoping that someone can create a module that would allow visitors to book an appointment.

Shelia



28
Shelia
Re: XoopsPoll?
  • 2006/1/27 16:17

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


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.



29
Shelia
Re: XoopsPoll?
  • 2006/1/27 15:57

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


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?

Shelia



30
Shelia
Re: XoopsPoll?
  • 2006/1/7 21:42

  • Shelia

  • Not too shy to talk

  • Posts: 140

  • Since: 2003/6/22


I hope its ok to "bump" this thread!




TopTop
« 1 2 (3) 4 5 6 ... 14 »



Login

Who's Online

242 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 242


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits