Announcement

Collapse
No announcement yet.

help with a custom tag please ...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • help with a custom tag please ...

    Hi All,

    Im using vBIndex for front page news and Id like to be able to have an image aligned left and with an URL embedded into it.
    I have it all working except for the embedded URL ..

    Here what i have so far:

    Tag: ALIGN

    Replacement:

    Code:
    <img border="0" hspace="2" vspace="-2" src="{option}" align="{param}">
    Example:

    Code:
    [align=http://www.vbulletin.com/forum/images/misc/vb_bullet.gif]right[/align]
    How do i also include the option to have an URL embedded into this image ?

    Cheers

    Paul

  • #2
    You are already using the param and option, so there is nothing left to use.

    What you can do is create two different tags, one for left and one for right. Then the param will be free to use as a link. For example:

    <a href="{param}"><img border="0" hspace="2" vspace="-2" src="{option}" align="right" /></a>

    Then the usage would be something like:

    [align=http://www.vbulletin.com/forum/images/misc/vb_bullet.gif]http://www.vbulletin.com/[/align]

    Comment


    • #3
      thanks mate...thats perfect...I always need a hard coded left, so that is exactly what i needed

      Cheers

      Paul

      Comment


      • #4
        another quick question ...

        Now that thats working ...how would i enable the URL that is clicked on that image to open a "_blank" window ?

        Cheers again!!

        Paul

        Comment


        • #5
          Add the red code to the code I posted before:

          <a href="{param}" target="_blank"><img border="0" hspace="2" vspace="-2" src="{option}" align="right" /></a>

          Comment


          • #6
            good man!! top stuff..thanks again mate!!

            BTW ..I have another niggling thing

            I realise that this is not vB.org, but im hoping you can think of a way around this issue ...

            Im sure you are familiar with vBIndex ... in the front page news...there is no way to specify how much of a post is shown ... (well there is a stright out character restriction...but thats kind off no good as every post changes) ... can you think of a way of using some form of vB custom tag to use as a flag to show only that specified part of the post ? and then have a link that might say 'more' to the rest of the post/thread ...

            Any thoughts ?

            Cheers mate

            Paul

            Comment


            • #7
              I have heard of and seen vBIndex but I have never used it or looked at its code.

              The only way I can think to do that requires custom code in the script itself. This is something you should ask on www.vbulletin.org

              Comment


              • #8
                okey dokeyc...ill ask over there

                Thanks again mate

                Paul

                Comment


                • #9
                  Thanke You

                  Comment


                  • #10
                    Originally posted by Najem Sahel
                    Thanke You


                    ???

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    X