|
Post by dantelion on Apr 9, 2019 5:31:07 GMT
The same subboards name appears on the right side. All the Subboards say Milan Stretch despite them having different names. Not sure what is going on and it's late so it's probably an easy fix and I'm being a dunce but if anyone could figure it out for me it would be awesome. link
|
|
9 posts
bits
They/Them
6 things left
|
Post by Comatose on Apr 9, 2019 8:59:38 GMT
Would you mind posting what you have in your template for the forum row? It is difficult to tell what is wrong without seeing the raw arguments.
Also, instead of using script to hide the 'subforums:' text you can use '<!-- |subforums_list| --> ' instead of '<!-- |subforums| --> ' as it displays just the list without the flare.
|
|
|
Post by dantelion on Apr 9, 2019 11:34:42 GMT
Would you mind posting what you have in your template for the forum row? It is difficult to tell what is wrong without seeing the raw arguments. Also, instead of using script to hide the 'subforums:' text you can use '<!-- |subforums_list| --> ' instead of '<!-- |subforums| --> ' as it displays just the list without the flare. Thank you for that tip. Sorry for the late response I went to bed right afterwards so I could look at it with fresh eyes. <div class="forum" id="forum-<!-- |forum_id| -->">
<div class="graft1">
<div class="forum-name"><!-- |name| --></div>
<div class="forum-desc"><!-- |description| --></div>
</div>
<div class="graft2">
<div class="forum-stats">
<!-- |topics| --> TOPICS<br>
<!-- |replies| --> POSTS<br>
<!-- |last_topic| --><br>
<span style="text-transform:lowercase;">by</span> <!-- |last_poster| --><br>
<span style="text-transform:lowercase;">on</span> <!-- |last_post| -->
</div>
</div>
<div class="graft3">
<!-- |subforums_list| -->
</div>
</div>
<script>
replace_str = $('.subforums').html().replace(/SUBFORUMS:/gi,'JUMP TO');
$('.subforums').html(replace_str);
</script>
|
|
9 posts
bits
They/Them
6 things left
|
Post by Comatose on Apr 9, 2019 18:52:54 GMT
No worries, it was pretty late 
That looks fine to me and I can't seem to replicate the problem.
The only thing I can think of that it might be causing problems with it is the repeating javascript. If you absolutely need to have it, I'd suggest putting it in the wrapper rather than in the forum row. Otherwise, since it is trying to replace the 'subforum' text which changing the argument jcink looks at removed, it seems unnecessary at the moment.
Try removing it to see if that fixes the problem?
|
|
|
Post by dantelion on Apr 9, 2019 19:16:25 GMT
That fixed it!!!
Thank you <3
I just knew it had to be something simple lol.
|
|
9 posts
bits
They/Them
6 things left
|
Post by Comatose on Apr 9, 2019 19:23:17 GMT
Your welcome, glad to help 
|
|
|
Post by dantelion on Apr 9, 2019 21:29:30 GMT
It was only a matter of time before I found another problem lol. The 100x100 image doesn't show on the Main profile of a person. The field is set as text input and is field_13. mastermonster.jcink.net/index.php?showuser=1
<div id="main-profile">
<div class="profile1">
<span class="member-id"><i>n</i>°000<!-- |id| --></span> <!-- |name| -->
</div>
<div class="profile2">
<div class="profile-controls">
<a href="<!-- |pm| -->">message <!-- |name| --></a>
<a href="/index.php?act=Search&CODE=getalluser&mid=<!-- |id| -->&type=topics">find topics</a>
<a href="/index.php?act=Search&CODE=getalluser&mid=<!-- |id| -->">find posts</a>
<span class="profile-status">currently <!-- |status| --></span>
</div>
<div class="profile-overview">
<!-- CHANGE THE FIELD #s TO THE CORRESPONDING NUMBER -->
<div class="profile-over-field"><b>GROUP</b> <!-- |group| --></div>
<div class="profile-over-field"><b>AGE</b> <!-- |field_14| --></div>
<div class="profile-over-field"><b>POSTS</b> <!-- |posts| --></div>
<div class="profile-over-field"><b>Pokemon</b> <!-- |field_7| --></div>
<div class="profile-over-field"><b>Pokemon</b> <!-- |field_8| --></div>
<div class="profile-over-field"><b>Pokemon</b> <!-- |field_9| --></div>
<div class="profile-over-field"><b>Pokemon</b> <!-- |field_10| --></div>
<div class="profile-over-field"><b>Pokemon</b> <!-- |field_11| --></div>
<div class="profile-over-field"><b>Pokemon</b> <!-- |field_12| --></div>
</div>
<div class="profile-quote">
<!-- |field_1| -->
<span class="quote-author"><!-- |field_2| --></span>
</div>
</div>
<div class="profile3"><div style="width:200px;height:400px;background:url(<!-- |avatar_url| -->);background-size:cover;">
<div class="profile-icon">
<!-- |field_13| -->
</div></div>
</div>
</div>
I've also looked at the CSS but can't seem to find an issue there either.
.profile-icon {
width: 60px;
height: 60px;
background: white;
transform: rotate(-45deg);
transform-origin: top left;
position: relative;
top: 250px;
left: -54px;
border: 8px solid white;
overflow: hidden;
}
.profile-icon img {
transform: rotate(45deg);
width: 90px;
height: 90px;
transform-origin: top left;
position: relative;
top: -33px;
left: 33px;
}
|
|
298 posts
bits
no preference /o/
perhaps i am faint glimmer —
|
Post by k̾u̾r̾a̾ 💩 on Apr 9, 2019 21:44:16 GMT
wrap it up in an image tag like this: <img src="<!-- |field_13| -->">
|
|
|
Post by dantelion on Apr 9, 2019 21:51:12 GMT
Thank you so much ^^
|
|
|
Post by dantelion on Apr 16, 2019 20:34:41 GMT
Time for problem number three! Usernames are not showing up on posts. <script> $(".maintitle > .topic-desc").each(function(){ $(this).html($(this).html().replace(/,/g , '')); }); </script>
<div class="post-header"> <div class="author-name"> <a href='index.php?showuser=<!-- |id| -->'><!-- |name| --></a> <span class="permalink"><a href="<!-- |permalink| -->"><i class="far fa-clock"></i> <!-- |post_date| --></a> <!-- |mod_checkbox| --></span> </div> <div class="post-bar" id="pr-<!-- |g_id| -->"> <span class="post-field"><b></b> <!-- |field_1| --></span> <span class="post-field"><b></b> <!-- |field_2| --></span> </div> </div>
<div id="post-row"> <div class="miniprofile"><!-- |mini_profile| --></div> <div class="postmain"><a name='entry<!-- |pid| -->'><!-- |post| --></a></div> <div class="post-buttons"><!-- |edit_button| --> <!-- |quote_button| --> <!-- |delete_button| --> <!-- |report_button| --></div> </div> and .author-name { font-family: Crimson Text, serif; font-size: 21px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid #d2d2d2; padding: 0px 0px 0px 30px; }
|
|
9 posts
bits
They/Them
6 things left
|
Post by Comatose on Apr 16, 2019 21:31:11 GMT
The <!-- |name| --> indicator adds in the link to the profile already, so adding the herf with the id is redundant. Instead of filling out the "FIELD #" text, you just removed it leaving two empty bold tags. you should remove them or put text in them.
I'm not quite sure what the issue is other than those two in the code. The original works fine and the inspector shows that the code on your forum is quite different from what was posted here. It might be best to reset the html to what the original creator made to remedy the problem as it only looks like you wanted to remove the field name.
|
|
|
Post by dantelion on Apr 16, 2019 22:39:59 GMT
I managed to figure out the issue. I added user group colors and that seems to have broken the name view field. Looks like I'll have to figure out how to get it to display properly with usergroup colors.
Thanks for those two tips though.
|
|
|
Post by FINITE on Apr 16, 2019 22:47:07 GMT
When it comes to groups, make sure the prefix class/styling is using single quotes ( ' ) instead of double quotes ( " ).
That is probably what is breaking it when you add group colors since Jcink inserts it into a double quoted string without properly escaping anything.
(At least I think it was double quote; I'll double check when I get home.)
|
|
|
Post by dantelion on Apr 16, 2019 23:11:00 GMT
That's what it was thank you so much <3
|
|