Jump to content

Links Directory


Recommended Posts

Posted

In a future release, would it be possible to have an option to turn off the duplicate link protection?

I'm working on a project which duplicate links isn't an issue.  I couldn't find any settings to turn that protection off.

If there is a setting, please let me know.

Thanks!

Posted (edited)
3 minutes ago, Adriano Faria said:

Ok, I’ll add a setting. Currently you can edit a file to allow this. Let me know if you want me to show you how to do it. 

Sure, I'd love the code.

Thanks for adding the setting. ?

Edited by Bluto
Posted

Open applications\links\sources\Link\Link.php and find:

		$return['url'] = new \IPS\Helpers\Form\Url( 'link_url', ( $item ) ? $item->url : '', TRUE, array( 'allowedProtocols' => array( 'http', 'https' ) ), function( $val ) use ($item)
		{
			if( \IPS\Request::i()->do == 'submit' )
			{
				$count = \IPS\Db::i()->select( 'COUNT(*)', 'links_links', array( 'link_url=?', $val ) )->first();
				if ( $count )
				{
					throw new \InvalidArgumentException('link_in_use');
				}
			}
		} );

Change to:

		$return['url'] = new \IPS\Helpers\Form\Url( 'link_url', ( $item ) ? $item->url : '', TRUE, array( 'allowedProtocols' => array( 'http', 'https' ) ) );

 

@Bluto

Posted

I recently bought this addon for our little community, but for the life of me I cannot get the star ratings to even show up. 

I have added the ability to the group, and enabled it in the settings for the category. 

It is working on my blogs setup, and I can make it work in the normal forum. 

Have you any suggestions?

Posted

I have fixed it!

It seems that if you just rename the default link directory and use that the star ratings don't work, at least they didn't for me. 

I just created new directories, and they have worked just fine.. So I guess I have solved it!!

Thanks any way.

 

Posted

Nope not fixed ? I can now see the stars, I just cant with any user give any stars. 

28 minutes ago, Adriano Faria said:
 

Star rating is tied to reviews. Enable reviews in categories and then when someone review a link,

wWfMWIN.png

Got it !!!!!! Thank you...

Posted
1 minute ago, Adriano Faria said:
 

Then starts will appear when someone is submitting a review:

wWfMWIN.png&key=bba9ec002c8c9600fc5706d0

They do now.. 

The mistake I made (if you can call it a mistake) was that I just renamed the default directory that came with Links Directory, that didn't show up any stars at all, I did have the "Allow review" thing checked, but it didn't work. I then created other directories, and they were fine, just the original one wasn't. I have it sorted now, I just deleted the original default directory, and all is well with the world. 

Thanks for your help. 

  • 2 weeks later...
Posted

When sorting links by rating within a category view, the links with one 5-star review are displayed above links that have more than one 5-star reviews. Like this:

  • Link 1 (5 stars, 1 review)
  • Link 2 (5 stars, 4 reviews)
  • Link 3 (5 stars, 10 reviews)

I would list other way: the more reviews, the higher in the list. Is it possible to add number of reviews to the rating sorting?

Posted
4 minutes ago, Adriano Faria said:

That’s not how it works. I can only sort by one column and it is rating. Number of ratings do not count here. Same happens in Downloads, etc.

Is it something to be changed in the core? 

  • 3 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...