Help:Post Thumbs for WordPress

Status
Not open for further replies.

Lee.

Banned
Jan 20, 2007
212
2
0
USA
I have installed both Post Thumbs and Post Thumbs Revisted and have'nt found the solution. I'm trying to show thumbnails for vidoes and regualr posts and have yet to get it to work either locally or on the web.

Here are my local settings:

Base path j:/Inetpub/wwwroot/wildprobes
Initial default value: j:/inetpub/wwwroot
Absolute path to website. For example, /httpdocs or /yourdomain.com. Used to find location of thumbnails on server. http://yourdomain.com/images/pth/thumb_picture.jpg would actually be /httpdocs/images/pth/thumb_picture.jpg. No trailing '/'

Full domain name http://pc-assault/wildprobes
Initial default value: http://pc-assault
Full domain name. Includes the http://. No trailing '/'


Folder name /images
Set the relative path to thumbs. Make sure directory exists and is writable. No trailing '/'

Default image images/default-image.gif
The location of the default image to use if no picture can be found. Enter in the relative url, eg. images/default.jpg

After a month, I've yet to figure the proper settings. When there is no image, the posts show the default image, which leads me to believe my settings are correct. When there is an image, the script stops and the page ceases to finish loading.

If anyone has a solution, correct file setting, better plugin or something it would be very much appreciated. :bowdown:
 


okay, okay.. I knew I wasn't off with my setting for the plugin, but there were some settings not configured properly with php :anon.sml:

However, I'm still having trouble with the regex portion. I'm using
Code:
[ev data="(.*?)"][\ev]
and all I keep getting is the default image. I'm trying yo match

Code:
[ev type="flashvideo"" width="450" height="325" data="http://www.domain.com/v/filename.flv"][/ev]

[ev type="youtube" data="t3PgZ9bqShc"][/ev]

Once again thanks for any help. The regex portion is what's really getting me.
 
okay, okay.. I knew I wasn't off with my setting for the plugin, but there were some settings not configured properly with php :anon.sml:

However, I'm still having trouble with the regex portion. I'm using
Code:
[ev data="(.*?)"][\ev]
and all I keep getting is the default image. I'm trying yo match

Code:
[ev type="flashvideo"" width="450" height="325" data="http://www.domain.com/v/filename.flv"][/ev]

[ev type="youtube" data="t3PgZ9bqShc"][/ev]
Once again thanks for any help. The regex portion is what's really getting me.

well first off your regex is wrong, you've got it like so:

Code:
[ev data="(.*?)"][\ev]

When it should be
Code:
\[ev\s(.*?)\]

That will match the entire string:

[ev type="flashvideo"" width="450" height="325" data="http://www.domain.com/v/filename.flv"][/ev]

However if there is something between those tags like so:

[ev type="flashvideo"" width="450" height="325" data="http://www.domain.com/v/filename.flv"]Something Between The Tags[/ev]

Then your expression becomes:

Code:
\[[ev(.*?)](.*?)[\ev]\]

Or sometimes this works but you may need to play with it:

Code:
[[ev(.*?)].+

that should work better for you. When dealing with expression its easier to troubleshoot them if you have a tool like RegexBuddy, it can be a huge help.
 
Thanks for trying to help, but none of those are working either...I'm using a variation of the theblemish post thumbs plugin but I got that regex expression from the author of the plugin WordPress › Support » New plugin: Post Thumbs . It's what he says he was using

Two of the codes you gave me don't work , the last one works similar to the first code I posted.

The reason I say it "works" is because I have a default image if no image is found through regex. The last code you gave show the correct default image where the other two codes show the wrong image, so I'm thinking it's somewhere close, but I could be wrong.

The actual plugin I'm using is Post-thumb revisited

Thanks again...I've been trying to get this working for over a month.
 
Status
Not open for further replies.