• Home
  • Get help
  • Ask a question
Last post 20 hours 37 min ago
Posts last week 81
Average response time last week 4 hours 29 min
All time posts 67915
All time tickets 10498
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#21 – community builder url profile

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 07 April 2015 10:31 UTC
catalinads
I made update to the last version from a test site without using any secret key and worked. I think there is a problem at you. I tell this because i think you dont want that everybody update sh404ef for free 

In fact i have only 2 problems:

1- I have this url:
index.xxxx

and sh404ef makes it : firstname-lastname/

i also use sh404sef for other component with plugin made by the component providers and i don't have that / at the end.

i don't have any duplicates for that urls
I don't have a suffix like .html added...and even i add for this cb short url profile will not work.
I would like to remove that trailer slash.

2 issue:
I use adsmanager and that component has a sh404sef plugin and has also a social plugin for fb to share ads.
If i disable sh404sef completely that social plugin will work
If i disable sh404sef only for adsmanager component that social plugin will not work.

In fact : it doesn't take me the image from the ads.. the title etc ... only the url is good

here are the lines from the plugin :
if(version_compare(JVERSION,'1.6.0','>=')){
$doc->addStyleSheet(JURI::base() . "plugins/adsmanagercontent/social/social/style.css");
} else {
$doc->addStyleSheet(JURI::base() . "plugins/adsmanagercontent/social/style.css");
}
$uri = JURI::getInstance();
$root = $uri->toString( array('scheme', 'host', 'port'));
$url = $root . TRoute::_('index.php?option=com_adsmanager&view=details&id='.$content->id.'&catid='.$content->catid,false);
$title = htmlentities($content->ad_headline, ENT_QUOTES, "UTF-8");

$head = "<meta property='og:title' content=\"".htmlspecialchars($content->ad_headline)."\" />\n";
$head .= "<meta property='og:url' content='$url' />\n";
$lang = JFactory::getLanguage();
$locales = $lang->getLocale();
if (count($locales) > 0) {
$locale = str_replace('.utf8','',$locales[0]);
$head .= "<meta property='og:locale' content='".$locale."' />\n";
}
$head .= "<meta property='og:description' content=\"".htmlspecialchars($content->ad_text)."\" />\n";

foreach($content->images as $img)
{
$head .= "<meta property='og:image' content='".JURI::base()."images/com_adsmanager/ads/".$img->image."'/>\n";
}
$doc->addCustomTag( $head );
Tuesday, 07 April 2015 10:35 UTC
catalinads
update... it seems that social plugin works if i disable sh404ef for adsamanager component.
so the problem seem that is from adsmanager sh404ef plugin. i will speak with them
Tuesday, 07 April 2015 10:49 UTC
wb_yannick
Hi

Thanks for the update server info. It's actually not a problem, but a feature ;)
To make things simpler, I have left it open so that existing Anything Digital subscribers can update quickly, even if they don't have updated their secret keys yet. I know some people may update for free, but that's not such a big problem for now. I'll enable access control again in a few days.

As for your problems:

1 - / at the end

It's hardcoded in the plugin, so if you change it, you would have to make sure the changes are carried over on updates. The reason to have that was to avoid having sh40SEF adding '.html' on those links (on sites where the '.html' options was enabled).
It's also for backward compatibility of course.

If you want to change it, you can comment out line 229 in the /components/com_sh404sef/sef_ext/com_comprofiler.php
$title[] = empty($result)?  // no name available
$sh_LANG[$shLangIso]['_SH404SEF_CB_USER'].$sefConfig->replacement.$user: $result;
// weeblr: commented out
// $title[] = '/';
// weeblr
shRemoveFromGETVarsList('user');


Haven't tested the change, so please be careful and experiment on a test site. Also, you'll need to purge urls, or delete those users urls for this change to have any effect.

Let me do another message for the other problem.

 
Tuesday, 07 April 2015 10:50 UTC
wb_yannick
2. For the other problem, what do you see when you look up the page html? are the OG tags correct?
Can you provide me with a link to the site and a page where I can see the exact problem?

 
Tuesday, 07 April 2015 12:28 UTC
catalinads
1- with Community builder works perfect ! thanks. No more slash trailer
that's a good support not anything digital who told me that i am free to modify the plugin if i don't like it..but didnty told how

2- about second issue:
with sh404ef adsmanager plugin enabled - share plugin doesnt work on the ad page
withs sh404ef enabled for all.. but disabled for adsmanager component work.
So its an issue from adsmanager sh404ef plugin i think - i wil ask their support..
anyway they have another problem with a plugin for community builder with pagination
I think they should speak with you to fix them

but if you have time you can take a look here:
http://xxxx

user: xxxx Pass: xxxx

if you need ftp :
xxxx
pass xxxx

Tuesday, 07 April 2015 13:11 UTC
wb_yannick
1/ Well, don't blame them on that, it's difficult to do if you do support. You're not the developer, they would have to ask me, etc
Also, keep in mind that everytime you will update sh404SEF you must REDO those changes, they will be overwritten by the update.
There's a way to create a custom plugin, but it's bit more complex, and I don't have the documentation written really for that. If you're willing to give it a shot, you can download the "Sample SEF url plugin" from the download area, unzip it, and look inside. If you're familiar with PHP, you should be able to manage to create your own independant copy of the CB plugin. This type of plugins won't be overriden on updates, so you can make your own changes.

2/ I can't access the site with user: xxxx Pass: xxxx, can you double-check?

 
Tuesday, 07 April 2015 13:24 UTC
catalinads
I will take a look at that sample sef plugin because i have to use it not only to remove the trailer slash but i am very sure that the guys from adsmanager must make some changes in cb sh404ef plugin to have pagination for that tab plugin

very sory: user: xxxx pass: xxxx
Tuesday, 07 April 2015 13:38 UTC
wb_yannick
Took a quick look at the site, the OG data looks good to me, but I know Facebook is very picky.

At the moment I cannot test myself because you have password protection on the site, but if you can enable it, using Facebook debugger would probably help (https://developers.facebook.com/tools/debug/)

Also, can you clarify the problem:
With sh404SEF on, the social button works, that is you can share the ad on FB, but when they are shared, the image and title don't show on Facebook, right?

Rgds
 
Tuesday, 07 April 2015 14:19 UTC
catalinads
My site is not anymore offline. so no password requested.
You cand do anything there you are superuser.

With sh404ef on social button works but doesnt share the image..the title and description.

With sh404ef off shares all .
the same if sh404ef is off... or only if i set for component adsmanager joomla router.


facebook debuger: Error parsing input URL, no data was cached, or no data was scraped.
Tuesday, 07 April 2015 14:52 UTC
catalinads
Is not from sh404ef is from that plugin.
Now works with sh40ef .. i have setted there auto langauage.
Thaks for all!
anyway the plugin have some problems
Wednesday, 08 April 2015 09:01 UTC
wb_weeblr
Glad to hear :)

Can you please close the ticket, you can always reopen a new one later as needed.

Cheers

Yannick


 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.