Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

board code

Options
  • 24-04-2001 12:45am
    #1
    Registered Users 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 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 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 Posts: 1,004 ✭✭✭Lord Khan


    NEXT!!


  • Business & Finance Moderators, Entertainment Moderators Posts: 32,387 Mod ✭✭✭✭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 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 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