inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Jan 27, 2017 12:49:28 GMT -8
this is about a template code to make a post in a thread sticky to the top support.proboards.com/thread/607375/keep-post-top-thread?page=1&scrollTo=6895161www.cute.boards.netbut the template code does not work, on both themes i got on the default theme i am using now it makes the post i want to sticky disappear and on the breathe by eli theme that is still online too for people to use, it makes all posts disappear in a thread Ulises - he told me to ask help on the forum instead as i think he said he was busy lately so yeah, i hope someone can help me asap because this is something that is important for the forum thank you edit: tested it on default theme of proboards does not seem to work on that as well so something is not right with the template or i am missing something here also, the person who coded my current theme, she does not know how to fix this and make it work
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Jan 29, 2017 6:52:13 GMT -8
am i allowed to bump this? i got no clue i tried to look it up in the rules but i couldn't find rules for this board....
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jan 29, 2017 11:17:53 GMT -8
am i allowed to bump this? i got no clue i tried to look it up in the rules but i couldn't find rules for this board.... You can bump every 24 hours. I'll try to test this out at some point later today (after work) if no one else jumps in to help you out. So Pebbles , After following the trail of threads to finally get to the original instructions, which took an hour btw (ha ha ..kidding), I put it on my test site and it works fine. Just a very stupid question but I see you listed what you tried and you didn't say you edited the first post that you want stickied and when you edited it, you put the word "sticky" in the line where is asks the reason for editing. That's the key to getting it to work. Sorry, if you did indeed do that. I did notice if you go back to edit the first post after you have it working you have to re-enter "sticky" and it doesn't seem to work again until you add another post at the end but maybe a hard refresh would have made it work. Didn't try that. Might fiddle with it some more.
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Jan 30, 2017 4:28:03 GMT -8
am i allowed to bump this? i got no clue i tried to look it up in the rules but i couldn't find rules for this board.... You can bump every 24 hours. I'll try to test this out at some point later today (after work) if no one else jumps in to help you out. So Pebbles , After following the trail of threads to finally get to the original instructions, which took an hour btw (ha ha ..kidding), I put it on my test site and it works fine. Just a very stupid question but I see you listed what you tried and you didn't say you edited the first post that you want stickied and when you edited it, you put the word "sticky" in the line where is asks the reason for editing. That's the key to getting it to work. Sorry, if you did indeed do that. I did notice if you go back to edit the first post after you have it working you have to re-enter "sticky" and it doesn't seem to work again until you add another post at the end but maybe a hard refresh would have made it work. Didn't try that. Might fiddle with it some more. thanks for helping me out here i have done that, put the word sticky in the edit reason and then after that i see the post in the threads disappears and its not on the top as its suppose to be i have refreshed the page couple times and nothing... so apparently i am doing something else wrong? this is the only code i need for this right? and it needs to be placed in threads>post list template, correct? {foreach $[post]}
{if $[post.thread.first_post.edited.reason] == "sticky"}
{if $[post.index] == 0}
<tr id="$[post.thread.first_post.content_id]" class="$[post.thread.first_post.content_class]{if $[post.thread.first_post.even]} even{/if}{if $[viewing_recent_posts]} recent{/if} first-post">
<td class="$[post.thread.first_post.unblocked_class]">
<table role="grid">
<tr>
<td class="left-panel" rowspan="2">
$[post.thread.first_post.created_by.miniprofile]
</td>
<td class="content">
<article>
<div class="content-head ui-helper-clearfix">
<div class="info">
$[post.thread.first_post.thread]
<span class="date">$[post.thread.first_post.created_on]</span>
{if $[post.thread.first_post.how_posted]}
<span class="post-method">via $[post.thread.first_post.how_posted]</span>
{/if}
$[post.thread.first_post.likes]
$[post.edited.reason]
</div>
<div class="controls">
$[post.thread.first_post.quote_button]
$[post.thread.first_post.edit_button]
$[post.thread.first_post.likes.button]
$[post.thread.first_post.select_options]
</div>
</div>
<h3 class="title aria-hidden">Post by $[post.thread.first_post.created_by.name] on $[post.thread.first_post.created_on]</h3>
<div class="message">$[post.thread.first_post.message]</div>
</article>
</td>
</tr>
<tr>
<td class="foot">
{if $[post.thread.first_post.edited]}
<div class="edited_by"><span class="italic">Last Edit:</span> $[post.thread.first_post.edited.date] by $[post.thread.first_post.edited.by_user]{if $[post.thread.first_post.edited.reason]}: $[post.thread.first_post.edited.reason]{/if}</div>
{/if}
{if $[post.thread.first_post.created_by.signature]}
<div class="signature">$[post.thread.first_post.created_by.signature]</div>
{/if}
</td>
</tr>
</table>
</td>
{if $[post.thread.first_post.is_blocked]}
<td class="$[post.thread.first_post.blocked_class] content center">
<div class="message note pad-bottom">This post is hidden</div>
$[post.thread.first_post.display_blocked_post_button]
</td>
{/if}
</tr>
{/if}
{/if}
{/foreach}
{foreach $[post]}
{if $[post.edited.reason] != "sticky"}
<tr id="$[post.content_id]" class="$[post.content_class]{if $[post.even]} even{/if}{if $[viewing_recent_posts]} recent{/if}">
<td class="$[post.unblocked_class]">
<table role="grid">
<tr>
<td class="left-panel" rowspan="2">
$[post.created_by.miniprofile]
</td>
<td class="content">
<article>
<div class="content-head ui-helper-clearfix">
<div class="info">
$[post.thread]
<span class="date">$[post.created_on]</span>
{if $[post.how_posted]}
<span class="post-method">via $[post.how_posted]</span>
{/if}
$[post.likes]
</div>
<div class="controls">
$[post.quote_button]
$[post.edit_button]
$[post.likes.button]
$[post.select_options]
</div>
</div>
<h3 class="title aria-hidden">Post by $[post.created_by.name] on $[post.created_on]</h3>
<div class="message">$[post.message]</div>
</article>
</td>
</tr>
<tr>
<td class="foot">
{if $[post.edited]}
<div class="edited_by"><span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if}</div>
{/if}
{if $[post.created_by.signature]}
<div class="signature">$[post.created_by.signature]</div>
{/if}
</td>
</tr>
</table>
</td>
{if $[post.is_blocked]}
<td class="$[post.blocked_class] content center">
<div class="message note pad-bottom">This post is hidden</div>
$[post.display_blocked_post_button]
</td>
{/if}
</tr>
{/if}
{/foreach}
{if !$[post]}
<tr class="last"><td class="last center" colspan="1">No posts were found.</td></tr>
{/if}
if thats all that needs to be done, then what the heck is going on lol? xD also, if thats the only code that i need to make this work, what exactly is different from this than the default post list template? what exact parts have been added that should make this work? i mean i see parts where it says sticky but there must be more but its all very confusing for me with such little coding knowledge >_> maybe if somehow that can be worked out, what exact parts have been added to the post list template to make this happening, then what if i add those to my existing post list template of the custom theme that got made for me recently?
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jan 31, 2017 0:04:18 GMT -8
Pebbles , I used the one by David Clark but when I went to that thread today and first clicked on page 1 and then to page 2 it didn't work. If I click directly on the 2 it works so there are some issues, after-all. Refreshing makes it appear and re-reading Ulises post, he mentioned that. However, I just now used this one: support.proboards.com/thread/607375/keep-post-top-thread?page=1&scrollTo=6895161 and it does work perfect except on the first page, the first post has "stickied" up by the date (circled in red) but that might have been intentional? At least Page 2 doesn't have it. Also this one works for guests as well. Page 1 Page 2 I also just now put what you pasted in your post on my test site, just in case something got messed up, and it works fine. Just to be clear, the code you posted is all you have in the post list template, correct? You didn't happen to try David's which is added to the thread template and forget to reset to default, did you? Just trying to cover all bases but yes, the one you posted is all you needed plus adding sticky in the reason for edit. (here is my test site ) Have you tried disabling plugin's to see if something you have there is making it not work? If that fails, and Ulises is still busy, I might try putting the breathe theme on and see if I get the same as you. It's hard to fix something when it's working perfectly on your test site. I really like this code, btw. After we get your issue fixed, I want to see if I can change that first post to be a slightly different color or something to show it is the first post from the first page. Just talking out loud here, so to speak.
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Jan 31, 2017 14:36:01 GMT -8
I also just now put what you pasted in your post on my test site, just in case something got messed up, and it works fine. Just to be clear, the code you posted is all you have in the post list template, correct? You didn't happen to try David's which is added to the thread template and forget to reset to default, did you? Just trying to cover all bases but yes, the one you posted is all you needed plus adding sticky in the reason for edit. (here is my test site ) Have you tried disabling plugin's to see if something you have there is making it not work? If that fails, and Ulises is still busy, I might try putting the breathe theme on and see if I get the same as you. It's hard to fix something when it's working perfectly on your test site. i swear to god, im getting upset with this now, the fact it works for everyone else but me and i am doing exactly what gets said in the threads HOW IS THIS NOT WORKING FOR ME dfkjgndjkfgndkfjgdkfg.... lol had to vent , i am sorry i have tested this on a test forum with default theme tried uli his code - not working tried david his way - not working made sure to reset to default the other template when editing the other and vice versa the only two plugins on the test site is the scavenger hunt and yootil unchecked both and still not working i keep refreshing... still nothing the code uli posted for post list template makes my stuff disappear and the david one does not but it does not sticky anything seriously i am getting frustrated, not with you obviously, your angel for wanting to help me <3 but with this not working for me and just me apparently now in this situation its normal to think its me and im doing something wrong but honestly im 99% sure i am not, i read the stuff and did what it says i mean... the one uli posted, its such a simple process, how can anyone mess that up its one code, one template i have not tried brian his answer but is it worth it , i thought his way is going to effect all threads? and thats not what i want i only want specific threads this to be working on also, not sure if his somewhat older code is still any good for V5? not sure if version 5 was already there when that got posted how is it we both are on a proboards forum with the default theme and codes work for you and not for me WHAT IS GOING ON T____T
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jan 31, 2017 14:46:34 GMT -8
I also just now put what you pasted in your post on my test site, just in case something got messed up, and it works fine. Just to be clear, the code you posted is all you have in the post list template, correct? You didn't happen to try David's which is added to the thread template and forget to reset to default, did you? Just trying to cover all bases but yes, the one you posted is all you needed plus adding sticky in the reason for edit. (here is my test site ) Have you tried disabling plugin's to see if something you have there is making it not work? If that fails, and Ulises is still busy, I might try putting the breathe theme on and see if I get the same as you. It's hard to fix something when it's working perfectly on your test site. i swear to god, im getting upset with this now, the fact it works for everyone else but me and i am doing exactly what gets said in the threads HOW IS THIS NOT WORKING FOR ME dfkjgndjkfgndkfjgdkfg.... lol had to vent , i am sorry i have tested this on a test forum with default theme tried uli his code - not working tried david his way - not working made sure to reset to default the other template when editing the other and vice versa the only two plugins on the test site is the scavenger hunt and yootil unchecked both and still not working i keep refreshing... still nothing the code uli posted for post list template makes my stuff disappear and the david one does not but it does not sticky anything seriously i am getting frustrated, not with you obviously, your angel for wanting to help me <3 but with this not working for me and just me apparently now in this situation its normal to think its me and im doing something wrong but honestly im 99% sure i am not, i read the stuff and did what it says i mean... the one uli posted, its such a simple process, how can anyone mess that up its one code, one template i have not tried brian his answer but is it worth it , i thought his way is going to effect all threads? and thats not what i want i only want specific threads this to be working on also, not sure if his somewhat older code is still any good for V5? not sure if version 5 was already there when that got posted how is it we both are on a proboards forum with the default theme and codes work for you and not for me WHAT IS GOING ON T____T What browser are you using? I didn't cross check across all the main browsers. I'm using Chrome but did check in FF too. Did you check my test site and was it working for you there? I'm also curious if you have tried it on a different site. Like a test site? In case there is just something funky with that particular site. (long shot there.) I'm really not sure what to tell you so it may take a red name to be able to go into your coding stuff to take a look.
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Jan 31, 2017 14:51:39 GMT -8
What browser are you using? I didn't cross check across all the main browsers. I'm using Chrome but did check in FF too. Did you check my test site and was it working for you there? I'm also curious if you have tried it on a different site. Like a test site? In case there is just something funky with that particular site. (long shot there.) I'm really not sure what to tell you so it may take a red name to be able to go into your coding stuff to take a look. i am using chrome and i looked at yours and it seem to work on yours just fine, i see the sticky post and stuff i am typing the word sticky and we both use the same browser how is this even possible? omg lol i tested it on this test site i made a while ago and i tested it on my cute forum too uli code keeps removing posts when i type sticky in the edit reason and the david one doesnt work either so beats me what the heck is going on god its super frustrating because i need this badly, if i didnt needed this code badly to work, i wouldnt care so much and i wouldnt get upset lol >_> but i am kinda getting upset because now im just thinking, IT MUST BE ME you know but i tried it couple times and i am not super dumb so i would believe i am doing everything correctly, so im like..... wtf you know T_____T anyways thanks again for helping , i hope this can be resolved somehow - cries in emo corner - lol
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Jan 31, 2017 20:08:35 GMT -8
What browser are you using? I didn't cross check across all the main browsers. I'm using Chrome but did check in FF too. Did you check my test site and was it working for you there? I'm also curious if you have tried it on a different site. Like a test site? In case there is just something funky with that particular site. (long shot there.) I'm really not sure what to tell you so it may take a red name to be able to go into your coding stuff to take a look. i am using chrome and i looked at yours and it seem to work on yours just fine, i see the sticky post and stuff i am typing the word sticky and we both use the same browser how is this even possible? omg lol i tested it on this test site i made a while ago and i tested it on my cute forum too uli code keeps removing posts when i type sticky in the edit reason and the david one doesnt work either so beats me what the heck is going on god its super frustrating because i need this badly, if i didnt needed this code badly to work, i wouldnt care so much and i wouldnt get upset lol >_> but i am kinda getting upset because now im just thinking, IT MUST BE ME you know but i tried it couple times and i am not super dumb so i would believe i am doing everything correctly, so im like..... wtf you know T_____T anyways thanks again for helping , i hope this can be resolved somehow - cries in emo corner - lolOh don't cry. Someone will come to help. I might wait a day and then tag Ulises and hope he isn't too busy to take a look. I totally love this code and I understand why you want this to work and are frustrated. I've been in the same boat as you before. I also know you are a smart cookie so don't think it is you. It just has to be something neither of us are thinking about, although I don't know what that would be. But you said, "uli code keeps removing posts when i type sticky in the edit reason". Can you elaborate? Like is is always the same posts that disappear. LIke is it the one that should be at the top of the page otherwise? This might be a clue as to why it's not working or maybe I just didn't notice any of my post disappearing. Anyway, more detail on that bit might be helpful.
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Feb 1, 2017 0:12:46 GMT -8
Oh don't cry. Someone will come to help. I might wait a day and then tag Ulises and hope he isn't too busy to take a look. I totally love this code and I understand why you want this to work and are frustrated. I've been in the same boat as you before. I also know you are a smart cookie so don't think it is you. It just has to be something neither of us are thinking about, although I don't know what that would be. But you said, "uli code keeps removing posts when i type sticky in the edit reason". Can you elaborate? Like is is always the same posts that disappear. LIke is it the one that should be at the top of the page otherwise? This might be a clue as to why it's not working or maybe I just didn't notice any of my post disappearing. Anyway, more detail on that bit might be helpful. thanks for your kind words <3 and yes it is the post thats suppose to sticky that keeps getting ''removed'' when i do it its just gone after i edit it with word sticky not exactly whats suppose to happen lol .... this is just extremely weird, you do the same code on a default theme like me and for you it works? what , is it because im on a mac or something? i doubt thats the problem lol and earlier i was thinking, is it because it needs to be Sticky and not sticky but i see the code its not with a cap S so thats not the problem either ulises asked me before to give him a duplicate file of the theme i am using to figure it out but does that even matter now if it doesn't even work on my screen on another test one thats using the default theme?
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Feb 1, 2017 19:31:41 GMT -8
Oh don't cry. Someone will come to help. I might wait a day and then tag Ulises and hope he isn't too busy to take a look. I totally love this code and I understand why you want this to work and are frustrated. I've been in the same boat as you before. I also know you are a smart cookie so don't think it is you. It just has to be something neither of us are thinking about, although I don't know what that would be. But you said, "uli code keeps removing posts when i type sticky in the edit reason". Can you elaborate? Like is is always the same posts that disappear. LIke is it the one that should be at the top of the page otherwise? This might be a clue as to why it's not working or maybe I just didn't notice any of my post disappearing. Anyway, more detail on that bit might be helpful. thanks for your kind words <3 and yes it is the post thats suppose to sticky that keeps getting ''removed'' when i do it its just gone after i edit it with word sticky not exactly whats suppose to happen lol .... this is just extremely weird, you do the same code on a default theme like me and for you it works? what , is it because im on a mac or something? i doubt thats the problem lol and earlier i was thinking, is it because it needs to be Sticky and not sticky but i see the code its not with a cap S so thats not the problem either ulises asked me before to give him a duplicate file of the theme i am using to figure it out but does that even matter now if it doesn't even work on my screen on another test one thats using the default theme? Well, it can't be your mac because you said it seems to work right on my test site, although I haven't checked to see if any posts are removed on my test site. I'll do that before I go offline for the night. Oh, you really didn't elaborate on the posts it removes. One, more than one? Where in the sequence of posts?
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Feb 2, 2017 12:06:16 GMT -8
thanks for your kind words <3 and yes it is the post thats suppose to sticky that keeps getting ''removed'' when i do it its just gone after i edit it with word sticky not exactly whats suppose to happen lol .... this is just extremely weird, you do the same code on a default theme like me and for you it works? what , is it because im on a mac or something? i doubt thats the problem lol and earlier i was thinking, is it because it needs to be Sticky and not sticky but i see the code its not with a cap S so thats not the problem either ulises asked me before to give him a duplicate file of the theme i am using to figure it out but does that even matter now if it doesn't even work on my screen on another test one thats using the default theme? Well, it can't be your mac because you said it seems to work right on my test site, although I haven't checked to see if any posts are removed on my test site. I'll do that before I go offline for the night. Oh, you really didn't elaborate on the posts it removes. One, more than one? Where in the sequence of posts? just the one post that i edit with the word sticky disappears not sure what the other question, last one, means
|
|
inherit
I need a new CT, thinking.... [insert Jeopardy theme song here]
110769
0
Aug 21, 2021 0:07:21 GMT -8
Tumbleweed
20,825
September 2007
tumbleweed
|
Post by Tumbleweed on Feb 2, 2017 20:54:08 GMT -8
Well, it can't be your mac because you said it seems to work right on my test site, although I haven't checked to see if any posts are removed on my test site. I'll do that before I go offline for the night. Oh, you really didn't elaborate on the posts it removes. One, more than one? Where in the sequence of posts? just the one post that i edit with the word sticky disappears not sure what the other question, last one, means Never mind the last question as you answered me. My first post doesn't disappear on my test site. Time to beg for help because I have no clue. Ulises , are you still busy or maybe Brian , could you take a look? To do a quick recap so you don't have to read the whole thread, I have Ulises code on my test site and it works perfectly but for Pebbles it does not, even putting it on a default theme with plugins disabled. I just don't know how to help Pebbles. Thanks.
|
|
inherit
230690
0
Jan 16, 2019 2:36:12 GMT -8
Pebbles
BE YOUR OWN HERO
1,047
April 2016
dragneel
|
Post by Pebbles on Feb 4, 2017 6:47:09 GMT -8
just the one post that i edit with the word sticky disappears not sure what the other question, last one, means Never mind the last question as you answered me. My first post doesn't disappear on my test site. Time to beg for help because I have no clue. Ulises , are you still busy or maybe Brian , could you take a look? To do a quick recap so you don't have to read the whole thread, I have Ulises code on my test site and it works perfectly but for Pebbles it does not, even putting it on a default theme with plugins disabled. I just don't know how to help Pebbles. Thanks. thank you for wanting to help me i hope an admin can solve this problem asap <3 i am going to be very happy with this code when its working as i badly need it
|
|
inherit
226544
0
Oct 5, 2018 10:29:39 GMT -8
Ulises
4,881
November 2015
umacklin
Ulises Weirdo
|
Post by Ulises on Feb 4, 2017 10:08:50 GMT -8
Pebbles Just a heads up I'm gonna be looking at this now. I'm gonna make a copy of the default theme you have on.
|
|