Link to the mod (https://custom.simplemachines.org/index.php?mod=4304)
This mod will add a page system to your forum.
It won't add it to my forum :P (2.0.19)
Quote from: Shambles on January 25, 2022, 02:23:57 PMIt won't add it to my forum :P (2.0.19)
Looks like it's only for 2.1 RC4, 2.1 RC1, 2.1 RC2, 2.1 RC3
Quote from: Shambles on January 25, 2022, 02:23:57 PMIt won't add it to my forum :P (2.0.19)
That was a good one ;D
Quote from: Doug Heffernan on January 25, 2022, 02:29:10 PMQuote from: Shambles on January 25, 2022, 02:23:57 PMIt won't add it to my forum :P (2.0.19)
That was a good one ;D
Oh. Ha!
Nice mod tho'. I dloaded it, now thinking on what can I use it for. I loved the custom action action mod and this should do the same. I dig it.
I'm just testing some things in 2.1 so if I can add this to see how it goes :P, great job!
After let the translation Spanish ::)
Regards!
I created a page and when I click on it in admin it says "You are not allowed to access this section". ???
I thought it was me but I just installed two fresh (Nightly) test sites just to see and had the same error on both.
Quote from: Shades. on January 25, 2022, 04:12:18 PMI created a page and when I click on it in admin it says "You are not allowed to access this section". ???
I thought it was me but I just installed two fresh (Nightly) test sites just to see and had the same error on both.
Can you re-download it again, give it another try and let me know how it will go?
Cool works great! I like it! 8)
Quote from: Shades. on January 25, 2022, 04:40:49 PMCool works great! I like it! 8)
Glad to hear that :)
How do I remove "Pages" from the top menu bar? O:)
Quote from: Shades. on January 25, 2022, 04:51:19 PMfrom the top menu bar?
Do you mean to remove the menu button altogether?
Yes :)
Since there are no per page permissions I'd like to make only certain pages visible in the menu via ultimate menu mod. ;)
Quote from: Shades. on January 25, 2022, 05:01:00 PMYes :)
Since there are no per page permissions I'd like to make only certain pages visible in the menu via ultimate menu mod. ;)
At the Subs-Pages.php file inside sources, replace the pages_menu_button function with this:
function pages_menu_button(&$menu_buttons)
{
loadLanguage('Pages');
return false;
}
You'd probably need to add the return AFTER loading the language file :P
//Add the pages button at the navigation.
function pages_menu_button(&$menu_buttons)
{
loadLanguage('Pages');
return false;
}
Quote from: Diego Andrés on January 25, 2022, 05:09:31 PMYou'd probably need to add the return AFTER loading the language file :P
//Add the pages button at the navigation.
function pages_menu_button(&$menu_buttons)
{
loadLanguage('Pages');
return false;
}
Forgot about that. Thanks for the reminder :)
For some resason that cause my first test site a 500 error so I reuploaded the original sub-pages.php and cleared browser and now its still a 500 error page.
So I tried the 2nd test site and same thing! Now both are showing 500 error pages and I've verified all file are there and permissions are correct. I don't know what happened! :o
Edit: restore_setting.php got the site back up but had to disable all hooks
Quote from: Shades. on January 25, 2022, 05:36:25 PMFor some resason that cause my first test site a 500 error so I reuploaded the original sub-pages.php and cleared browser and now its still a 500 error page.
So I tried the 2nd test site and same thing! Now both are showing 500 error pages and I've verified all file are there and permissions are correct. I don't know what happened! :o
Edit: restore_setting.php got the site back up but had to disable all hooks
Do you mean that the 500 error you got was for the whole forum and not just the pages? That is strange, there is nothing in the code that would cause that. And the 500 errors is more of a server issue. Anyways, is there any specific error pertaining to this logged in the error log?
Quote from: Doug Heffernan on January 26, 2022, 11:42:27 AMDo you mean that the 500 error you got was for the whole forum and not just the pages? That is strange, there is nothing in the code that would cause that. And the 500 errors is more of a server issue. Anyways, is there any specific error pertaining to this logged in the error log?
Yes for the whole forum. No errors in admin and it only happens when I change the code in sub_pages.php to what to what you posted...weird! :o
Have you tried the code above to see if it happens to you?
Quote from: Shades. on January 26, 2022, 01:53:09 PMQuote from: Doug Heffernan on January 26, 2022, 11:42:27 AMDo you mean that the 500 error you got was for the whole forum and not just the pages? That is strange, there is nothing in the code that would cause that. And the 500 errors is more of a server issue. Anyways, is there any specific error pertaining to this logged in the error log?
Yes for the whole forum. No errors in admin and it only happens when I change the code in sub_pages.php to what to what you posted...weird! :o
Have you tried the code above to see if it happens to you?
Yes, I did and I could not reproduce that.
Quote from: Doug Heffernan on January 26, 2022, 04:21:23 PMYes, I did and I could not reproduce that.
Can you post me a modified subs-pages.php? I copy and pasted it just like you posted but maybe I'm doing something wrong. ???
Quote from: Shades. on January 26, 2022, 07:12:22 PMQuote from: Doug Heffernan on January 26, 2022, 04:21:23 PMYes, I did and I could not reproduce that.
Can you post me a modified subs-pages.php? I copy and pasted it just like you posted but maybe I'm doing something wrong. ???
Yes, of course. Here you go:
Russian translation
Hi,
Turkish translation
Clicking on Title to sort the created pages... I get a 403 error.
Quote from: Saftek on April 16, 2022, 03:51:44 PMClicking on Title to sort the created pages... I get a 403 error.
This seems to be server related. Is there any other error pertaining this logged either in the forum error log or the server one? Can you post the url to the pages on your forum btw?
Quote from: Doug Heffernan on April 16, 2022, 03:55:42 PMQuote from: Saftek on April 16, 2022, 03:51:44 PMClicking on Title to sort the created pages... I get a 403 error.
This seems to be server related. Is there any other error pertaining this logged either in the forum error log or the server one? Can you post the url to the pages on your forum btw?
Https://www.vulcandrifterriders.com/forum/ - No errors in any log.
Quote from: Saftek on April 16, 2022, 04:05:19 PMHttps://www.vulcandrifterriders.com/forum/ - No errors in any log.
I can not access pages as a guest.
Dear
@Doug Heffernan thanks a lot for this mod.
Please find attached the german translation as it fits for my forum. Maybe others can benefit from that.
Quote from: JessyKa on April 20, 2022, 09:35:53 AMDear @Doug Heffernan
thanks a lot for this mod.
Please find attached the german translation as it fits for my forum. Maybe others can benefit from that.
Thank you for the translation
@JessyKa. I will include it soon in the mod.
P.s. The file says: MembersOnlineToday.german.php, so I take it that you meant it for my other mod?
https://custom.simplemachines.org/index.php?mod=4322
Corrected, thanks!
Support for russian, turkish and german languages has been added thanks to
@Bugo,
@gevv and
@JessyKa for their translations.
Hello
@Doug Heffernan Is there an option to allow member groups to add pages on their own?
I managed to allow to read the pages but adding is not possible, at least I do not progress in it...
Quote from: JessyKa on April 20, 2022, 04:02:56 PMHello @Doug Heffernan
Is there an option to allow member groups to add pages on their own?
I managed to allow to read the pages but adding is not possible, at least I do not progress in it...
that would probably be a BAD idea, JessyKa... If you want user content, then I suggest the SMF Articles mod instead. Allowing a full page potentially opens the door to bad actors to do something bad with html code -- while articles are limited to BBC, like posts.
Quote from: JessyKa on April 20, 2022, 04:02:56 PMHello @Doug Heffernan
Is there an option to allow member groups to add pages on their own?
I managed to allow to read the pages but adding is not possible, at least I do not progress in it...
Only admins can add pages. If you want a more advanced set up where all members can add pages or other stuff, please see my Showcase mod.
https://www.simplemachines.org/community/index.php?topic=580871
Hi
How can i make readable for guest
thanks
btw
Nice mod
Quote from: dbh on May 07, 2022, 07:59:26 AMHi
How can i make readable for guest
thanks
btw
Nice mod
It is group permission based. You must set the permissions for guests to view them.
???
Shame om me
So simple,Thanks for your reply
It's working
Quote from: dbh on May 07, 2022, 08:29:49 AM???
Shame om me
So simple,Thanks for your reply
It's working
No problem. Glad to hear that it is working.
When installing the mod on the version of SMF 2.1.3 Released, the mod is successfully installed, but when you add pages, they are not visible on the forum
Quote from: forumbteam on February 25, 2023, 09:00:40 AMWhen installing the mod on the version of SMF 2.1.3 Released, the mod is successfully installed, but when you add pages, they are not visible on the forum
Aren't they visible at all for everyone, or for certain groups?
QuoteQuote from: Doug Heffernan on February 25, 2023, 12:07:11 PMQuote from: forumbteam on February 25, 2023, 09:00:40 AMWhen installing the mod on the version of SMF 2.1.3 Released, the mod is successfully installed, but when you add pages, they are not visible on the forum
Aren't they visible at all for everyone, or for certain groups?
When creating a page, it exists only in the admin panel in the mod settings, if you want to view the page by a non-administrator, it is prohibited, in the mod settings there is no way to configure the output by groups, it is not possible to add the created page to any menu, the created page simply exists in the admin panel and is not configured where it is displayed and there is generally no possibility of displaying it anywhere
Quote from: forumbteam on February 25, 2023, 12:40:55 PMif you want to view the page by a non-administrator, it is prohibited,
Have you read the description and seeing the screenshots at the mod 's download section/page? It looks like to me that you haven't set up the permissions accordingly for the groups that you want to view the pages.
Thanks, may have to try this
@Doug Heffernan Is there a way to change from ?action=pages;sa=view;id=1
To page's name? Like: ?action=pages;test
Or even: ?action=test
Does anybody know if this works in 2.1.4?
Quote from: tech9 on December 29, 2023, 10:14:25 PMDoes anybody know if this works in 2.1.4?
It uses hooks so very likely.