Partner Page
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Partner Page
And how to be? The point is to register users when you can then write a personal message to the administrator or through contacts. It is necessary that the guest can write through the form without registration, that would be correct.
-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Partner Page
No... I don't see it that way. Guests can only read forums they have permission to read, only. It is a new registered user that can post and have admin to accept the post.
Dm has this ext setup correct. I can not help you any further.
Dm has this ext setup correct. I can not help you any further.
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Partner Page
Last question. How to move the button to the top, above the block, otherwise, when adding new blocks, it will constantly go down.
You do not have the required permissions to view the files attached to this post.
-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Partner Page
In the template/dm_partners_body.html you have to move all the code at the bottom up to the top after the {% EVENT... line. But you will have to get the <br>s right for the spacing.
Also... Dm I just noticed you have a {% endif %} down there and then a {% else %} after that. The {% endif %} on line 53 does not need to be there.
Edit: After moving all that code to the top, then I see that the extra {% endif %} line has to be moved down below the {% endfor %} line. So it can not be taken out.
Also... Dm I just noticed you have a {% endif %} down there and then a {% else %} after that. The {% endif %} on line 53 does not need to be there.
Edit: After moving all that code to the top, then I see that the extra {% endif %} line has to be moved down below the {% endfor %} line. So it can not be taken out.
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Partner Page
Can you post the finished code, otherwise nothing works, errors ...
I would be grateful for the ready code, help.

I would be grateful for the ready code, help.



-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Partner Page
This is my layout with add on top.

And the revised template allowing guest to view, IF they have permission.

And the revised template allowing guest to view, IF they have permission.
You do not have the required permissions to view the files attached to this post.
Last edited by Sniper_E on 19 Feb 2022, 11:13, edited 5 times in total.
-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Partner Page
You welcome.
With you letting guest see the partners page, you could take these lines out.Or change your lang for that to say "our Add Partners Page" instead of "our Partner Pages"
With you letting guest see the partners page, you could take these lines out.
Code: Select all
{% else %}
<div class="panel">{{ lang('DMP_VIEW_NOT_ALLOWED') }}</div>
<br>
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Partner Page
What's the point if he still can't add a page without registering?Sniper_E wrote: 17 Feb 2022, 00:58 You welcome.
With you letting guest see the partners page, you could take these lines out.Or change your lang for that to say "our Add Partners Page" instead of "our Partner Pages"Code: Select all
{% else %} <div class="panel">{{ lang('DMP_VIEW_NOT_ALLOWED') }}</div> <br>
-
- Admin
- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Partner Page
Its for admin to add a friends logo to there board its not for members to add links but click them.

-
- VIP
- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Partner Page
RemoveBecause that is a message to a guest that they can not view the partners page. Seeing how you have guests seeing your partners page, those lines are not needed.
And that template I posted above is wrong. The add partner page button code is inside the loop and it needs to be move up higher in the template before the loop.
Code: Select all
{% else %}
<div class="panel">{{ lang('DMP_VIEW_NOT_ALLOWED') }}</div>
<br>
And that template I posted above is wrong. The add partner page button code is inside the loop and it needs to be move up higher in the template before the loop.
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Partner Page
Can you post a new template to fix the bugs?Sniper_E wrote: 18 Feb 2022, 23:24 RemoveBecause that is a message to a guest that they can not view the partners page. Seeing how you have guests seeing your partners page, those lines are not needed.Code: Select all
{% else %} <div class="panel">{{ lang('DMP_VIEW_NOT_ALLOWED') }}</div> <br>
And that template I posted above is wrong. The add partner page button code is inside the loop and it needs to be move up higher in the template before the loop.
-
- Users
- Posts: 93
- Joined: 27 Oct 2019, 23:54
Re: Partner Page
Can you tell me how to swap the button with other buttons at the top of the site?
You do not have the required permissions to view the files attached to this post.
-
- Users
- Posts: 139
- Joined: 25 Mar 2022, 07:11
Re: Partner Page
Tested on 3.3.7 and works. Thanks