Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

board code

  • 24-04-2001 12:45AM
    #1
    Registered Users, Registered Users 2 Posts: 1,004 ✭✭✭


    just updating some more of the tag's on my board just wondering what kinda tags do ye think might be usable?


Comments

  • Registered Users, Registered Users 2 Posts: 1,004 ✭✭✭Lord Khan


    <font face="Verdana, Arial" size="2">Originally posted by Kharn:
    Here's a nice one for ya...

    Make it so that everytime an image is posted, it auto thumbnails it and creates a link to the main pic...
    </font>


    come on Kharn that's too easy, the only problem is the thumbnail size ... 120 x 120 80 x 80 64 x 64?


  • Registered Users, Registered Users 2 Posts: 1,004 ✭✭✭Lord Khan


    done
    $post =~ s/\[timg\](.+?)\[\/timg\]/&lt;a href=\"$1\"&gt;&lt;img border=\"0\" src=\"$1\" width=\"80\" height=\"80\"&gt;&lt;\/a&gt;/isg;
    

    for ikonboard open ikon.lib
    search for
    $post =~ s/\[img\](.+?)\[\/img\]/&lt;img src=\"$1\"&gt;/isg;
    

    and add that piece of code after it
    this is how you implement it for ikonboard

    for ubb in ubb_library2.pl find:
    if ( ($OverrideImages ne "yes") && ($UBBImages eq "ON") ) {
    $ThePost =~ s/(\[IMG\])(http:\/\/\S+)(\[\/IMG\])/ &lt;IMG SRC="$2"&gt; /isg;
    
    and put in this after
    $ThePost =~ s/\[TIMG\](http:\/\/\S+)\[\/timg\]/&lt;a href=\"$2\"&gt;&lt;img border=\"0\" src=\"$2\" width=\"80\" height=\"80\"&gt;&lt;\/a&gt;/isg;
    
    I don't run an UBB boards any more so can't test that but sure it works.

    here is a demo of it
    http://www.skynet.ie/~damocles/cgi-bin/board/topic.cgi?forum=6&topic=5

    the only problem is the dimensions of the thumbnail picture, but you can see how to change those

    [This message has been edited by Lord Khan (edited 24-04-2001).]


  • Registered Users, Registered Users 2 Posts: 1,004 ✭✭✭Lord Khan


    NEXT!!


  • Registered Users, Registered Users 2 Posts: 32,387 ✭✭✭✭DeVore


    Not much help LK, that just resizes the image, it doesnt really thumbnail it frown.gif

    so a 2mb file becomes a 2mb file thats squished into 120x120...

    Nice perl tho, and at least the image is smaller...

    DeV.



  • Registered Users, Registered Users 2 Posts: 1,004 ✭✭✭Lord Khan


    well that's all I was aiming to do ... could have it access another program to compress the image, but I'm too lazy for that


  • Advertisement
  • Closed Accounts Posts: 2,525 ✭✭✭JustHalf


    If you change the horizontal dimension in HTML, the vertical is scaled appropriately (at least in ie). so a 200 x 300 become 40 x 60, etc. It might be better to alter only one dimension, to retain the proportions.


  • Moderators, Social & Fun Moderators Posts: 28,633 Mod ✭✭✭✭Shiminay


    Here's a nice one for ya...

    Make it so that everytime an image is posted, it auto thumbnails it and creates a link to the main pic...



    All the best,

    Dav
    @B^)
    <font face="Verdana, Arial" size="2">Prepare yourself - The Beefy King stirs from his slumber...</font>

    [url="http://http:clanhitk.warfactory.com"][honey i] violated [the kids][/url]


  • Registered Users, Registered Users 2 Posts: 1,004 ✭✭✭Lord Khan


    yeah but just to be safe

    I want to try and improve on it using gimp ... to create a thumbnail pic also ... but have to work it out :-)


Advertisement