The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Topic 'by Username', author column removed and page numbers like in phpBB3 ?

3 posters

Go down

Solved Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Moku June 26th 2015, 10:11 pm

Hi! I think the title says it all. Very Happy
Basically, I need the Author column removed, 'by Username' under the topic title and page numbers with borders, just like in basic phpBB3 version.

Here's the preview of what I am trying to achieve:
Topic 'by Username', author column removed and page numbers like in phpBB3 ?  TE7wvKR

But it is alright if the page numbers will be in one line with the topic by Username statement.
Thank you in advance!


Last edited by Moku on July 8th 2015, 5:23 pm; edited 1 time in total
Moku
Moku
New Member

Female Posts : 18
Reputation : 2
Language : English
Location : United Kingdom

http://hcadforum.forumotion.com

Back to top Go down

Solved Re: Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Moku July 3rd 2015, 1:03 am

Bump.
Moku
Moku
New Member

Female Posts : 18
Reputation : 2
Language : English
Location : United Kingdom

http://hcadforum.forumotion.com

Back to top Go down

Solved Re: Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Melanore July 3rd 2015, 3:00 am

Well, it is not the exact one you wanted. I removed the author column but I couldn't remove "go to page" text, so I didnt put borders to page numbers. 

Replace your topics_list_box template:
Code:
  <!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
    <script type="text/javascript">
    function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
        var all_checked = true;
        for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
            if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
                all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
            }
        }
        document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
    }
    function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
        for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
            if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
                document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
            }
        }
    }
    </script>
    <!-- END multi_selection -->
   
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
            <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap">&nbsp;{topics_list_box.row.L_TITLE}&nbsp;</th>
            <th align="center" nowrap="nowrap" width="80" colspan="2">&nbsp;{topics_list_box.row.L_REPLIES}&nbsp;</th>
            <th align="center" nowrap="nowrap" width="50">&nbsp;{topics_list_box.row.L_VIEWS}&nbsp;</th>
            <th align="center" nowrap="nowrap" width="150">&nbsp;{topics_list_box.row.L_LASTPOST}&nbsp;</th>
            <!-- BEGIN multi_selection -->
            <th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
        <!-- END multi_selection -->
        </tr>
        <!-- BEGIN pagination -->
        <tr>
            <td class="row1" colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
        </tr>
        <!-- END pagination -->
        <!-- END header_table --><!-- BEGIN header_row -->
        <tr>
            <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall">&nbsp;<b>{topics_list_box.row.L_TITLE}</b></span></td>
        </tr>
    <!-- END header_row -->
   
    <!-- BEGIN topic -->
    {topics_list_box.row.END_TABLE_STICKY}
        <tr>
            <!-- BEGIN single_selection -->
            <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
            <!-- END single_selection -->
            <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" /></td>
            <!-- BEGIN icon -->
            <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
            <!-- END icon -->
          <td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
            <div class="topictitle">
                    {topics_list_box.row.NEWEST_POST_IMG}{topics_list_box.row.PARTICIPATE_POST_IMG}{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>
            </div>
            <br />
            <span class="gensmall" style="float:left">by <span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span></span>
         
            <span class="gensmall" style="float:right; margin-top:-20px;">{topics_list_box.row.GOTO_PAGE} </span>
   
                <!-- BEGIN switch_description -->
              <span class="genmed">
                    <br />
                  {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}         </span>
                <!-- END switch_description -->
                <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span>&nbsp;

            </td>
   
            <td class="row2" align="center" valign="middle" colspan="2"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
            <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
            <td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="center" valign="middle" nowrap="nowrap">
                <!-- BEGIN avatar -->
                <div style="width: 200px;"></div>
                <span class="lastpost-avatar">{topics_list_box.row.topic.avatar.LAST_POST_AVATAR}</span>
                <!-- END avatar -->
   
                <span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span>
            </td>
    <!-- BEGIN multi_selection -->
            <td class="row2" align="center" valign="middle"><span class="postdetails"><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></span></td>
        <!-- END multi_selection -->
        </tr>
        <!-- END topic --><!-- BEGIN no_topics -->
        <tr>
            <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
        </tr>
        <!-- END no_topics --><!-- BEGIN bottom -->
        <tr>
            <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>&nbsp;<span class="gensmall">{PAGINATION}</span></td>
                        <td align="right"><a href="#top">{L_BACK_TO_TOP}</a>&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    <!-- END bottom --><!-- BEGIN footer_table -->
    </table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->

Hope you like. ^^
Melanore
Melanore
New Member

Posts : 21
Reputation : 7
Language : EN
Location : TR

Back to top Go down

Solved Re: Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Moku July 5th 2015, 2:48 pm

Thank you @3uphemia!
The code works just fine but there's one little problem though.

On the second info row there's this unwanted Author title next to Replies.
Topic 'by Username', author column removed and page numbers like in phpBB3 ?  YaEkhEf

Do you think you could remove the unwanted title or just remove the whole row since there's already the same one at the top?
Moku
Moku
New Member

Female Posts : 18
Reputation : 2
Language : English
Location : United Kingdom

http://hcadforum.forumotion.com

Back to top Go down

Solved Re: Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Melanore July 5th 2015, 3:31 pm

I couldnt find the way to remove it, couldnt find it in template. Seperating stickies with table causes that.

But I found this topic: https://help.forumotion.com/t138376-author-row with same problem, @Ange Tuteur has solved the problem. But, when I tried, javascript code removes all the column so "Views" and "Last Posts" texts shifted. You can try.

If it is not necessary, dont use table to seperate announcements and stickies. Use line or don't seperate. This is the only solution I could suggest. :/

__________________________________________

I tried many things so far to remove that text. I know it is very easy with javascript but I dont know how to code that language. :/

The best solution I tried, I changed the topiclist box table by adding id:
Code:
  <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0" id="authortext">

And I added this javascript:
Code:
document.getElementById("authortext").innerHTML = document.getElementById("authortext").innerHTML  
.replace(/Author/g,'');

This is my really first javascript trying. I think my idea is right but i dont know why it doesn't work.  scratch
Hope someone will help us. ^^
Melanore
Melanore
New Member

Posts : 21
Reputation : 7
Language : EN
Location : TR

Back to top Go down

Solved Re: Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Moku July 8th 2015, 5:21 pm

Thanks @Melanore! The best solution was just to separate announcements and stickies with a line.
You've helped me a lot!!! c:
Moku
Moku
New Member

Female Posts : 18
Reputation : 2
Language : English
Location : United Kingdom

http://hcadforum.forumotion.com

Back to top Go down

Solved Re: Topic 'by Username', author column removed and page numbers like in phpBB3 ?

Post by Ange Tuteur July 8th 2015, 6:35 pm

Thanks again for your help, Melanore. Smile

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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