TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:53:31 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 212
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 207
  • Total: 208
  • illori

Image linked in side block grows when clicked.....wierd

Started by darkangel, June 30, 2014, 04:50:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

darkangel

I keep forgetting to ask you all about this but I have noticed it with the last couple of updates to SMF.

When we add an image to the side block or articles it all looks great. UNTIL you click the image ( or edit text or whatever ) to see the larger one (opens up fine in new window too like it should) then things go bad.

You leave the new tab/window after viewing and notice that the image in the block or article grows to its full size.

It has driving me crazy--short trip that it is-- cause in order to edit the pics or info of the block/article.

In my own forum we have --in side blocks-- taken to just using this as the code it links the image but opens in the same window:

<span style="font-size: 13pt;"><a href="http://thefantasiesattic.net/attic/cpg/thumbnails.php?album=lastupby&amp;uid=238">
Vigilant © Roni190 </a></span><br />
<br />
<span style="font-size: 13pt;">
</span><a href="http://thefantasiesattic.net/attic/cpg/displayimage.php?pid=20679">
<img src="http://thefantasiesattic.net/attic/cpg/albums/userpics/10238/Vilgilan2t.jpg" width="240" /></a><span style="font-size: 13pt;"></span><br />
<span style="font-size: 13pt;">
</span>


In this forum though: http://enchantedbydarkness.com/forum/index.php

This is the code and the images below show you what it is doing, a simple refresh takes care of it but really -- we should not need to do that.

[center]New Images

[color=limegreen]-click images to view-[/color]

© Sandra D.
[url=http://enchantedbydarkness.com/forum/gallery/displayimage.php?album=4&pid=10][img width=200]http://enchantedbydarkness.com/forum/gallery/albums/userpics/10001/poolballs-SandraD.png[/img][/url]
----  ----  ----  ----[/center]


What do I need to do????

TP is latest version
SMF is 2.0.8

this forum and mine at the ATTIC
Fantasies Realm  | Fantasy Attic

SMF 2.0.15 | TP 1.2 | many mod addons | variety of themes

IchBin

That is likely caused by some javascript you have in your forum. Whether it's related to SMF or a mod, I don't know. I don't think TP contains any javascript that does this though. It could be related to SMF's avatar stuff where it re-sizes images etc to keep them in line with forum settings.

darkangel

OK, well for now I can change our image coding to be like the attics where it opens in the same window and they can just hit the back button to return...LOL
thanks
Fantasies Realm  | Fantasy Attic

SMF 2.0.15 | TP 1.2 | many mod addons | variety of themes

lurkalot

Quote from: darkangel on July 01, 2014, 04:26:58 AM
OK, well for now I can change our image coding to be like the attics where it opens in the same window and they can just hit the back button to return...LOL
thanks

If you want it to open in a new window, try this, in a HTML & JavaScript block.  I added the scrolling text for you too. ;) 


<center>New Images</center>
<br />
<center><strong><span style="color: rgb(0, 255, 0);">-Click image to view-</span></strong></center>
<br />
<marquee direction="left" behavior="scroll" scrollamount="4">This is some scrolling text like you had on your site...</marquee>
<br />
<br />
<center><a href="http://enchantedbydarkness.com/forum/gallery/displayimage.php?album=4&pid=10" target="_blank"><img width="80%" height="80%" alt="New Images" src="http://enchantedbydarkness.com/forum/gallery/albums/userpics/10001/poolballs-SandraD.png" /></a></center>

darkangel

Quote from: lurkalot on July 01, 2014, 08:41:59 PM


If you want it to open in a new window, try this, in a HTML & JavaScript block.  I added the scrolling text for you too. ;) 


<center>New Images</center>
<br />
<center><strong><span style="color: rgb(0, 255, 0);">-Click image to view-</span></strong></center>
<br />
<marquee direction="left" behavior="scroll" scrollamount="4">This is some scrolling text like you had on your site...</marquee>
<br />
<br />
<center><a href="http://enchantedbydarkness.com/forum/gallery/displayimage.php?album=4&pid=10" target="_blank"><img width="80%" height="80%" alt="New Images" src="http://enchantedbydarkness.com/forum/gallery/albums/userpics/10001/poolballs-SandraD.png" /></a></center>


Thanks I did a quasi html thing but not as defined as this---me likie --- thank you very much. I don't think she can mess it up, she is learning by me adding the code then she just change links...LOL

we all gotta learn sometime. :P
Fantasies Realm  | Fantasy Attic

SMF 2.0.15 | TP 1.2 | many mod addons | variety of themes