Jump to content
WebFlake

Editing One Users Profile Page


KareraHekku

Recommended Posts

This will display only when phrase / word is in URL, so set it to the members URL like mine below:

if(window.location.href.indexOf("1-titan") !== -1) {
    JAVASCRIPT
}

This will display based on member group:

{{if \ IPS \ Member :: loggedIn () -> member_group_id === ID}}
	your code
{{endif}}

This will display based on member:

{{if \ IPS \ Member :: loggedIn () -> member_id === ID}}
	your code
{{endif}}

 

  • Like 1
Link to comment
Share on other sites

33 minutes ago, Music Case said:

This will display only when phrase / word is in URL, so set it to the members URL like mine below:


if(window.location.href.indexOf("1-titan") !== -1) {
    JAVASCRIPT
}

This will display based on member group:


{{if \ IPS \ Member :: loggedIn () -> member_group_id === ID}}
	your code
{{endif}}

This will display based on member:


{{if \ IPS \ Member :: loggedIn () -> member_id === ID}}
	your code
{{endif}}

 


Thank you for the help!
I've been trying the top code you provided in our Profile Template
But it just seems to be placing the code above the Header on the Front end.

Is there something I'm doing wrong?
Or something I need to add in order to get it to work on the Profile Template?
Or maybe I'm pasting it in the wrong place?

I pasted it directly below this bit of code.

{{if $member->photo}}
{{\IPS\Output::i()->metaTags['og:image'] = $member->photo;}}
{{endif}}

Link to comment
Share on other sites

LOL, it's silly but this

 

<script type="text/javascript" src="https://panzi.github.io/Browser-Ponies/basecfg.js" id="browser-ponies-config"></script><script type="text/javascript" src="https://panzi.github.io/Browser-Ponies/browserponies.js" id="browser-ponies-script"></script><script type="text/javascript">/* <![CDATA[ */ (function (cfg) {BrowserPonies.setBaseUrl(cfg.baseurl);BrowserPonies.loadConfig(BrowserPoniesBaseConfig);BrowserPonies.loadConfig(cfg);})({"baseurl":"https://panzi.github.io/Browser-Ponies/","fadeDuration":500,"volume":1,"fps":25,"speed":3,"audioEnabled":false,"dontSpeak":true,"showFps":false,"showLoadProgress":false,"speakProbability":0.1,"spawn":{"rainbow dash":1},"autostart":true}); /* ]]> */</script>

 

Link to comment
Share on other sites

2 minutes ago, Music Case said:

Sorry it blocked me from answering the question, I think webflake thinks i'm trying to execute the code.... So here's a screenshot of my solution.

image.thumb.png.b2c5f83a3bc390e4044c672e615070dd.png 

I hope this helps, below is the page i got when i tried answering it.

image.thumb.png.684764667992acc5985647f6898fdcef.png


Oh I'm so sorry man!
If I'd know it was causing you trouble I would have just asked you to Message it to me.
But thank you for the help! I'll try it out now!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...