[BETA] Topic Preview 0.5

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

[BETA] Topic Preview 0.5

Post by kvfb97 »

This MOD allows you to roll over a topic name on your view forum page and it will display a javascript popup of a preview of the topic. It shows BB Code and Emotions within the preview.

SCREENSHOT
Image

DEMO can be found HERE

DOWNLOAD can be found HERE

MOD HISTORY
2005-12-27 - Version 0.0.1
- First version of this MOD

2005-12-28 - Version 0.2
- Fixed a issue with announcements.
- Edited the install file and where the overlib.js file is now placed.
- Adding upgrading files, and install instructions for other styles.
- Added 'Topic Preview' into the lang_main file (thanks to Bicet ;o))

2005-12-28 - Version 0.3
- Added <br /> tags

2005-12-28 - Version 0.4
- Fixed an error including '

2005-12-28 - Version 0.5

- Fixed up the install file.
- Added features to the Board config that allow you to choose the length of your topic preview, with of the preview box, and weither or not to allow smiles and bbcode.
Last edited by kvfb97 on Fri Dec 30, 2005 11:15 pm, edited 5 times in total.
martin_uy
Registered User
Posts: 46
Joined: Sun Oct 16, 2005 5:52 pm
Contact:

Post by martin_uy »

Excellent!
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

Upgraded to 0.3.

Changes:
- Added <br /> tags
User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

User avatar
DeViAnThans3
Registered User
Posts: 877
Joined: Sat Oct 08, 2005 10:39 pm
Location: Belgium

Post by DeViAnThans3 »

Seems to be indeed already in MOD DB, but this is looking better :P
Only remark (question): how configurable is this mod? :)
I only provide support via the appropriate topics! Please no PM or mails! :)
My MODs :: [BETA] Facebook Connect
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

I think mine looks and works better...

In how configurable, do you mean how long can the preview be? Maximum is 255 characters.
Ex0dus
Registered User
Posts: 98
Joined: Mon Nov 01, 2004 1:17 am
Location: Zarasu, Lithuania
Contact:

Post by Ex0dus »

Two questions:

1. Does the preview shift with the template in use? (im pretty sure it does, but im asking anyway ^_<)

and

2. Is the maximum preview configurable? If not, could that feature be added?

-Ex0dus
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

Ex0dus wrote: Two questions:

1. Does the preview shift with the template in use? (im pretty sure it does, but im asking anyway ^_<)

and

2. Is the maximum preview configurable? If not, could that feature be added?

-Ex0dus


1/ Explain more... im lost.
2/ I had a ACP setting at the start, but the maximum you can have is 255 so is there much point really?
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

Just a little error if your using the Aphrodite code included:

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#
templates/ca_aphrodite/viewforum_body.tpl

# 
#-----[ FIND ]------------------------------------------ 
#
<a href="{topicrow.U_VIEW_TOPIC}" onmouseover="return overlib('<table cellspacing=0 width=100% class=forumline><tr><th>{L_TOPIC_PREVIEW}</th></tr><tr><td class=row1g align=left><span class=gensmall>{topicrow.TOPIC_PREVIEW}</span></td></tr></table>')" onmouseout="return nd();">{topicrow.TOPIC_TITLE}</a>

# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
<a href="{topicrow.U_VIEW_TOPIC}" onmouseover="return overlib('<table cellspacing=0 width=100% class=forumline><tr><th>{L_TOPIC_PREVIEW}</th></tr><tr><td class=post-text align=left><span class=gensmall>{topicrow.TOPIC_PREVIEW}</span></td></tr></table>')" onmouseout="return nd();">{topicrow.TOPIC_TITLE}</a>
User avatar
DeViAnThans3
Registered User
Posts: 877
Joined: Sat Oct 08, 2005 10:39 pm
Location: Belgium

Post by DeViAnThans3 »

kvfb97 wrote: I think mine looks and works better...

In how configurable, do you mean how long can the preview be? Maximum is 255 characters.

by example i mean, you can set, it should only show xxx characters, you can choose yourself how much characters it should show
and maybe also other options like "allow bbcode parsing or not" ... :wink:
I only provide support via the appropriate topics! Please no PM or mails! :)
My MODs :: [BETA] Facebook Connect
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

DeViAnThans3 wrote:
kvfb97 wrote:I think mine looks and works better...

In how configurable, do you mean how long can the preview be? Maximum is 255 characters.

by example i mean, you can set, it should only show xxx characters, you can choose yourself how much characters it should show
and maybe also other options like "allow bbcode parsing or not" ... :wink:


Good idea! I'll be adding that next, for the final version. Thanks! :D
Swizec
Former Team Member
Posts: 1701
Joined: Mon Mar 10, 2003 9:42 pm
Location: Slovenia
Contact:

Post by Swizec »

My Topic Description mod already does this, but still, yours seems to be only about the tooltips which is good, simplicity for those who want it :)
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

Swizec wrote: My Topic Description mod already does this, but still, yours seems to be only about the tooltips which is good, simplicity for those who want it :)


Yeah i like simple :D

Updated to 0.4.

Code: Select all

#
#-----[ OPEN ]------------------------------------------ 
# 
viewforum.php

# 
#-----[ FIND ]------------------------------------------ 
# 
		$topic_preview = str_replace("\n", "<br/>", $topic_preview);
	
# 
#-----[ AFTER, ADD ]------------------------------------------ 
#
		$topic_preview = str_replace("'", "\'", $topic_preview);

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

Planning to have changable values (from the ACP) including;
- Length of the topic preview
- Width of the topic preview box
- Enable smiles
kvfb97
Registered User
Posts: 81
Joined: Fri Apr 16, 2004 10:53 pm
Location: Northern Ireland, UK

Post by kvfb97 »

Upgraded to 0.5.

Changes:
- Fixed up the install file.
- Added features to the Board config that allow you to choose the length of your topic preview, with of the preview box, and weither or not to allow smiles and bbcode.
Post Reply

Return to “[2.0.x] MODs in Development”