1
wdsl1
use Framework for other modules?
  • 2007/2/8 21:05

  • wdsl1

  • Just popping in

  • Posts: 39

  • Since: 2004/11/3


Hi,
i would use Framework in other modules espacially (geshi). I developt allways my own geshi hack but i deleted it by mistake. I need it in News smartfaq and wiwimod.

I think it's better to write a hack for these instead of writing a hack for xoops.

thx
wdsl
visit a-bout.de

2
snow77
Re: use Framework for other modules?
  • 2007/2/9 0:22

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


I don't understand what you say, but it sort of sounds like the idea I've been trying to transmit of using existing elaborated code that can be used as tools for other modules instead of duplicating it, or in some strange cases hacking the core which is not advisable as I see it.

see thread here
www.polymorphee.com
www.xoopsdesign.com

3
wdsl1
Re: use Framework for other modules?
  • 2007/2/9 19:29

  • wdsl1

  • Just popping in

  • Posts: 39

  • Since: 2004/11/3


no i don't think so

i speak of phppp Framework:
http://dev.xoops.org/modules/xfmod/forum/forum.php?forum_id=1644

i will use codehighlighting in some other modules (not only cbb) because i write a page about php and my FAQ has mutch PHP code examples. In the past i have my own Codehighlighter (used geshi) but i will not make work twice if it exist.

Hase someone an idea to is it simple in other modules?

thx
wdsl
visit a-bout.de

4
wizanda
Re: use Framework for other modules?
  • 2007/2/9 20:25

  • wizanda

  • Home away from home

  • Posts: 1585

  • Since: 2004/3/21


Since I have just done this for mydownloads and the site wide Wiki from Framework here is what I added

require_once XOOPS_ROOT_PATH."/Frameworks/textsanitizer/module.textsanitizer.php";
$myts =& MyTextSanitizerExtended::getInstance();

instead of where it use to say:
$myts =& MyTextSanitizer::getInstance();

Login

Who's Online

56 user(s) are online (35 user(s) are browsing Support Forums)


Members: 0


Guests: 56


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