Partner Page

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
Post Reply
User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

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.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01

Re: Partner Page

Post by Sniper_E »

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.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

Last question. How to move the button to the top, above the block, otherwise, when adding new blocks, it will constantly go down.
Button at the top.jpg
You do not have the required permissions to view the files attached to this post.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01

Re: Partner Page

Post by Sniper_E »

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.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

Can you post the finished code, otherwise nothing works, errors ...

I would be grateful for the ready code, help. :yikes: :eyes2: :tumbsyes:

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01

Re: Partner Page

Post by Sniper_E »

This is my layout with add on top.

Image

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

dm_partners_body.zip
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.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

Thank you :thumbup: :tumbsyes: :mml:

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01

Re: Partner Page

Post by Sniper_E »

You welcome.

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>
Or change your lang for that to say "our Add Partners Page" instead of "our Partner Pages"
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

Sniper_E wrote: 17 Feb 2022, 00:58 You welcome.

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>
Or change your lang for that to say "our Add Partners Page" instead of "our Partner Pages"
What's the point if he still can't add a page without registering?

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12

Re: Partner Page

Post by martin »

Its for admin to add a friends logo to there board its not for members to add links but click them.
Image

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01

Re: Partner Page

Post by Sniper_E »

Remove

Code: Select all

{% else %}
<div class="panel">{{ lang('DMP_VIEW_NOT_ALLOWED') }}</div>
<br>
Because 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.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

Sniper_E wrote: 18 Feb 2022, 23:24 Remove

Code: Select all

{% else %}
<div class="panel">{{ lang('DMP_VIEW_NOT_ALLOWED') }}</div>
<br>
Because 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.
Can you post a new template to fix the bugs?

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01

Re: Partner Page

Post by Sniper_E »

Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

TrekRed
Users
Users
Posts: 93
Joined: 27 Oct 2019, 23:54

Re: Partner Page

Post by TrekRed »

Can you tell me how to swap the button with other buttons at the top of the site?
Change button position.gif
You do not have the required permissions to view the files attached to this post.

User avatar

max-ima
Users
Users
Posts: 139
Joined: 25 Mar 2022, 07:11

Re: Partner Page

Post by max-ima »

Tested on 3.3.7 and works. Thanks

Post Reply