News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SRAVC - Separate Replies And Views Column (Fully Hook!)

Started by Hj Ahmad Rasyid Hj Ismail, May 02, 2010, 04:10:19 AM

Previous topic - Next topic

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

eric1234

Erm, yeah the started by was settled . However, the Seperate Replies and Views Column seem to be still having problem >.<

The last post seem to be missing and the replies and views column were not seperated >.<

Like in the attachment.

eric1234

#122
The MessageIndex.template.php in the attachments is from

public_html/forum/Themes/default

Well, er.. there are total 2 MessageIndex.template.php . This 1 is default while the 1 that you posted was Zentoa theme's MessageIndex.template.php >.<

I posted the default too because all my themes also having the same issue >.<

So sorry for troubling you >.<

Joker™

Well you have got me confused now :P.

First of all you need to clear up on which theme are you trying to install the mod(s). Also regarding the columns not expanding till the last , are you sure you have made all of the "colspans" edits from the manual parser?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

eric1234

Quote from: Joker™ on January 20, 2012, 07:11:16 AM
Well you have got me confused now :P.

First of all you need to clear up on which theme are you trying to install the mod(s). Also regarding the columns not expanding till the last , are you sure you have made all of the "colspans" edits from the manual parser?
I also kinda confuse haha

erm, because you asked me to install the Separate Replies and Views Column mods 1st, so i installed it through the package manager, therefore, that is the main cause that the problem spread to all the theme except the only theme that i wanna edit because it just install to everything through the package manager >.<

I dunno what is colspans >.< but i just installed the Seperate Replies and Views Column through the package manager and manually installed the Started by... so i believe the main issue is the Separate replies and Views Column code >.< Some where gone wrong

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

eric1234

#126
Quote from: Joker™ on January 20, 2012, 11:11:49 AM
Try this file
On default or my theme? :)
yeah, it work on my zentoa theme >.< but how about default >.<

Joker™

Quote from: eric1234 on January 20, 2012, 11:51:48 AM
On default or my theme? :)
yeah, it work on my zentoa theme >.< but how about default >.<
Well this is the very first file you have posted in this topic for edit and I had it with me since yesterday. I was just trying to get you to some coding work :P. I hope you liked it.

Now in that file
- I've installed  "Separate Replies and Views Column"
- Using parse guide install "Started by mod" manually and skipped the common edits in both of the mods while doing that.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

eric1234

#128
Quote from: Joker™ on January 20, 2012, 12:02:15 PM
Quote from: eric1234 on January 20, 2012, 11:51:48 AM
On default or my theme? :)
yeah, it work on my zentoa theme >.< but how about default >.<
Well this is the very first file you have posted in this topic for edit and I had it with me since yesterday. I was just trying to get you to some coding work :P. I hope you liked it.

Now in that file
- I've installed  "Separate Replies and Views Column"
- Using parse guide install "Started by mod" manually and skipped the common edits in both of the mods while doing that.
I am manually checking the code on default of MessageIndex.template.php and when I find:
/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'], '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';


Replace with:
// The board's and children's 'last_post's
echo '<td class="lastpost">';
if (!empty($board['last_post']['id']))
echo '
<p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'], '<br />
', $txt['in'], ' ', $board['last_post']['link'], '<br />
', $txt['on'], ' ', $board['last_post']['time'],'
</p>';
echo '
</td>';


It turned out  to have this error >.<

QuoteTemplate Parse Error!

There was a problem loading the /Themes/default/MessageIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected '<' in .../Themes/default/MessageIndex.template.php on line 140
131:             echo '<td class="lastpost">';
132:          if (!empty($board['last_post']['id']))
133:             echo '
134:                <p><strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'], '<br />
135:                   ', $txt['in'], ' ', $board['last_post']['link'], '<br />
136:                   ', $txt['on'], ' ', $board['last_post']['time'],'
137:                </p>';
138:             echo '
139:                </td>';
140:                   <!-- Last Post Info -->
141:                   </p>';
142:
143:          echo '
144:                </td>
The red colour is the highlighted . If you still don't understand the error, i got print screen it and uploaded it in the attachment ^^
Checked other code. i Think no error on other code :)

Joker™

echo '
              </td>';
                   <!-- Last Post Info -->
                   </p>';



Code (Make it:) Select
echo '
              </td>
                   </p>';


BTW is that one of my mods edit having "<!-- Last Post Info -->" in between?? AFAIR I never put comments between the codes :P
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

eric1234

Quote from: Joker™ on January 21, 2012, 02:13:06 AM
echo '
              </td>';
                   <!-- Last Post Info -->
                   </p>';



Code (Make it:) Select
echo '
              </td>
                   </p>';


BTW is that one of my mods edit having "<!-- Last Post Info -->" in between?? AFAIR I never put comments between the codes :P

Yeah, it worked now >.< erm.. no no .. not in the mods edits. It was the theme's code right after the code that the mod edit pasted on it. :)

Thank you very much ! ^^

eric1234

Argh.. new problem T.T

This time involve Vbulletin Style Board Index. (http://custom.simplemachines.org/mods/index.php?mod=2535) >.<

I dunno what is the main cause, somehow my 'Unread Post" bar has become shorten and not fully cover >.< Please check the attachment




Joker™

Quote from: eric1234 on January 21, 2012, 07:55:57 AM
Argh.. new problem T.T

This time involve Vbulletin Style Board Index. (http://custom.simplemachines.org/mods/index.php?mod=2535) >.<

I dunno what is the main cause, somehow my 'Unread Post" bar has become shorten and not fully cover >.< Please check the attachment

Are you sure that the first edit is made successfully in the file?

Also please ask the concerned mod question in the respective topic only as it help us more to keep them organize and your query might come handy for someone else in the future.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

eric1234

Argh..sorry. I replied at there now >.<

abhirupmanna

Does not seem to work. Any updates on this ?
Quote
" When there is a will there is a way. If there is no way make one "

Please do read my blog
I would love to hear your comments.

Touchline Reporter : for the hardcore soccer fans

Joker™

Quote from: abhirupmanna on June 10, 2012, 01:14:31 PM
Does not seem to work. Any updates on this ?

1. Version of SMF on which you faced the issue?
2. Theme you are using?
3. What hasn't worked exactly?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

abhirupmanna

2.02
SquareEra
It isnt displaying in separate columns..still together
Quote
" When there is a will there is a way. If there is no way make one "

Please do read my blog
I would love to hear your comments.

Touchline Reporter : for the hardcore soccer fans

Joker™

While installing the mod, make you you have selected the "SquareEra" theme.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

abhirupmanna

Quote from: Joker™ on June 16, 2012, 12:19:27 AM
While installing the mod, make you you have selected the "SquareEra" theme.

Yes done that
Quote
" When there is a will there is a way. If there is no way make one "

Please do read my blog
I would love to hear your comments.

Touchline Reporter : for the hardcore soccer fans

Joker™

Please attach following file here

themes/SquareEra/MessageIndex.template.php
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: