'Created By' to link to user?

More
13 years 5 days ago #20514 by ma57er
Someone have solution for this? In my case i use Community Builder

Please Log in or Create an account to join the conversation.

More
13 years 5 days ago #20516 by ggppdk
Read here:
www.google.gr/url?sa=t&rct=j&q=j ... 9aqSs2ukJw

where do you want the link to category view of default template?

You have added there a created by column?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 5 days ago #20517 by ma57er
I want to use link user, becase user will submit articles and other users can go to the profil of Author and Vote for him.

I use default template for now and yes - i use field "Created by" but i want the info e.g. to be Link. Late will be change, but i want to make functionalities first.

Sorry for my English :oops:

Please Log in or Create an account to join the conversation.

More
13 years 5 days ago #20519 by ggppdk
Yes i asked about where you want to put the link, in item view (= shows a single item)? in category view (=shows many items)? elsewhere?

Also when you say user profile, do you mean the user contact page? Because the user profile (my details/my profile stuff) is viewable by the user him-herself , not by everyone.


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 5 days ago #20522 by ma57er
Item ang Category views.
Yes, i mean user contact page(sorry for confusion ) - Contacts, Location etc. (i use Community Builder and there will be the information about the user)

Please Log in or Create an account to join the conversation.

More
13 years 5 days ago #20523 by ggppdk
To link to contact info/form page of the users IF IT EXISTS for each user:

edit your category_items.php file of the default template (better duplicate the template and then replace) and

replace lines:
Code:
<!-- BOF item fields --> <?php foreach ($columns as $name => $label) : ?> <td><?php echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?></td> <?php endforeach; ?> <!-- EOF item fields -->
with the following lines:
Code:
<!-- BOF item fields --> <?php foreach ($columns as $name => $label) : ?> <?php $link=''; $link_title=''; if ($name=='created_by') { $query = "SELECT id FROM #__contact_details WHERE user_id=". $item->created_by; $db = & JFactory::getDBO(); $db->setQuery($query); $contact_id = $db->loadResult(); if ($contact_id) { $link = JRoute::_('index.php?option=com_contact&view=contact&id='.$contact_id); $link_title = JText::_('Contact Details'); } } ?> <td> <?php echo ($link) ? "<a href='$link' alt=='$link_title'>" : ""; ?> <?php echo isset($item->positions['table']->{$name}->display) ? $item->positions['table']->{$name}->display : ''; ?> <?php echo ($link) ? "" : ""; ?> </td> <?php endforeach; ?> <!-- EOF item fields -->

This will create links to the contact form of the user if his/her contacts exists.

Does community builder have a similar page?
In my old version i checked to create a menu item to contact/form/details, it did not have a menu item, only a personal profile.

If i get time to install new version i will check.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.473 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline