11
44444
Php block
  • 2008/9/13 10:18

  • 44444

  • Just popping in

  • Posts: 15

  • Since: 2008/4/16


Hi everyone!

I have a question... I want to create php block with XOOPS user variables, but it works only with html :( and only with one system template block called system_block_user.html. There I can put <{$xoops_uname}> and as result I'll have user name. That's ok. But if I make php block, there is only one variable working - {X_SITEURL}, and no like {X_UNAME}! That's bad.
I tryed to recode /class/xoopsblock.php with something like this

elseif ( $c_type == 'P' ) {
                
ob_start();
                echo eval(
$this->getVar('content''N'));
                    
$content ob_get_contents();
                    
ob_end_clean();
                return 
str_replace('{X_SITEURL}'XOOPS_URL.'/'$content);


to

elseif ( $c_type == 'P' ) {
                
ob_start();
                echo eval(
$this->getVar('content''N'));
                    
$content ob_get_contents();
                    
ob_end_clean();
                return 
str_replace('{X_SITEURL}'$user->getVar("uname"), $content);


and many others

but nothing happened :(

Plz anybody tell me how to make this thing..
TNX!



12
44444
Statistics for all pages
  • 2008/5/26 11:23

  • 44444

  • Just popping in

  • Posts: 15

  • Since: 2008/4/16


Hi everybody!

I need statistics module for all XOOPS pages (not modules, but all kind of pages). I want to open it and see all the hits of all the pages. Is this module exists anywhere?

Thanx a LOT!




TopTop
« 1 (2)



Login

Who's Online

265 user(s) are online (160 user(s) are browsing Support Forums)


Members: 0


Guests: 265


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