Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Membership subscribe
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2015 - 12:34 pm

Oh dear! Don't need to maker a visit. It is a very simple and very stupid little bug!

When we hanged the checkboxes in version 5.5.4 we had to make sure each one was in a specific format. We changed so many! But it looks like this one slipped through the net.

Do you feel able to make a small and simple code edit? Actually just re-arranging two lines of code?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Till
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2015 - 12:35 pm

Yes.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2015 - 3:37 pm

OK . the file you need to edit is admin/panel-forums./forms/spa-forums-group-permission-form.php

Right - more or less in the middle - of that file are these two lines of code:

<label for="sfadddef"><?php spa_etext('Add to group default permissions'); ?></label>
<input type="checkbox" id="sfadddef" name="adddef" />

All you need to do is reverse them so the 'input' line comes first

Our apologies for the problem and for the fact that this one slipped through the net.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Till
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2015 - 4:58 pm

Ok, I can do that for one of my sites. For the other one I don't have access to the file structure via ftp. Is there a way to do this by only using WordPress interface screens in a web browser?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2015 - 5:13 pm

No way that I am aware of. The WP plugin editor can only travel 2 deep into folder levels from the root.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Till
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2015 - 6:25 am

This means that I'll have to wait for you guys to come up with an update before my silver subscription expires I guess...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2015 - 7:07 am

Updates continue after you membership expires. They do not stop being delivered.

Can you not even replace a file or even the whole SP folder? Seems rather strange not to have access.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Till
Member
Free Members
sp_UserOfflineSmall Offline
Mar 9, 2015 - 8:42 am

OK, I edited the suggested file and reordered those two lines of code, but still no checkbox shows up! I enclose the screenshot of the problem again:

no-checkbox.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 9, 2015 - 11:15 am

Oh gosh! Now I feel stupid. Looks like I asked you to fix the wrong thing and for that I apologise. So let's do it properly this time....

The file you need is actually in the SP plugins folder so - by default - look for the folder

/wp-content/sp-resources/forum-plugins/membership-subscribe/admin/..

and the file: sp-membership-subscribe-admin-options.php

Change this bit:

<td class="sflabel"><label for="sfmembership_subscribe"><?php echo spa_text('Auto subscribe selected user group to this forum when adding permission'); ?></label>
<input type="checkbox" id="sfmembership_subscribe" name="membership_subscribe" />
</td>

to:

<td class="sflabel">
<input type="checkbox" id="sfmembership_subscribe" name="membership_subscribe" />
<label for="sfmembership_subscribe"><?php echo spa_text('Auto subscribe selected user group to this forum when adding permission'); ?></label>
<input type="checkbox" id="sfmembership_subscribe" name="membership_subscribe" />
</td>

which just re-arranges those two lines for checkbox and label.

Again - my apologies

andy-signature.png
YELLOW
SWORDFISH
Avatar
Till
Member
Free Members
sp_UserOfflineSmall Offline
Mar 9, 2015 - 11:38 am

And do you think I should change the other file back to its original state?

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625