PEAK XOOPS - Link in summary to the whole article in englishin japanese

Link in summary to the whole article

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 | Posted on 2004/12/21 14:02
chico_html  ÆóÅùʼ From: Montevideo/Uruguay  Posts: 3
I'm using tinyD with the tag to show a summary in top page. Well, now I would like a link to access the whole article. How can I do it?
Votes:29 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2004/12/25 19:23
GIJOE  ÀèǤ·³Áâ   Posts: 4110
admin bump
just moment
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/26 7:24
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi chico.

You are a heavy user of TinyD

edit blocks/tinycontent_content.php like this:
	// if template file exists, parse it.
	if( file_exists( "$mymodpath/templates/blocks/tinycontent_content_block.html" ) ) {
		$myts =& TinyDTextSanitizer::getInstance() ;
		$tpl = new XoopsTpl();
		$tpl->assign( array(
			'storyid' => $options[1] ,
			'title' => $myts->makeTboxData4Show( $title ) ,
			'content' => $content
		) ) ;
		$block['content'] =& $tpl->fetch( "file:$mymodpath/templates/blocks/tinycontent_content_block.html" ) ;

	} else {
As this modification is also applied my recent repository, don't mind compatibilities in future.

And rename templates/blocks/tinycontent_content_block.html.dist to tinycontent_content_block.html.

Edit it like this:

<{$content}>
<br />
<a href="<{$mymoddir}>/index.php?id=<{$storyid}>">more...</a>
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/28 12:48
chico_html  ÆóÅùʼ From: Montevideo/Uruguay  Posts: 3
Thank you for your answer

It worked well, but $mymoddir var didn't. It returns an empty string (the link returned is: http://space/index.php?id=1 where space is my localhost).
I had to edit templates/blocks/tinycontent_content_block.html like this:

<{$content}>
<a href="<{$xoops_url}>/modules/tinycontent3/index.php?id=<{$storyid}>">more...</a>
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/29 12:48
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Sorry.

It's a mistake.

	// if template file exists, parse it.
	if( file_exists( "$mymodpath/templates/blocks/tinycontent_content_block.html" ) ) {
		$myts =& TinyDTextSanitizer::getInstance() ;
		$tpl = new XoopsTpl();
		$tpl->assign( array(
			'storyid' => $options[1] ,
			'mymoddir' => XOOPS_URL . "/modules/$mydirname" ,
			'title' => $myts->makeTboxData4Show( $title ) ,
			'content' => $content
		) ) ;
		$block['content'] =& $tpl->fetch( "file:$mymodpath/templates/blocks/tinycontent_content_block.html" ) ;

	} else {

The next TinyD assigns $mymoddir.
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2004/12/30 13:28
chico_html  ÆóÅùʼ From: Montevideo/Uruguay  Posts: 3
Thanks giJoe, it worked excellent.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!