[3.2][3.3][RC] Topic Bookmark Count

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

[3.2][3.3][RC] Topic Bookmark Count

Post by Sniper_E »

Extension Name: Topic Bookmark Count
Author: Sniper_E
Extension Description: This extension shows the number of topic bookmarks in viewtopic above and below the topics.
The buttons link to your UCP Manage bookmarks page.

Image Image

Screenshot:
bookmark_count.gif

Extension Download: topicbookmarkcount_1.0.2.zip
Installation:
  1. Download the latest release and unzip content.
  2. Copy the contents to ext/sniper/topicbookmarks/
  3. Enable extension in the ACP
Enjoy!
You do not have the required permissions to view the files attached to this post.
Last edited by Sniper_E on Thu Jul 11, 2024 1:23 pm, edited 14 times in total.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][BETA] Topic Bookmark Count

Post by Sniper_E »

The topic bookmark count is setup only below the topics which which was what was asked for.

If you think it should be in both places I can easily add another event template in the next version.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
halil16
Registered User
Posts: 1393
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][BETA] Topic Bookmark Count

Post by halil16 »

Thanks so much for the extension. I looked at the code a bit, it looks pretty simple, thank you. Since I much customize my own style, I emptied the extension's style files. It works fine, I didn't see any errors. Maybe this can be added: when I remove it from favorites, the same number still remains; maybe it can be updated at that time.

Mobile and deskop views:
asasas.png
You do not have the required permissions to view the files attached to this post.
Buy me a coffee
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O BeldeThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][BETA] Topic Bookmark Count

Post by Sniper_E »

Yes there are only a few extensions out there that are as simple as this one.
One sql query that checks the number of bookmarks in any given topic and a template var to render the results to the template. I was fatigued.
halil16 wrote: Mon Nov 06, 2023 9:32 amMaybe this can be added: when I remove it from favorites, the same number still remains; maybe it can be updated at that time.
I'm releasing version 1.0.1 and adding that other event template for the top. You need to be more specific on what can be added. I don't understand.

In my test topic it shows 2 bookmarks. When I click 'Remove from bookmarks' it says 'Removed from bookmarks successfully' but I still see 2 bookmarks.
Leave the topic and come back later or refresh the page after removing the bookmark and you will see 1 bookmark.
And mobile view looks the same in desktop using prosilver and prosilver type styles. Your image shows your custom css difference in your style.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
halil16
Registered User
Posts: 1393
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: [3.3][BETA] Topic Bookmark Count

Post by halil16 »

I wanted that after removing it from the bookmarks, it run a query and update the count. But if it doesn't happen, that's not a problem. Thank you.
Buy me a coffee
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O BeldeThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by Sniper_E »

I see... that refresh function would have to be in the Tools dropdown button selection codes onclick. That can't be done from within this extension.
Yet in the listener it might be able to listen for that bookmark($event) trigger and refresh the page. A bit over my programming ability at the moment.

First post updated to version 1.0.1
Added event template to show bookmark count above and below the topics and linked the 2 buttons to your UCP Manage bookmarks page.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
cabot
Registered User
Posts: 771
Joined: Sat Jan 07, 2012 4:16 pm

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by cabot »

Hello Sniper_E,

Just a small suggestion, loading a stylesheet for a CSS rule containing a single declaration seems a bit excessive to me (imho), perhaps it would be more economical in terms of HTTP requests to integrate the rule directly through a <style> tag in overall_header_stylesheets_after (conditioned in the same way as the call to the file)?
User avatar
Meis2M
Translator
Posts: 1012
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by Meis2M »

very good ext and it could be in the core
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by Sniper_E »

cabot wrote: Tue Nov 07, 2023 2:09 pmJust a small suggestion, loading a stylesheet for a CSS rule containing a single declaration seems a bit excessive.
You're right, I think I'll remove that -2px margin adjustment completely and have no stylesheet at all. Thanks, good suggestion.

First post updated to version 1.0.2 - Removed the added css from extension. That should be the final version. [RC]
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Siava
Registered User
Posts: 154
Joined: Wed Jan 26, 2005 10:07 am

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by Siava »

Domain sniper-e.net is not resolving.
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by Sniper_E »

First post updated.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
exUBert
Registered User
Posts: 3
Joined: Tue Jan 09, 2007 6:54 pm
Location: Turkey

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by exUBert »

There is an archive error. Can you update the file upload?
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.2][3.3][RC] Topic Bookmark Count

Post by Sniper_E »

Fixed download.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:

Return to “Extensions in Development”