Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Users unable to update profiles - buttons not repsonding
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 15, 2015 - 11:35 am

It might just be that I am tired and not thinking clearly but I am struggling to visualise just what you are asking for. Is there a chance you could knock up a diagram or visual and attach it?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Jun 15, 2015 - 2:36 pm

I struggled too trying to explain what exactly I'm looking for because I haven't fully visualized it myself. But here's what I am doing right now:

Capture-1.JPGImage Enlarger

So I stripped the SP profile down to just the bare essentials for our students and added a (hopefully) highly visible note with a link to the "actual" profile editing page where they edit their display name, email address, social links, blog URL, etc.

In Summary, I like to keep the forum options accessible through the forum itself while the profile part resides on another page and ideally there is some kind of custom button or tab or such to link to that page. Because right now under Forum > Profile > Profile Entry Form Mode I can only redirect the entire profile page, not just a portion of it (e.g. only the profile part but not the forum options part)

Does that make it any clearer?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 16, 2015 - 3:00 am

So - to put it simply - you just want to add a button to the SP profile panel that is essentially a link to another WordPress page. Is that about it? And - if so - does that also mean you need to pass any data with the link or does the page in question handle current user loading. And if so - what is the difference between this and the link you shown in your screenshot?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Jun 16, 2015 - 3:27 pm

Yes to the first question, no to the second (yes to "the page in question handle current user loading"). The difference would be better visibility. My experience shows that users tend to overlook anything at the top of a page but notice it in the middle and bottom. So if there was a button akin to the "List Topics You Have Posted To" it would be obvious where to go to edit the actual profile (as compared to just forum options).

Quick note on the side: I just looked at my profile here on the SP forum and under "Buddies and Adversaries" I see you and Ike listed three times. Looks like a single user can be added multiple times? Also "Permissions" > "Show Permissions" bleeds into the forum statics under my profile (at least int he latest Firefox).

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 16, 2015 - 8:03 pm

add users multiple?  really?  wow, didnt do that last time it was tested so maybe something has gotten knocked...  will open a ticket for research...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 16, 2015 - 8:55 pm

can you tell me how you added users multiple times?  I am unable to replicate this on the profile - buddies and adversaries - manage buddies page...  duplicates are not added...

Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Jun 17, 2015 - 12:39 am

Unfortunately I do not know. I simply had just noticed it looking through my profile. Here's a screenshot:

Capture-2.JPGImage Enlarger

I know I had sent some PMs to all of you recently and had clicked "Add ALL Recipients To Buddy List" but giving this a quick try now doesn't replicate the issue.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 17, 2015 - 4:29 am

We can not replicate either! maybe this is a manifestation of an earlier issue now resolved... let;s go back to the main subject.

All of the profile forms are populated with standard WordPress style filter hooks which means it is pretty easy to add components like your button. It might be best if you can tell me where you want to display this exactly - on which panel for example. Although there is a filter that would allow it to be shown at the bottom of all panels.

Then I can give you more detailed advice on what to do.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Thorsten B
Member
sp_UserOfflineSmall Offline
Jun 17, 2015 - 10:27 am

I'd like to add it to the bottom of the overview, I think that makes the most sense. Thank you very much for all the assistance.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 17, 2015 - 11:13 am

Well - of course - I don't have an understanding of your own HTML and PHP skills but we can get you started.

First off - if you are using the latest version of Simple:Press (actually 5.5.7 or 5.5.8) then create a new php file in the wp-content folder and name it 'sp-user-functions.php'. By placing this file there it ensures it is never over-written by us or any standard WP update.

If your version of SP is older then you will need to use the SP theme's 'spFunctions.php' file in the theme /templates folder. This will require you to create a child theme to save losing the code - unless you have already made one of course.

Add the following code:

add_filter('sph_ProfileFormBottom', 'myProfileButton', 999);
function myProfileButton($out) {
    $out.= '--- YOUR CODE HERE ---';
    return $out;
}

You can, of course, name this function whatever you prefer!

What this does is pass in the current HTML of the profile form. This then lets you append something - some HTML - and then pass it back to the form for display.

The tricky and unknown part to me, of course, is the content you want to display. If you use an anchor (a) tag with an href then if you give it a class of 'spButton' then it should format it as a button. I believe!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625