new Plugin, Thickbox

Creating and modifying plugins.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Andy!

I guess it could be because of the "//plugins/" URL in your output. Please check the lightbox plugin and enter the path without the double "//" and see if that helps maybe?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

oops you saw the wrong script in action there. I have made the correction to on this line:
$pluginDir = preg_replace('@^.*(/plugins.*)@', '$1', dirname(__FILE__));
and removed the highlighted / but still it doesn't appear to work.

I have made this change on my version of thick box.
I have yet to test the script you have done :wink:

TIA

andy
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Okay, could you tell me once you installed my updated version of the script?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Good Evening Garvin,

Ok been busy with the thinkbox script.
The plugin works on both my test sites works as it should, but! not on my live site?!
Now that that is the situation It's going to be hard to workout why it's not working on my site, which have have to say is most likely a bit messy on the database side, and may have old plugin data... would this be a problem ?

What happens on my live site, the script starts, but doesn't appear to load the picture as it does on my test site.. It may be a simple problem to fix.

The code can be found here

Hopefully you will be able to see something that I missed ?

Kindest regards,

Andy
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, I get the "Loading..." image but nothing more happens. Strange.

In which regard does your plugin differ to the current plugin in CVS? Maybe you could ask the thickbox author, it might be related to his script?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Hiya Garvin,

I don't think it's a script problem as it does work correctly if you look at this site:
http://blog.andyramblings.co.uk (clean s9y 1.0 build)
or
http://blog.andyhopkins.com (sort of clean build of s9y 1.1 alpha 7

Hence why I mention that it may be a problem on my live site, with bits of code here there and everywhere, I think I use a bit too many.. :shock:
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, that might be a problem. Maybe you can narrow it down somehow? Clone that installation and check what happens if you remove some scripts?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Just a quick question,
What's the easiest way to 'clone' and installation ?
I have fully access to create new mysql databases etc via myphpadmin.

what tables would I remove or change before doing a clone. I'm getting to the point where I might strip down the site, remove stuff and build it up again.

Again, Thanks for all your help :)
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Quite simple:

1. Copy all the files you have to a different directory (if possible copy it to another subdomain, because this way the relative HTTP paths will stay the same).

2. Clone the database (by creating a serendipity_clone database, and then copying all tables frmo your old database to the new one; or importing the SQL dump)

3. Edit your cloned serendipity_config_local.inc.php to point to the new database

4. Log into to your s9y backend and change the domain / paths.

Then you can start removing plugins etc.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Many thanks Garvin. I'll report back later, takes a few hours for the new domain to kick in...
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

I might be confused but I read in the first thread that thickbox also handles html pages and looking at the author's demo site it does. Could we look at using something like this for the preview mode in the admin suite, anything we can do to get rid of the existing preview would be awesome in my opinion, the need to include a mainpane id or change the preview tpl file is a hassle, and often it still doesn't work perfectly, thickbox might be a better solution, or maybe even kludge the way WP does it.
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Hi Carl,

You read right. Thick box can pop up html pages in the same way as images.

You may also have noted that there appears to be a problem with it working in s9y .. I have it on my site, but cannot get it to work on my present live sitte. But it works fine on my test sites.
I'm not really a coder so, I'm keep hitting a brick wall.

Any help would be most welcome.

Andy

PS: Here's the link to the upgrade version of thickbox,
http://codylindley.com/Webdev/274/thickbox-12
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
Post Reply