Hmm... I've added a tutorial (see tutorials page). If you get an error paste it here and I'll work out what's going on (maybe tomorrow morning ... food delivery just arrived!!!). Sounds like you are editing the right file.
As discussed with @AlphaGolf, the hook isn't sending all the parametors correctly so the function is giving the error displayed, I removed all of the args in the first line apart from $html and the error disapeared.
I'm guessing you will need to poke around in the code so that all parametors are sent properly, or correct the tutorial?
The last two parameters, for reference, are the priority (default is 10) and then the number of parameters being passed.
That'll teach me for rushing a tutorial before the curry arrived. Ah, the admin guide was wrong before then wasn't it. Okay, +1 for wally award. Anyhow, check out the tutorial again, or the admin guide, they are now correct. Sorry....!
Of course, that was meant to be10,7, why did I suggest 10,1...? Sorry, my brain was completely out of order yesterday evening
As for your last issue, you don't specify which strings are not replaced, however I would suggest the general rule to put "My Things" before "Things" if you need a special treatment for the first one : the replacements will be applied sequencially in the function, so if "Things" is replaced first, when comes the turn of "My Things" it will not be found...
For "(My) Blog Posts", it's likely that I'll propose this as an option to the plugin, probably more convenient for the end user, along with a few more things I have in mind. Watch this space, kindly offered by Simon, lol
I just have one more question, Is there any way to stop a menu item displaying on OTHERS profile, and only on my own.
for example, I think (for me) having "news feed" on my friends profiles, in addition to "my activity" is a bit overkill. If I could make "my activity" display ONLY and "news feed" only on the logged in users profile, would be great..
i'm assuming its a hook, but I don't know what because im a massive noob...
If I may, I would add a test to check if a given string is empty before attempting to display it. That would serve both as a protection and a functionality, ie if "My Things" is empty, don't display this item, if "Things" is not empty, display it on others' pages....
I've gone with the checkboxes for two reasons. First was leaving empty to hide needed explanatory text when tried with my immediate testers (family, girlfriend, etc!) but the tick box was more obvious; and second (for the techies) it leaves the div in place in case it's needed via the filter in the future.
I've done the default items, will add Groups, Following (etc) for RC4.
I thought it would ease the integration of "external plugins" in the profile menu, but I'm just realizing that the hook will still exist anyway, so it's not a real issue.
You already have several options in WPS, which have the mention "leave blank for no-one", "0 to disable", "0 to ignore", so having one extra "leave empty to not display at own page" or "at others' page" wouldn't seem too surprising... And I don't see why an admin would need the div if he has decided not to display... But of course if it's done...
You are not permitted to reply on this forum. Login...