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 OkoyeModification created by Anthony Calandra/Anthony`/Project Evolution (http://www.simplemachines.org/community/index.php?action=profile;u=164151) - 2012
Are there any screenshots, or a demo somewhere?
Thanks for reminding me! Pictures have been added to the mod page.
Thanks, much appreciated! Looks nice and interesting... I think I'll give it a go :)
Wow! Cool thing! I Wish automatic hot links generation, by post count.
who has tried this mod
'Nairaland' Mode. Many Nigerians will be soon knocking ;D
Is there a version for smf 2.0.2?
Project Evolution do you mind making the mode compatible with 2.X.X version please
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.
Ok, I will take a look at the codes when I have free time, maybe I can modify it for 2.X.X version
That would be really nice :)
Thanks for the wonderful mod, Anthony.
Here's how mine looks: http://biology-forums.com/index.php#hotlinks
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.
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 solutionFind: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__);
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?
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.
I found another mistake on a fresh SMF install.
*See attachment*
All other language strings work, except for this one :(
Thank you very much Liam_Michael. Version 1.0.1 is now available.
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?
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.
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.
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.'
can someone please make this mod 2.0.4 compatible. please i really need this.
its over a day now and i haven't received any reply to my request
Please we still need this mod to be smf 2.0 compatible. God bless you as you do so.
Any update for SMF 2 would be great...!
Nobody a working Version for SMF 2 ?
please senior fellow friends, we need this mod for smf 2 crazily, please help
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?
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!
Mad respects, brother.
I could take over it if you'd like.
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.
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!
pls anthony or any other hero, we need this mod for smf 2, thank you