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.

  ClosedNew TopicNew Poll

 Help convert CFS! Please! [SOLVED]
#
Hi, so I'm using this guide to convert my forum from cfs to html. I'm having a small issue right now. Where it says "Null - Null" on my skin is where it should have the links for "Member Name" and "Last Click" for online activity. It works fine when I go back to customStats.init, but not in the html structure. Does anyone know how to fix this?

CODE

customStats.init({
html: "<center><div class='cfstatslinks'><a href='/index.php?act=Stats&CODE=leaders'>the mods.</a>&nbsp;&nbsp;<a href='/index.php?act=Search&CODE=getactive'>active topics.</a>&nbsp;&nbsp;<a href='/index.php?act=Stats'>today's top 10.</a>&nbsp;&nbsp;<a href='/index.php?act=Members&max_results=10&sort_key=posts&sort_order=desc'>overall top 10.</a></div><div class='cfstats'><div class='cfstats1'><div class='cfstats2'><table cellpadding='0' cellspacing='0'><tr valign='middle'><td><div class='cfstats2a'><span>{%stats#members}</span> members</div><div class='cfstats2b'><span>{%stats#posts}</span> posts</div><div class='cfstats2a'><span>{%users#registered}</span> members. <span>{%users#guests}</span> guests. <span>{%users#anonymous}</span> ghosts</div><div class='cfstats2b' style='margin: 0px 15px 5px 0px;'>{%sort#activity} • {%sort#username}</div><div class='cfstats2c'>#jpbrp</div></td><td><div class='cfstats3'><div class='cfstats3a'><span>{%users}</span> online now</div><div class='cfstats3b'>{%users#list}</div></div></td><td><div class='cfstats3'><div class='cfstats3b'>{%online-today#list}</div><div class='cfstats3c'><span>{%online-today#total}</span> online today</div></div></td><td><div class='cfstats4'>{%stats#newest}</div><div class='cfstats4a'>is new around here.</div></td></tr></table></div></div></div></center>"
});


and I converted that to

CODE
<div id="boardstats" class="tableborder">
  <div class="maintitle">Board Statistics</div>
  <!-- The markup generated by Custom Structure begins here. -->
  <div id="new-statistics">
      <center><div class='cfstatslinks'><a href='/index.php?act=Stats&CODE=leaders'>the mods.</a>&nbsp;&nbsp;<a href='/index.php?act=Search&CODE=getactive'>active topics.</a>&nbsp;&nbsp;<a href='/index.php?act=Stats'>today's top 10.</a>&nbsp;&nbsp;<a href='/index.php?act=Members&max_results=10&sort_key=posts&sort_order=desc'>overall top 10.</a></div><div class='cfstats'><div class='cfstats1'><div class='cfstats2'><table cellpadding='0' cellspacing='0'><tr valign='middle'><td><div class='cfstats2a'><span>{%stats#members}</span> members</div><div class='cfstats2b'><span>{%stats#posts}</span> posts</div><div class='cfstats2a'><span>{%users#registered}</span> members. <span>{%users#guests}</span> guests. <span>{%users#anonymous}</span> ghosts</div><div class='cfstats2b' style='margin: 0px 15px 5px 0px;'>{%sort#activity} • {%sort#username}</div><div class='cfstats2c'>#jpbrp</div></td><td><div class='cfstats3'><div class='cfstats3a'><span>{%users}</span> online now</div><div class='cfstats3b'>{%users#list}</div></div></td><td><div class='cfstats3'><div class='cfstats3b'>{%online-today#list}</div><div class='cfstats3c'><span>{%online-today#total}</span> online today</div></div></td><td><div class='cfstats4'>{%stats#newest}</div><div class='cfstats4a'>is new around here.</div></td></tr></table></div></div></div></center>
  </div>
  <!-- The markup generated by Custom Structure ends here. -->
</div>
PM
#
Last click code:

CODE
<a href='index.php?act=Online&amp;CODE=listall&amp;sort_key=click'>Last Click</a>


Member name code:

CODE
<a href='index.php?act=Online&amp;CODE=listall&amp;sort_key=name&amp;sort_order=asc&amp;show_mem=reg'>Member Name</a></span>


Replace the nulls with those

signature
email: admin@jcink.com :: blog: John C.
#
Okay, lastly I somehow royally screwed up the forum topic rows/header. LINK

This was the original code when it looked ok...
CODE

customTopics.init({
  // Function begins here
  html: function() {
      // Declare the variable for output purposes
      var output = '';
      if(this.vals['{%pagination}']) {
          // If it exists, concatenate it to our output variable
          output += '<center><div class="cftopic"><table cellpadding="0" cellspacing="0"><tr valign="middle"><td><div class="cftopic1">{%folder}&nbsp;&nbsp;&nbsp;{%title}</div><div class="cftopic1a">{%description} // © {%starter}</div></td><td><div class="cftopic2">{%pagination}</div><div class="cftopic2a"><b>{%replies}</b> replies // <b>{%views}</b> views</div></td><td><div class="cftopic3">last post: {%date}</div><div class="cftopic3a">by: {%author}</div></td><td>{%checkbox}</td></tr></table></div></center>';
}
      else {
          // If it does not, go ahead and put something else in its place
          output += '<center><div class="cftopic"><table cellpadding="0" cellspacing="0"><tr valign="middle"><td><div class="cftopic1">{%folder}&nbsp;&nbsp;&nbsp;{%title}</div><div class="cftopic1a">{%description} // © {%starter}</div></td><td><div class="cftopic2a"><b>{%replies}</b> replies // <b>{%views}</b> views</div></td><td><div class="cftopic3">last post: {%date}</div><div class="cftopic3a">by: {%author}</div></td><td>{%checkbox}</td></tr></table></div></center>';
}
      // You can add things to output after any one of these if/else blocks, too
      output += '';
      // Finally, return our output variable
      return output;
  }
});


and I changed it to the code below in the topic rows... Perhaps you'll have an easier time finding the problem? I did add in the macros and the other thing too.

CODE
<div class="topic-row <!-- |type| -->-topic">
  function() {
      // Declare the variable for output purposes
      var output = '';
      if(this.vals['<!-- |pages| -->']) {
          // If it exists, concatenate it to our output variable
          output += '<center><div class="cftopic"><table cellpadding="0" cellspacing="0"><tr valign="middle"><td><div class="cftopic1"><!-- |macro_img| -->&nbsp;&nbsp;&nbsp;<!-- |topic| --></div><div class="cftopic1a"><!-- |topic_desc| --> // © <!-- |starter| --></div></td><td><div class="cftopic2"><!-- |pages| --></div><div class="cftopic2a"><b><!-- |replies| --></b> replies // <b><!-- |views| --></b> views</div></td><td><div class="cftopic3">last post: <!-- |last_post| --></div><div class="cftopic3a">by: <!-- |last_poster| --></div></td><td><!-- |mod_checkbox| --></td></tr></table></div></center>';
}
      else {
          // If it does not, go ahead and put something else in its place
          output += '<center><div class="cftopic"><table cellpadding="0" cellspacing="0"><tr valign="middle"><td><div class="cftopic1"><!-- |macro_img| -->&nbsp;&nbsp;&nbsp;<!-- |topic| --></div><div class="cftopic1a"><!-- |topic_desc| --> // © <!-- |starter| --></div></td><td><div class="cftopic2a"><b><!-- |replies| --></b> replies // <b><!-- |views| --></b> views</div></td><td><div class="cftopic3">last post: <!-- |last_post| --></div><div class="cftopic3a">by: <!-- |last_poster| --></div></td><td><!-- |mod_checkbox| --></td></tr></table></div></center>';
}
      // You can add things to output after any one of these if/else blocks, too
      output += '';
      // Finally, return our output variable
      return output;
  }
</div>


Nevermind, I figured it out. http://files.b1.jcink.com/html/emoticons/tongue.gif

This post has been edited by Kazai: Jun 17 2017, 08:43 PM
PM
#
This topic has been solved. If you need anymore help please post a new thread. Thanks for choosing Jcink services.

signature
email: admin@jcink.com :: blog: John C.
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Share this topic:
« Next Oldest | General Support | Next Newest »

Options ClosedNew TopicNew Poll