Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 21, 2013, 09:50:47 am

Login with username, password and session length
Members
Total Members: 10763
Latest: sora
Stats
Total Posts: 32360
Total Topics: 5476
Online Today: 55
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 56
Total: 57
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: No Lightbox function  (Read 3259 times)
Darkshadow
Inline PM Customer
*****
Offline Offline

Posts: 38


View Profile WWW
« 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 » Logged

Dark Mysterious Worlds Look here...

We develope an brand new fantasy roleplay tradingcardgame in english and german

Samples Look here...
treasurenet
Inline PM Customer
*****
Offline Offline

Posts: 42


View Profile
« Reply #1 on: July 26, 2009, 04:05:23 am »

http://www.smfhacks.com/index.php/topic,3782.msg17779/topicseen.html#new
Logged

Using SMF 1.1.10, Gallery Pro 2.5
Darkshadow
Inline PM Customer
*****
Offline Offline

Posts: 38


View Profile WWW
« 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
Logged

Dark Mysterious Worlds Look here...

We develope an brand new fantasy roleplay tradingcardgame in english and german

Samples Look here...
treasurenet
Inline PM Customer
*****
Offline Offline

Posts: 42


View Profile
« 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)  Cool

It s acting just like mine did until I fixed the URL Smiley
Logged

Using SMF 1.1.10, Gallery Pro 2.5
treasurenet
Inline PM Customer
*****
Offline Offline

Posts: 42


View Profile
« 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:
      <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.  Cool
« Last Edit: July 26, 2009, 04:32:58 am by treasurenet » Logged

Using SMF 1.1.10, Gallery Pro 2.5
treasurenet
Inline PM Customer
*****
Offline Offline

Posts: 42


View Profile
« Reply #5 on: July 26, 2009, 04:25:15 am »

Here's another link to help.....

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.dark-mysterious-worlds.com%2FDeutsch%2FGerman_Forum%2Findex.php%3Faction%3Ddownloads%3Bsa%3Dviewpic%26id%3D16&charset=%28detect+automatically%29&doctype=Inline&group=0
« Last Edit: July 26, 2009, 04:32:16 am by treasurenet » Logged

Using SMF 1.1.10, Gallery Pro 2.5
Darkshadow
Inline PM Customer
*****
Offline Offline

Posts: 38


View Profile WWW
« Reply #6 on: July 26, 2009, 06:09:42 am »

hmmm...

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

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 » Logged

Dark Mysterious Worlds Look here...

We develope an brand new fantasy roleplay tradingcardgame in english and german

Samples Look here...
treasurenet
Inline PM Customer
*****
Offline Offline

Posts: 42


View Profile
« 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?  Roll Eyes

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:
      <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:
<!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 » Logged

Using SMF 1.1.10, Gallery Pro 2.5
Darkshadow
Inline PM Customer
*****
Offline Offline

Posts: 38


View Profile WWW
« 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

Logged

Dark Mysterious Worlds Look here...

We develope an brand new fantasy roleplay tradingcardgame in english and german

Samples Look here...
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10991


View Profile
« Reply #9 on: July 26, 2009, 09:05:55 am »

Will add highslide to that page.
Logged
Darkshadow
Inline PM Customer
*****
Offline Offline

Posts: 38


View Profile WWW
« 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

Logged

Dark Mysterious Worlds Look here...

We develope an brand new fantasy roleplay tradingcardgame in english and german

Samples Look here...
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 12:22:02 am]

[Today at 12:20:41 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.301 seconds with 20 queries.