Keyword

facebook share

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144078 by George Nasis
facebook share was created by George Nasis
hallo there,

i am trying to change something

in the preview of the facebook share, there is author`s name. how can i change that to author`s username?

thank you very much

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #144102 by Krikor Boghossian
Replied by Krikor Boghossian on topic facebook share
Hello George,

The author meta tag isn't generated from K2.
This is a core Joomla! feature.

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144103 by George Nasis
Replied by George Nasis on topic facebook share
hallo krikor,

thank you for the information!you saved me time before start to search all files!

have you any idea where i can find it in joomla core?

thank you

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #144104 by Krikor Boghossian
Replied by Krikor Boghossian on topic facebook share

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144106 by George Nasis
Replied by George Nasis on topic facebook share
thank you krikor,

i understand that the first link is to enable the author meta

and the second to write javascript to display what i want.

But where exactly should i write this?

and how am i supposed to bring the username of the author on each page of k2 item? :/ (

thank you

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #144127 by Krikor Boghossian
Replied by Krikor Boghossian on topic facebook share
You can get all of the user's info here: docs.joomla.org/Accessing_the_current_user_object

Now override the item.php file and you can build your code based on these links I sent you to display the user's username.

More on overrides can be found here:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144133 by George Nasis
Replied by George Nasis on topic facebook share
hallo krikor,

really thank you for your interest.

i am not sure if there is a misunderstanding about what i mean.
i attach an image to be more specific

http://imgur.com/plSLCqG

of course i have override too many times too many templates but how am i supposed to change the user->name to user-> username?

everything in the item.php for author is about k2 staff and not for joomla core or facebook share..

thank you

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #144150 by Krikor Boghossian
Replied by Krikor Boghossian on topic facebook share
Yes, this info is generated from your meta tags.
These tags are being generated from Joomla! not from K2.

You need to write your own script if you want to override Joomla!'s behaviour.

Also by accessing Joomla!'s user object you have access to all the (Joomla!) user's info.

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144151 by George Nasis
Replied by George Nasis on topic facebook share
hi krikor,

yes i imagined so.

have you any idea where exactly is there the php file of Joomla! core?

thank you

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #144156 by Krikor Boghossian
Replied by Krikor Boghossian on topic facebook share
I am sorry but I do not know.

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

More
9 years 11 months ago #144261 by Joe Campbell
Replied by Joe Campbell on topic facebook share
Hello George,

I recommend using NoNumber ReReplacer to perform a Find & Replace of the author meta produced by Joomla.

Your search would look something like this...

Find:
<meta name="author" content="Old Name" />

Replace:
<meta name="author" content="New Name" />

I hope this helps,

Joe Campbell

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144262 by George Nasis
Replied by George Nasis on topic facebook share
thanks for the information joseph,

i read that it is not advisable to print out the author username and i think that it is right..so i preferred to hide the author meta tag throug glabal configuration.

but thanks again! :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 11 months ago #144263 by Krikor Boghossian
Replied by Krikor Boghossian on topic facebook share
If he/ she is a Super User it is a major security issue.

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

More
9 years 11 months ago #144264 by Joe Campbell
Replied by Joe Campbell on topic facebook share
Correct, that is why I recommended the replacement of it.

The "new" meta author can be whatever you want it to be, such as your organization name.

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

  • George Nasis
  • George Nasis's Avatar Topic Author
  • Offline
  • Elite Member
More
9 years 11 months ago #144266 by George Nasis
Replied by George Nasis on topic facebook share
the author every time is different. it depends to whom the k2 item belongs. otherwise, authors are all registered users who can post stories. so i cannot replace with the nonumber extension to a specific value.

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

More
9 years 11 months ago #144269 by Joe Campbell

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


Powered by Kunena Forum