Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: ascaland on January 21, 2012, 09:54:51 AM

Title: Hot Forum Links
Post by: ascaland on January 21, 2012, 09:54:51 AM
Hot Forum Links


Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3294) || Author (http://www.simplemachines.org/community/index.php?action=profile;u=164151) || Support Topic (http://www.simplemachines.org/community/index.php?topic=http://www.simplemachines.org/community/index.php?topic=466237.0)


Hot Forum Links is a modification where selected users can choose certain topics as "hot links" which is displayed on a list in the board index and in the hot links archive. Users have the ability to remove and modify hot links as well.

Idea by Christian Okoye
Modification created by Anthony Calandra/Anthony`/Project Evolution (http://www.simplemachines.org/community/index.php?action=profile;u=164151) - 2012
Title: Re: Hot Forum Links
Post by: Gryzor on January 22, 2012, 03:44:47 AM
Are there any screenshots, or a demo somewhere?
Title: Re: Hot Forum Links
Post by: ascaland on January 22, 2012, 12:39:26 PM
Thanks for reminding me! Pictures have been added to the mod page.
Title: Re: Hot Forum Links
Post by: Gryzor on January 22, 2012, 01:21:08 PM
Thanks, much appreciated! Looks nice and interesting... I think I'll give it a go :)
Title: Re: Hot Forum Links
Post by: crazyASD on May 23, 2012, 03:31:44 AM
Wow! Cool thing! I Wish automatic hot links generation, by post count.
Title: Re: Hot Forum Links
Post by: oloyede JAMIU on May 23, 2012, 08:11:16 AM
who has tried this mod
Title: Re: Hot Forum Links
Post by: 1Chope on June 04, 2012, 06:07:49 PM
'Nairaland' Mode. Many Nigerians will be soon knocking  ;D
Title: Re: Hot Forum Links
Post by: phlexx on June 17, 2012, 09:50:14 AM
Is there a version for smf 2.0.2?
Title: Re: Hot Forum Links
Post by: 1Chope on August 09, 2012, 06:46:26 PM
Project Evolution do you mind making the mode compatible with 2.X.X version please
Title: Re: Hot Forum Links
Post by: ascaland on August 09, 2012, 08:25:18 PM
Quote from: Wanchope on August 09, 2012, 06:46:26 PM
Project Evolution do you mind making the mode compatible with 2.X.X version please

Sorry, I don't have the time to update it to the latest 2.0 version. But anyone else has my permission to modify it for 2.0 and release it as their own.
Title: Re: Hot Forum Links
Post by: 1Chope on August 25, 2012, 06:25:53 PM
Ok, I will take a look at the codes when I have free time, maybe I can modify it for 2.X.X version
Title: Re: Hot Forum Links
Post by: Gryzor on September 04, 2012, 05:40:49 AM
That would be really nice :)
Title: Re: Hot Forum Links
Post by: Biology Forums on April 13, 2013, 06:27:00 PM
Thanks for the wonderful mod, Anthony.

Here's how mine looks:  http://biology-forums.com/index.php#hotlinks
Title: Re: Hot Forum Links
Post by: ascaland on April 13, 2013, 08:10:53 PM
Quote from: Liam_michael on April 13, 2013, 06:27:00 PM
Thanks for the wonderful mod, Anthony.

Here's how mind looks:  http://biology-forums.com/index.php#hotlinks

Awesome! Looks great.
Title: Re: Hot Forum Links
Post by: Biology Forums on April 14, 2013, 01:59:31 AM
I accidently found a problem with this modification.

I went to remove a topic while in the message index, and I get this error:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2
File: /***/Sources/RemoveTopic.php
Line: 290

This corresponds to this line:

WHERE id_topic $condition", __FILE__, __LINE__);

Strangely, it still deletes the topic, but it redirects to the error page. On the contrary, I do not experience this problem when deleting a topic while in topic view.

Found the solution

Find:

db_query("
DELETE FROM {$db_prefix}log_notify
WHERE ID_TOPIC $condition", __FILE__, __LINE__);


Add before:

// Delete hot link
db_query("DELETE FROM {$db_prefix}hot_forum_links
        WHERE id_topic $condition", __FILE__, __LINE__);
Title: Re: Hot Forum Links
Post by: ascaland on April 14, 2013, 12:02:29 PM
You got the error when you were trying to remove the topic? Very odd because I can't reproduce this on a test forum.

Can you describe the steps in detail for me, please?
Title: Re: Hot Forum Links
Post by: Biology Forums on April 14, 2013, 12:34:22 PM
Quote from: Anthony` on April 14, 2013, 12:02:29 PM
You got the error when you were trying to remove the topic? Very odd because I can't reproduce this on a test forum.

Can you describe the steps in detail for me, please?

I couldn't either on my test forum; could only be an anomaly in my forum since it is heavily modified.
Title: Re: Hot Forum Links
Post by: Biology Forums on April 14, 2013, 02:59:24 PM
I found another mistake on a fresh SMF install.

*See attachment*

All other language strings work, except for this one :(
Title: Re: Hot Forum Links
Post by: ascaland on April 14, 2013, 05:05:39 PM
Thank you very much Liam_Michael. Version 1.0.1 is now available.
Title: Re: Hot Forum Links
Post by: Biology Forums on April 14, 2013, 09:17:50 PM
Quote from: Anthony` on April 14, 2013, 05:05:39 PM
Thank you very much Liam_Michael. Version 1.0.1 is now available.

You're welcome, thank you for the wonderful mode once again.

What did you change exactly?
Title: Re: Hot Forum Links
Post by: ascaland on April 14, 2013, 10:54:14 PM
Quote from: Liam_michael on April 14, 2013, 09:17:50 PM
Quote from: Anthony` on April 14, 2013, 05:05:39 PM
Thank you very much Liam_Michael. Version 1.0.1 is now available.

You're welcome, thank you for the wonderful mode once again.

What did you change exactly?

Just added a language string in Modifications.english.php.
Title: Re: Hot Forum Links
Post by: Biology Forums on April 16, 2013, 10:08:58 PM
Another observation.

I noticed that if you hot link a topic that has multiple pages, the hot link title contains an re:. For example, you're on page 8, and you click Add as Hot Link, the hot link contains re: in it.
Title: Re: Hot Forum Links
Post by: ascaland on April 16, 2013, 11:08:47 PM
Quote from: Liam_michael on April 16, 2013, 10:08:58 PM
Another observation.

I noticed that if you hot link a topic that has multiple pages, the hot link title contains an re:. For example, you're on page 8, and you click Add as Hot Link, the hot link contains re: in it.

If you're referring to the title of the actual hotlink on the index you can change it on the next page anyway.

EDIT: I can't reproduce that 'observation.'
Title: Re: Hot Forum Links
Post by: timidapsin on June 02, 2013, 03:06:51 PM
can someone please make this mod 2.0.4 compatible. please i really need this.
Title: Re: Hot Forum Links
Post by: timidapsin on June 04, 2013, 02:39:42 PM
its over a day now and i haven't received any reply to my request
Title: Re: Hot Forum Links
Post by: timidapsin on October 23, 2013, 06:43:45 AM
Please we still need this mod to be smf 2.0 compatible. God bless you as you do so.
Title: Re: Hot Forum Links
Post by: Draffi on October 25, 2013, 05:17:02 PM
Any update for SMF 2 would be great...!
Title: Re: Hot Forum Links
Post by: Draffi on November 11, 2013, 01:37:57 PM
Nobody a working Version for SMF 2 ?
Title: Re: Hot Forum Links
Post by: mulwa on December 10, 2013, 07:14:31 PM
please senior fellow friends, we need this mod for smf 2 crazily, please help
Title: Re: Hot Forum Links
Post by: Biology Forums on January 26, 2014, 01:13:24 PM
Hello Anthony`,

I want to increase the number of hotlinks shown per page in the hotlinks archive, but I want to keep that number the same in the board index. How would I do that?
Title: Re: Hot Forum Links
Post by: ascaland on January 26, 2014, 07:32:55 PM
Quote from: Liam_michael on January 26, 2014, 01:13:24 PM
Hello Anthony`,

I want to increase the number of hotlinks shown per page in the hotlinks archive, but I want to keep that number the same in the board index. How would I do that?

In Sources/HotForumLinks.php, in the displayLinks() function, look for:
$context['hot_forum_links']['page_index'] = constructPageIndex($baseUrl, $start, $numLinks, $modSettings['hfl_per_page']);
$context['hot_forum_links']['links'] = retrieveHotForumLinks('full', $start);


Replace with,
$LINKS_PER_PAGE = 25;
$context['hot_forum_links']['page_index'] = constructPageIndex($baseUrl, $start, $numLinks, $LINKS_PER_PAGE);
$context['hot_forum_links']['links'] = retrieveHotForumLinks('full', $start, $LINKS_PER_PAGE);


That should have 25 listed, but you can change $LINKS_PER_PAGE to a different value and you should be set.

By the way: Any developers interested in taking this mod and continuing development please PM me!
Title: Re: Hot Forum Links
Post by: Biology Forums on January 27, 2014, 07:48:52 PM
Mad respects, brother.

I could take over it if you'd like.
Title: Re: Hot Forum Links
Post by: ascaland on January 27, 2014, 09:02:30 PM
Quote from: Liam_michael on January 27, 2014, 07:48:52 PM
Mad respects, brother.

I could take over it if you'd like.

Please, be my guest! I will notify a staffer.
Title: Re: Hot Forum Links
Post by: Biology Forums on January 27, 2014, 10:29:38 PM
Quote from: Anthony` on January 27, 2014, 09:02:30 PM
Quote from: Liam_michael on January 27, 2014, 07:48:52 PM
Mad respects, brother.

I could take over it if you'd like.

Please, be my guest! I will notify a staffer.

Great.
Title: Re: Hot Forum Links
Post by: DarkMere on May 02, 2014, 04:56:54 AM
Any news on a possible smf 2.0 compatible version with this change of developer?
Only 5% of mods I consider worthwhile, and this is one of them. Please! 
Title: Re: Hot Forum Links
Post by: mulwa on May 05, 2014, 08:15:03 AM
pls anthony or any other hero, we need this mod for smf 2, thank you