Advertisement:

Author Topic: Recent Forum Topics on Boardindex  (Read 56558 times)

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #40 on: October 28, 2014, 06:03:43 AM »
yes that can be done to hide it for guests, ill look at it today to give you the code.

Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #41 on: October 28, 2014, 06:10:29 AM »
That would be much appreciated thank you!

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #42 on: October 28, 2014, 09:03:00 AM »
Hi there

Thanks for the mod it's great and exactly what I needed for my forum! There is just one problem, my forum requires a login to see any content on the forum. The problem is the Recent Topics board shows up on the login page so the public can see the Recent Topics which I don't want. I don't see any way to change the permissions?

Any suggestions?

Thanks in advance!

Ill add this option to turn this on or off for guests in next update but for now you can use this fix.
Here we go... to hide the Recent Forum Topics for Guests replace this file(see attachment)--> Subs-RecentForumTopics.php in Folder ../Sources



edit: attachment is in this post
« Last Edit: October 29, 2014, 05:53:57 AM by Pipke »

Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #43 on: October 28, 2014, 09:34:07 AM »
Works 100%. Thank you great support!

Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #44 on: October 28, 2014, 09:36:40 AM »
Sorry one more thing. I have the SMF Ads Mod as well. The ad at the top of the index now shows below the Recent Topics List. Is there any way to get the ad above the Recent Topics?

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #45 on: October 28, 2014, 10:36:41 AM »
Sorry one more thing. I have the SMF Ads Mod as well. The ad at the top of the index now shows below the Recent Topics List. Is there any way to get the ad above the Recent Topics?

Not quite easy. Because theAds mod is added to SMF with changing the core template files and NOT with hooks (no editting core files) like my mod does, but it can be done.

Try this at own risk(make backup of the files your going to change):

Remove this code from ./Themes/{Your theme}/BoardIndex.template.php
Code: [Select]
//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

and in ./Themes/default/RecentForumTopics.template.php
find
Code: [Select]
global $context, $settings, $scripturl, $modSettings, $txt, $boarddir;

replace with
Code: [Select]
global $context, $settings, $scripturl, $modSettings, $txt, $boarddir;

//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

Not sure if it works, but it should i guess.
NOTE. this will break the uninstall of the AdsMod.

Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #46 on: October 29, 2014, 02:47:25 AM »
Thank you for that Pipke I will try that at a later stage. I'm sorry to come at you with all these issues but this is quite a major one as the mod has disabled Tapatalks functionality. Here's a screen shot of the error message when I try to login through Tapatalk.


Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #47 on: October 29, 2014, 05:33:32 AM »
Hi Pipke

Thank you so much for your fast responses.

I uploaded the attachment into the sources folder and unfortunately both the index page on pc and tapatalk don't.

I get this error when I  try to access the index page on PC

Fatal error: require_once(): Failed opening required '/RecentForumTopics.php' (include_path='.:/opt/php54/lib/php') in /public_html/Sources/Subs-RecentForumTopics.php on line 135

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #48 on: October 29, 2014, 05:46:18 AM »

Hi PipkeThank you so much for your fast responses. I uploaded the attachment into the sources folder and unfortunately both the index page on pc and tapatalk don't.I get this error when I  try to access the index page on PC Fatal error: require_once(): Failed opening required '/RecentForumTopics.php' (include_path='.:/opt/php54/lib/php') in /public_html/Sources/Subs-RecentForumTopics.php on line 135


oopsy i forgot the global  $sourcedir

fix in attachment agian  :P

Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #49 on: October 29, 2014, 05:55:30 AM »
Perfect now!! Thank you so much pip!!!!

Offline 420SA

  • Semi-Newbie
  • *
  • Posts: 61
Re: Recent Forum Topics on Boardindex
« Reply #50 on: October 30, 2014, 05:41:39 AM »
Sorry one more thing. I have the SMF Ads Mod as well. The ad at the top of the index now shows below the Recent Topics List. Is there any way to get the ad above the Recent Topics?

Not quite easy. Because theAds mod is added to SMF with changing the core template files and NOT with hooks (no editting core files) like my mod does, but it can be done.

Try this at own risk(make backup of the files your going to change):

Remove this code from ./Themes/{Your theme}/BoardIndex.template.php
Code: [Select]
//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

and in ./Themes/default/RecentForumTopics.template.php
find
Code: [Select]
global $context, $settings, $scripturl, $modSettings, $txt, $boarddir;

replace with
Code: [Select]
global $context, $settings, $scripturl, $modSettings, $txt, $boarddir;

//Display ads on the board index
if (function_exists("show_boardAds"))
{
$ads = show_boardAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

Not sure if it works, but it should i guess.
NOTE. this will break the uninstall of the AdsMod.


By the way I implemented it this and it totally works no problems. Thank you!

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #51 on: October 30, 2014, 05:57:23 AM »
Thanks and great for letting me know that it work for you seano436   ;D

Offline valter071

  • Semi-Newbie
  • *
  • Posts: 55
Re: Recent Forum Topics on Boardindex
« Reply #52 on: November 13, 2014, 02:44:26 PM »

Remove this code from ./Themes/{Your theme}/BoardIndex.template.php

In my theme does not have the file BoardIndex.template.php

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Recent Forum Topics on Boardindex
« Reply #53 on: November 13, 2014, 02:50:31 PM »
That means it will use the default theme one ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline umpo

  • Newbie
  • *
  • Posts: 2
Re: Recent Forum Topics on Boardindex
« Reply #54 on: January 29, 2015, 04:03:25 AM »
Hi there,
great mod which works perfectly!
Only one question, would it be possible to have the recent topics block on the bottom part of the page? i.e. where recent posts block was placed...
I do not see any option about that.


thanks!

Offline pcba

  • Newbie
  • *
  • Posts: 1
Re: Recent Forum Topics on Boardindex
« Reply #55 on: January 29, 2015, 04:25:38 AM »
This mod is huge excellent. I am newbie for ongoing pcb project for medium business company. Great to see you guys here. :)
« Last Edit: January 29, 2015, 04:33:30 AM by margarett »

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #56 on: January 29, 2015, 08:30:54 AM »
Hi there,
great mod which works perfectly!
Only one question, would it be possible to have the recent topics block on the bottom part of the page? i.e. where recent posts block was placed...
I do not see any option about that.


thanks!

working on a updated version, be patience its almost done.

Offline umpo

  • Newbie
  • *
  • Posts: 2
Re: Recent Forum Topics on Boardindex
« Reply #57 on: January 30, 2015, 03:41:03 AM »
Quote

working on a updated version, be patience its almost done.

Awesome! looking forward to try it :)

Offline Alanar

  • Semi-Newbie
  • *
  • Posts: 34
Re: Recent Forum Topics on Boardindex
« Reply #58 on: February 19, 2015, 03:05:17 PM »
Wonderful mod. I'm having an issue with collapsing categories though with this mod installed. Whenever I try to collapse one, it collapses the same category each time.

Offline Pipke

  • Full Member
  • ***
  • Posts: 476
    • [NRNS]
Re: Recent Forum Topics on Boardindex
« Reply #59 on: March 21, 2015, 06:53:48 PM »
Wonderful mod. I'm having an issue with collapsing categories though with this mod installed. Whenever I try to collapse one, it collapses the same category each time.

sorry for late respons, whatever issue you encounter with the collapse thingy(i don't understand what you exactly mean?), it will be fixed in next update/release.