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

 Can't PM via profile
#
I tried to PM a member on my forum through their profile, but when I clicked the message icon, I got an error message. Hovering over the link, this is what shows up:

CODE
http://fota.jcink.net/%3Ca%20href=%22/?act=Msg&CODE=04&MID=1%22%20id=%22profile-pm%22%3ESend%20Message%3C/a%3E



I'm not sure how to fix this? It's a custom profile.
#
board link please? this looks like a case of a broken tag.

signature
email: admin@jcink.com :: blog: John C.
#
#
You're using CFS which isn't supported here, but I can tell you what's happening.

<a class='pm' title='PM' href='{%pm}'>

Will not work in CFS. This is because {%pm} itself is a hyperlink. That's why this is breaking.

Please follow our conversion guide and convert your profile over to the HTML Template system, and then this will be easily solved once that is completed. You only need to use the <!-- |pm| --> variable in our HTML Templates and this will work exactly as you want.

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

signature
email: admin@jcink.com :: blog: John C.
#
I think I might have converted it correctly, but it's still doing something weird:

http://prntscr.com/du2sok

And on the bottom of the home page:

[url=http://prntscr.com/du2tw8]

Even though it should look like the rest. And the board stats go all weird. But if I delete all of the CFS stuff from the wrappers, then everything else is stripped.

This post has been edited by Carmilla: Jan 10 2017, 08:48 PM
#
Ah, I only wanted you to convert your profile only at the moment for the purposes of this support thread. I'm not seeing anything wrong with the screenshot of the profile you provided other than the fields not showing up, but that is expected.

http://jcink.com/main/wiki/jfh-converting-...tomprofile.init

QUOTE
NOTE ON CUSTOM PROFILE FIELDS: Although most of your profile will transfer, the fields do not. You will need to reassign the field_# variables to match the ones exactly as shown in the Admin CP. Use the syntax described here to handle the fields.

signature
email: admin@jcink.com :: blog: John C.
#
John

At the top it says:
customProfile.init({ html: "

and at the bottom:
" });

Do I just delete that from the template?

Also, I fixed the fields not showing up, but now they're blank even though they've been filled out.

**Edit:

Since I changed the fields, I only just noticed that the tracker, plotter, and want ad buttons are missing from the profile.

This post has been edited by Carmilla: Jan 10 2017, 09:37 PM
#
Syntax is a bit off.

http://jcink.com/main/wiki/jfh-html-templates#custom_fields

<!-- |field#1| --> should be <!-- |field_1| -->

These are provided for you to copy and paste from the admin cp.

signature
email: admin@jcink.com :: blog: John C.
#
The age field seems to have switched with the gif field, and the plotter, tracker, and want ad buttons are still gone.
#
Update

On top of those aforementioned buttons being gone, I just noticed this:

http://prntscr.com/dul9x0
#
Post the contents of your HTML templates for that section.

signature
email: admin@jcink.com :: blog: John C.
#
This is the main profile template:

CODE
<div class='profile'><div class='userName <!-- |group| -->'><!-- |name| --></div><div class='icons'><a class='pm' title='PM' href='<!-- |pm| -->'><i class='fa fa-comments' aria-hidden='true'></i></a><a class='plotter' title='Plotter' href='<!-- |field_5| --><i class='fa fa-book' aria-hidden='true'></i></a><a class='tracker' title='Tracker' href='<!-- |field_4| --><i class='fa fa-tasks' aria-hidden='true'></i></a><a class='wantAd' title='Want Ad' href='<!-- |field_7| --><i class='fa fa-search' aria-hidden='true'></i></a></div><div class='userGroup'><!-- |group| --></div><div class='profile-left'><div class='profAvatar'><!-- |avatar| --></div></div><div class='profile-right'><div class='points'><div class='profTitle <!-- |group| -->'>Points</div><!-- |points| --></div><div class='birthplace'><div class='profTitle <!-- |group| -->'>Place of Birth</div><!-- |field_3| --></div><div class='parents'><div class='profTitle <!-- |group| -->'>Tale</div><!-- |field_6| --></div><div class='age'><div class='profTitle <!-- |group| -->'>Age</div><!-- |field_1| --></div><div class='adjective'><div class='profTitle <!-- |group| -->'>Adjective</div><!-- |field_2| --></div><div class='posts'><div class='profTitle <!-- |group| -->'>Posts</div><!-- |posts| --></div><div class='joined'><div class='profTitle <!-- |group| -->'>Joined</div><!-- |joined| --></div></div></div>
#
To fix the fields that don't match, start swapping the fields. You should be able to see what field_#'s go where by just viewing the fields in the Admin CP. They are simply mismatched in your template itself.

As for the plotter. This:

<a class='plotter' title='Plotter' href='<!-- |field_5| --><i class='fa fa-book' aria-hidden='true'></i></a>

Needs replaced with this:

<a class='plotter' title='Plotter' href='<!-- |field_5| -->'><i class='fa fa-book' aria-hidden='true'></i></a>

The part in bold is what broke it. Your HTML <a> tag was missing its closure there.

signature
email: admin@jcink.com :: blog: John C.
#
Thanks John, I think everything's back to normal now http://files.b1.jcink.com/html/emoticons/smile.gif
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