|
Post by HotRod Richard on Apr 6, 2018 12:39:22 GMT -5
We can use this thread to post useful code for future reference
I was going to paste a code in this first post but then decided to leave it blank
|
|
|
Post by HotRod Richard on Apr 6, 2018 12:43:59 GMT -5
I have found another code to put in the global footer, so you take a look at it and let me know which will work best
I edited to strike thru the code that did not work
<script language="javascript" type="text/javascript"> <!-- /* remove last edit */ font=document.getElementsByTagName("font"); if(location.href.indexOf("display") != -1) for(i=0;i<font.length;i++) if(font.innerHTML.indexOf("Last Edit") != -1) font.style.display="none"; // --> </script>
And then too
But this code below does work just fine
<script> $(document).ready(function() { if (pb.data('route') && pb.data('route').name == "thread") { $('.edited_by').hide(); } }); </script>
|
|
|
Post by QueenFoxy on Apr 6, 2018 13:52:19 GMT -5
This is the best one:
<script>
$(document).ready(function() {
if (pb.data('route') && pb.data('route').name == "thread") {
$('.edited_by').hide();
}
});
</script>
|
|
|
Post by HotRod Richard on Apr 6, 2018 13:55:12 GMT -5
You bet it's the best one. It's the same one I used in the reply above your reply, I just removed the empty lines so it might not have looked familiar to you for that reason.
Works Great, Thank You
|
|
|
Post by HotRod Richard on Apr 6, 2018 15:42:55 GMT -5
Another way to remove edit
add <!-- at beginning and --> at the end of the 2 lines shown below
Admin > Structure > Layout Templates > Thread (template), Post List tab <!-- {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.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} -->
|
|
|
Post by HotRod Richard on Apr 6, 2018 15:53:27 GMT -5
Add page numbers at the bottom of threads
Themes > Layout Templates > Thread
add this code above $[quick_reply]
<div class="secondary_pagination">$[pagination]</div>
Then go to Themes > Advanced Style & CSS > Style Sheets
add the code below at the bottom of your style sheet
.secondary_pagination { padding: 0 5px; margin-bottom: 10px; }
|
|
|
Post by HotRod Richard on Apr 9, 2018 20:24:57 GMT -5
I am needing your assistance again. I am wanting to change the settings for the Avatar shown for any new member. By default it is just a plain avatar, or the No Avatar (Default Setting) as shown in the image below, how do I make the default for guest that do not upload an avatar, show up as the Use Only Your Default Avatar which would be the image to the right side of the photo below. How do I make it so that a guests Avatar shows up as the pic on the right side, for the male and the female, which the female is another image. How do I tweak the settings so that the dot is in "Use only your Default Avatar" for someone new or guests that leave a message on the board? Instead of the dot being in "No Avatar (Default Settings)"
|
|
|
Post by HotRod Richard on Apr 9, 2018 20:45:18 GMT -5
I was able to change the Default Avatar, I changed my avatar to the one in the image above, saved it and uploaded it to the theme images for the male. I also temporarily changed your avatar so I could get a copy of the female avatar to and have uploaded that avatar. Now how do I make it so that the appropriate avatar is signed to the male and the female?
Oh, and forgot to say, I changed your avatar back to normal immediately. But I needed a copy of the female to upload so someone can choose between the male or female avatar, but I am wanting it to select the proper male or female avatar to be assigned to a male or female guest or member that does not upload an avatar right away.
|
|
|
Post by QueenFoxy on Apr 9, 2018 21:48:38 GMT -5
Richard, I don't know how to do one for male and female. I know how to do a forum default avatar and I simply chose an image that had both male and female in it. It is for members who have left the group and new members who have not uploaded their own avatar.
Deleted members and new members who haven't linked or uploaded an avatar yet use whatever is specified as your default forum avatar.
You can upload a default avatar in Members > Forum Avatars in your admin area. Clicking on any avatars listed here after you've uploaded them will set them as the forum's default.
|
|
|
Post by QueenFoxy on Apr 9, 2018 22:23:20 GMT -5
Unless support can give you better directions with Css and especially since the guest or new member avatar is only temporary, I would use something like this that is good for both male and female.
|
|
|
Post by HotRod Richard on Apr 9, 2018 22:26:53 GMT -5
Great, Thank You
You just happened to come in while I was seeing what things would look like if I moved the HotRod Pit Stop to the main board. How does the layout look to you now? Better? or should I put it back the way it was?
|
|
|
Post by QueenFoxy on Apr 10, 2018 1:04:29 GMT -5
Looks great, Richard. I think the Pitstop should be on the main board. After all, racing is the theme of HotRod Cruise Inn.
|
|
|
Post by HotRod Richard on Apr 10, 2018 16:32:46 GMT -5
ok, Then the Pit Stop shall stay on the main board, thank you for your opinion.
I'm wondering about, like at Yuku, there was a place to put a description of the group, which helps for search engine optimization, I have not found that in the Admin section here, is there such a feature?
I'm also curious how to get into the ProBoards Directory Search www.proboards.com/forum-directory ? Your group nor mine pull up in the directory search. I'm surprised your group doesn't pull up, but I'm not surprised Cruise Inn doesn't pull up because it's still new.
|
|
|
Post by HotRod Richard on Apr 10, 2018 21:30:19 GMT -5
|
|
|
Post by HotRod Richard on Apr 11, 2018 17:06:15 GMT -5
|
|