The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

topic author

View previous topic View next topic Go down

Solved topic author

Post by zenzo on March 25th 2013, 6:18 pm

how to put author over topic title


version PunBB
http://pinoywebmaster.all-forum.net/

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 25th 2013, 6:37 pm

Display>Templates
General
Click on Edit corresponding to topics_list_box
Find this part of code.
Code:

{topics_list_box.row.TOPIC_TYPE}
            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
            {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
            <!-- BEGIN switch_description -->
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            <!-- END switch_description -->

Replace the above with this one.
Code:

{topics_list_box.row.TOPIC_TYPE}
                              {topics_list_box.row.TOPIC_AUTHOR}<br>
            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
            
            <!-- BEGIN switch_description -->
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            <!-- END switch_description -->

Save. Publish the templates.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 25th 2013, 6:51 pm

the text "by" before the author is missing

my mistake, i like to make like on phpbb3


i'm really sorry sanket for wrong information

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 25th 2013, 7:05 pm

So you want the author name to be below the topic title?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 25th 2013, 7:14 pm

@Sanket wrote:So you want the author name to be below the topic title?

yes,. also can you add date when the post was created next to it

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 25th 2013, 7:19 pm

The date & time are already there on the left side. You want to repeat it again over here?
So,
Topic Title
Author
Date & Time.

Correct?

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 25th 2013, 7:39 pm

i don't the date on the left side


i think the date of the last post was created was different from the date when the post was created

what i mean is the date was desame on the date of the fist post in this image

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 25th 2013, 7:42 pm

The date will appear only if its a day before yesterday. Otherwise, it will show as today or Yesterday.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 25th 2013, 7:51 pm

@Sanket wrote:The date & time are already there on the left side. You want to repeat it again over here?
So,
Topic Title
Author
Date & Time.

Correct?

Topic Title
Author Date&Time

that's it

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 25th 2013, 8:09 pm

Display>Templates
General
Click on Edit corresponding to topics_list_box
Find this part of code.
Code:

            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
            {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
            <!-- BEGIN switch_description -->
            

Replace the above with this one.
Code:

<h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
         <br />{topics_list_box.row.TOPIC_AUTHOR}  {topics_list_box.row.LAST_POST_TIME}
            <!-- BEGIN switch_description -->

Save. Publish the templates.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 25th 2013, 10:58 pm

it seems you don't understand about the date&time,.

i'd like to know where can i find the code of the date and time on my first post of the topic here


i like to make the time will desame on that

cause the last post time is already shown on the right


for example:

i created a topic today 3/26/2013 7:00am
when member post reply on the next day the date & time below the topic title will remain desame.



edit:
i found the code of the date and time of the first post

viewtopic_body
Code:
</div>
      <hr id="first-post-br" />
      <div class="main-content topic">
         <!-- END first_post_br -->
         <div class="post post--{postrow.displayed.U_POST_ID}"{postrow.displayed.THANK_BGCOLOR} style="{postrow.displayed.DISPLAYABLE_STATE}">
            <a name="{postrow.displayed.U_POST_ID}"></a>
            <div class="postmain"{postrow.displayed.THANK_BGCOLOR}>
               <div id="p{postrow.displayed.U_POST_ID}" class="posthead"{postrow.displayed.THANK_BGCOLOR}>
                  <h2>
                     <strong>{postrow.displayed.COUNT_POSTS}</strong>
                     {postrow.displayed.ICON} <a href="{postrow.displayed.POST_URL}">{postrow.displayed.POST_SUBJECT}</a> {postrow.displayed.POST_DATE_NEW}
                  </h2>
               </div>


" {postrow.displayed.POST_DATE_NEW}"

how can i replace to the last post time

i try to replace but it don't appear

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 26th 2013, 6:32 am

Well As i can see you have not done any changes yet.


Display>Templates
General
Click on Edit corresponding to topics_list_box
Find this part of code.
Code:

            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
            {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
            <!-- BEGIN switch_description -->
            

Replace the above with this one.
Code:

<h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
         <br /> {topics_list_box.row.TOPIC_AUTHOR}  {topics_list_box.row.FIRST_POST_TIME}
            <!-- BEGIN switch_description -->

Save. Publish the templates.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 26th 2013, 12:21 pm

perfect

but how can i resize time&date also the author font

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 26th 2013, 12:32 pm

Add this to your css.

Changes the author font-size
Code:
tr td.tcl a span strong {
    font-size: 10px !important;
}

Changes the font-size of the whole table including the forum title.
Code:
.pun table.table td{
font-size:9px !important;
}

Now to change font-size of the title if you wish to.
Code:
a.topictitle {
    font-size: 10px;
}

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 26th 2013, 12:48 pm

i see a little problem here



how can adjust this a little to the right or fix the position

also can you put a little space between topic tittle and author,date&time




zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 26th 2013, 1:01 pm

Add this to your css.

To move the image to the right.
Code:
 td.tcl span.status img {
    margin-left: 4px;
}

For the spacing.
Display>Templates>General
Click on Edit corresponding to topics_list_box

Find this bit of edited code we added previously.
Code:
<br />{topics_list_box.row.TOPIC_AUTHOR}  {topics_list_box.row.FIRST_POST_TIME}
            <!-- BEGIN switch_description -->
Replace it with the following code.
Code:
<br /><br />{topics_list_box.row.TOPIC_AUTHOR}  {topics_list_box.row.FIRST_POST_TIME}
            <!-- BEGIN switch_description -->
We just added a line in between. Wink

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 26th 2013, 5:26 pm

you real an expert sanket hh

its looks perfect now




one last thing, could you add "by" before the author's name

just like this "by WebMaster"

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 26th 2013, 7:14 pm

For adding the word by.
Display>Templates>General
Click on Edit corresponding to topics_list_box

Find this bit of edited code we added previously.
Code:
<br /><br /> {topics_list_box.row.TOPIC_AUTHOR}  {topics_list_box.row.FIRST_POST_TIME} 
            <!-- BEGIN switch_description -->
Replace it with the following code.
Code:
<br /><br /> {topics_list_box.row.L_BY}{topics_list_box.row.TOPIC_AUTHOR}  {topics_list_box.row.FIRST_POST_TIME}
            <!-- BEGIN switch_description -->

Hit Save. Publish the templates.

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: topic author

Post by zenzo on March 26th 2013, 8:23 pm

awesome

perfect,. perfect,. :wouhou:

a million thanks to you sanket

thumright

solve please lock

zenzo
Forumember

Posts : 464
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: topic author

Post by Sanket on March 26th 2013, 8:28 pm

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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