Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2536)
SRAVC - Separate Replies And Views Column
- For SMF 2.0.x
- Fully hook, no file modification For SMF 2.0.x.
1. Please do your own backup though every installation is backed up automatically.
2. By default replies and views are joined in one column in message index page.
3. This mod separates replies and views to two columns instead for easy viewing.
4. All you need to do is turn it on or off in Mod Settings page, save it and you are good to go.
5. You can test it in all SMF 2.0.x lower version as IMO it should work just fine. ;)
6. Do report if there is any error(s).
Thank you for using/testing it.
Yours friendly,
Abu Fahim Ismail.
BSD License. Feel free to modify accordingly but keep the creator's and the author's link(s) if it is in there somewhere. ;)
Creator: Joker™ (http://www.simplemachines.org/community/index.php?action=profile;u=226111)
Support Site: BurkeKnight Enterprises (http://www.burkeknight.com/)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Fvalid_icons%2Fvalid-xhtml10&hash=f3694497572838dc55641db875ff57107ebabaed) (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fjigsaw.w3.org%2Fcss-validator%2Fimages%2Fvcss&hash=710d7530f8727db53c62cb8f44abbef39967e693)
#Change Logs
@Version 1.9.4
- Fix $options not globalize in subs file.
@Version 1.9.3
- Upgraded to a fully hook mod with no file modification.
- Remove VBulletin Board Index Style modifications that was mixed up from this mod as it should be installed using a separate mod known as VBBIS - VBulletin Board Index Style (http://custom.simplemachines.org/mods/index.php?mod=2535) mod.
- Remove support to YAGAM mod.
- Change license and author.
@Version 1.9.2
- Mod updated and added to Github. - GitHub Link (https://github.com/BurkeKnight/SMF-Mods-Original-Author-Joker/tree/master/New%20Topic%20In%20Separate%20Color)
- License changed to MPL 1.1
@Version 1.9.1
- Updated for SMF 2.0.1
@Version 1.9.0
- Mod updated for SMF 2.0 final
- License added to the mod
@Version 1.8.0
- Some wrong text strings were there. Bug removed.
@Version 1.7.0
- Mod updated for RC4
@Version 1.6.0
- Mod name changed.
- Support for YAGAM mod provided (This mod should be installed after YAGAM).
@Version 1.5.0
- Redirect bug for child boards solved.
@Version 1.4.0
- Child board column was breaking , also the post and topic count of redirected boards was messed up . Both bugs removed.
@Version 1.3.0
- Child board above the posts given the same look. Have a try in see urself ;)
@Version 1.2.0
- Column was breaking when who's viewing board option was enabled. Bug removed.
@Version 1.1.0
- Removed 'Replies' and 'Views' text written with each count.
@Version 1.0.0
- Initial release.
nice mod .. a hint for you if u want to make this like vb style then remove the replies text and views text in every line .. just keep it on top
ohh i forgot that ... in my site i made it like that only ... will update it soon .
Thanks for pointing it out
Upgraded ;)
good.. i have made a lot of changes in my site .. a lot .. really and manually ... after few days i will try to make some awesome mods :)
varun bro .. u must be noticed one thing .. in vb we can use [color="red"] these type of bb codes with " ....... but in smf they won't work .. so the problem is if we want to copy a whole post from a vb forum using quote then the bb codes come with " and this don't work .. so can u make them work ? [color="all colors"], [size="all size"] , [font="all font"]
i think this is problem of WYSIWYG editor , you should ask for this in coding area .
Seriously, this is nothing the hell to do with this mod. This mod makes the message index look like vBulletin's.
If you want to deal with the problem of quoting posts, take this up in the Coding Discussion board - or even take it up with the people who wrote the vB->SMF converter.
hey arantor how are you
I have this error after a manual edit.
Parse error: syntax error, unexpected T_ELSEIF in /home/parascif/public_html/mkaware.co.uk/MKAForum/Themes/default/MessageIndex.template.php on line 195
what manual edit did u made ? as in ur file i can't see anything unusual on line 195 regarding this mod.
There were two manual edits required.
I may of made the edits in the wrong places.
KK .
Ok it looks weird with Global mod installed. See second pic.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F2ahxs77.png&hash=3f007e8dc4301e972f3bc476aad0f5dd30398c8e)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F10d5uhh.png&hash=e93ed30812e04b2d4ce650e030f864086625439f)
Quote from: Dismal Shadow on June 01, 2010, 09:47:06 PM
Ok it looks weird with Global mod installed. See second pic.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F2ahxs77.png&hash=3f007e8dc4301e972f3bc476aad0f5dd30398c8e)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F10d5uhh.png&hash=e93ed30812e04b2d4ce650e030f864086625439f)
can you provide the mod link which is conflicting .
Quote from: sid2varun on June 01, 2010, 10:42:01 PM
Quote from: Dismal Shadow on June 01, 2010, 09:47:06 PM
Ok it looks weird with Global mod installed. See second pic.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F2ahxs77.png&hash=3f007e8dc4301e972f3bc476aad0f5dd30398c8e)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F10d5uhh.png&hash=e93ed30812e04b2d4ce650e030f864086625439f)
can you provide the mod link which is conflicting .
Oh yeah sorry.
http://custom.simplemachines.org/mods/index.php?mod=1617
You just need to play with some codes in
/themes/default/MessageIndex.template.php
Find:
// You can see this if you have permission , the right board or admin
if (((in_array($board_info['id'], $allowed_boards)) || $announcement['id_boards'] == 0) && ((count(array_intersect($user_info['groups'], $permission_groups)) !== 0) || $context['user']['is_admin']))
{
echo '
<tr>
<td class="windowbg2 icon1 yagam">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2 yagam">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td class="subject windowbg yagam">
<a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'"><strong>',$announcement['title'], '</strong></a>
<p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color: '.$announcement['online_color'].';"' : '', '>',$announcement['real_name'], '</a></p>
</td>
<td class="stats yagam">
', ($announcement['can_comment'] == '1') ? ''.$announcement['comment_total'].' ' . $txt['replies'] : '--', '<br />
',$announcement['views'], ' ' . $txt['views']. '
</td>
<td class="windowbg2 lastpost yagam">
'.$txt['yagam_created'].' : ',timeformat($announcement['date']), '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate yagam" width="5%"><a href="',$scripturl,'?action=announcements;sa=edit;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'" onclick="return confirm(\''.$txt['yagam_remove_verify'].'\')"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';
}
Replace the above code with :
// You can see this if you have permission , the right board or admin
if (((in_array($board_info['id'], $allowed_boards)) || $announcement['id_boards'] == 0) && ((count(array_intersect($user_info['groups'], $permission_groups)) !== 0) || $context['user']['is_admin']))
{
echo '
<tr>
<td class="windowbg2 icon1 yagam">
<img src="', $settings['images_url'], '/topic/normal_post.gif" alt="" />
</td>
<td class="windowbg2 icon2 yagam">
<img src="', $settings['images_url'], '/post/exclamation.gif" alt="" />
</td>
<td class="subject windowbg yagam">
<a href="',$scripturl,'?action=announcements;aid=',$announcement['id_announcement'],'"><strong>',$announcement['title'], '</strong></a>
<p class="smalltext">', $txt['started_by'], ' <a href="'.$scripturl.'?action=profile;u=',$announcement['author'], '" ', (!empty($modSettings['MemberColorLinkInstalled'])) ? 'style="color: '.$announcement['online_color'].';"' : '', '>',$announcement['real_name'], '</a></p>
</td>
<td class="windowbg2 lastpost yagam">
'.$txt['yagam_created'].' : ',timeformat($announcement['date']), '
</td>
<td class="stats yagam">
', ($announcement['can_comment'] == '1') ? ''.$announcement['comment_total'].' ' . $txt['replies'] : '--', '<br />
</td>
<td class="stats yagam">
',$announcement['views'], ' ' . $txt['views']. '
</td>';
if (allowedTo('yagam_manage') && !empty($options['display_quick_mod']))
echo '<td class="windowbg2 moderate yagam" width="3%"><a href="',$scripturl,'?action=announcements;sa=edit;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_edit'].'"><img src="'.$settings['images_url'].'/buttons/modify.gif" alt="',$txt['yagam_edit2'], '"></a>
<a href="',$scripturl,'?action=announcements;sa=deleteverify;aid=',$announcement['id_announcement'],'" title="'.$txt['yagam_remove'].'" onclick="return confirm(\''.$txt['yagam_remove_verify'].'\')"><img src="'.$settings['images_url'].'/buttons/delete.gif" alt="',$txt['yagam_remove2'], '"></a>
</td>';
echo'</tr>';
}
worked fine for me.
Thanks, it works now. BTW...I am no code expert. :P
im also a noob in codes , just played them a bit and they got adjusted perfectly ;) ...
glad that i could helped you :)
Quote from: sid2varun on June 01, 2010, 11:35:45 PM
im also a noob in codes , just played them a bit and they got adjusted perfectly ;) ...
glad that i could helped you :)
I will in due time into code junkie.
Any plans to add the code in the next update for user who use both these mods? Probably not...
umm it would be more convenient if u ask global mod author to change the code for compatibility.
Good mod. But, I don't see many differences.
Quote from: Masterd on June 02, 2010, 05:23:40 AM
Good mod. But, I don't see many differences.
thanks. mod will that much change only , whatever code is written in it.
I have the exact same problem as DS.
The thing is, I don't know which mod is causing it. Here are the mods I have installed:
1. Menu Order 0.2.3 Yesterday at 11:56:49 PM. [ Uninstall ]
2. Curve_centered_menu 1.1 Yesterday at 11:55:20 PM. [ Uninstall ]
3. SMF XboxLIVE 0.1 Beta 3 Yesterday at 11:45:23 PM. [ Uninstall ]
4. Another Link Tree 1.0 Yesterday at 11:28:31 PM. [ Uninstall ]
5. Ultimate Profile 0.9.1 Yesterday at 11:04:42 PM. [ Uninstall ]
6. Related Topics 1.4 RC1 Yesterday at 07:57:04 PM. [ Uninstall ]
7. SMF Arcade 2.5 RC1 Yesterday at 07:29:28 PM. [ Uninstall ]
8. 30 Assorted Animated Avatars 1.0 June 01, 2010, 03:16:42 PM. [ Uninstall ]
9. game avatars 1.0 June 01, 2010, 03:16:10 PM. [ Uninstall ]
10. Karma Buttons 1.1 June 01, 2010, 02:58:54 PM. [ Uninstall ]
11. YouTube BBCode 2.6 June 01, 2010, 01:21:20 PM. [ Uninstall ]
12. AutoKeywords 1.4 May 31, 2010, 04:58:42 PM. [ Uninstall ]
13. RedirectPage 1.2 May 31, 2010, 04:58:09 PM. [ Uninstall ]
14. Board Notices 1.0.1 May 29, 2010, 06:34:24 PM. [ Uninstall ]
15. Post History 0.3 May 28, 2010, 08:50:13 PM. [ Uninstall ]
16. Team Page 3.5.5 May 28, 2010, 08:47:14 PM. [ Uninstall ]
17. Users Online Today 1.5.6 May 28, 2010, 08:46:13 PM. [ Uninstall ]
18. VB Style Board Index 1.0 May 28, 2010, 10:15:37 AM. [ Uninstall ]
19. VB Style Message Index 1.1 May 28, 2010, 10:15:22 AM. [ Uninstall ]
20. Ad Managment 2.3.6.2 May 27, 2010, 10:31:55 PM. [ Uninstall ]
21. SA FBConnect 0.2 May 27, 2010, 10:24:48 PM. [ Uninstall ]
22. Sortable Packages (and Installed Time) 1.3 May 27, 2010, 10:13:42 PM. [ Uninstall ]
can you show me a pic or explain a bit more about the problem.
The problem is that there are colspans in both this (and your other mod) that aren't being updated as well. You're adding a new column but not updating those colspan cells (e.g. for child boards in the other mod, or in this one, for the row above the main content showing who's in the board)
Quote from: Arantor on June 10, 2010, 03:19:29 AM
The problem is that there are colspans in both this (and your other mod) that aren't being updated as well. You're adding a new column but not updating those colspan cells (e.g. for child boards in the other mod, or in this one, for the row above the main content showing who's in the board)
yup , i've removed the child board colspan bug in the other mod and trying to find if any bug remaining in the mod.
Turn on the option to view who's in a board.
Quote from: Arantor on June 10, 2010, 03:28:44 AM
Turn on the option to view who's in a board.
Thanks a lot . Mod updated , and this bug is removed :)
Mod updated
Child boards above given the same look.
I want to install this manually, but i have serious problems, because the package parser shows me something different.
i was trying to install this mod manually, but this gives me an error:
Parse error: syntax error, unexpected T_ELSE in /mnt/weba/31/62/51559762/htdocs/xxx/Themes/default/MessageIndex.template.php on line 91
please can you help me to install this mod ?
i attached my original MessageIndex.template.php
thank you in advance.
Quote from: divecall on June 11, 2010, 05:48:39 PM
I want to install this manually, but i have serious problems, because the package parser shows me something different.
i was trying to install this mod manually, but this gives me an error:
Parse error: syntax error, unexpected T_ELSE in /mnt/weba/31/62/51559762/htdocs/xxx/Themes/default/MessageIndex.template.php on line 91
please can you help me to install this mod ?
i attached my original MessageIndex.template.php
thank you in advance.
ur file is showing that you are some mod regarding last post on message index.
can you tell the name of the mod ,as it would be much easier for me then to workout the problem :)
Really, i have no idea, what Mod was changing the "last Post"....
My Mods:
1. Aeva ~ Auto-Embed Video & Audio
2. SimplePortal 2.3.1
3. Print-Page Permission 1.0
4. Skype Integration 2.0
5. Member NotePad 1.1.0
6. Users Online Today 1.5.6
7. Reason For Editing Mod 2.0
8. Thank-O-Matic 2.0 RC1.3
9. Attachments in Topics 1.0
10. InLine Attachments add german translate 1.06 Beta
11. AvatarSelect 1.2.1
12. Custom Copyright 1.2
13. SimplePortal - German 2.3.1
14. PM Attachments 1.4
15. Pretty URLs 1.0RC
16. Share This Topic 1.3
17. Sitemap 2.1.0
18. Watermark.light 1.3
19. Highslide Image Viewer 1.6
20. InLine Attachments 1.06 Beta
21. Default Avatar 1.1.1
22. RateThatTopic 2.2.0
23. PM to New Members 1.2
24. Registered Links 2.0
25. SMF Arcade 2.5 RC1
26. Google Analytics Code 1.1
27. Global Headers Footers 2.0
28. Favicon 1.3
29. BoardHover Mod
i think today is my bit luck day , first mod i picked from your list and volla , it's the one creating problem.
BoardHover Mod (http://custom.simplemachines.org/mods/index.php?mod=1065)
i'll look into the code soon , and try to post a solution for you.
Modify* - u have this mod also RateThatTopic
your or my lucky day ;)
Thank you. Hope you can find the problem, because this is a nice looking mod.
Quote from: divecall on June 12, 2010, 08:54:17 AM
your or my lucky day ;)
Thank you. Hope you can find the problem, because this is a nice looking mod.
try this file , im bit unsure for rating mod , let's see how it goes.
Mhhmm...good, no error. But it dont looks right. Please, can you give me another Chance ?
Quote from: divecall on June 12, 2010, 09:55:27 AM
Mhhmm...good, no error. But it dont looks right. Please, can you give me another Chance ?
yeah that rating mod is creating a bit of problem.i'll look into it tomorrow only , don't have any energy left to work on it right now :(
Ok.
Please rest well.
i tried to look into your problem , to sort that out i need to have the copy of Rate that Topic mod for RC3 , as it's version on mod site not compatible to RC3 . Without installing it on my test site i can't figure out the whole problem.
how can I move "started by" into separate column?
Mod upgraded to version 1.5*
Quote from: PascalCX on June 23, 2010, 03:41:07 AM
how can I move "started by" into separate column?
is that style u want ?
exactly !
---
better only an author name (without creation time and started by text)
Quote from: PascalCX on June 23, 2010, 09:04:44 AM
exactly !
---
better only an author name (without creation time)
install the mod.after installing
open themes/default/MessageIndex.template.php
Find:
<th scope="col" class="smalltext first_th" width="8%" colspan="2"> </th>
<th scope="col" class="smalltext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
Replace it with:
<th scope="col" class="smalltext first_th" width="8%" colspan="2"> </th>
<th scope="col" class="smalltext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="smalltext" width="17%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
Find:
echo '
<p>', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</p>
</div>
</td>
<td class="lastpost ', $alternate_class, '">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
</td>
<td class="stats ', $color_class, '">
', $topic['replies'],'
</td>
<td class="stats ', $color_class, '">
', $topic['views'],'
</td>';
Replace it with:
echo '
<p>
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</p>
</div>
</td>
<td class="lastpost ', $alternate_class, '">
', $txt['started_by'], ' ', $topic['first_post']['member']['link'], '
</td>
<td class="lastpost ', $alternate_class, '">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
</td>
<td class="stats ', $color_class, '">
', $topic['replies'],'
</td>
<td class="stats ', $color_class, '">
', $topic['views'],'
</td>';
thanx a lot !
---
and can I do it without installing mod?
just separate column Subject / Started by into 2 columns
your welcome :)
i've tried to separate "author/started by" columns without installing your mod and I got 2 problems:
"started by" not centered and missing block
first problem can be fixed by
<center> ', $topic['first_post']['member']['link'], ' </center>
second problem can be fixed by replacing 6, 5\7,6 6\7 colspans:
<td colspan="', !empty($context['can_quick_mod']) ? '7' : '6', '" class="smalltext">';
<td colspan="', !empty($context['can_quick_mod']) ? '7' : '6', '">
<td colspan="7" align="right">
but I dont think that it is a good idea
my changes:
<th scope="col" class="smalltext first_th" width="8%" colspan="2"> </th>
<th scope="col" class="smalltext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="smalltext center" width="10%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" class="smalltext center" width="14%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';
echo '
<p>
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</p>
</div>
</td>
<td class="lastpost ', $alternate_class, '">
', $topic['first_post']['member']['link'], '
</td>
<td class="stats ', $color_class, '">
', $topic['replies'], ' ', $txt['replies'], '
<br />
', $topic['views'], ' ', $txt['views'], '
</td>
<td class="lastpost ', $alternate_class, '">
<a href="', $topic['last_post']['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt['last_post'], '" title="', $txt['last_post'], '" /></a>
', $topic['last_post']['time'], '<br />
', $txt['by'], ' ', $topic['last_post']['member']['link'], '
</td>';
can you help me plz?
the second screenshot with applied two fixes
colspans changes have to be made to extend that bar.u can see mod parse also,to see where else to make colspans changes .
tnx :)
Managed to finally install the mod with one edit required.
However is there a way to move the avatar so it is next to the text rather than below it?
Also the box with the icons is bigger than I would like.
Quote from: Brack1 on July 26, 2010, 01:28:26 PM
However is there a way to move the avatar so it is next to the text rather than below it?
you must be using some mod to bring avatar's on message index , as afaik it's not a default feature
Quote
Also the box with the icons is bigger than I would like.
i think it's same size as of default look.
The mod is the avatar on board one.
can you put the mod link here
Here ya go bud.
http://custom.simplemachines.org/mods/index.php?mod=1103
For me it comes out ok , see
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg411.imageshack.us%2Fimg411%2F9976%2F91649372.png&hash=80d548c09ddebbda12663752e25d6594c03a15c1)
If you want something else can you show me by some screen shot etc , would be easy for me to understand ;)
Quote from: Brack1 on July 26, 2010, 01:28:26 PM
Also the box with the icons is bigger than I would like.
the width of boxes is used coz of that avatar mod .
The page you are showing is the main board index.
The board in question is the message index.
I have attached a pic for ya.
1. i've shown you Message Index only (see there is page No. in screen shot )
2. As far as i can see you are having problem in Child Boards Last post section.
Is your theme using it's own MessageIndex.template.php , as on default theme even that section is alright for me.See the screen shot below
http://img401.imageshack.us/img401/8191/59307433.png (http://img401.imageshack.us/img401/8191/59307433.png)
It'vd be more easy if i can have your site link and you can give some theme details.
The forum uses the default themes message index template.
The forums link is www.miltonkeynesaware.co.cc/mkaforum
Quote from: Brack1 on July 27, 2010, 10:33:54 AM
The forum uses the default themes message index template.
The forums link is www.miltonkeynesaware.co.cc/mkaforum
Just saw your forum and it's very easy work ;) , can you attach your MessageIndex.template.php here
Will do bud.
Easy? Easy? Is there such a word? :o
:)
Edit: File attached.
Quote from: Brack1 on July 27, 2010, 12:53:29 PM
Easy? Easy? Is there such a word? :o
:)
in your case there is ;D
try the attached file
Sorted.
Thanks bud.
your welcome ;)
Hi. How can i implement this mod to my theme? Here's the part of the code, that needs to be changed:
// Show some basic information about the number of posts, etc.
echo '
</td>';
if (!$board['is_redirect'])
echo '
<td class="windowbg stats">
', $board['posts'], '<br />', $txt['posts'], '
</td>
<td class="windowbg stats">
', $board['topics'], '<br />', $txt['topics'], '
</td>';
else
echo '
<td class="windowbg" valign="middle" align="center" colspan="2" width="14%">', $board['posts'], ' ', $txt['redirects'], '</td>';
echo '
<td class="lastpost">';
so which code didn't worked for you. i mean which code exactly are you trying to replace .
Sorry, forgot to mention:
this code:
// Show some basic information about the number of posts, etc. echo ' </td> <td class="stats windowbg"> <p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br /> ', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], ' </p> </td> <td class="lastpost">';
with this code:
// Show some basic information about the number of posts, etc. echo ' </td>'; if ($board['is_redirect']) echo ' <td class="windowbg" align="center" colspan="2" width="14%"><p>', $board['posts']. ' '. $txt['redirects'] , ' </p> </td> <td class="lastpost">'; else echo ' <td class="windowbg" align="center" width="7%">', comma_format($board['topics']),'</td> <td class="windowbg" align="center" width="7%">', comma_format($board['posts']),'</td> <td class="lastpost">';
In other words: 3rd code.
have you made the other edits in your file ? If yes , attach the file here , i'll try to modify it for you , as 3rd and 4th code are related to each other
There you go.
i asked for MessageIndex.template.php :) , also i think we are discussing on same file in my Started column mod also. If yes then give the file which is most recent for you.
Oh yea, sorry, wrong file. Just copied a few files, click wrong one. Anyway, here it is.
Quote from: frozenas on July 30, 2010, 03:11:01 PM
Oh yea, sorry, wrong file. Just copied a few files, click wrong one. Anyway, here it is.
ahh it happens , sometimes while working on RC3 i tend to go in directories of SMF 1.1x and after sometime come to realize that it's the wrong file i'm working on .
try the file attached
Very nice, but it still has one more bug, because i'm using the mod Yet another global annoucements. And i have a request. Anyway, look at the photo for the 'bug' and the request is also in the photo.
Thanks for your help! :)
does this help
http://www.simplemachines.org/community/index.php?topic=379308.msg2651453#msg2651453
it's late here , going to sleep . if that doesn't solve your problem reply here i'll look into it in morning :)
No not really. :/
try this one
Nice, thank you. It repaired it.
Okay, i hope i am not annoying you, but the last thing i would you to do for me, is to move the columns like i pointed with arrows. basically just swap the places of 2x2 columns. Also i'm going to bed, try to get some sleep, it's 10AM here and i still haven't slept...
And congratulations on 1400th post. :)
Quote from: frozenas on July 31, 2010, 02:53:34 AM
Okay, i hope i am not annoying you, but the last thing i would you to do for me, is to move the columns like i pointed with arrows. basically just swap the places of 2x2 columns. Also i'm going to bed, try to get some sleep, it's 10AM here and i still haven't slept...
i did that , but go get some sleep first , coz in sleepy condition we tend to make most mistakes .try the file attached
QuoteAnd congratulations on 1400th post. :)
TY ;D , i just noticed after you said
Nice, thank you! It's working perfect.
Going to check out your Avatar mod soon, one of the things i need too. ;) Nice job!
Your welcome :)
Mod Updated
Version 1.6 change log*
-Mod name changed. (VB Style Message Index to Separate Replies and Views Column)
-Support for YAGAM mod provided .
Heavily modded custom theme.
Works great. Looks nice.
Mucho thanks.
What happened tot he mod by sid2varun :S??
Quote from: yoghurtfarmer on September 06, 2010, 06:00:32 PM
What happened tot he mod by sid2varun :S??
It''s the same mod , just the name of both author and mod is changed ;).
I'd like to install something like this for 1.1.11 is it possible?
I have an old mod installed on my other live forum (Message index like vbulletin) that does the same thing (I think) but its not for download here anymore
Quote from: Kat9119 on October 20, 2010, 07:15:55 PM
I'd like to install something like this for 1.1.11 is it possible?
Chances are less that I backport it for 1.1.11
QuoteI have an old mod installed on my other live forum (Message index like vbulletin) that does the same thing (I think) but its not for download here anymore
That was this mod only ;) , i changed the name.
Ok, so basically I'm SOL for this then huh? LOL :(
Version 1.7 change log*
- Mod updated for RC4
Quote from: Kat9119 on October 21, 2010, 03:21:29 PM
Ok, so basically I'm SOL for this then huh? LOL :(
Don't we have separate columns for replies and views in boards already for SMF 1.1.12?
Awesome MOD, though I would prefer it to be labeled Replies / Views /Last Post , in that order.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F2ppk4mt.png&hash=40eb2006ea8f99432ec4908e4b81f7ae00974dd2)
I'm sure it can be manually edited like that, though, right? Or is the image in the first post not updated?
Quote from: hcfwesker on November 20, 2010, 02:13:15 PM
Awesome MOD, though I would prefer it to be labeled Replies / Views /Last Post , in that order.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F2ppk4mt.png&hash=40eb2006ea8f99432ec4908e4b81f7ae00974dd2)
I'm sure it can be manually edited like that, though, right?
I tried to give it a proper VB look. But yeah with some manual it can be easily accomplished.
Thank You, oh kind sir :) If I run into any issues, hope you don't mind me asking for help.
Quote from: hcfwesker on November 20, 2010, 02:17:13 PM
Thank You, oh kind sir :) If I run into any issues, hope you don't mind me asking for help.
Sure but if you can wait for some hours as i just finished a lot of work and want to grab some sleep. Just attach the file here, I'll modify it for you asap.
I'll make a copy, and try myself ( i need to learn this smf2 style of coding). If i fail, I'll send you the original backup copy. thanx so much for the offer, Joker. Truly a germ here on smf support. :) I'll be in touch.
Hello,
I installed this mod without any problem but I noticed that something wrong with the posts and topics count in child boards. See the attached image. It says Posts 65 Topics 343 but it can't be. It is impossible to have more topics than posts in a forum, isn't it? Can it be fixed somehow?
Update:
I got it. ;D This cause the problem:
// Show some basic information about the number of posts, etc.
echo '
</td>';
if ($board['is_redirect'])
echo '
<td class="windowbg" align="center" colspan="2" width="14%"><p>', $board['posts']. ' '. $txt['redirects'] , ' </p></td>';
else
echo '
<td class="windowbg" align="center" width="7%">', comma_format($board['topics']),'</td>
<td class="windowbg" align="center" width="7%">', comma_format($board['posts']),'</td>';
It should be:
<td class="windowbg" align="center" width="7%">', comma_format($board['posts']),'</td>
<td class="windowbg" align="center" width="7%">', comma_format($board['topics']),'</td>';
Try new package ;)
Hi Joker...
I want to use this mod with VB index style and hover mod. Have you or others any experience in the sequence to install this to do i automatically...
Quote from: henrik1782 on February 16, 2011, 11:38:26 AM
Hi Joker...
I want to use this mod with VB index style and hover mod. Have you or others any experience in the sequence to install this to do i automatically...
Just saw the code of Board Hover mod, and it's code are clashing with the code of both of my mods. I'll see and post the edits here regarding the mod in a short while.
Thanks Joker...
I modified the packages a bit, install them in this order
First to last
1 - VB style Board Index
2 - Separate views and replies column
3 - Board Hover
Thanks Joker...
I really appreciate this.
Quote from: henrik1782 on February 18, 2011, 10:40:45 AM
Thanks Joker...
I really appreciate this.
Your welcome :).
Thank you for the wonderful mod! I thought I'd let everybody know that when I updated my forum from 2.0 RC5 to 2.0 Gold, I had to reinstall all my mods. This mod installed without issues and without emulation. Hope this info helps someone!
one mod I always install since I dislike the look of 2.0.x's replies and views. I like them in columns
Joker:
if I already have the New_Layout_for_Last_Post mod installed, how do I manually install the Separate Replies and Views Column mod?
Can you help me?
:)
(sorry - using smf 2.0)
I have that mod as well
I installed Separate Replies and Views Columns first than that and I didn't have to manually edit all the files
if I'm wrong, apologies, but I have both mods and I remember I didn't have to manually install either mod
Well, okay. I should have specified that it didn't have an uninstall, and when I parsed it (to manually uninstal) it
must've been an older version, and didn't have the proper unistall ...and more complications.
The solution was that I just force manually installed it over the New_Layout_for_Last_Post mod, and
it seems to be working fine.
I updated my forum from RC5 - 2.0 today, and I've been updating mods since.
Lots of fun!
::)
And thanks.
:)
How may I install this mod to 1.1.14 please?
Quote from: alpheus on July 04, 2011, 07:51:25 AM
How may I install this mod to 1.1.14 please?
You can't as this mod is compatible to SMF 2.0 branch only and I've no intention to backport any of my mods for SMF 1.x.
Just wanted to give a suggestion, not something absolutely necessary. But when clicking unread posts, or unread replies up in the forum header, they still look the same as smf default set-up. I know this MOD only edits the Message Index, and the manual edits are actually easy to do. But just wanted to throw out the suggestion in case you wanted ideas for further updates.
Quote from: hcfwesker on November 24, 2011, 02:53:38 PM
Just wanted to give a suggestion, not something absolutely necessary. But when clicking unread posts, or unread replies up in the forum header, they still look the same as smf default set-up. I know this MOD only edits the Message Index, and the manual edits are actually easy to do. But just wanted to throw out the suggestion in case you wanted ideas for further updates.
Thanks for the suggestion. One might expect it in next release :).
Dear Joker,
Can you help me install the Separate Replies and Views Column mods and Started By Column?? I has been manually installing till i dunno where i am going especially both code require editing in MessageIndex.template.php and due to the theme i used which the code a little different, it really makes my job tougher a lot >.< I just wish to install this mods in one of my theme only >.<
Thank you very much >.<
http://custom.simplemachines.org/mods/index.php?mod=2625
http://custom.simplemachines.org/mods/index.php?mod=2536
It would probably be much easier if you uploaded and attached the MessageIndex.template.php file of the theme you're trying to install it on.
Opps, sorry >.< Here is it :)
I think I help someone with merging both of the mods somewhere. Give me a few hrs to get my brain on place and the code will be here ;).
thank you so much and sorry for troubling you again >.<
oh ya that MessageIndex.template.php can replace with the default 1? @.@
Eric do a simple thing first before I start working on this.
Install this mod.
Using parse guide (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2625;attach=189935;smf_version=2.0.2) install started by mod manually on your setup.
Skip the common edits in both of the mods. Just give a try ;).
You mean you want me to install both mods 1st? @.@
then what you mean by skip the common edits in both of the mods?? And Using parse guide install started by mod manually on your setup, er.. what that mean too >.<
I am sorry as my understanding skill is kinda low >.<
Install "Separate Replies and Views Column"
Make backup of MessageIndex.template.php
Using parse guide (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2625;attach=189935;smf_version=2.0.2) install "Started by mod" manually on your setup. Skip the common edits in both of the mods while doing this.
Installed the 1st mod and manually install the 2nd mods which is Started by.
I dunno why, whenever i try to manually install the Started by mods always encounter this error
QuoteTemplate Parse Error!
There was a problem loading the /Themes/zentoa_20/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.
syntax error, unexpected T_STRING, expecting ',' or ';'
after i do this step
Find:
<th scope="col" class="lefttext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
Replace with :
<th scope="col" class="lefttext"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=subject', $context['sort_by'] == 'subject' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['subject'], $context['sort_by'] == 'subject' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th scope="col" width="15%"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=starter', $context['sort_by'] == 'starter' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['started_by'], $context['sort_by'] == 'starter' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
That is the MessageIndex.template.php after i edited it >.<
Fixed ;).
You were missing this
';
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.
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 >.<
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?
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
Try this file
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 >.<
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 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2625;attach=189935;smf_version=2.0.2) install "Started by mod" manually and skipped the common edits in both of the mods while doing that.
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 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2625;attach=189935;smf_version=2.0.2) 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 :)
echo '
</td>';
<!-- Last Post Info -->
</p>';
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
Quote from: Joker™ on January 21, 2012, 02:13:06 AM
echo '
</td>';
<!-- Last Post Info -->
</p>';
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 ! ^^
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
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 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=2535;attach=188534;smf_version=2.0.2) 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.
Argh..sorry. I replied at there now >.<
Does not seem to work. Any updates on this ?
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?
2.02
SquareEra
It isnt displaying in separate columns..still together
While installing the mod, make you you have selected the "SquareEra" theme.
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
Please attach following file here
themes/SquareEra/MessageIndex.template.php
Does anyone want to help me try to install this on 2.0.2 Core theme? Attached is my file, most of the edits needed fails. I attempted to do it manually, but had no luck as most of the "find and replace" edits don't exist. Thank you :)
The replies and view columns are already shown as separated columns in core theme on message index (inside of board).
Hiya all.
I am entrusted with this mod now but I haven't have time to look into it deeply yet. I also believe that my brother Joker is a better coder than I am. I will try to do my best in handling this mod.
Thank you for supporting this mod and do feel free to ask for support.
As reported by dougiefresh in this post (http://www.simplemachines.org/community/index.php?topic=379307.msg3779638#msg3779638), I will remove the code applied by this mod that are similar to VBBIS - VBulletin Board Index Style mod (http://custom.simplemachines.org/mods/index.php?mod=2535).
I will upgrade this mod soonest possible as it is in my next thing to do list.
Upgraded and updated.
#Change Logs
@Version 1.9.3
- Upgraded to a fully hook mod with no file modification.
- Remove VBulletin Board Index Style modifications that was mixed up from this mod as it should be installed using a separate mod known as VBBIS - VBulletin Board Index Style (http://custom.simplemachines.org/mods/index.php?mod=2535) mod.
- Remove support to YAGAM mod.
I like the mod except for one thing. Both the totals for replies and views are centered but the titles 'Replies' and 'Views' are left justified.
How would I make those centered as well?
I believe it is currently centered in the latest version 1.9.3 (see the attached image)). You can add class centertext, if it doesn't.
This is what I see. (I also checked it with the default theme.)
Edit: just saw your attachment. Now I'm confused.
That is a custom theme. In that case you need to open SRAVC.subs.php and make changes as follows:
Find two occurrences of this code:
<th scope="col" width="7%">
Change both of them to:
<th scope="col" class="centertext" width="7%">
I will update this into the current version 1.9.3.
Edited: Done inserting the above code into current version 1.9.3.
The updated code fixed the reply title but not the view title. ;)
Sorry. My mistake. It was supposed to be four changes made but I only made two. Try the latest package which I already uploaded. That should cover all four.
Perfect! Many thanks! :D
Any idea why I'm getting this error every time I go into the topic index?
8: Undefined variable: options
Apply Filter: Only show the errors from this file
File: /home/steve/public_html/forums/Sources/SRAVC.subs.php
Line: 50
That is because $options is not globalized. Thank you for your feedback Steve. Fixed this in the new version.
@Version 1.9.4
- Fix $options not globalize in subs file.
You are welcome and no more errors. Thanks! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi1262.photobucket.com%2Falbums%2Fii614%2FOPStuph%2Fnewboard%2Fsmilies%2Fourplace%2Fbiggrin2.gif%7Eoriginal&hash=996ee6dcf846ab9f1e45c6a756fe56dc4b026535)
Hey my friend, got something else for you. The background for pinned threads is different between 'Replies' and 'Views'.
In the attachment, the 3 at the top are pinned.
It's minor and not worth fixing if it's a hassle. :laugh:
That can be fixed but without it being fully hook. :( If you wish to do it, you can simply change a line in MessageIndex.template.php from:
<br />
to:
</td>
<td class="stats ' . $color_class . '"
Note: I think $context['topics'] which defines $topic that defines $color_class need to be re-defined in this mod though $context is already globalized. Otherwise, the right $color_class will not properly be called which results the current situation i.e. only windowbg is called.
Um ... there is no such line in that file.
<br />
Like I said, it's absolutely not a big deal.
There is, if you are looking in the default theme template file. That line was changed via buffering in SRAVC.subs.php.
But, yeah, it is not really a big deal.
Hopefully we can have easy template edit via hook in SMF 2.1 though I haven't seen that possibility yet.
Sorry I didn't get back to you on this. You are, of course, right ... there is break in the default MessageIndex.template.php file. There are 12 of them in fact. :P
Any chance you could point me to the one where I should make the change you suggested? From there I could figure out the other themes but I have no clue where to start.
I would like to make a suggestion on these two mods, if I may. It seems to me that the "Seperate Replies and Views Column" stuff should apply only to the topic listing in MessageIndex.template.php, not to the sub-board listing, as the sub-board listing doesn't have the Replies and Views columns.... IMO, it should be combined with the VBulletin Style Board Index mod....
I was specific with the code and that includes the tabs count. There is only one of that in default template, Steve. ;D
Quote from: ahrasis on January 08, 2015, 02:59:54 AM
<br />
Quote from: dougiefresh on January 11, 2015, 04:12:20 PM
I would like to make a suggestion on these two mods, if I may. It seems to me that the "Seperate Replies and Views Column" stuff should apply only to the topic listing in MessageIndex.template.php, not to the sub-board listing, as the sub-board listing doesn't have the Replies and Views columns.... IMO, it should be combined with the VBulletin Style Board Index mod....
VBBIS doesn't involve in separating replies and view column anymore and similarly SRAVC doesn't involve in separating posts and topics anymore. If both is needed, then both can be installed with no conflict.
*ahrasis would like to think like that - no conflict*
This is from my /home/steve/public_html/forums/Themes/default ...
Ah, my bad ::) Reread the changelog and finally caught that one. Whoops....
One suggestion/request: Please add an option so that we can get rid of the "replies" and "views" text from the columns. By that, I mean instead of showing "0 replies", just show "0". IMO, it would make it look a lot better. It would also make me want to install it :P
Quote from: dougiefresh on January 12, 2015, 01:03:53 PMOne suggestion/request: Please add an option so that we can get rid of the "replies" and "views" text from the columns. By that, I mean instead of showing "0 replies", just show "0". IMO, it would make it look a lot better. It would also make me want to install it :P
+1 ;D
Quote from: dougiefresh on January 12, 2015, 01:03:53 PM
Ah, my bad ::) Reread the changelog and finally caught that one. Whoops....
One suggestion/request: Please add an option so that we can get rid of the "replies" and "views" text from the columns. By that, I mean instead of showing "0 replies", just show "0". IMO, it would make it look a lot better. It would also make me want to install it :P
You know that would be as easy as removing its $txt. And yes, I will do that in the next update.
Quote from: Steve on January 12, 2015, 08:02:47 AM
This is from my /home/steve/public_html/forums/Themes/default ...
The code is in there:
<td class="stats ', $color_class, '">
', $topic['replies'], ' ', $txt['replies'], '
<br /> <-= This is the code you are looking for
', $topic['views'], ' ', $txt['views'], '
</td>
That line is changed so they become:
<td class="stats ', $color_class, '">
', $topic['replies'], ' ', $txt['replies'], '
</td>
<td class="stats ', $color_class, '">
', $topic['views'], ' ', $txt['views'], '
</td>
But I modified the file for you anyway. Attached. ;)
Oh! I totally misunderstood what you were telling me. I got it now! Thank you for fixing that file which shows me what I have to do! ;D
im having similiar issues with this mod, it installs fine but when i enable the seperate colums i get this (default theme) , how do i fix this?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fw9w9MrO.png&hash=0bbeb546ddac62d037c63f1506ee7244e45b6d3d)
I haven't tested this mod for quite a while. However you should uninstall and try it on a freshly installed forum default theme. If it's working, then the problem lies on your theme rather than the mod.
Does this mod work with BlackRain V2? I'm trying to get the posts and topics in 2 separate columns but I'm not having any luck. This mod works perfect on the default theme, but I can't get it to work on BlackRain V2.
I would very much like to have the feature which this mod provides. However, it doesn't seem to be working. Screenshot attached of before and after (same thing sravc1.png).
In a recent reply in this thread, it was mentioned that the problem might be in a theme. The theme in the screenshot is Aqua Style.
However, even the default SMF theme (Curve, I think) it doesn't work. 2nd screenshot (sravc2.png)
Also, I use Tiny Portal. If you need to know other mods, I could list them all (around 40).
Thank you very much :)
Oops - my bad! Looking at the wrong page. The mod is working as expected when the board is opened.
Sorry for the noise :-[