coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: londonhogfan on September 09, 2005, 07:27:33 PM

Title: I just had to mess with it...
Post by: londonhogfan on September 09, 2005, 07:27:33 PM
Trying to customize my theme a little and now Im getting this...

Warning: sprintf(): Too few arguments in /home/razorbac/public_html/hog_archive/include/functions.inc.php on line 211

http://www.razorbacklegacy.com/hog_archive/thumbnails.php?album=172

Anyone know how I can fix this?
Title: Re: I just had to mess with it...
Post by: Nibbler on September 09, 2005, 07:54:04 PM
Looks like you removed something to do with the pagination tabs.
Title: Re: I just had to mess with it...
Post by: londonhogfan on September 09, 2005, 07:57:33 PM
sorry, What is that ???

All I was trying to do was resize the table width... :-[
Title: Re: I just had to mess with it...
Post by: artistsinhawaii on September 09, 2005, 08:57:01 PM
Quote from: londonhogfan on September 09, 2005, 07:57:33 PM
sorry, What is that ???

All I was trying to do was resize the table width... :-[

Londonhogfan,

Hi, don't feel too bad.  I do that all the time, and I'm sure a lot of others do the same and experience the same kind of results.  I call it the learning curve.

What I would do in this kind of situation is compare your version of the file with an uadulterated copy of the same file.  Just go to the line in question in both files and compare that entire block of code.  You may have inadvertantly deleted or drag-n-dropped a section to where it doesn't belong.  If necessary, cut and paste the entire block from the unadulterated copy to your working (presently not working) copy.   If that doesn't work, replace the file with the unadulterated one.


Hope this helps.

(Btw, if you're not using a php editing program that allows you to do mulitple undos (Ctrl + Z) you should get one.   I suppose Webuilder would be a good start. It's free and pretty impressive. )
Title: Re: I just had to mess with it...
Post by: londonhogfan on September 09, 2005, 09:03:56 PM
nah, I just use notepad.  I actually just downloaded the original SMF theme that I am usnig trying to figure it out.  Thanks.
Title: Re: I just had to mess with it...
Post by: londonhogfan on September 09, 2005, 09:16:17 PM
OK, I got it.  Just got to mess with it a little more.  but no more errors.

Thanks,

lhf
Title: Re: I just had to mess with it...
Post by: artistsinhawaii on September 09, 2005, 09:20:19 PM
Quote from: londonhogfan on September 09, 2005, 09:16:17 PM
OK, I got it.  Just got to mess with it a little more.  but no more errors.

Thanks,

lhf

Great!   with the SMF theme, try using percentages instead of hardcoded px sizes. Also look into the template.html I think some of the tables there were coded with px sizes there as well. 

Dennis
Title: Re: I just had to mess with it...
Post by: Joachim Müller on September 10, 2005, 11:54:24 AM
To do as Dennis suggested (comparison of two versions of one file), use a diff viewer like WinMerge (http://winmerge.sourceforge.net/) - it's a "can't live without it" tool - and it's free (no, I don't get paid to advertize it ;)).

Joachim