How can I make a texbox with the BBCODE to link to current page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Twig
    Confirmed User
    • Nov 2005
    • 1949

    #1

    How can I make a texbox with the BBCODE to link to current page?

    I want to add a textbox on a page, that always has the corresponding BBCODE to link to the page it's on.
    i.e. domain.com/index.html textbox shows

    [url!=domain.com/index.html]domain.com/index.html[/url!]
    (minus !)

    I know this can't be too hard, but there's a reason I use WordPress, and it's not because I'm a mastermind with PHP.
  • fris
    I have to go potty
    • Aug 2002
    • 55826

    #2
    i actually wrote a plugin like this for stickyfingerz, so he could share an image and post like lolcats.
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


    My Newest Theme

    Comment

    • Twig
      Confirmed User
      • Nov 2005
      • 1949

      #3
      Originally posted by fris
      i actually wrote a plugin like this for stickyfingerz, so he could share an image and post like lolcats.
      He told me about that, and this is what I emailed you about.
      Well, not 100% but this is the general idea of it.
      Can I hit you up on ICQ?

      Comment

      • fris
        I have to go potty
        • Aug 2002
        • 55826

        #4
        yep 704-299, if its not, i can prob do something custom for ya or recommend a solution
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


        My Newest Theme

        Comment

        • Twig
          Confirmed User
          • Nov 2005
          • 1949

          #5
          Originally posted by fris
          yep 704-299, if its not, i can prob do something custom for ya or recommend a solution
          You are never online, says my ICQ.

          Comment

          • Twig
            Confirmed User
            • Nov 2005
            • 1949

            #6
            I think I got the plugin you're talking about but it doesn't work for me because the images in my posts are injected by shortcode, they aren't actually coded into the post.
            Plus I want to add this code into a plugin I'm already using (Lazyest Gallery) so it will show the textbox w/code at the bottom of every gallery made by LG.
            Last edited by Twig; 09-08-2009, 04:23 PM.

            Comment

            • Twig
              Confirmed User
              • Nov 2005
              • 1949

              #7
              Another to the top for fris.

              Comment

              • fris
                I have to go potty
                • Aug 2002
                • 55826

                #8
                704-299 try again cause i rebooted
                Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                My Newest Theme

                Comment

                • Twig
                  Confirmed User
                  • Nov 2005
                  • 1949

                  #9
                  [19:58] *** Error while sending IM: This user is currently not logged on

                  Comment

                  • Twig
                    Confirmed User
                    • Nov 2005
                    • 1949

                    #10
                    Ok apparently ICQ is not going to work for us, because it's told me you're offline ever since the start of this thread.
                    I'm going to email you, because I made a little bit of development towards what I'm looking for, but can't get it all to work together.

                    Comment

                    • fris
                      I have to go potty
                      • Aug 2002
                      • 55826

                      #11
                      got the email will look at it tomorow and get back to you
                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                      My Newest Theme

                      Comment

                      • Twig
                        Confirmed User
                        • Nov 2005
                        • 1949

                        #12
                        Sounds good. Thanks.

                        Comment

                        • Twig
                          Confirmed User
                          • Nov 2005
                          • 1949

                          #13
                          Bump for big daddy fris.

                          Comment

                          • Twig
                            Confirmed User
                            • Nov 2005
                            • 1949

                            #14
                            You get around to looking at it yet ?

                            Comment

                            • GrouchyAdmin
                              Now choke yourself!
                              • Apr 2006
                              • 12085

                              #15
                              Share and enjoy.

                              Comment

                              • Twig
                                Confirmed User
                                • Nov 2005
                                • 1949

                                #16
                                I just briefly read over it, but this seems to be for enabling BBCODE as a type of input. I'm trying to show a code box at the bottom of certain pages, that is filled with the BBCODE that would be needed to input the pictures from that page into a forum post.
                                How most image host sites do. They give you the code to use to input the pictures you just uploaded.

                                Comment

                                • GrouchyAdmin
                                  Now choke yourself!
                                  • Apr 2006
                                  • 12085

                                  #17
                                  Oh; I entirely misunderstood.

                                  Something like this, only with the BBCode? (I don't display BBCode for that except on the upload page, so you won't see it; only a cut-and-paste non-bbcode textbox).

                                  I wouldn't condone this method, but it will work.

                                  Comment

                                  • Twig
                                    Confirmed User
                                    • Nov 2005
                                    • 1949

                                    #18
                                    Yea, but not for the current URL. I can accomplish that. I'm looking to have it implemented into a Gallery plugin, and display the BBCODE for all pictures within the gallery if on the Gallery page, or just the code for the pic, if you're viewing the pic directly.

                                    Comment

                                    • GrouchyAdmin
                                      Now choke yourself!
                                      • Apr 2006
                                      • 12085

                                      #19
                                      Originally posted by Twig
                                      Yea, but not for the current URL. I can accomplish that. I'm looking to have it implemented into a Gallery plugin, and display the BBCODE for all pictures within the gallery if on the Gallery page, or just the code for the pic, if you're viewing the pic directly.
                                      Ah. Well, that will depend on your version of Gallery. Gallery1, you're either parsing flatfiles or checking directories and globbing. Gallery2, I have honestly never messed with, so I'm unfamiliar with the tables. I'm not going to swoop in and grab someone else's question/fire here - but I bet this has already been addressed on the Gallery forums.

                                      Comment

                                      • Twig
                                        Confirmed User
                                        • Nov 2005
                                        • 1949

                                        #20
                                        Using NGGallery, was trying Lazyest Gallery before it went haywire.

                                        Comment

                                        • GrouchyAdmin
                                          Now choke yourself!
                                          • Apr 2006
                                          • 12085

                                          #21
                                          Looks like you want $image->href_link for a local ref; no idea if it populates all of $image with data or not. I'd print_r() it and see what it sets, and failing that, audit the code.

                                          Comment

                                          • stickyfingerz
                                            Doin fine
                                            • Oct 2005
                                            • 24984

                                            #22
                                            Originally posted by GrouchyAdmin
                                            Looks like you want $image->href_link for a local ref; no idea if it populates all of $image with data or not. I'd print_r() it and see what it sets, and failing that, audit the code.
                                            After you are done with all your code talk we should go down to that burger joint. I could go for one of those mammoth burgers that asian kid woofed 2 of down. lol

                                            Comment

                                            • GrouchyAdmin
                                              Now choke yourself!
                                              • Apr 2006
                                              • 12085

                                              #23
                                              Originally posted by stickyfingerz
                                              After you are done with all your code talk we should go down to that burger joint. I could go for one of those mammoth burgers that asian kid woofed 2 of down. lol
                                              I've been back in the states for years now - It'd be a hell of a long time to wait for dinner. Those were good, though.

                                              Comment

                                              • Twig
                                                Confirmed User
                                                • Nov 2005
                                                • 1949

                                                #24
                                                Originally posted by GrouchyAdmin
                                                Looks like you want $image->href_link for a local ref; no idea if it populates all of $image with data or not. I'd print_r() it and see what it sets, and failing that, audit the code.
                                                See, and now you lost me haha.
                                                Like I said in the OP, I'm no PHP man. I get the overall idea of what you're saying but I wouldn't be able to successfully implement that myself.

                                                Comment

                                                • stickyfingerz
                                                  Doin fine
                                                  • Oct 2005
                                                  • 24984

                                                  #25
                                                  Originally posted by GrouchyAdmin
                                                  I've been back in the states for years now - It'd be a hell of a long time to wait for dinner. Those were good, though.
                                                  Ya I know where you are now lol, I just like any excuse to think about bein down there again haha. Might be going, well probably will be going down for 4 or 5 days in the next month or two. Need a vaca pretty soon after I get some projects finished up.

                                                  Comment

                                                  • whiskey dick
                                                    Confirmed User
                                                    • Nov 2008
                                                    • 106

                                                    #26
                                                    There's a plugin called SEO Ultimate that automatically inserts a linkbox with the html code in it for the link. The code is directly editable in the plugin options and should be easy to modify for what you want. It looks like this by default:
                                                    Code:
                                                    <div class="su-linkbox" id="post-{id}-linkbox"><div class="su-linkbox-label">
                                                    Link to this post!</div>
                                                    <div class="su-linkbox-field">
                                                    <input type="text" value="&lt;a href=&quot;{url}&quot;&gt;{title}&lt;/a&gt;" onclick="javascript:this.select()" readonly="readonly" style="width: 100%;" />
                                                    </div></div>
                                                    I imagine you could just replace the &lt;a href= stuff with bbcode stuff but I'm no coder so I don't really know.

                                                    Comment

                                                    • fris
                                                      I have to go potty
                                                      • Aug 2002
                                                      • 55826

                                                      #27
                                                      can you hit me up on icq so we can talk in real time?
                                                      Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                                      My Newest Theme

                                                      Comment

                                                      • Twig
                                                        Confirmed User
                                                        • Nov 2005
                                                        • 1949

                                                        #28
                                                        Apparently not. Every time you tell me to, you're offline. Even minutes after you say to lol.

                                                        Comment

                                                        • fris
                                                          I have to go potty
                                                          • Aug 2002
                                                          • 55826

                                                          #29
                                                          Originally posted by Twig
                                                          Apparently not. Every time you tell me to, you're offline. Even minutes after you say to lol.
                                                          http://www.frisx.com/nggallery/post/lunch-lady/page/3/

                                                          let me know if this is what you are looking for.

                                                          i installed nextgen gallery and did a mod.
                                                          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                                          My Newest Theme

                                                          Comment

                                                          • fris
                                                            I have to go potty
                                                            • Aug 2002
                                                            • 55826

                                                            #30
                                                            bump for twig
                                                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                                            My Newest Theme

                                                            Comment

                                                            • Twig
                                                              Confirmed User
                                                              • Nov 2005
                                                              • 1949

                                                              #31
                                                              Yep, that's what I was looking for for the single image. I also was hoping to work out something on the gallery page (http://www.frisx.com/nggallery/post/lunch-lady/) that would show the BBCODE for all the images in that gallery.

                                                              Comment

                                                              • Twig
                                                                Confirmed User
                                                                • Nov 2005
                                                                • 1949

                                                                #32
                                                                to the top for fris

                                                                Comment

                                                                • fris
                                                                  I have to go potty
                                                                  • Aug 2002
                                                                  • 55826

                                                                  #33
                                                                  since icq doesnt work, email me [email protected]

                                                                  and tell me exactly what you want for the single pic and the actual gallery page and i will do it up and mail you the details
                                                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                                                  My Newest Theme

                                                                  Comment

                                                                  • Twig
                                                                    Confirmed User
                                                                    • Nov 2005
                                                                    • 1949

                                                                    #34
                                                                    Originally posted by fris
                                                                    since icq doesnt work, email me [email protected]

                                                                    and tell me exactly what you want for the single pic and the actual gallery page and i will do it up and mail you the details
                                                                    Done

                                                                    Comment

                                                                    Working...