Attention:

Support Rules and Guidelines
Before you post your support topic, please remember to:
  • Read the support forum rules.
  • Check the wiki and use search to see if your problem can be answered there first.
  • Link your board please, and make sure that the problem on your board is visible to guests or provide a test account.
  • Do not post Board Wrappers and CSS unless requested. With a board link, this is not necessary.
  • Be as descriptive as you can and use as many details as possible when describing your problem.
  • Please briefly mark any links to forums that may not be work-safe.
This will help ensure your support issue will be attended to in a quick and efficient manner.

  Add ReplyNew TopicNew Poll

 Change join date
#
I wonder if anybody knows a way to (just cosmetically) change the join date that shows on the mini profile for individual users? If I bring my ZB community to Jcink, it would be nice to adjust their original ZB join dates accordingly with a script if possible! http://files.b1.jcink.com/html/emoticons/smile.gif
PM
#
In the mini profile, yes, it's possible. So let's say you want to change the join date of only member 1, this is the conditional you could use

CODE
Joined: <script> if("<!-- |id| -->" == "1") { document.write('01/27/2008'); } else { document.write('<!-- |member_joined| -->'); }</script>


This little script is basically saying if the member's id number is 1 (root admin) print a different date, else print the normal join date stored in the database if it's everyone else.

signature
email: admin@jcink.com :: blog: John C.
#
QUOTE (John @ May 21 2018, 08:20 PM)
In the mini profile, yes, it's possible. So let's say you want to change the join date of only member 1, this is the conditional you could use

CODE
Joined: <script> if("<!-- |id| -->" == "1") { document.write('01/27/2008'); } else { document.write('<!-- |member_joined| -->'); }</script>


This little script is basically saying if the member's id number is 1 (root admin) print a different date, else print the normal join date stored in the database if it's everyone else.


Just to clarify, the bit I edit is the "01/27/2008" to the date I want to display?
PM
#
Yessir.
Just make sure not to remove the quotes.

signature
Oh noes the snobolds!


user posted image https://discord.gg/A5DmErU (Community ZetaBoards Discord for updates on the ZB transfers.) user posted image
PM
#
Thought so, I copied that without making any edits at all and nothing changed http://files.b1.jcink.com/html/emoticons/unsure.gif
PM
#
Where did you paste it? That code goes in Mini Profile templates, sorry I did not mention that.

signature
email: admin@jcink.com :: blog: John C.
#
Hi John that did it http://files.b1.jcink.com/html/emoticons/smile.gif but it removed the rest of the mini profile now it only shows the modified date. Am I missing something? Sorry new to this whole html templates thing http://files.b1.jcink.com/html/emoticons/laugh.gif

This post has been edited by spike: May 22 2018, 02:17 PM
PM
#
Yes, it needed to be placed inline with the current mp but it sounds like you're using the default. What's your board link so I can see what your current mini profile is to verify?

signature
email: admin@jcink.com :: blog: John C.
#
Yes I'm using the default one, I plan to use a custom mini profile later so I'll see how I get on with that now I see I did it wrong from the start haha I'll let you know if I have any issues http://files.b1.jcink.com/html/emoticons/smile.gif

This post has been edited by spike: May 25 2018, 08:31 PM
PM
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Share this topic:
« Next Oldest | General Support | Next Newest »

Options Add ReplyNew TopicNew Poll