Advertisement:

Author Topic: duplicate post in one section  (Read 1953 times)

Offline goldenstudios

  • Jr. Member
  • **
  • Posts: 158
Re: duplicate post in one section
« Reply #20 on: November 10, 2020, 12:29:46 PM »
the limit of 10 posts, however, of that mod how do I change it?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,096
  • Gender: Male
    • Kindred-999 on GitHub
Re: duplicate post in one section
« Reply #21 on: November 10, 2020, 02:07:48 PM »
well, a better choice might be to use the existing SSI function   ssi_recentTopics


create a new php page in your forum root directory
Code: (RecentTopics.php) [Select]
<?php

require_once('SSI.php');

global 
$user_info;

$num 20//set this to the number of topics that you want listed
$inc_boards= array(2,3,4,5); // comma separated list of the board IDs which you want this list to pull from

if $user_info['is_guest'] {
  echo 
'Please log in to see this content';
} else {
ssi_recentTopics($numnull$inc_boards'echo');
}
?>


Then you can set Board 1 to be a redirect board which points to the URL of the above page

the nice thing about this method is that it is portable between versions and does not involve ANY changes to core code
[/code]
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline goldenstudios

  • Jr. Member
  • **
  • Posts: 158
Re: duplicate post in one section
« Reply #22 on: November 10, 2020, 02:18:19 PM »
I created the file and placed it in the root directory

but I also installed the mod you recommended, but I don't understand the code you gave me how to set it up

then in the mod you showed me I should make some changes because I would like it to post only certain sections and not all
« Last Edit: November 10, 2020, 03:05:06 PM by goldenstudios »

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,096
  • Gender: Male
    • Kindred-999 on GitHub
Re: duplicate post in one section
« Reply #23 on: November 11, 2020, 11:18:02 AM »
go to https://yoursite.com/RecentTopics.php

this should display what you want

in the code I gave above,
$num = 20; //set this to the number of topics that you want listed
$inc_boards= array(2,3,4,5); // comma separated list of the board IDs which you want this list to pull from

change the values of these two settings to determine the COUNT of how many topics to display and the BOARDS to be included
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline goldenstudios

  • Jr. Member
  • **
  • Posts: 158
Re: duplicate post in one section
« Reply #24 on: November 11, 2020, 12:01:18 PM »
but my id are 20.0 43.5 etc how do I set them?
i test link but show white page
« Last Edit: November 11, 2020, 12:55:37 PM by goldenstudios »

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,096
  • Gender: Male
    • Kindred-999 on GitHub
Re: duplicate post in one section
« Reply #25 on: November 11, 2020, 02:12:58 PM »
every actual board will be a whole number...    43.5 is *NOT* a board ID.  20.0 would be 20


what is your site URL?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline goldenstudios

  • Jr. Member
  • **
  • Posts: 158
Re: duplicate post in one section
« Reply #26 on: November 11, 2020, 03:13:21 PM »
i set but not work
i have send pm for you

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,096
  • Gender: Male
    • Kindred-999 on GitHub
Re: duplicate post in one section
« Reply #27 on: November 11, 2020, 05:03:25 PM »
Ah...    you're a pirate DVD site.

Sorry, as a denizen of the interwebs who BELIEVES in intellectual property and copyright owner's rights, I can no longer provide assistance.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline goldenstudios

  • Jr. Member
  • **
  • Posts: 158
Re: duplicate post in one section
« Reply #28 on: November 11, 2020, 05:05:00 PM »
Ah...    you're a pirate DVD site.

Sorry, as a denizen of the interwebs who BELIEVES in intellectual property and copyright owner's rights, I can no longer provide assistance.
I sent a sample site ...
not mine i'm not a stupid