Adriano Faria Posted August 3, 2018 Author Share Posted August 3, 2018 3 hours ago, christopher-w said: 2/ So I disabled maps BUT link view still shows empty (random location) map even if I remove all address data. So this needs to be fixed if you can so that if maps disabled, maps are not shown. Can you elaborate? I don't see what you're saying. If I disable Google Maps, I don't see any address in link view (I was confused with Classifieds, which shows address regardless map): 3 hours ago, christopher-w said: Thanks but I've deleted information and disabled maps but it still shows the map with random location. I can confirm this and it's fixed. I'll give a couple of days so you can test it more then I'll release a new version. Let me know if you want a fix for the address now. Link to comment
christopher-w Posted August 3, 2018 Share Posted August 3, 2018 (edited) 36 minutes ago, Adriano Faria said: Can you elaborate? I don't see what you're saying. If I disable Google Maps, I don't see any address in link view (I was confused with Classifieds, which shows address regardless map): Sorry, bad explanation on my part. 1/ Turn on Allow link...: 2/ Add address 3/ It shows this but not a map 4/ If I then remove address: 5/ I still get this. 6/ Even if I disable this: 7/ I still get this. Seems like address is not cleared when I delete it in link edit and bedford in 5 and 7 is rendered immaterial of settings. Perhaps you fixed this? My apologies. It has never rendered a map, my iFramely install was doing the map rendering. When I disabled it i Framley, I never saw maps in Link Directory. Google maps works fine elsewhere etc (Events) so... am trying to delete this image below Edited August 3, 2018 by christopher-w Link to comment
Adriano Faria Posted August 3, 2018 Author Share Posted August 3, 2018 Yes, there's a bug in the address field. If you don't want to wait for a new version (I will wait a couple of days to see if something else appears), then make the following edit: - open applications\links\sources\Link\Link.php and find: if( isset( $values['link_location'] ) ) { $this->location = ( $values['link_location'] !== NULL ) ? json_encode( $values['link_location'] ) : NULL; } Change to: if( $this->container()->allow_location ) { $this->location = ( $values['link_location'] !== NULL ) ? json_encode( $values['link_location'] ) : NULL; } Then enabled location in the category, edit link and clear it. Save. Disable location. There's also a template edit but fix will be available in next version. Link to comment
Adriano Faria Posted August 3, 2018 Author Share Posted August 3, 2018 8 minutes ago, Adriano Faria said: There's also a template edit The following edit will make a template edit unnecessary. Same file, find: public function map( $width, $height ) { if( $this->location ) { try { return \IPS\GeoLocation::buildFromJson( $this->location )->map()->render( $width, $height ); } catch( \BadMethodCallException $e ){} } return ''; } Change to: public function map( $width, $height ) { if( $this->location AND $this->container()->allow_location ) { try { return \IPS\GeoLocation::buildFromJson( $this->location )->map()->render( $width, $height ); } catch( \BadMethodCallException $e ){} } return ''; } Fix will be available in next version. Link to comment
christopher-w Posted August 3, 2018 Share Posted August 3, 2018 (edited) Thanks for above, excellent! No rush from me, will continue to test. Did you author Classifieds System too? Edited August 3, 2018 by christopher-w Link to comment
Adriano Faria Posted August 3, 2018 Author Share Posted August 3, 2018 Just now, christopher-w said: Did you author Classifieds System too? Yes, I developed it and transferred to another dev later. Link to comment
David B Posted August 4, 2018 Share Posted August 4, 2018 (edited) Hello. I am using Invision Power Board version 4.3.5, and I successfully installed the Links Directory application with no problems. I'm able to view the links I entered when logged in as an administrator. I can also view them as a regular member, but if I log out and view the Links Directory page as a guest I get the following error message: Sorry, there is a problem You do not have permission to access the Links Directoy. Error code: 2LDAPP/1 As far as I can tell, I have all of the permissions set so that guests can view the directory, so I am at a loss as to what is causing this. Thank you, David Edited August 4, 2018 by David B Link to comment
Adriano Faria Posted August 4, 2018 Author Share Posted August 4, 2018 Tks for purchasing. Go to ACP -> Members -> Groups - Guests and enable this group to access the app. Link to comment
David B Posted August 4, 2018 Share Posted August 4, 2018 That worked! Thank you very much! David Adriano Faria 1 Link to comment
Sonya* Posted August 4, 2018 Share Posted August 4, 2018 Hi Adriano, I am trying to understand what is the difference between pinned, feature and affiliate. Pinned - is like a pinned topic. It' clear.Affiliate - "Mark links as official affiliates and display them in a different section on the Links Directory index" How can I display them in a different sections? Is it a custom work or setting?Feature - what is the purpose of this? I do not see any difference to the unfeatured links. Thanks Link to comment
Adriano Faria Posted August 4, 2018 Author Share Posted August 4, 2018 Pin and feature are a IPS4 feature and appears in all apps (Forums, Gallery, Blog, Records from Pages, etc.). Pin will make the record appears first in the category listing. It’s the same of pinned topics in a forum. Feature will make the record a special record and can be displayed anywhere, like in LD index or in the Link Feed widget. If you wan to see an example, Marketplace here shows some featured files in the index. Affiliate comes from old versions of this app and it is exactly for what it does: you can make partners/affiliates. That’s all. I just wanted to keep it, in case someone uses it. There’s a block in the index for the affiliates. Sonya* 1 Link to comment
Sonya* Posted August 4, 2018 Share Posted August 4, 2018 6 minutes ago, Adriano Faria said: Affiliate comes from old versions of this app and it is exactly for what it does: you can make partners/affiliates. That’s all. I just wanted to keep it, in case someone uses it. There’s a block in the index for the affiliates. Thank you! Can you please explain where I can find a block for affiliates? Link to comment
Adriano Faria Posted August 4, 2018 Author Share Posted August 4, 2018 (edited) In the app settings -> Link View you can enable and reorder blocks at your wish. EDIT: Index view, sorry. Edited August 4, 2018 by Adriano Faria Bluto and Sonya* 2 Link to comment
Sonya* Posted August 4, 2018 Share Posted August 4, 2018 27 minutes ago, Adriano Faria said: In the app settings -> Link View you can enable and reorder blocks at your wish. EDIT: Index view, sorry. Thanks. I can see the settings, but the block is not shown. It's a clean install of 4.3.5 with default theme, just for the test on my localhost. I can imagine now, how it should look like. It is not important for me to get it run at the moment. Just wanted to report the issue. Link to comment
Adriano Faria Posted August 4, 2018 Author Share Posted August 4, 2018 Do you have any record shown as affiliate? Regarding style, it is just like the other blocks. Link to comment
Sonya* Posted August 4, 2018 Share Posted August 4, 2018 (edited) 5 minutes ago, Adriano Faria said: Do you have any record shown as affiliate? Regarding style, it is just like the other blocks. Sorry, it works! I have expected to see the block at the right side where categories are. However this one is shown above the WHAT'S NEW block. It took a while to see where the block is. It's very hot in Europe now... very very hot.. Edited August 4, 2018 by Sonya* Adriano Faria 1 Link to comment
Adriano Faria Posted August 4, 2018 Author Share Posted August 4, 2018 1 minute ago, Sonya* said: I have expected to see the block at the right side where categories are. Try the Link Feed widget. It should be an option in its configuration. Let me know if it isn’t; I’ll add in next version. Link to comment
Sonya* Posted August 7, 2018 Share Posted August 7, 2018 Is there any issue with Location field? I have tried to enter the address of White House: Saved and see that Address Line is not saved. I then edited only description of the link and did not touch location field at all. After that the country disappears as well: I have tried different addresses in different countries. The behavior is the same. Link to comment
Adriano Faria Posted August 7, 2018 Author Share Posted August 7, 2018 (edited) The address itself don’t; the text of what you selected yes. This is fixed and I’ll release a new version yet this week. Edited August 7, 2018 by Adriano Faria Sonya* 1 Link to comment
Bluto Posted August 7, 2018 Share Posted August 7, 2018 Is there a way to call the custom fields from the indexBlock template? Link to comment
Adriano Faria Posted August 7, 2018 Author Share Posted August 7, 2018 There’s no space there to add custom fields but if you want to edit your template, use $link->customFields() or something like that. Take a look in the view template. Bluto 1 Link to comment
Bluto Posted August 8, 2018 Share Posted August 8, 2018 (edited) For the view template you have $cfields available as a variable, so you're not using $link-> to call the custom fields. {{foreach $cfields as $k => $v}} <li class="ipsDataItem"> <span class="ipsDataItem_generic ipsDataItem_size3"><strong>{lang="links_{$k}"}</strong></span> <div class="ipsDataItem_generic ipsType_break cLinkInfoData"> {$v|raw} </div> </li> {{endforeach}} Edited August 8, 2018 by Bluto Link to comment
Adriano Faria Posted August 8, 2018 Author Share Posted August 8, 2018 (edited) Because $cfields comes from the php. In indexBlock don’t. My bad Have you tried? -------------------- @Bluto, try: {{$fields = $link->customFields();}} Edited August 8, 2018 by Adriano Faria Bluto 1 Link to comment
Bluto Posted August 8, 2018 Share Posted August 8, 2018 (edited) Works perfect. Thanks @Adriano Faria For anyone else looking to use link directory extra fields in other places / templates (inside the links app). {{$fields = $link->customFields();}} {{foreach $fields as $k => $v}} {lang="links_{$k}"} {$v|raw} {{endforeach}} Can also access: // field_1 being your first extra field you created. {{$fields = $link->customFields();}} {$fields['field_1']} Edited August 8, 2018 by Bluto Adriano Faria 1 Link to comment
AmericanRev2 Posted August 8, 2018 Share Posted August 8, 2018 hello , when using custom icons the padding on the right is too close on mobile phones, looks great on computer, just too close on phones Link to comment
Recommended Posts