Jump to content

(Bim) X New Topics


onlyME

Recommended Posts

%7Boption%7D



File Name: (Bim) X New Topics

File Submitter: onlyME

File Submitted: 13 Sep 2011

File Category: Integration

Supported Versions: IP.Board 3.3.x, IP.Board 3.4.x



- Show NEW TOPICS OR NEW POSTS in board index/sidebar
- There are 4 blocks, each block can select multiple forums, can set title (name) for each block.
- Enable / disable user's name and avatar

I just added a hook to the sidebar for those who need it. Plz redownload.



here to download this file

Link to comment
Share on other sites

  • 1 month later...
  • Replies 73
  • Created
  • Last Reply

just to clarify, you can install either the board index hook OR the sidebar hook, not BOTH.

great mod, thanks Mr ME


on the next update,

can you add the option of being able to display the board index hook on forum/subforum/topic display

and make the whole thing collapsible


also, when selecting 'view NEW TOPICS' = No, can you also have the option of

# go to latest post (page__view__getlastpost)
or
# view all new posts (page__view__unread)

(settable in ACP)?

regards

Rich.

Link to comment
Share on other sites

  • 2 weeks later...

If you are not going to address the permissions issue, please say so, so I can uninstall this mod.



Currently it represents a bit of a problem in displaying information that some member groups should not see.



RSVP



cheers


Richard



I will release a new version in a few days
Link to comment
Share on other sites

I recently updated version 2.0.0

Changelog:

  • Rewrite the code, remove the redundant code.
  • Fixed group permissions.
  • Fixed collapse in sidebar.
  • Added option go to latest post (getlastpost) if 'DISPLAY NEW TOPIC' is NO, otherwise will view all new posts (getnewpost).
Link to comment
Share on other sites

I recently updated version 2.0.0 Changelog:

  • Rewrite the code, remove the redundant code.
  • Fixed group permissions.
  • Fixed collapse in sidebar.
  • Added option go to latest post (getlastpost) if 'DISPLAY NEW TOPIC' is NO, otherwise will view all new posts (getnewpost).



thanks for the update :smile:

can you edit the hook slightly?

if you look at the screen shot, there is a


<br>

that is causing an extra line when not displaying icon + nickname %7Boption%7D I think it's this one here:


&nbsp;{$icon} <a href='{$row['bim_url']}' title="{$row['title']}">{$row['bim_name']}</a><br>

			 &nbsp;<span class='desc ipsType_smaller'>{$row['bim_username']}</span>



can you change things so the 'br' is not used when ACP is set to "Display member's avatar and their nickname? = NO" ?


everything else is working perfectly :)

Richard

PS, in the hook xml, you might want to remove/change the 'hook_website' ;)

Link to comment
Share on other sites




thanks for the update :smile:



can you edit the hook slightly?



if you look at the screen shot, there is a



<br>

that is causing an extra line when not displaying icon + nickname %7Boption%7D I think it's this one here:


&amp;nbsp;{$icon} <a href='{$row['bim_url']}' title="{$row['title']}">{$row['bim_name']}</a><br>

			 &amp;nbsp;<span class='desc ipsType_smaller'>{$row['bim_username']}</span>



can you change things so the 'br' is not used when ACP is set to "Display member's avatar and their nickname? = NO" ?


everything else is working perfectly :)

Richard

PS, in the hook xml, you might want to remove/change the 'hook_website' ;)


oh, you can temporarily fix it, otherwise I will update when i come back home.
Ps: what you mean zuzu.vn? if you have time and not care about inconvenience, join it to discussion about ipb with only a few members who talk english very very bad but talkactive, spam... I did not have time to manage their activities :D
:) just kidding... :P
Link to comment
Share on other sites

Bug Found:

Recent Topics shows the latest poster in the topic instead of the topic starter.
So whoever posted last in that thread, their user name and avatar are displayed.
That can get pretty confusing. If that was intended or made an option ? ?

ACP Setting Could Be:

If [SHOW TOPIC STARTER] = Yes, [SHOW TOPIC STARTER] ELSE if [SHOW LAST POSTER] = YES, [SHOW LAST POSER]

Link to comment
Share on other sites


Bug Found:



Recent Topics shows the latest poster in the topic instead of the topic starter.


So whoever posted last in that thread, their user name and avatar are displayed.


That can get pretty confusing. If that was intended or made an option ? ?



ACP Setting Could Be:



If [SHOW TOPIC STARTER] = Yes, [SHOW TOPIC STARTER] ELSE if [SHOW LAST POSTER] = YES, [SHOW LAST POSER]



i'll check this... maybe after a few day, i'm traveling :)
Link to comment
Share on other sites


Brilliant mod thanks.



Is there a way to have it so it includes the date/time the post was made?



Thanks.



Hi bronco93, plz re-download (Bim) X New Topics 2.0.0 (fix3).zip and re-import the hook.
Date/time will be displayed when mouseover topic title.
Link to comment
Share on other sites


Thanks for adding it but it has messed up the layout.



There is now a gap between the title and the author that wasn't there before.



Here's a screenshot



%7Boption%7D

tqQxD.png' alt='' class='ipsImage' width

" alt="" class="ipsImage" width="1000" height="253">




Open hooks/bim_xnewtopics...php
find

&nbsp;{$icon} <a href='{$row['bim_url']}' data-tooltip="{$row['title']}<br>{$xdate}">{$row['bim_name']}</a><br>



remove <br> at the end.

Link to comment
Share on other sites

@OnlyME

When expanding the the truncate to 60 (to show longer titles, the second line of the title gets spaced right next to the avatar instead of starting underneith


row['bim_name'] = IPSText::truncate( $row['title'], 60 );



is there a way to add padding around the avatar to stop this from happening?

See screen shot
post-279870-0-74491600-1322503657_thumb.

Link to comment
Share on other sites

Find

$row['bim_username'] = "&nbsp;&nbsp;<span class='desc ipsType_smaller'>{$row['bim_makeuser']}</span>";[/CODE]

Replace with:

[CODE]$row['bim_username'] = "<span class='desc ipsType_smaller'>{$row['bim_makeuser']}</span>";

Find:

	   	 $row['bim_html'] = "<ul class='ipsList_withminiphoto'>

												<li class=clearfix>

													{$row['bim_avatar']}

													{$icon} <a href='{$row['bim_url']}' data-tooltip="{$row['title']}<br>{$xdate}">{$row['bim_name']}</a><br>

													{$row['bim_username']}

												</li>

											</ul>";

Replace with:

	   	 $row['bim_html'] = "<ul class='ipsList_withminiphoto'>

												<li class=clearfix>

													<p class='ipsUserPhotoLink left'>{$row['bim_avatar']}</p>

													<div class=list_content>{$icon} <a href='{$row['bim_url']}' data-tooltip="{$row['title']}<br>{$xdate}">{$row['bim_name']}</a><br>

													{$row['bim_username']}</div>

												</li>

											</ul>";




Sorry - a follow-up to ^^^



Is there a way to add what forum the topic was posted in?


For example the first one in the screen shot - add in what's red below.



Muller to replace Maurice


[size=2]hf101[/size] [size=2][color=#ff0000]in Philadelpha Flyers[/color][/size]




No, it's necessary :smile:
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...