21
Kalobotz
Re: I can't check my $moduyleconfig variables
  • 2004/10/7 15:08

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I have the xmyReviews_admin_spaw switch set to 1(yes) in myReviews preferences.

Fatal errorCannot instantiate non-existent class: spaw_wysiwyg in /home/thinkres/public_html/TEST_Xoops/modules/myReviews/admin/index.php on line 284
Notice 
[PHP]: Constant €º‰ àP– already defined in file modules/myReviews/language/english/main.php line 402
Notice 
[PHP]: Constant b à:?  already defined in file modules/myReviews/language/english/main.php line 408
Notice 
[PHP]: Undefined variablexoopsModuleConfig in file modules/myReviews/admin/index.php line 59



22
Kalobotz
Re: I can't check my $moduyleconfig variables
  • 2004/10/7 14:53

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


Where does the $xoopsModuleConfig variable come from? I'm newer to PHP so this is a little differnt.



23
Kalobotz
Re: I can't check my $moduyleconfig variables
  • 2004/10/7 14:47

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


Yah, I have been updating allot.

I am working in the myReviews admin/index.php file and I have this if statement wrapped around the inclusion of the SPAW editor.

Here is the top part of the file:
include '../../../mainfile.php';
if ( 
file_exists(XOOPS_ROOT_PATH.'/modules/myReviews/language/'.$xoopsConfig['language']."/main.php") )
  {
    include (
XOOPS_ROOT_PATH.'/modules/myReviews/language/'.$xoopsConfig['language']."/main.php");
  }
  else
  {
    include (
XOOPS_ROOT_PATH.'/modules/myReviews/language/english/main.php');
  }
//End if

include (XOOPS_ROOT_PATH.'/modules/myReviews/admin/admin_header.php');
include (
XOOPS_ROOT_PATH.'/modules/myReviews/include/functions.php');

include (
XOOPS_ROOT_PATH.'/modules/myReviews/include/config.php');
include (
XOOPS_ROOT_PATH.'/modules/myReviews/ulconf/exten.php');

include 
XOOPS_ROOT_PATH.'/header.php';

include_once 
XOOPS_ROOT_PATH.'/class/xoopstree.php';
include_once 
XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once 
XOOPS_ROOT_PATH."/include/xoopscodes.php";
include_once 
XOOPS_ROOT_PATH.'/class/module.errorhandler.php';

//include("../cache/config.php");

//EDIT: Include SPAW

    
if ($xoopsModuleConfig['xmyReviews_admin_spaw'] == '1')
    {
$module_handler = &xoops_gethandler('module');
$module = &$module_handler->getByDirname('spaw');

if (
is_object($module) && $module->getVar('isactive'))
{
    include_once 
XOOPS_ROOT_PATH "/modules/spaw/spaw_control.class.php";
}
   }
//insert finish



24
Kalobotz
Re: I can't check my $moduyleconfig variables
  • 2004/10/6 14:52

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I am outside of a function and within only the file. So, I'm not running a funtion.



25
Kalobotz
Can't view my forums in newb2
  • 2004/10/5 14:16

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I can’t view my forums in newbb 2. Some of the image links seem broken and only the categories are visible.

I successfully ran the newbb to newbb2 script. I have permissions set and everything seems set right. I also updated the newbb2 module.



26
Kalobotz
I can't check my $xoopsModuleConfig variables
  • 2004/10/5 13:42

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I can't check my $xoopMmoduleConfig variable
if ($xoopsModuleConfig['xmyreviews_admin_a'] == '1')

I created some extra $modversion['config'] variables in the modules xoopsversion.php file and then am trying to check the variable in an if statement. It seems to work in other code I have but when I try to do it it doesn’t work. How does this work?
Are there any extra variables I need to declare or includes?



27
Kalobotz
Re: myReviews v2.1 module update!
  • 2004/9/30 17:51

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


Quote:

riaanvdb wrote:
Quote:

Kalobotz wrote:
I was able to add the WF-SPAW editor in with linebreak fixes and working properly everywhere except I don’t have an ADMIN switch to cancel SPAW for reg users yet.


Hi Kalobotz,

That is great, on which browsers is SPAW supported? If you send me the code I will incorporate the changes you have made and start with the new beta release cycle.

Keep on reviewing

Grotmis
Riaan



SPAW only is supported with IE. I know the koivi editor supports all but that’s still in beta and SPAW has more features at the moment. I think he is making a module for XOOPS 2.2. to support all editors so I might wait for that before installing several editors.
I have it if the browser doesn’t support SAPW it will fall back to HTML.
Cleaning up code and should be done soon.

How do I access the review ID numbers? Can’t seem to find them.
Also, the “recommend it’ and “love at first site” doesn’t seem to work. I press those buttons and nothing appears on the listings.



28
Kalobotz
A Simple Machines to Xoops module
  • 2004/9/30 15:49

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I am looking for a Simple Machines www.simplemachines.org module. Is there one out there or a project to covert the current yabbse version?



29
Kalobotz
Re: How fast does my site load for you?
  • 2004/9/27 11:00

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


www.site5.com is very good with all of the latest updates at $10 a month. If you want JSP on Tomcat I use www.liquidweb.com at $15. This is a very good forum for website testing and comparisons.http://www.webhostingtalk.com/

Should I delete some extra files out of the template directory for speed? I noticed I had some templates in there from no longer used themes.I don't cache anything.





30
Kalobotz
Re: myReviews v2.1 module update!
  • 2004/9/20 13:12

  • Kalobotz

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/5/26


I was able to add the WF-SPAW editor in with linebreak fixes and working properly everywhere except I don’t have an ADMIN switch to cancel SPAW for reg users yet.

SPAW doesn’t work for “modify review” because that’s Smarty. but ADMIN’s only access that and can use the EDIT button.

I also was getting confused between products and reviews by both being called reviews so I changed “Manage reviews” and “ modify Reviews” to products instead of reviews plus some other English terms.

I have also put in some ADMIN only features for writing reviews but you would probably want a switch for that too in ADMIN. So, right now I have mine set to only allow ADMINs to review.

I’ll work on comments next.

i also noticed PHP 5 is out. This looks nice. I am into C# so it fits well. Does this allow for not haveing to use includes anymore?




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



Login

Who's Online

210 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 210


more...

Donat-O-Meter

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

Latest GitHub Commits