91
dbman
Re: I started learning xoops but having problems
  • 2009/7/23 15:07

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


check this example by Tank:

http://www.customvirtualdesigns.com/modules/AMS/article.php?storyid=8



92
dbman
Re: New smart(y) plugin - blocks anywhere
  • 2009/4/6 23:54

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


works great trabis, thank you!



93
dbman
Re: Xoops site is down please help!!!
  • 2009/3/23 17:36

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


Start from the first error and look in the path for the file which failed to open. If the file isn't there try uploading the missing file to the path mentioned.

Does this file exist on your v-host:
/hermes/web01/b1364/pow.myphilippines/htdocs/bacolodjobs/include/common.php



94
dbman
Re: xampp/wamp/wampserver stopped working?
  • 2009/3/23 17:31

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


I recently had this issue with my wamp install... It was Windows Defender which decided after 2 years to look for and change localhost directives in my hosts file.

Its an easy fix open the following file:
C:\Windows\System32\drivers\etc\hosts

and make sure you have at least this directive for localhost:
127.0.0.1 localhost





95
dbman
Re: shoutcast
  • 2009/3/23 4:58

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


This is not a recommended setting but you can turn this on if you have control over your php.ini
allow_url_fopen On





96
dbman
Re: shoutcast
  • 2009/3/23 1:27

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


Try this is a custom php block to test:
if(!function_exists("fsockopen")) { echo "Function Exists"; } else { echo"Function unavailable"; }


edit: reverse the echos:
if(!function_exists("fsockopen")) { echo "Function unavailable"; } else { echo "Function Exists"; }




97
dbman
Re: shoutcast
  • 2009/3/23 1:13

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


If you are using as a custom php block the php open/close tags are not needed.



98
dbman
Re: Hook system for Xoops
  • 2009/3/19 21:13

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


There are arguments for/against either approach. My implementation I suspect is very rare.

I would think it depends on the complexity of the modules involved. The core only approach may be useful for modules that bridge other applications (WordPress, MediaWiki, etc). Also would be useful for mature modules which are no longer in development. If the core hook could encompass the system tables (users, configuration, etc) this would open many possibilities.

On the other hand I am sure there are modules with complex data structures, non-database related resources and cascading read/write functionality which may make a module hook a better choice.

Future developments in the core and legacy modules make it tough to say yes or no either way. I encourage other developers to add their 2 cents. For me this is an exciting topic :)



99
dbman
Re: Hook system for Xoops
  • 2009/3/19 18:32

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


The hook class in general would save me a ton of work. @zyspec: Catz's suggestions would exceed my current implementation processes and allow a more generic approach to data read/write operations.

Currently I use XOOPS as an extension or library for other applications created for our organization.

As an example lets assume some event in our internal application requires a news article be posted to our XOOPS website via a specific trigger like a form submission. Within our form handler method I include functionality to write data to the news module tables incorporating data captured in our form submission to populate the news tables where applicable. Inversely our end-users may be submitting items to modules within our XOOPS site that we use within our internal app. The required functionality for XOOPS module data is included in our data access methods or into our applications data model.

With the hook class I would likely convert our internal applications to modules and use XOOPS more like a framework then a library :) I like the services concept as well, in a way that probably best describes what I do now.

As kaotik mentions it would be nice and probably necessary to extend hooking to resources other then database tables. There are many possibilities for module plugins and application bridging using hooks.




100
dbman
Re: Hook system for Xoops
  • 2009/3/19 15:22

  • dbman

  • Friend of XOOPS

  • Posts: 172

  • Since: 2005/4/28


Nice work Kaotik! I have been doing this retrieving data directly from other modules tables using my own methods. Hooked access to the modules functions is much cleaner. A future core implementation perhaps?




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 16 »



Login

Who's Online

245 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 245


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