1
urbanspacema
Profile activity hack by dantom

Hello all!
A XOOPSITALIA honorary member DANTOM, posted on XI a huge hack for Recent Activities in user profile.

HERE a complete posts in italian language + zip file with hack.

Feel free to test and use!

2
trabis
Re: Profile activity hack by dantom
  • 2009/6/18 13:10

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


From Dantom
Quote:
P.S. - Breve riflessione su XOOPS anno 2009
Anche se oramai programmo pochissimo, XOOPS rimarrà sempre nel mio cuore. A livello di codice non ho ancora trovato lo stile, la semplicità e l'eleganza che ho trovato in questo CMS. Ora va molto di moda la tecnica di sviluppo MVC (Model, View, Controller) che di per sè va bene ma XOOPS l'ha adottata come filosofia di fondo già con la versione 2.x nel 2001 con l'introduzione di smarty template da parte del mitico Onokazu.

Classi XOOPS (interfaccaimento database) -> Model
File php che usano le classi e l'interazione con l'utente -> Controller
Smarty template Engine -> View

Curioso no?


Yes, this is very true. But there is a lot of procedural code in XOOPS core, we should try to minimize it and make it more OO. After all, x(OO)ps must stand for something.

I have been reading a lot about front controllers and my conclusion is: Nahhhh, I like XOOPS way! What other cms is as easy to understand and to implement third party scripts than XOOPS? None. We loose some goodies like Friendly urls but I believe we earn so much more. Viva XOOPS!

3
deka87
Re: Profile activity hack by dantom
  • 2009/6/30 13:47

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


guys any ideas on how to get it working with XOOPS 2.2? i'm not prominent in Italian so posting it here.
Mind anchors

4
ghia
Re: Profile activity hack by dantom
  • 2009/6/30 14:46

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Use
$GLOBALS['xTheme']->addCSS(XOOPS_URL.'/hack/nomehack/tabber.css'); 
$GLOBALS['xTheme']->addJS(XOOPS_URL.'/hack/nomehack/tabber.js', array( 'type' => 'text/javascript' ));

5
deka87
Re: Profile activity hack by dantom
  • 2009/6/30 15:36

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thanks ghia. the original code caused the blank page but the one you provided doesn't do so. but I can't see the result tho. maybe there is something to change within the files themself or the code I insert in the template? I cleared the cache and put the files into teh proper directory I took from your code.
Mind anchors

6
ghia
Re: Profile activity hack by dantom
  • 2009/6/30 16:17

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Do you see the two files in your html header (view source)?
If not, try to add them directly in theme.html.

7
deka87
Re: Profile activity hack by dantom
  • 2009/7/11 10:00

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Ghia, yes I can see it in the header. I just thought about if it's matter which one of the 2.2 branch my version is (2.2.4 or 2.2.6 or any else)?
Mind anchors

8
ghia
Re: Profile activity hack by dantom
  • 2009/7/11 10:44

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I don't think that matters, as long as you have a listing for several modules.
The hack seems very simple:
In the header
- have the javascript and css file included
In the template
- surround all by
and

- surround the info for a tab with
and


First div is placed before the <{foreach item= tag and the second right after. The ending
tags come before and after the corresponding(!) <{/foreach}> tag.



9
deka87
Re: Profile activity hack by dantom
  • 2009/7/11 10:59

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


ghia please take a look at the source of http://www.freelancersupport.com/modules/profile/userinfo.php?uid=1 maybe I am missing something.
Mind anchors

10
ghia
Re: Profile activity hack by dantom
  • 2009/7/11 12:02

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I assume one of your other javascripts is bad behaving and monopolising the windows.onload function, causing the one of tabber.js not to run.

Login

Who's Online

404 user(s) are online (281 user(s) are browsing Support Forums)


Members: 0


Guests: 404


more...

Donat-O-Meter

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

Latest GitHub Commits