HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Show name of user that have created the entry in catalogue

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#103439 (In Topic #20245)

Non-joined user

I need to show the name of user that have created the entry in the catologue.
The template for the entry is this:CATALOGUE_products_ENTRY_SCREEN.tpl

now i need variable that shows the name and link to profile of a user that have created the entry.

Thanks.
Back to the top
 
Posted
Item has a rating of 5 (Liked by Steven Jarvis)  
Rating:
#103440
Avatar

Community saint

This should work:

Code


<a rel="author" href="{$MEMBER_PROFILE_LINK*,{SUBMITTER}}">{$USERNAME*,{SUBMITTER}}</a>


{$MEMBER_PROFILE_LINK*,{SUBMITTER}} will be the link to the profile page of the submitter.

{$USERNAME*,{SUBMITTER}} will be the username of the sumbitter.
Back to the top
 
Posted
Rating:
#103441

Non-joined user

Jason Verhagen said

This should work:

Code

<br /> &lt;a rel=&quot;author&quot; href=&quot;{$MEMBER_PROFILE_LINK*,{SUBMITTER}}&quot;&gt;{$USERNAME*,{SUBMITTER}}&lt;/a&gt;<br />


{$MEMBER_PROFILE_LINK*,{SUBMITTER}} will be the link to the profile page of the submitter.

{$USERNAME*,{SUBMITTER}} will be the username of the sumbitter.


thank you! Only link to profile is not working - {$MEMBER_PROFILE_LINK*,{SUBMITTER}}<

Now, i need to show all the entries created by this user in his profile. I am thinking to create a variable which will store all the information taken from the database. But which file to open and add that code to create the variable?

Thank you!

Back to the top
 
Posted
Rating:
#103442
Avatar

MEMBER_PROFILE_URL in v9


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#103443

Non-joined user

Chris Graham said

MEMBER_PROFILE_URL in v9

thank you!
But how to create a variable?
Should i create the module for that?

Back to the top
 
Posted
Rating:
#103448
Avatar

Community saint

Chris Graham said

MEMBER_PROFILE_URL in v9

Thanks. I must have pulled that from an older template. However, the v9 tempcode tutorial (ocPortal Tutorial: Tempcode programming - ocPortal.com) still references MEMBER_PROFILE_LINK.
Back to the top
 
Posted
Rating:
#103451
Avatar

Jason Verhagen said

Chris Graham said

MEMBER_PROFILE_URL in v9

Thanks. I must have pulled that from an older template. However, the v9 tempcode tutorial (ocPortal Tutorial: Tempcode programming - ocPortal.com) still references MEMBER_PROFILE_LINK.

Whoops, thanks


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#103452

Non-joined user

Chris Graham said

Jason Verhagen said

Chris Graham said

MEMBER_PROFILE_URL in v9

Thanks. I must have pulled that from an older template. However, the v9 tempcode tutorial (ocPortal Tutorial: Tempcode programming - ocPortal.com) still references MEMBER_PROFILE_LINK.

Whoops, thanks

Hey Chris help me please with getting data from the database please.

Where should i create the variable to get the data from DB to show that information in the profile?

Thank you very much!

Back to the top
 
Posted
Rating:
#103453
Avatar

Sorry, I can give small pointers to put people in the right direction, and will fix all bugs and clear usability issues comprehensively, but I can only do long answers through our official commercial support.

Jason has been helping a lot of people for which I think everyone is very thankful :wub:. Whether or not he'll come back in and expand on your question is up to him of course.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#103454

Non-joined user

Chris Graham said

Sorry, I can give small pointers to put people in the right direction, and will fix all bugs and clear usability issues comprehensively, but I can only do long answers through our official commercial support.

Jason has been helping a lot of people for which I think everyone is very thankful :wub:. Whether or not he'll come back in and expand on your question is up to him of course.

how much is cost for helping?
Back to the top
 
Posted
Rating:
#103455
Avatar

Hi,

My guess is it would be 30 minutes of support time. For our support service, see:
ocPortal.com - Experts by the hour


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: