Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. Damien Jay
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 10
    • Best 1
    • Groups 0

    Damien Jay

    @Damien Jay

    1
    Reputation
    2
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Damien Jay Unfollow Follow

    Best posts made by Damien Jay

    • RE: Overriding template in Persona theme

      So, I straight up stole some code from another template and it worked. Just to give credit where it's due and to give someone who eventually stumbles onto this thread some closure (as this seems like I'm probably not the only person that would want the thread title as part of the link)

      I ripped my code from here specifically: https://github.com/ItzMeDwii/nodebb-theme-azn-oxideold/blob/master/templates/partials/categories/lastpost.tpl So special shoutouts to https://github.com/ItzMeDwii/nodebb-theme-azn-oxideold

      What I did to make it work:

      I modified (using customizer) /partials/categories/lastpost.tpl from

      <div class="card" style="border-color: {../bgColor}">
      	{{{each ./posts}}}
      	<!-- IF @first -->
      	<div component="category/posts">
      		<p>
      			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
      			<a class="permalink" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">
      				<small class="timeago" title="{../timestampISO}"></small>
      			</a>
      		</p>
      		<div class="post-content">
      			{../content}
      		</div>
      	</div>
      	<!-- ENDIF @first -->
      	{{{end}}}
      
      	<!-- IF !../posts.length -->
      	<div component="category/posts">
      		<div class="post-content">
      			[[category:no_new_posts]]
      		</div>
      	</div>
      	<!-- ENDIF !../posts.length -->
      </div>
      
      

      To the following:

      <div class="card" style="border-color: {../bgColor}">
      	{{{each ./posts}}}
      	<!-- IF @first -->
      	<div component="category/posts">
      			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
      			<div class="title">
      			    <a href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">{../topic.title}</a>
      			    - <small class="timeago" title="{../timestampISO}"></small>
      			</div>
      		<div class="post-content">
      			{../content}
      		</div>
      	</div>
      	<!-- ENDIF @first -->
      	{{{end}}}
      
      	<!-- IF !../posts.length -->
      	<div component="category/posts">
      		<div class="post-content">
      			[[category:no_new_posts]]
      		</div>
      	</div>
      	<!-- ENDIF !../posts.length -->
      </div>
      
      

      The resulting markup looks like this:
      49341ed4-5200-481b-b620-f6d97bf88a79-image.png
      with "borderlands 3 LFG - 4 minutes ago" being a clickable link.

      Adding an override (appearance -> custom content) of

      .card .title{
          font-weight: 700;
      }
      

      Will give you a nicer bolding than what you see there, but you still may want some additional styling.

      I am not at all sure why topic.title wasn't working without being in its own div, but it's working now.

      Thanks,

      posted in Technical Support
      Damien Jay
      Damien Jay

    Latest posts made by Damien Jay

    • Modify skin css

      Hey there,

      Recently I've been working on my forum and I have been adding a lot of things to the overall look / feel of the forum and my overrides in the admin section are just becoming a bit too much. I've been looking to start moving these into the theme itself when possible, but it appears as though a lot of the overrides are controlled by the skin rather than the theme itself, and while I can put things into .less files and override with !important, I'd rather modify slate to have the correct values and not have to override them -- this ensures that things are rendered properly.

      Is there a way that I can access these skin files somewhere and build them properly?

      Thanks,

      posted in Technical Support
      Damien Jay
      Damien Jay
    • RE: Cover photo / Profile photo not changing on upload

      @oplik0 said in Cover photo / Profile photo not changing on upload:

      /assets/uploads/profile/*

      Cheers, thanks for the response,

      I was able to get around things by adding a custom path to page rules -> cache level -> bypass for https://secret-internet.club/assets/uploads/profile/ which seems to catch both the www and non www of the site.

      Thanks a lot for your assistance.

      posted in Technical Support
      Damien Jay
      Damien Jay
    • Cover photo / Profile photo not changing on upload

      Hey all,

      I have an issue which seems to relate to both browser AS WELL AS server side caching. Essentially the user uploads a new profile photo (or cover photo) they navigate to a different page and still see the profile photo they chose. When they navigate back to their profile the photo changes back to their original photo. When using a browser in incognito mode I am able to see that their profile picture never changed.

      I do not get back any form of failure / error to troubleshoot this issue. In fact I get back a 200 from the following url, the URL also returns the uploaded pic.

      https://<URL>/assets/uploads/profile/1-profileavatar.jpeg?1587402445550

      Any idea what might be happening here? Have tried restarting / rebuilding to solve to no avail.

      posted in Technical Support
      Damien Jay
      Damien Jay
    • Force group badge display for users

      Hey there,

      I'm using Persona theme and would like to force the display of badges (effectively removing the "no group" option from users), is this possible?

      Thanks,

      posted in Technical Support
      Damien Jay
      Damien Jay
    • RE: Overriding template in Persona theme

      So, I straight up stole some code from another template and it worked. Just to give credit where it's due and to give someone who eventually stumbles onto this thread some closure (as this seems like I'm probably not the only person that would want the thread title as part of the link)

      I ripped my code from here specifically: https://github.com/ItzMeDwii/nodebb-theme-azn-oxideold/blob/master/templates/partials/categories/lastpost.tpl So special shoutouts to https://github.com/ItzMeDwii/nodebb-theme-azn-oxideold

      What I did to make it work:

      I modified (using customizer) /partials/categories/lastpost.tpl from

      <div class="card" style="border-color: {../bgColor}">
      	{{{each ./posts}}}
      	<!-- IF @first -->
      	<div component="category/posts">
      		<p>
      			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
      			<a class="permalink" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">
      				<small class="timeago" title="{../timestampISO}"></small>
      			</a>
      		</p>
      		<div class="post-content">
      			{../content}
      		</div>
      	</div>
      	<!-- ENDIF @first -->
      	{{{end}}}
      
      	<!-- IF !../posts.length -->
      	<div component="category/posts">
      		<div class="post-content">
      			[[category:no_new_posts]]
      		</div>
      	</div>
      	<!-- ENDIF !../posts.length -->
      </div>
      
      

      To the following:

      <div class="card" style="border-color: {../bgColor}">
      	{{{each ./posts}}}
      	<!-- IF @first -->
      	<div component="category/posts">
      			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
      			<div class="title">
      			    <a href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">{../topic.title}</a>
      			    - <small class="timeago" title="{../timestampISO}"></small>
      			</div>
      		<div class="post-content">
      			{../content}
      		</div>
      	</div>
      	<!-- ENDIF @first -->
      	{{{end}}}
      
      	<!-- IF !../posts.length -->
      	<div component="category/posts">
      		<div class="post-content">
      			[[category:no_new_posts]]
      		</div>
      	</div>
      	<!-- ENDIF !../posts.length -->
      </div>
      
      

      The resulting markup looks like this:
      49341ed4-5200-481b-b620-f6d97bf88a79-image.png
      with "borderlands 3 LFG - 4 minutes ago" being a clickable link.

      Adding an override (appearance -> custom content) of

      .card .title{
          font-weight: 700;
      }
      

      Will give you a nicer bolding than what you see there, but you still may want some additional styling.

      I am not at all sure why topic.title wasn't working without being in its own div, but it's working now.

      Thanks,

      posted in Technical Support
      Damien Jay
      Damien Jay
    • RE: Overriding template in Persona theme

      @PitaJ If I mess with catagories.tpl directly I can see changes on the page -- but I cannot for the life of me seem to get the title to appear where the timestamp normally does. I tried {../title} and topic.title, teaser.topic.title -- restarting and rebuilding after each iteration to no avail....

      posted in Technical Support
      Damien Jay
      Damien Jay
    • RE: Overriding template in Persona theme

      @PitaJ said in Overriding template in Persona theme:

      did the success confirmation come up after clicking the build button in the customize plugin page?

      Yes it did. It said success, I rebuilt and restarted and it didn't seem to do anything. I'm not sure if {teaser.topic.title} is supported, but I was basing the availability of it off of this: https://github.com/NodeBB/nodebb-theme-persona/issues/408

      So I'm not really sure where to go from here...

      MadDevelop created this issue in NodeBB/nodebb-theme-persona

      closed Is there a way to get the topic title on the recent post? #408

      posted in Technical Support
      Damien Jay
      Damien Jay
    • RE: Overriding template in Persona theme

      @PitaJ Yes, it rebuilt the same as it was before.

      posted in Technical Support
      Damien Jay
      Damien Jay
    • RE: Overriding template in Persona theme

      I guess I'm a little confused here -- I've tried a few things and none of them seem to be panning out:

      5c588208-9f66-4cfc-9fbf-c0a76566b24a-image.png

      I have tried editing /partials/lastpost.tpl using customizer as follows and it didn't seem to do literally anything

      <p>
      			<a href="{config.relative_path}/user/{../user.userslug}">{buildAvatar(posts.user, "sm", true)}</a>
      			<a class="permalink" href="{config.relative_path}/topic/{../topic.slug}<!-- IF ../index -->/{../index}<!-- ENDIF ../index -->">
      				{teaser.topic.title} - <small class="timeago" title="{../timestampISO}"></small>
      			</a>
      		</p>
      

      What my understanding teaser.topic.title is the correct path to include the title and when I check the source it looks like

      <small class="timeago">
      

      Seems to be where the "about 10 hours ago" link is -- I'm not sure what I might be doing wrong here.

      posted in Technical Support
      Damien Jay
      Damien Jay
    • Overriding template in Persona theme

      Hello all,

      I'm pretty new to Nodebb and I'm just looking to override the default persona theme, specifically the following line in 'lastpost.tpl' which I understand to be a template partial of the last item posted to the categories page when preview is not disabled:

      I want to change the line:
      {teaser.topic.title} <small class="timeago" title="{../timestampISO}"></small>

      to

      {teaser.topic.title} - <small class="timeago" title="{../timestampISO}"></small>

      I have tried changing

      ./node_modules/nodebb-theme-persona/templates/partials/categories/lastpost.tpl

      And didn't want to fuck with the build files themselves as that seems like a good way to cause myself harm -- does anyone have any advice on how to make this minor theme change?

      Thanks,

      posted in Technical Support
      Damien Jay
      Damien Jay