- Posts: 11
COMMUNITY FORUM
Permissions on attachments?
- StreamAlex
-
Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
something like this should work
<?php $user =& JFactory::getUser(); ?>
<php if($user->get('guest') ==0 ): ?>
..../*Attachment Downloads Code*/
<?php endif; ?>
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- StreamAlex
-
Topic Author
- Offline
- New Member
- Posts: 11
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
where can I import this code:
<?php $user =& JFactory::getUser(); ?>
<php if($user->get('guest') ==0 ): ?>
..../*Attachment Downloads Code*/
<?php endif; ?>
what line number?
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
attached it.
Attachment not found
too,I use alpha user point
say to me where should I import below code:
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP))
{
require_once ($api_AUP);
$aupid = AlphaUserPointsHelper::getAnyUserReferreID( $userID );
if ( $aupid ) AlphaUserPointsHelper::newpoints( 'function_name', $aupid );
}
thanks a lot
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Create an override (see documentation above for info)
Use the file
YourSiteRoot/templates/YourTemplate/com_k2/templates/YourOverrideName/item.php
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
?!!
this file is in
components/com_k2/models
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
also, see the movies in the documentation from ostraning which will walk you thru templating
before trying to make changes
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
I copy template folder to new directory similar
getk2.org/documentation/tutorials/item/174-templating-with-k2-and-the-concepts-of-sub-templates
now ?
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
Attachment not found
where i insert code?
too alphauserpoint code?
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
please help me
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
supporting is very weak
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Please Log in or Create an account to join the conversation.
- navid
-
- Offline
- New Member
- Posts: 15
you say me where imsert that code, I attached item.php in previous posts
Please Log in or Create an account to join the conversation.