List of Favourites View

More
13 years 5 months ago #16228 by kenmcd
Replied by kenmcd on topic List of Favourites View
.
This is another one of those situations where some input from the developers would help.
They could probably tell us the right answer in about 5 minutes.

I have spent a couple hours on this and cannot figure-out a good way, or the right way to get the author variable in the Favorites View.
Turns out created_by is only the user ID number.
There is a created_by_alias, but it is empty.

In the back-end tables there is an $author variable.
But that is not available in the front-end in the favorites view.
It is created by a getAuthor function.
I could copy that function, but it would create a query for every line in the favorites.
Some how that just does not seem to be the right way.

There is a getAuthors function which is used in the front-end, but I cannot see how to use that one.

Tired of fighting with something for hours which could be solved in a few minutes.

.

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

More
13 years 5 months ago #16229 by micker
Replied by micker on topic List of Favourites View
hello
try to send an link to yopyop001
flexicontent.org/forum/index.php ... memberlist
i think he can help you !
:oops:

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 5 months ago #16235 by stado
Replied by stado on topic List of Favourites View

kenmcd wrote: .

Tired of fighting with something for hours which could be solved in a few minutes.

.



thanks for trying! and sorry to have wasted your time
:)

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

More
13 years 5 months ago #16236 by stado
Replied by stado on topic List of Favourites View

micker wrote: hello
try to send an link to yopyop001
flexicontent.org/forum/index.php ... memberlist
i think he can help you !
:oops:


ok, done! thanks for the hint :)

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

More
13 years 5 months ago #16237 by yopyop001
Replied by yopyop001 on topic List of Favourites View
Hi,

Just add in default.php file (use the overriding way):
Code:
$user = & JFactory::getUser($item->created_by);
after :
Code:
foreach ($this->items as $item) :

To call the field in the table
Add
Code:
<?php echo $user->username; ?>
or
Code:
<?php echo $user->name; ?>

regards

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

More
13 years 5 months ago #16238 by stado
Replied by stado on topic List of Favourites View
yopyop001\n



Hi! Many thanks for your prompt reply! It works! :)

May I ask you two more? :)

1. How can I have a link to my flexi favorites from my profile page (CB for example)?

2. How can I get details on readers?

Currently, for each flexi item you have "number of views". It would be great to be able to click there (or anywhere else) and get a list/table showing who read this item and when.

Similarly, on my profile page - have a link "Readers" that would open a table with: who (reader)- what (item title) - when.

Many thanks in advance for any hints.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.466 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