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

 Disappearing Profiles
#
So just recently I noticed that the profiles that typically show up when clicking on a members name are no longer there. Sometime they will appear for a split second off the right-hand side of the skin before vanishing.

I am fairly new to coding and such so if someone can help walk this newbie through things to check for, I would appreciate that. The profiles used to show up before but I am a little stumped as to why they are doing this now.

Site: http://tsdrp.jcink.net/

Example of user profile: http://tsdrp.jcink.net/index.php?showuser=1

Thanks in advance!

This post has been edited by Toastie: Apr 30 2018, 01:52 AM
PM
#
I have checked the forum and this is definitely happening because of the use of CFS/Custom Forum Structure 3rd party script. The profiles are disappearing due to an error in the script. It's a very common problem that can occur at random.

Please see here, you need to migrate your template to the HTML Template System, which will resolve the issue and should be more robust. If you need assistance with the migration we can help guide you. It is mostly just a series of copying and pasting.

https://jcink.com/main/wiki/jfh-converting-...-html-templates

signature
email: admin@jcink.com :: blog: John C.
#
Thank you so much! It looks like after reading some of what you linked I might actually need some guidance in the process. I made it up to the allocating part (which I am not 100% if I did it right) of the instructions and the rest looks a bit intimidating for a newbie like me. If you don't mind guiding me through what I need to plug in where that would be awesome.

This post has been edited by Toastie: Apr 30 2018, 02:12 AM
PM
#
In the main profile template, paste this, I compiled what you need to paste for you.

CODE
 <div id="new-profile">
<center><div class='cfp1 {%group}'><div class='cfp2'>{%name}</div><div class='cfp3'><table cellpadding='0' cellspacing='0'><tr valign='top'><td><div class='cfp4'><div class='cfp4a' style='background-image: url({%field#11})'></div></div><div class='cfp4b'><a href='{%field#5}'>application</a><p><a href='{%field#6}'>character development</a><p>{%pm}<p><a href='/index.php?act=Search&CODE=getalluser&mid={%id}'>view all posts</a><p><a href='/index.php?act=Search&CODE=getalluser&mid={%id}&type=topics'>view all topics</a></div></td><td><div class='cfp5'>{%field#4}</div><div class='cfp5a'><table cellpadding='0' cellspacing='0'><tr valign='middle'><td><div class='cfp5f'><span>{%posts}</span> posts</div></td><td><div class='cfp5g'><span>{%field#3}</span> years old</div></td></tr><tr valign='middle'><td><div class='cfp5f'>{%field#7}</div></td><td><div class='cfp5g'>{%field#8}</div></td></tr><tr valign='middle'><td><div class='cfp5f'>{%field#9}</div></td><td><div class='cfp5g'>{%field#10}</div></td></tr><tr valign='middle'><td><div class='cfp5f'>{%last-active}</div></td><td><div class='cfp5g'><span class='statuscrop'>{%status}</span></div></td></tr></table></div><table cellpadding='0' cellspacing='0'><tr valign='top'><td><div class='cfp5b'><img src='{%field#2}'></div></td><td><div class='cfp5c'><div class='cfp5d'>{%field#1}</div><div class='cfp5e'>{%field#13} <span>//</span> {%field#12}</div></div></td></tr></table></td><td><div class='cfp6'><div class='cfp6a' style='background-image: url(http://placehold.it/250x400.png)'>{%avatar}<div class='cfp6b'></div></div></div></td></tr></table></div></div></center>
 </div>


Now -- this is not going to look right after it's pasted and saved, but it's not hard to fix. In place of every {%field#(number here)}, you need to put the associated field variable that belongs there. Under Admin CP > Users and Groups > Custom Profile Fields the variable to copy and paste for each one is listed. I hope that makes sense.

signature
email: admin@jcink.com :: blog: John C.
#
great! I’ll try this after work and let you know how it turns out and if I need further instructions.
PM
#
No problem -- after you paste that, it should be pretty straight forward but I understand the system can be daunting. It allows a lot of control over the design of the templates though!

signature
email: admin@jcink.com :: blog: John C.
#
So just to be clear. I only need to just paste this one part and it should be good? I came back and the profiles are back without doing any of this yet (I work nights so just got back) but pasting this in the main profile/plugging in the right parts, will prevent any other random disappearances?

Also, this might sound extremely dumb but just wanted to make sure that I understand correctly. So basically after pasting it, I am wanting to plug in things as follows: ({%field#11}) is going to change into {%field#(<!-- |field_11| -->)} for example right?

This post has been edited by Toastie: May 1 2018, 12:24 AM
PM
#
QUOTE
Also, this might sound extremely dumb but just wanted to make sure that I understand correctly. So basically after pasting it, I am wanting to plug in things as follows: ({%field#11}) is going to change into {%field#(<!-- |field_11| -->)} for example right?


Not a dumb question at all. First, a bit of a syntax error. ({%field#11}) would be replaced with just <!-- |field_11| -->, not {%field#(<!-- |field_11| -->)}. But there's a catch.

The fields do not necessarily transfer like this. You will need to go to the custom profile fields section in Admin CP, and verify that the field numbers / variables you're assigning are what you expect them to be. The Admin CP will give them to you. The reason for this is that CFS is blind to the actual field # value in the Admin CP, while our system is not.

CFS generates those field numbers by counting in order what it can see, and that's it. So that means if you have any hidden fields for example, the count will be completely off. So ({%field#11}) into <!-- |field_11| -->, MIGHT work, in a perfect-case scenario where CFS can see all fields and there have never been any removed, and it's in the exact order that makes it happy. Otherwise, you'll just need to check to see what it's supposed to be.

signature
email: admin@jcink.com :: blog: John C.
#
Okay, thank you for that clarification. I might not be able to get to it tonight (been busy and work nights) but I'll probably try this out tomorrow and I'll let you guys know if I need further assistance. This should do the trick though. Thank you!
PM
#
OK, no problem, we'll keep this thread open in the meantime. http://files.b1.jcink.com/html/emoticons/smile.gif

signature
email: admin@jcink.com :: blog: John C.
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