Topic Preview

Can you help me make this plugin show previews without hover - Topic Preview

Can you help me make this plugin show previews without hover

by swift212 » Sat Oct 12, 2019 3:03 pm

I'm new to phpbb. I love this extension but was wondering if someone can help me take this one step further and show previews without having users needing to hover over the actual topic? basically show all topics with previews using this plugin.
swift212
Registered User
Posts: 5
Joined: Sat Oct 12, 2019 2:40 pm
Contact:

Re: Can you help me make this plugin show previews without h

by Dan Stylez » Sun Oct 13, 2019 9:26 pm

There is an extension called "topic description" https://www.phpbb.com/customise/db/exte ... scription/ this may be easier for what you are wanting to do.
Image
When you’re hot, you’re hot... when you’re cold, you’re not hot.
User avatar
Dan Stylez
Registered User
Posts: 278
Joined: Tue Jan 16, 2018 6:17 am
Contact:

Re: Can you help me make this plugin show previews without h

by swift212 » Sun Oct 13, 2019 9:37 pm

Thanks for the suggestion! Are you familiar with how to get that extension to retrieve an excerpt of the topics description automatically?
swift212
Registered User
Posts: 5
Joined: Sat Oct 12, 2019 2:40 pm
Contact:

Re: Can you help me make this plugin show previews without h

by Dan Stylez » Mon Oct 14, 2019 1:53 am

swift212 wrote: Thanks for the suggestion! Are you familiar with how to get that extension to retrieve an excerpt of the topics description automatically?
The description extension lets members write their own description so it would be harder to convert it,

The preview extension can be modified though which would be the easiest route, here is an example:

Image

If you have a test forum, you can try it yourself with the "prosilver" style folder i've attached to this post,

1 - Uninstall the extension in the ACP and click "delete data"
2 - With FTP go to extensions styles folder ext\vse\topicpreview\styles
3 - Delete the "all" and "subsilver2" style folders.
4 - Upload the "prosilver" style folder.
5 - Enable the extension.

This was only quickly done, the proper way to do it would be to edit more of the extensions files and remove the bits of code that aren't required i/e the JavaScript and the option to change the width of the preview, but that would take a wee bit longer.
Attachments
Topic-Preview-Prosilver-Style-Folder.zip
(2.94 KiB) Downloaded 2 times
Image
When you’re hot, you’re hot... when you’re cold, you’re not hot.
User avatar
Dan Stylez
Registered User
Posts: 278
Joined: Tue Jan 16, 2018 6:17 am
Contact:

Re: Can you help me make this plugin show previews without h

by swift212 » Mon Oct 14, 2019 2:17 am

I've added the folder to the ext styles and i'm not sure it works for me. I made sure to delete the ext data and cleared the cache on my browser as well as the board cache. all i get is the option to manually add the description.
Screen Shot 2019-10-13 at 10.10.07 PM.png
swift212
Registered User
Posts: 5
Joined: Sat Oct 12, 2019 2:40 pm
Contact:

Re: Can you help me make this plugin show previews without h

by swift212 » Mon Oct 14, 2019 2:23 am

Actually it did work for me! I accidentally re-enabled the wrong extension. Thanks for the help it's actually give a great place to start!! I'll review what you have and make necessary changes as i go.

Thanks again! I really appreciate it and your time!
swift212
Registered User
Posts: 5
Joined: Sat Oct 12, 2019 2:40 pm
Contact: