Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43261
Total Topics: 7519
Most Online Today: 297
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 299
Total: 299

Author Topic: No Lightbox function  (Read 8931 times)

0 Members and 1 Guest are viewing this topic.

Offline Darkshadow

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Dark Mysterious Worlds
No Lightbox function
« on: July 26, 2009, 04:03:40 am »
If you click on the thumbnail picture of a download, a new site will be loaded with the fullsize image and the description, now:

1. the description will not be shown anymore
2. if you click on the image, a new white site with only the fullsize image in the top left corner will be shown


example 1: http://www.dark-mysterious-worlds.com/Deutsch/German_Forum/index.php?action=downloads;sa=view;id=22

As you can see... Description is shown, now click on the thumbnail

example 2: http://www.dark-mysterious-worlds.com/Deutsch/German_Forum/index.php?action=downloads;sa=viewpic&id=16

As you can see... Description is gone, now click on the thumbnail

result: ugly page will appear, my suggestion: use lightbox function

Sorry for posting in wron board, this should be in bugs

Darkshadow
« Last Edit: July 26, 2009, 04:13:02 am by Darkshadow »

Offline treasurenet

  • Member
  • *
  • Posts: 42
    • View Profile
Using SMF 1.1.10, Gallery Pro 2.5

Offline Darkshadow

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Dark Mysterious Worlds
Re: No Lightbox function
« Reply #2 on: July 26, 2009, 04:10:12 am »
Thank for fast reply, but

i have not this probs in the gallery, this issue is in the downloads pro mod...

Darkshadow

Offline treasurenet

  • Member
  • *
  • Posts: 42
    • View Profile
Re: No Lightbox function
« Reply #3 on: July 26, 2009, 04:19:42 am »
Thank for fast reply, but

i have not this probs in the gallery, this issue is in the downloads pro mod...

Darkshadow


Ah, I thought the problem would be the same...  I see you have the right location for your slimbox.js....

http://www.dark-mysterious-worlds.com/Deutsch/German_Forum/Themes/default/slimbox.js

are there other .js files other than slimbox.js?

...if not, then I have no idea. (sorry to give you bad advice)  8)

It s acting just like mine did until I fixed the URL :)
Using SMF 1.1.10, Gallery Pro 2.5

Offline treasurenet

  • Member
  • *
  • Posts: 42
    • View Profile
Re: No Lightbox function
« Reply #4 on: July 26, 2009, 04:22:49 am »
I did notice one thing funky in your code.

View the source...   The DOCTYPE should be on the VERY top line, and this code....
Code: [Select]
      <script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script><

SHOULD be within the <head> tags....

Running some utilities on your code, I found 93 errors and 6 warnings...  but that would be a good start... as shown above.  8)
« Last Edit: July 26, 2009, 04:32:58 am by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline treasurenet

  • Member
  • *
  • Posts: 42
    • View Profile
« Last Edit: July 26, 2009, 04:32:16 am by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline Darkshadow

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Dark Mysterious Worlds
Re: No Lightbox function
« Reply #6 on: July 26, 2009, 06:09:42 am »
hmmm...

the doctype is inserted, look at my index.template attached...???

The errors come from the huge mods i implemented, (i will try to fix these errors in the feature to be validated, but first all functions have to be implemented, there are coming so much updates and new functions so i have no time to implement them all in the proper way it should be...) but it seems to me thaht is not the problem for the behavior of the download pro system.After a quick look,  I dont find any code in the download system for use of lightbox...

By the way, if you found some strange error in the index template, please let my know, so i can fix it...

Thanks for your effort...

The right click mod works without errors for me... i looked to the original install script of the right click mod and i noticed the programmer of this mod will not insert his javascript in the header area...

Darkshadow


« Last Edit: July 26, 2009, 06:22:36 am by Darkshadow »

Offline treasurenet

  • Member
  • *
  • Posts: 42
    • View Profile
Re: No Lightbox function
« Reply #7 on: July 26, 2009, 07:29:23 am »
I don't know what's wrong with your file, but opening it, I received an error - "this file is damaged, proceed with caution".

Like I said though- that right click function needs to be within the head tag, and the doctype tag NEEDS to be at the very top.

I am sorry I can not look at your index.template.php file, but I've never seen that error before...  anyone else want to look at it?  ::)

I don't know how you are inserting that right click script - but looking at your final source (NOT the index.template.php file) you have.....

Code: [Select]
      <script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

It needs to be.....

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

       <script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>


« Last Edit: July 26, 2009, 08:07:30 am by treasurenet »
Using SMF 1.1.10, Gallery Pro 2.5

Offline Darkshadow

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Dark Mysterious Worlds
Re: No Lightbox function
« Reply #8 on: July 26, 2009, 08:58:15 am »
ok, i fixed this issue, the javascripts for the right click mod now apear inside the header and nothing else is injected before doctype...

But the download pro issue is not fixed with this...

Darkshadow


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: No Lightbox function
« Reply #9 on: July 26, 2009, 09:05:55 am »
Will add highslide to that page.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Darkshadow

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Dark Mysterious Worlds
Re: No Lightbox function
« Reply #10 on: July 26, 2009, 09:12:11 am »
@Hacks:Thanks

Can you also confirm the not shown description in this screen ?

@treasurenet:Thanks

Darkshadow


 

Related Topics

  Subject / Started by Replies Last post
2 Replies
6641 Views
Last post May 04, 2009, 04:08:15 pm
by clintre
3 Replies
5754 Views
Last post July 22, 2008, 07:24:47 pm
by SMFHacks
4 Replies
5358 Views
Last post January 18, 2009, 03:44:17 pm
by SMFHacks
2 Replies
6576 Views
Last post May 03, 2009, 04:32:10 pm
by Vincent Volmer
7 Replies
5249 Views
Last post September 05, 2012, 04:11:43 pm
by Dylert

+- Recent Topics

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
Today at 08:27:36 am

No thumbnails on new uploads by Tonyvic
Today at 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Powered by EzPortal