A Wordpress script/plugin that can do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jscott
    jscizzle
    • Feb 2001
    • 25411

    #1

    A Wordpress script/plugin that can do this?

    When you create "galleries" or posts in wordpress, you get the option to let each thumb link to:

    1. Attachement page, 2. Media File, 3. none

    Anyone know if there is a script/plugin that can change ALL the blog posts to one or the other?

    Thanks
    “If you think tough men are dangerous, wait until you see what weak men are capable of.”
    —Jordan B. Peterson

    Listen to Pomp tell why is Bitcoin important
  • Tom.K
    Confirmed User
    • May 2011
    • 422

    #2
    it would be useless by my opinion. wouldn't be? if you can change all links at once, there would be option to change only to one specific link. it could be useful if you want to set all to none or to change only first part of the link like domain and directory.

    anyway, check this plugin, maybe this you can use it somehow:

    https://wordpress.org/plugins/velvet-blues-update-urls/
    Promote LustReality.com - Exclusive VR content / email me

    *** Non-Exclusive content package on sale - contact me for info ***

    Comment

    • brassmonkey
      Pay It Forward
      • Sep 2005
      • 77396

      #3
      talk to homer simpson he's good
      TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
      DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

      Comment

      • jscott
        jscizzle
        • Feb 2001
        • 25411

        #4
        Tom, thanks man, will check it out. The reason I'm asking is, I want to raise my clicks to sponsors for more chance of sales, from linking eat thumbnail to a page ,and on that page the large image links to the sponsor, and also bottom/top of image could put some adverts too.

        brassmonkey, thanks, I'll search for Homer's contact info and give him a wassup
        “If you think tough men are dangerous, wait until you see what weak men are capable of.”
        —Jordan B. Peterson

        Listen to Pomp tell why is Bitcoin important

        Comment

        • just a punk
          So fuckin' bored
          • Jun 2003
          • 32393

          #5
          Ops ...
          Obey the Cowgod

          Comment

          • brassmonkey
            Pay It Forward
            • Sep 2005
            • 77396

            #6
            Originally posted by jscott
            Tom, thanks man, will check it out. The reason I'm asking is, I want to raise my clicks to sponsors for more chance of sales, from linking eat thumbnail to a page ,and on that page the large image links to the sponsor, and also bottom/top of image could put some adverts too.

            brassmonkey, thanks, I'll search for Homer's contact info and give him a wassup
            sent him the thread
            TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
            DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

            Comment

            • pornguy
              Too lazy to set a custom title
              • Mar 2003
              • 62912

              #7
              Originally posted by jscott
              Tom, thanks man, will check it out. The reason I'm asking is, I want to raise my clicks to sponsors for more chance of sales, from linking eat thumbnail to a page ,and on that page the large image links to the sponsor, and also bottom/top of image could put some adverts too.

              brassmonkey, thanks, I'll search for Homer's contact info and give him a wassup
              I wanted to do the same and with a plugin I would. But to try manually is a nightmare.
              PornGuy skype me pornguy_epic

              AmateurDough The Hottes Shemales online!
              TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

              Comment

              • AdultSites
                Confirmed User
                • Feb 2015
                • 203

                #8
                Find it in the database, and change it there.

                Comment

                • AmeliaG
                  Too lazy to set a custom title
                  • Jan 2003
                  • 10663

                  #9
                  That would be a cool plugin.
                  GFY Hall of Famer

                  AltStar Hall of Famer




                  Blue Blood's SpookyCash.com

                  Babe photography portfolio

                  Comment

                  • jscott
                    jscizzle
                    • Feb 2001
                    • 25411

                    #10
                    Originally posted by brassmonkey
                    sent him the thread
                    Thanks a lot man

                    Originally posted by AmeliaG
                    That would be a cool plugin.
                    Ya it would, it would save tons of people tons of time!

                    Originally posted by pornguy
                    I wanted to do the same and with a plugin I would. But to try manually is a nightmare.
                    Ya man, I wont do it manually, the blog I have has over 3000 posts, so doing manually? i'd rather jump off a cliff lol

                    Originally posted by AdultSites
                    Find it in the database, and change it there.
                    Thanks man, whomever I find (if i find) to help out with this, i'll suggest that to him/her, i appreciate the suggestion
                    “If you think tough men are dangerous, wait until you see what weak men are capable of.”
                    —Jordan B. Peterson

                    Listen to Pomp tell why is Bitcoin important

                    Comment

                    • VladS
                      Available for Coding Work
                      • Jun 2008
                      • 1459

                      #11
                      You mean to have it by default one or the other or to change it for existing content or both?
                      <developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery
                      Email: vlad [at] dangerouscoding.com
                      Telegram: @dangerouscoding

                      Comment

                      • jscott
                        jscizzle
                        • Feb 2001
                        • 25411

                        #12
                        Originally posted by VladS
                        You mean to have it by default one or the other or to change it for existing content or both?
                        for existing content
                        “If you think tough men are dangerous, wait until you see what weak men are capable of.”
                        —Jordan B. Peterson

                        Listen to Pomp tell why is Bitcoin important

                        Comment

                        • just a punk
                          So fuckin' bored
                          • Jun 2003
                          • 32393

                          #13
                          Originally posted by AdultSites
                          Find it in the database, and change it there.
                          Never even touch the WP database directly! Use API to alter it. In this particular case, you need to go through all existing posts, find the gallery shortcodes there and alter them according to this scheme:

                          [gallery] - linked to attachment
                          [gallery link="file"] - linked to file
                          [gallery link="none"] - not linked

                          Let's consider that all your gallery thumbnails are linked to attachments and you want to make them liked to the actual images. In other words, you have to replace this:

                          [gallery]

                          with this:

                          [gallery link="file"]

                          I'll show how to do it with the CyberSEO plugin, which almost all GFY's already have.
                          1. Go to "CyberSEO->Tools"
                          2. Find the "PHP Code <?php .. ?>" box and put there the following code:
                          3. Code:
                            $post->post_content = str_replace('[gallery]', '[gallery link="file"]', $post->post_content);
                          4. Click "Apply These Modifications To All Existing Posts"
                          5. Done!


                          If you want to do the opposite (i.e. make all the thumbnails to link to attachments instead of original images), you should use this code in step #3:

                          Code:
                          $post->post_content = str_replace('[gallery link="file"]', '[gallery]', $post->post_content);
                          Very simple, isn't it? And no special plugins needed
                          Obey the Cowgod

                          Comment

                          • AdultSites
                            Confirmed User
                            • Feb 2015
                            • 203

                            #14
                            Originally posted by AdultSites
                            Find it in the database, and change it there.
                            If you have cPanel, go to phpMyAdmin, and figure it out there. If you are not familiar, take time, and read about it on the Internet. Before you make any changes (sql commands), make sure you will be able to go back to the original state, at any time. Before you do anything, create a backup file (.sql) of the database.

                            Comment

                            • AdultSites
                              Confirmed User
                              • Feb 2015
                              • 203

                              #15
                              Originally posted by CyberSEO
                              Never even touch the WP database directly!
                              He does not need paid CyberSeo plugin to do this.

                              Comment

                              • Tom.K
                                Confirmed User
                                • May 2011
                                • 422

                                #16
                                Originally posted by CyberSEO
                                Never even touch the WP database directly!
                                I often edit wp database directly, either through phpmyadmin, either on sql file dumped locally. and editing in notepad++ or even notepad. never killed any site...
                                Promote LustReality.com - Exclusive VR content / email me

                                *** Non-Exclusive content package on sale - contact me for info ***

                                Comment

                                • Denny
                                  Too lazy to set a custom title
                                  • Feb 2005
                                  • 17390

                                  #17
                                  https://wordpress.org/plugins/search-and-replace/

                                  Maybe you would use this plugin to replace the string/shortcode in all the posts?

                                  Comment

                                  • just a punk
                                    So fuckin' bored
                                    • Jun 2003
                                    • 32393

                                    #18
                                    Originally posted by Tom.K
                                    I often edit wp database directly, either through phpmyadmin, either on sql file dumped locally. and editing in notepad++ or even notepad. never killed any site...
                                    Just a matter of time
                                    Obey the Cowgod

                                    Comment

                                    • VladS
                                      Available for Coding Work
                                      • Jun 2008
                                      • 1459

                                      #19
                                      If for existing content only, you can run a query to modify the database value for all current items, it's only a matter of looking at the database and identifying what is where and afterwards querying it to set the desired values.

                                      I do agree to what CyberSEO says to some degree, if one doesn't know what to do, shit can hit the fan, but it's common sense that when you modify a database directly, you have the required knowledge to do so.

                                      I'm not a huge fan of WordPress, i usually code my own shit, but from the rare occasions i did work with it, it has indeed the setup that where if one doesn't pay attention when dealing with the database, it can fuck everything up in no time.
                                      <developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery
                                      Email: vlad [at] dangerouscoding.com
                                      Telegram: @dangerouscoding

                                      Comment

                                      Working...