SocialAcademy • Forum

Social Academy Community Support Forum & Free Tutorial's & Skins



Hide the first post


    Go to page : 1, 2  Next

  • Please log in to Reply

View previous topic View next topic Go down  Message [Page 1 of 2]

#1

OfflineZeus

Zeus
 
Advance Member
Advance Member

Posted Fri Jul 11, 2014 5:10 pm

 
Details: how can i hide first post for visitators
Screenshot:
Forum Address: http://board4games.2morpg.com/
Forum Version: PunBB

http://games-online.forumz.ro/
#2

OfflineDustin

Dustin
 
Forum Helper
Forum Helper

Posted Fri Jul 11, 2014 9:33 pm

 

#3

OfflineZeus

Zeus
 
Advance Member
Advance Member

Posted Sat Jul 12, 2014 5:30 pm

 
i wont to hide first post
no 2-3-4 etc posts

http://games-online.forumz.ro/
#4

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Mon Jul 14, 2014 1:11 am

 
i just want to clarify ! what you want is to hide the FIRST POST ? right ?
not the second, 3rd 4th post ? .. well first

go to your

ACP >> Messages >> Overall Management and E-mails >> Forums >>
Configure Always show the first post in the topics : Yes

after that

ACP >> Modules >> JavaScript HTML & JAVASCRIPT Codes >>
Create a new javascript >>: In the topics

Name: Hidefirstpost

Code:
$(function () {
    $("#first-post-br").next(".post").find(".fphm").addClass("hspost");
    $(".hspost").each(function () {
        var a = $(".paging:first").find("b").text();
        $(this).before('<p id="clickys">You are viewing Page<b>' + a + " </b>of the article, click to view the contents of the first post.</p>")
    });
    $("#clickys").click(function () {
        $(".fphm").css("display", "block");
        $(this).hide()

    })
});


after that

ACP >> Display >> Templates >> General >>
Master viewtopic_body :
click insert this code at the beginning viewtopicbody

Code:
<style>
.clicknos,#clickys{display:block;width:98%;font:13px/40px arial,sans-serif;-webkit-appearance: none;-moz-appearance: none;appearance: none;height:40px;margin:30px auto;opacity:.7;text-align:center;cursor:pointer;
border:1px solid #ffccbf;
color:#cc7e6a;
background:#ffebe6
}
#first-post-br + .post .clicknos:hover,#clickys:hover{opacity:1}
.clicknos:after{content:"Click to view the contents of the first post";text-align:center;line-height:40px;display:block}
#first-post-br + .post .fphm,.clicknos,#first-post-br + .post .clicknos:checked{display:none}
#first-post-br + .post .clicknos:checked + .fphm{display:block}</style>
<noscript><style>
.clicknos {display: block}
</style></noscript>


after that

find segments from
Code:
[b]<!-BEGIN first_post_br->[/b] to [b]<!-END first_post_br->[/b]
delete (if not find then ignored)

look at the section

Code:
<div class="post post--{postrow.displayed.U_POST_ID}"{postrow.displayed.THANK_BGCOLOR} style="{postrow.displayed.DISPLAYABLE_STATE}">


insert the code snippet below front just above finding:



Code:
<!-- BEGIN first_post_br -->
      </div>
     
      <div class="main-content topic">
                  <hr id="first-post-br" />
        <!-- END first_post_br -->



after that find paragraph {postrow.displayed.MESSAGE} changed to

Code:
<input type="checkbox" class="clicknos" value="">
<div class="fphm">{postrow.displayed.MESSAGE}</div>

Done ..

(c)[tag]ligerv[/tag]

https://socialacademy.forumotion.com
#5

OfflineZeus

Zeus
 
Advance Member
Advance Member

Posted Mon Jul 14, 2014 4:41 pm

 
nothing happens
only this [url=]http://board4games.2morpg.com/t42p30-guid-tombola-football-world-cup-2014[/url]

http://games-online.forumz.ro/
#6

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Fri Jul 18, 2014 11:52 am

 
the code that i give is 95% working on default templates ..

https://socialacademy.forumotion.com
#7

OfflineZeus

Zeus
 
Advance Member
Advance Member

Posted Fri Jul 18, 2014 5:28 pm

 
You can put a picture to see?
To know if I exchange theme.

http://games-online.forumz.ro/
#8

OfflineGrafix

Grafix
 
Management Team
 Management Team

Posted Tue Jul 22, 2014 12:09 am

 
Did you change your theme ?

https://socialacademy.forumotion.com
#9

OfflineZeus

Zeus
 
Advance Member
Advance Member

Posted Tue Jul 22, 2014 4:42 pm

 
nothing happens
http://board4games.2morpg.com/t92-how-to-promote-your-forum

http://games-online.forumz.ro/
#10

OfflineJordan Lee

Jordan Lee
 
Forum Helper
Forum Helper

Posted Fri Jul 25, 2014 8:51 pm

 
Hello,

Any update on this?

Thanks,
Tommy Lee

#11

OfflineSponsored content


 

Posted

 

Message (Page 1 of 2)


    Go to page : 1, 2  Next


Share Topics Url

Url
BBcode
HTML

Permissions in this forum:
You cannot reply to topics in this forum

 
  • Create a forum on Forumotion | ©phpBB | Free forum support | Report an abuse | Forumotion.com


Social Academy Forum
© Social Academy 2013-2022