VBBIS - VBulletin Board Index Style (Partially Hook!)

Started by Hj Ahmad Rasyid Hj Ismail, May 02, 2010, 04:08:37 AM

Previous topic - Next topic

Hj Ahmad Rasyid Hj Ismail

Link to Mod

VBBIS - VBulletin Board Index Style

- For SMF 1.1.x and SMF 2.0.x
- Partially hook, minor file modification for SMF 2.0.x.

1. Please do your own backup though every installation is backed up automatically.
2. This mod allows you to imitate VBulletin Board Index Style.
3. Topics and posts will have their own column and each columns will have their own header and name.
4. You can test it in all lower version as IMO it should work just fine. ;)
5. This mod also fixes white border in Message Index page.
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™
Alternative Support Site: BurkeKnight Enterprises

 


#Change Logs

@Version 1.9.3
- Upgrade to partially hook for SMF 2.0.x.
- Fix some css like white borders and smalltext.

@Version 1.9.2
- Mod added on GitHub - Github Link
- License changed

@Version 1.91
- Removed invalid XHTML invalid markups from mod.

@Version 1.9
- Separate topics and posts columns layout made for child boards too.

@Version 1.8 (For SMF 2x) and Version 1.2 (For SMF 1x)
- Mod compatible to SMF 2.0 final and SMF 1.1.14
- License added to the mod

@Version 1.7 (For SMF 2x) and Version 1.1 (For SMF 1x)
- Post and topics column were swapped. Bug removed

@Version 1.6
- Mod updated for RC4

@Version 1.5
- Issues were left in Redirect boards. Resolved with the help of code provided by Tair(thanks a lot :) )

@Version 1.4
- Redirect count issue solved. The count for redirect boards will be shown in posts column.

@Version 1.3
- Posts and topics count got swapped. Bug removed.

@Version 1.2
- Posts & topics count of redirected boards was messed up . Bug removed .

@Version 1.1
- Child board column was ending in between. Error removed.

@Version 1.0.0
- Initial Release.

Canownueasy

This is one of the best mods! Thanks  :D

Joker™

Quote from: Arantor on May 06, 2010, 07:15:43 PM
Won't work with Project Tools without a lot of work though.

KK i'll try to make it compatible with it in next upgrade if possible.
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

Joker™

ohh ok . so dropping the idea for while :D as im having exams till june mid ;)
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

divecall

I apply the mod manually with the package-parser. but i have a problem: looks like that "topics" and "post" is swapped... :-\

can you help me ?

divecall

Kurios...

But i figured out myself...

Joker™

ohhh .. i think the topic and post text written on bar might have got swapped by me itself , let me check and update if required :)
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

Joker™

Quote from: divecall on June 12, 2010, 03:56:41 AM
Kurios...

But i figured out myself...

Sorry for inconvenience . Mod updated and the bug removed.
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

Tair

nice mod. But after installation i see 1 instead of xxx in number of redirects

Joker™

Quote from: Tair on June 12, 2010, 12:41:36 PM
nice mod. But after installation i see 1 instead of xxx in number of redirects

actually smf counts only the posts of board you have redirected your board to.

I'll take a look into this in a short while , will upgrade the mod soon :)
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

Joker™

Quote from: Tair on June 12, 2010, 12:41:36 PM
nice mod. But after installation i see 1 instead of xxx in number of redirects

try the new version of mod
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

Tair

Quote from: sid2varun on June 14, 2010, 03:31:41 AM
Quote from: Tair on June 12, 2010, 12:41:36 PM
nice mod. But after installation i see 1 instead of xxx in number of redirects

try the new version of mod

ye, now it shows correct numbers. But i think default SMF style for redirected boards will be better. Or some trick with the name of column - because the number of redirects is not the number of messages.

Joker™

Quote from: Tair on June 14, 2010, 06:10:51 AM
ye, now it shows correct numbers. But i think default SMF style for redirected boards will be better. Or some trick with the name of column - because the number of redirects is not the number of messages.

i tried that also and was successful in it also , but the problem comes if you have a normal board and a redirected board in same category , then which column name will site choose ? :o
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

Tair

Quote from: sid2varun on June 14, 2010, 06:14:17 AM
i tried that also and was successful in it also , but the problem comes if you have a normal board and a redirected board in same category , then which column name will site choose ? :o
nice question. I'll check later today, as now i have special category for redirected boards.

Joker™

Quote from: Tair on June 14, 2010, 06:17:04 AM
nice question. I'll check later today, as now i have special category for redirected boards.

if so , it's very easy to modify it .
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

Tair

#15
Quote from: sid2varun on June 14, 2010, 06:52:21 AM
Quote from: Tair on June 14, 2010, 06:17:04 AM
nice question. I'll check later today, as now i have special category for redirected boards.

if so , it's very easy to modify it .

checked. All seems ok

P.s. Modified mod to my own style:


echo '
            <tr style="line-height:8px;">
           <td align="center" class="windowbg"><strong>', $txt['status'],'</strong></td>
           <td align="left" class="windowbg"><strong>', $txt['board'],'</strong></td>
            <td align="center" class="windowbg"><strong>', $txt['topics'],'</strong></td>
            <td align="center" class="windowbg"><strong>', $txt['posts'],'</strong></td>
            <td align="center" class="windowbg"><strong>', $txt['last_post'],'</strong></td>
            </tr>';


to

echo '
            <tr style="line-height:8px;">
           <td align="center" class="windowbg"></td>
           <td align="left" class="windowbg">', $txt['board'],'</td>
            <td align="center" class="windowbg">', $txt['topics'],'</td>
            <td align="center" class="windowbg">', $txt['posts'],'</td>
            <td align="center" class="windowbg">', $txt['last_post'],'</td>
            </tr>';


and


// Show some basic information about the number of posts, etc.
echo '
</td>
<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">';


to


// 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="16%"><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">';
else
echo '
<td class="windowbg" align="center" width="8%">', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '</td>
<td class="windowbg" align="center" width="8%">', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '</td>
<td class="lastpost">';



Joker™

nice , i'll add it soon in package.
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

Tair

#17
Simplified & fixed 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="16%"><p>', $board['posts']. ' '. $txt['redirects'] , ' </p>
</td>
<td class="lastpost">';
else
echo '
<td class="windowbg" align="center" width="8%">', comma_format($board['topics']),'</td>
<td class="windowbg" align="center" width="8%">', comma_format($board['posts']),'</td>
<td class="lastpost">';


seems it's correct (i hope)..as i'm not programmer at all :P

Joker™

i'll surely look at it tomorrow , as right now i myself got stuck in many codes and seeking for help.out of my 4 changes in my forum i managed to complete only 1 yet in whole one week :( . need to speed things up :D
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

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

Advertisement: