Announcement

Collapse
No announcement yet.

new mod : Sharing to other platforms

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    new mod : Sharing to other platforms

    hy,

    if someone is interested :

    i created a mod that allows you to add an icon to each post with options for sharing on other platforms. I honestly thought it was absurd that it wasn't native to vBulletin.

    A few hours of Claude Code and a bit of debugging later, and the mod is fully functional and bilingual (english/italian) but easy to implement other language.

    It's installed in my forum, and if anyone wants it, I attach here the zip with all files and installation instructions.

    Uninstallation is simple because the mod doesn't touch the database or install any PHP code. It's all static JS/CSS plus an addition to a template.
    ​



    mdl_share_mod/
    β”œβ”€β”€ README_IT.md ← Full guide in Italian
    β”œβ”€β”€ README_EN.md ← Full guide in English
    β”œβ”€β”€ CHANGELOG.md ← Version history
    β”œβ”€β”€ files/ ← To upload via FTP
    β”‚ └── core/
    β”‚ β”œβ”€β”€ clientscript/
    β”‚ β”‚ └── mdl_sharepost/
    β”‚ β”‚ β”œβ”€β”€ mdl_sharepost.js ← v2.2.1 with config block
    β”‚ β”‚ └── mdl_sharepost.css
    β”‚ └── images/
    β”‚ └── default/
    β”‚ └── default_facebook.png ← Optimized 1200Γ—630 logo
    └── template/
    └── hook_postfooter_bookmark_click.html ← Code to paste in AdminCP​


    Here is an example how it works :

    Click image for larger version  Name:	image.png Views:	0 Size:	237.0 KB ID:	34273​




    ## What this mod does

    Adds a "Share" button below every forum post. Clicking it opens a popup with buttons to share the post on:

    - Facebook
    - X / Twitter
    - WhatsApp
    - Telegram
    - LinkedIn
    - Email
    - Reddit (optional)
    - Pinterest (optional)

    Plus a "Copy link" button to copy the post URL to the clipboard.

    Shared links use the SEO-friendly thread URL, so WhatsApp/Facebook link previews work correctly.

    ---

    ## Requirements

    - A working vBulletin 6.x installation
    - FTP access to the forum server
    - Access to the admin control panel (AdminCP)
    - The **"Add Post to Bookmarks by vBMods.rocks"** plugin installed and active (this mod hooks into its template; if you don't have it, see the "Without the Bookmark plugin" in mod instructions)
    ​

    v2.3.0 (current)

    - **Per-post sharing**: the shared URL now points to the specific post being shared (matching vBulletin's own `#1, #2, #3` post links), instead of always pointing to the thread starter. Replies use `?p=<nodeid>#post<nodeid>`; the thread starter uses the clean canonical URL.
    - Same URL pattern that vBulletin itself uses, so links are guaranteed compatible with vB6 SEO-friendly routing on both desktop and mobile.

    ## v2.2.1

    - Mobile menu fix: when the share button is shown inside the dropdown menu activated by the three-dots icon on mobile, the button now displays both the icon and the localized "Share" / "Condividi" label, matching the visual style of the other native vBulletin buttons (Infraction, Edit, Report).
    - Added a `<span class="b-post-control__label">` element next to the icon.​
    ​

    #2
    Did you see my reply in

    Hi Glenn I would like to submit some ideas for new mods here. It happens to me sometimes, and I remember that for the old version of vbulletin there was a mod about it, that users who are banned or just want to create confusion register again using a free email. I remember that there was an old mod for vbulletin that used
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link ​
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    Comment


      #3
      Originally posted by glennrocksvb View Post
      thanx.. you are right,.

      fixed with this version 2.3.0 ( post updated)

      Comment


        #4
        The Share link appears twice on mobile.

        Click image for larger version

Name:	image.png
Views:	0
Size:	80.0 KB
ID:	34291​
        Buy me a coffeePayPal QR Code
        My Amazon Affiliate Link ​
        Fast vBulletin VPS Host:
        This site is hosted by IONOS

        Comment


          #5
          Thanks for reporting I fix it soon

          Comment


            #6
            The solution is to add "js-comp-menu--exclude-from-dropdown" class to the <li> element for the Share link. This tells vBulletin to exclude this post footer control from the menu dropdown when the all post footer controls don't fit the available screen width which is usually in mobile or small tablet viewports.
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link ​
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment

            Latest Posts

            Collapse

            Working...
            X
            Searching...Please wait.
            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

            Please push the back button and reload the previous window.'
            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

            Please push the back button and reload the previous window.'
            An internal error has occurred and the module cannot be displayed.
            There are no results that meet this criteria.
            Search Result for "|||"