Jump to content


- - - - -

Image Resizing [Open in New Tab/Window]


  • Please log in to reply
5 replies to this topic

#1 Error 404

Error 404

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Geen
  • IPB Version:v3.0.x

Posted 19 August 2010 - 01:16 AM

Hello, I would like to know how can I change settings on image below, so that instead of It enlarging image in the same window, I want it to enlarge image in a new tab/window..

Because If I enlarge image in the current window, the image becomes big, and there is no way to scroll to the side to see the right side of the image.

Posted Image

Thank you.

Edited by Error 404, 19 August 2010 - 01:17 AM.


#2 warlord

warlord

    Novice

  • Members
  • PipPip
  • 9 posts
  • Location:uk
  • Real Name:DeadMan
  • IPB Version:v3.1.x

Posted 19 August 2010 - 03:21 AM

Hi

I can use this code to view the large images (a pop-up window):


1. Template edit

acp > look & feel > your skin > global templates > global template

find:
</head>

add before:
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>


2. Ad new BBcode

Custom BBCode: any name (example: Image - BIG)
Custom BBCode Description: blah-blah... (example: Displays linked BIG images)
Custom BBCode Tag: any... (example: [imgb]http://www.google.co...images/logo.gif[/imgb])
Custom BBCode Tag: any... (example: imgb)
Custom BBCode Replacement:
<img src="{content}" border="0" alt="image" width="10%" title="Click on the image to enlarge!" onclick="MM_openBrWindow('{content}','','width=1024,height=768')" /><br />
<i><sub>Click on the image to enlarge!</sub></i>
Which groups can use this BBCode? your choice...
Where can the BBCode be used? your choice...
BBCode Image: an image in the "public/style_images/(skin_directory)/rte_icons/" folder...

Edited by warlord, 19 August 2010 - 05:49 AM.


#3 Error 404

Error 404

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Geen
  • IPB Version:v3.0.x

Posted 19 August 2010 - 06:03 AM

Would it work on 3.x ?

#4 warlord

warlord

    Novice

  • Members
  • PipPip
  • 9 posts
  • Location:uk
  • Real Name:DeadMan
  • IPB Version:v3.1.x

Posted 19 August 2010 - 07:14 PM

Of course...

Quote

Which groups can use this BBCode?
Where can the BBCode be used?

You can't find this options lower than 3.x!  :cyclops:

#5 Error 404

Error 404

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Geen
  • IPB Version:v3.0.x

Posted 20 August 2010 - 12:02 AM

can I do those changes to current [img] bbcode?

#6 Error 404

Error 404

    n00b

  • Members
  • Pip
  • 4 posts
  • Real Name:Geen
  • IPB Version:v3.0.x

Posted 21 August 2010 - 07:28 AM

Is it possible to use Lightbox for big forum images? I mean I've seen demo of IP.Gallery, and big images get resized with lightbox.. I am just wondering, Is it possible to resize forum images the same way.. Thats the thing, I dont want to have unwanted BBcodes, in future..




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users