Is it working? - (except of node.tags of course...)

CommentFileSizeAuthor
#6 reptag.jpg45.32 KBfarinspace

Comments

profix898’s picture

Sorry! What's the question? What are you talking about? Any problems?

amitaibu’s picture

Sorry...
My question - Is the RepTag working in blocks. i.e.:

* Add Block
* In the Block body enter {USERNAME}
* Place the block on the left navigation bar - currently I see it is not replaced.

profix898’s picture

No, thats not supported directly (through the UI). But its quite easy to add manually. You will need to modify the 'block.tpl.php' template of your theme (e.g. themes/garland/block.tpl.php). Replace <?php print $block->content ?> with a call to reptag_replace() as follows
<?php print reptag_replace($block->content) ?> or <?php print reptag_replace($block->content, TRUE) ?>. The second option is better suited for your purpose, I guess.

amitaibu’s picture

Thanks for the quick replies!

grray’s picture

I did so, it works for registered users, but it not works for unregistered users, text is shown "as is"

farinspace’s picture

StatusFileSize
new45.32 KB

Let me know if you've found a solution ... try setting "authenticated user" checkbox in the RepTag Roles/Permissions tab ... let me know if that works ... I have a similar kinda related issue, where Ive setup block tags, so i can insert blocks in node content, however when i select permissions for anonymous users it doesnt show (when a user comes to the site an is anonymous), however if i check authenticated users, then it does show ....

chasz’s picture

Priority: Normal » Critical

is this how you use with the CCK blocks ??

how do i know what variable from CCK block is passed onto the rep[]tags ??

chasz’s picture

Status: Active » Closed (fixed)

dont use for version 6 LOL