1
helphelprrr
Mytab ajax hacks
  • 2011/5/30 4:12

  • helphelprrr

  • Just popping in

  • Posts: 4

  • Since: 2011/4/21


In mytab 2.1 for xoops, I added the following code in a new file of mytabs_block_ajax.php which is called by original mytabs_block.php so that the block content can be loaded separately under each tab.

==================
include '../../../mainfile.php';
include_once XOOPS_ROOT_PATH."/class/template.php";
include_once XOOPS_ROOT_PATH.'/modules/mytabs/include/functions.php';

$GLOBALS['xoopsTpl'] =& new XoopsTpl();

$tab_blocks = mytabsblock_show($_GET['pageid'], $_GET['tabid'],'',$_GET['o']);
echo $tab_blocks[0]['content'];
==================

It works properly. However, by the original block, it generates caches start with modulename-default-deafult-xxxx. However, under the content generated by ajax tab, it becomes system-default-defult-xxxx. Is there any method to synchronize the cache name so that it won't duplicate loaded?

Login

Who's Online

177 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits