Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 11-04-2009, 05:00 PM   #1 (permalink)
Member
 
Cylent's Avatar
 
Join Date: 05-01-06
Location: Chicago
Posts: 36
iTrader: 0 / 0%
Latest Blog:
None

Cylent is liked by many
Send a message via Yahoo to Cylent
PHP code help please

wp-theme thats using tt-scripts to generate a thumbed picture for every new post. I followed the directions that came with the theme, and searched all over for a fix but its still not working. Anyone got any ideas? Heres the section of the index.php where the function is supposed to do its thing.


Code:
<div class="post indexpost" id="post-<?php the_ID(); ?>"> <?php $customfields = get_post_custom(); $scrp = get_bloginfo('wpurl') . '/tt-scripts/timthumb.php?'; if (empty($customfields['paddimage'][0])) { $imgpath = $scrp . 'src=' . get_bloginfo('wpurl') . '/wp-content/themes/malawak/images/thumbnail.png' . '&amp;w=83&amp;h=83&amp;zc=1'; } else { $imgpath = $scrp . 'src=' . get_bloginfo('wpurl') . $customfields['paddimage'][0] . '&amp;w=83&amp;h=83&amp;zc=1'; } ?>
tt-scripts is located in the wp root folder like the directions said, the permissions are correct. "paddimage [0]" is the actual picture i guess, had to make a custome field and apply it to each post then upload a pic. Any help is appreciated.
Cylent is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2009, 04:02 PM   #2 (permalink)
v7n Mentor
 
megamoose's Avatar
 
Join Date: 06-04-06
Location: Northern Ireland
Posts: 475
iTrader: 2 / 100%
Latest Blog:
None

megamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of lightmegamoose is a glorious beacon of light
Send a message via ICQ to megamoose Send a message via MSN to megamoose Send a message via Yahoo to megamoose Send a message via Skype™ to megamoose
I'm not too familiar with WordPress or "tt-scripts", but hopefully I can work something out for you.

Are you getting any type of error when you run your site?

What is the link to this theme's installation instructions?

Is the theme and script compatible with each other? IE meant for the same version?
__________________
Message me for PHP | HTML | CSS | JAVASCRIPT | .NET | MySQL help and support
megamoose is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2009, 04:59 PM   #3 (permalink)
Member
 
Cylent's Avatar
 
Join Date: 05-01-06
Location: Chicago
Posts: 36
iTrader: 0 / 0%
Latest Blog:
None

Cylent is liked by many
Send a message via Yahoo to Cylent
Not getting any errors. Just the place where the thumbnail is supposed to be is blank. Like the standard missing image, blank with a red x. Here is the link to the theme, tt-scripts comes bundled with the theme, although its available as a stand alone. Its a pretty nice theme, I really want to use it, but this thumbnail thing is starting to make me mad. I either want it gone or some way of fixinig it. Heres the link to the theme.

http://www.paddsolutions.com/wordpress-theme-malawak/

I am using the very latest version of WP, 2.8.5

Thanks for giving it a shot.
Cylent is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2009, 05:05 PM   #4 (permalink)
Moderator
 
Join Date: 02-10-07
Posts: 1,279
iTrader: 2 / 100%
Latest Blog:
None

ScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web pro
Not my speciality either.

tt-scripts the directory is loctated in the root directory of the site?

Sometimes these add on don't work if the blog url is sitename.com/blogdirectory because the writer assumes that it will be at the site root. If that is true in your case you might try changing this line:
Quote:
$scrp = get_bloginfo('wpurl') . '/tt-scripts/timthumb.php?';
to:

Quote:
$scrp = get_bloginfo('wpurl') . 'directoryname' . '/tt-scripts/timthumb.php?';
Other than that I don't think I am going to be of any help to you.
__________________
These forums are as good as the posts that you contribute to them.
~~
ScriptMan
ScriptMan is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2009, 05:10 PM   #5 (permalink)
Member
 
Cylent's Avatar
 
Join Date: 05-01-06
Location: Chicago
Posts: 36
iTrader: 0 / 0%
Latest Blog:
None

Cylent is liked by many
Send a message via Yahoo to Cylent
Quote:
Originally Posted by ScriptMan View Post
Not my speciality either.

tt-scripts the directory is loctated in the root directory of the site?

Sometimes these add on don't work if the blog url is sitename.com/blogdirectory because the writer assumes that it will be at the site root. If that is true in your case you might try changing this line:


to:



Other than that I don't think I am going to be of any help to you.
Where as 'directory name' should be the directory of what? The picture? Im gonna give this a shot, thanks for helping
Cylent is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-05-2009, 06:50 PM   #6 (permalink)
Super Moderator
 
htmlbasictutor's Avatar
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,153
iTrader: 0 / 0%
Latest Blog:
Website Testing

htmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web prohtmlbasictutor is a highly respected web pro
Quote:
Originally Posted by Cylent View Post
Like the standard missing image, blank with a red x.
Means the image is not in the right place according to your coding

or

The path in your coding is wrong.

Probably easier to look at the path the coding is inserting into the page and move the image to where the coding thinks it is.
__________________
HTML Basic Tutor - Learn to code your web pages/blogs to be cross-browser compatible
Basic Computer Information - Computer Basics for website owners

Need a Web Page Technical Review? Pm me.
htmlbasictutor is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-06-2009, 06:23 AM   #7 (permalink)
Moderator
 
Join Date: 02-10-07
Posts: 1,279
iTrader: 2 / 100%
Latest Blog:
None

ScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web proScriptMan is a highly respected web pro
Why don't you post a non-live link to your site. Format sitename.com

In my other post I meant if your blog is not at your main domain name but the demo they have is in a directory also. Post the link and we can figure it out.

It might be a server permisiions thing also. Did you follow and instructions about chmod or setting permissions?
__________________
These forums are as good as the posts that you contribute to them.
~~
ScriptMan
ScriptMan is online now  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Analytics old code vs new code m42 Google Forum 0 03-29-2008 01:04 AM
Google Code Search - Code Search Engine from the Big G Avinash Coding Forum 2 10-05-2006 11:10 PM
I need the code from... procurer Coding Forum 4 05-15-2006 11:35 AM
Code 304 MerlinX Web Hosting Forum 2 01-03-2005 03:52 PM
What's That Code... SN3 Coding Forum 5 03-22-2004 06:17 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:34 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.