Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 08:49:13 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155469 Posts in 21707 Topics by 7732 Members
Latest Member: DarrellDD
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: WB and Lightbox2 error  (Read 450 times)
notwist

Offline Offline

Posts: 3


« on: December 02, 2008, 12:20:20 PM »

Hallo,
I try insert Lightbox2 to the page. In Admin page I write this source:

<a href="images/mapa-g12.jpg" title="something" rel="lightbox" ><img height="158" alt="" width="289" border="0" src="images/katalog_dekhome-28a.gif" /></a>

After I save this page I got this source:

<a title="something" rel="lightbox" href="images/mapa-g12.jpg"><img height="158" alt="" width="289" border="0" src="images/katalog_dekhome-28a.gif" /></a>

It change source. What can I do? Thank you for reply.
Logged
vyni

Offline Offline

Posts: 566


« Reply #1 on: December 02, 2008, 04:58:06 PM »

Hi,
the wysiwyg-editor changes the source, thats right.

What can You do?

Insert Your code in a code2-section. Get the code2-module, install it, add a section type code2 to Your page, set it to html and insert any html-code You want.

regards from Himberg, next to Vienna

But - if I see this right - it doesn´t make any difference to the code - just the order of appearance. It doesn´t matter. If it´s not working it´s maybe because You missed something? Did You put the call for the Lightbox in the index.php of Your tempalte in the proper way?
« Last Edit: December 02, 2008, 05:02:22 PM by vyni » Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
notwist

Offline Offline

Posts: 3


« Reply #2 on: December 02, 2008, 07:01:34 PM »

In the index.php I have:

<script type="text/javascript" src="/wb/js/prototype.js"></script>
<script type="text/javascript" src="/wb/js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/wb/js/lightbox.js"></script>
<link rel="stylesheet" href="/wb/css/lightbox.css" type="text/css" media="screen" />

I think it's right, isn't it?
Logged
vyni

Offline Offline

Posts: 566


« Reply #3 on: December 02, 2008, 07:29:38 PM »

I think there is the problem.

You must set the WB_PATH, otherwise the script isn´t found on the server.

change all path to

<script type="text/javascript" src="<?php echo WB_URL; ?>/js/prototype.js"></script>

this should do it.
Logged

PS: Falls jemand eine Idee hat was zu tun ist und mir das erklären könnt - geh bitte davon aus dass ich ahnungslos bin, was php und so betrifft. Ich kann grad was lesen, kopieren und einfügen,  ungefähr verfolgen und glauben.
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!