11
maxima
Re: Can content be extracted from one page to another?
  • 2007/1/15 3:44

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Maybe this thread is in the wrong forum.

12
preachur
Re: Can content be extracted from one page to another?
  • 2007/1/20 23:56

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


I am wondering if this is the solution. I used this for a marquee:

http://www.herve-thouzard.com/modules/news/article.php?storyid=149
Magick can never be restrained, but when freely given is thrice regained!

13
preachur
Re: Can content be extracted from one page to another?
  • 2007/1/23 9:15

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


BINGO!!! You can make the ajax tabbed content module work by using Herve's solution I linked in the last post, and adapting it the way I did:

<?php

    
include 'mainfile.php';
        include 
'header.php';
include_once 
XOOPS_ROOT_PATH.'/class/template.php'; include_once(XOOPS_ROOT_PATH.'/modules/marquee/blocks/marquee_bloc.php'); $result b_marquee_show(explode('|','1')); $tpl = new XoopsTpl(); $tpl->assign('block'$result); $tpl->display('db:marquee_block01.html');
    
#include 'footer.php';
    
break;

?>


(I did that one for a plain page with the content from a marquee block. By using that and Herve's tutorial you can extract any block content from any module into that ajax tabbed content gizmo.)

I called that test.php. See it here:

http://manufacturedsand.com/test.php

As you can see... Just the content of a block on it's own plain page. Exactly what the tabbed content thing calls for.

Next I will fill that tabbed gizmo with recent forum posts, recent headlines, news articles, etc. by using the same process for different blocks.

I hope that helps.
Magick can never be restrained, but when freely given is thrice regained!

14
script_fu
Re: Can content be extracted from one page to another?

This looks important! I hate to miss out on new ideas...
Your test is gone can you put it back up preachur?

15
maxima
Re: Can content be extracted from one page to another?
  • 2007/1/24 5:44

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I haven't tried it yet preachur but it seems logical. Finally someone who understand what I am trying to accomplish. I think this will open many creative ideas for designers. Thanks

16
script_fu
Re: Can content be extracted from one page to another?

Ah sorry didn't think to right click....



<marquee align='middle' behavior='scroll' direction='right'  onmouseover="this.stop()" onmouseout="this.start()" scrollamount=5 width='100%' scrolldelay=100 loop='infinite'></marquee>

17
preachur
Re: Can content be extracted from one page to another?
  • 2007/1/26 5:05

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


Check out the finished product:http://manufacturedsand.com

Administrated through blocks admin. Feeding off .php files I created in the root directory.

(I did have to modify a few block templates to only show the content I wanted.)
Magick can never be restrained, but when freely given is thrice regained!

18
preachur
Re: Can content be extracted from one page to another?
  • 2007/1/26 5:17

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


Here are the .php pages I used for the tab contents:

library.php (WFSection):
<?php

    
include 'mainfile.php';

    include 
'header.php';
include_once 
XOOPS_ROOT_PATH.'/class/template.php'; include_once(XOOPS_ROOT_PATH.'/modules/wfsection/blocks/wfs_new.php'); $result b_wfs_new_show(explode('|','published|10|60|0|1|55|55')); $tpl = new XoopsTpl(); $tpl->assign('block'$result); $tpl->display('db:wfs_block_new.html');
    
#include 'footer.php';
    
break;

?>


partner.php (WordPress):
<?php

    
include 'mainfile.php';

    include 
'header.php';
include_once 
XOOPS_ROOT_PATH.'/class/template.php'; include_once(XOOPS_ROOT_PATH.'/modules/wordpress/blocks/wp_posts.php'); $result b_wordpress_posts_show(explode('|','10|1|7|0')); $tpl = new XoopsTpl(); $tpl->assign('block'$result); $tpl->display('db:wp_block_posts.html');
    
#include 'footer.php';


?>


news.php (Article 1.0)
<?php

    
include 'mainfile.php';

    include 
'header.php';
include_once 
XOOPS_ROOT_PATH.'/class/template.php'; include_once(XOOPS_ROOT_PATH.'/modules/article/blocks/blocks.article.php'); $result article_article_show(explode('|','time|10|2|0|c|0')); $tpl = new XoopsTpl(); $tpl->assign('block'$result); $tpl->display('db:article_block_article.html');
    
#include 'footer.php';
    
break;

?>


links.php (links 1.1)
<?php

    
include 'mainfile.php';

    include 
'header.php';
include_once 
XOOPS_ROOT_PATH.'/class/template.php'; include_once(XOOPS_ROOT_PATH.'/modules/mylinks/blocks/mylinks_top.php'); $result b_mylinks_top_show(explode('|','date|10|50')); $tpl = new XoopsTpl(); $tpl->assign('block'$result); $tpl->display('db:mylinks_block_new.html');
    
#include 'footer.php';
    
break;

?>


forums.php (newbb 2.02)
<?php

    
include 'mainfile.php';

    include 
'header.php';
include_once 
XOOPS_ROOT_PATH.'/class/template.php'; include_once(XOOPS_ROOT_PATH.'/modules/newbb/blocks/newbb_block.php'); $result b_newbb_show(explode('|','10|0|time|0')); $tpl = new XoopsTpl(); $tpl->assign('block'$result); $tpl->display('db:newbb_block.html');
    
#include 'footer.php';
    
break;

?>
Magick can never be restrained, but when freely given is thrice regained!

19
preachur
Re: Can content be extracted from one page to another?
  • 2007/1/26 6:42

  • preachur

  • Just can't stay away

  • Posts: 525

  • Since: 2006/2/4 4


P.S.- Since I am really new at .php, if anyone sees any ways to improve this, please let me know.

All I know is that it works, and it has potential to help plug XOOPS blocks and content into many other applications.
Magick can never be restrained, but when freely given is thrice regained!

20
script_fu
Re: Can content be extracted from one page to another?

Thats pretty hot Preachur! I can't wait to get home tonight and give this a go. I have some website forms that I need to set up and this looks like it should work.



Thanks for all the hard work....


Billy

Login

Who's Online

241 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 241


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