Go to Post Let's Get Ready to (Graciously) Rumble! - Mr MOE [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2006, 18:29
FRANK(WGH) FRANK(WGH) is offline
Webmaster - delphielite.com
AKA: Frank
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Webmaster
 
Join Date: Nov 2001
Rookie Year: 2001
Location: Warren, OHIO
Posts: 88
FRANK(WGH) will become famous soon enough
Send a message via AIM to FRANK(WGH)
PHP Help

Well this seemed to work in years past so here I am again to ask the community for some php help.
I'm working on an image gallery called <a href="http://www.solitude.dk/gallerythingie/">"Gallery Thingie"</a> which is actually a very good php gallery that relies on flat-file databases for its information. The problem i'm having is that i need to limit the amount of thumbnails that appear on a single page. I asked the creator of the script have gotten no good advice accept to look for loop tutorials.
Here's what i have have:
PHP Code:
<?php displayList($phpfile"thumbnail");?>
I'm supposed to hack this line of code to do what I want.

Any ideas anyone????
__________________
Frank Bosak
Collegiate Mentor Association
Team 48 - Delphi E.L.I.T.E.
  #2   Spotlight this post!  
Unread 20-02-2006, 22:55
rappo's Avatar
rappo rappo is offline
Drag and drop that for loop!
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Glendale, California
Posts: 49
rappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the rough
Re: PHP Help

I downloaded the Gallery Thingie file and noticed that in the gt-pub.php there are several for loops.

Example:

Code:
function displayList($phpfile, $linktitle = "number") {
		global $name, $id, $category, $cat, $title, $path;
		for ($i=0;$i<count($name);$i++) {
You can replace the count with the amount that you want to be displayed, but that would mean that you have to implement a page function...
__________________
Team 696 Circuit Breakers
2006 LA Regional - Radio Shack Innovation in Control Award
  #3   Spotlight this post!  
Unread 20-02-2006, 23:10
FRANK(WGH) FRANK(WGH) is offline
Webmaster - delphielite.com
AKA: Frank
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Webmaster
 
Join Date: Nov 2001
Rookie Year: 2001
Location: Warren, OHIO
Posts: 88
FRANK(WGH) will become famous soon enough
Send a message via AIM to FRANK(WGH)
Re: PHP Help

Quote:
Originally Posted by rappo
I downloaded the Gallery Thingie file and noticed that in the gt-pub.php there are several for loops.

Example:

Code:
function displayList($phpfile, $linktitle = "number") {
		global $name, $id, $category, $cat, $title, $path;
		for ($i=0;$i<count($name);$i++) {
You can replace the count with the amount that you want to be displayed, but that would mean that you have to implement a page function...
would you or anyone else be able to help me do something like this???
__________________
Frank Bosak
Collegiate Mentor Association
Team 48 - Delphi E.L.I.T.E.
  #4   Spotlight this post!  
Unread 22-02-2006, 21:49
Knippschild's Avatar
Knippschild Knippschild is offline
Website Dev Alum
AKA: Jonathan Knippschild
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Oct 2005
Rookie Year: 2006
Location: Pennsylvania
Posts: 43
Knippschild has a spectacular aura aboutKnippschild has a spectacular aura about
Re: PHP Help

Coming from a web-developer, I suggest that you start using mySQL or some kind of database structure. Databases ensure greater stability, speeds, and security than flat-file systems offer. I know this does not exactly help your situation, but just a word of advice.

__________________
Bayou Regional 2007 - Best Website Award
  #5   Spotlight this post!  
Unread 22-02-2006, 21:51
Chriszuma's Avatar
Chriszuma Chriszuma is offline
Jack of all trades
AKA: Chris Hammond
FRC #0068 (Truck Town Thunder)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2005
Location: Clarkston, MI
Posts: 290
Chriszuma is just really niceChriszuma is just really niceChriszuma is just really niceChriszuma is just really nice
Send a message via AIM to Chriszuma
Re: PHP Help

An indespensible tool for PHP development is http://www.php.net. You can look up any function in the search box for its syntax, or browse through functions by category.
__________________
2006 T3 World Tour: Great Lakes - Waterloo - Palmetto - IRI
2006 Awards: Motorola Quality - RadioShack Innovation in Control

My website: http://zuma.phire.org/
Truck Town Thunder's website: http://trucktownthunder.com/
  #6   Spotlight this post!  
Unread 22-02-2006, 22:06
Knippschild's Avatar
Knippschild Knippschild is offline
Website Dev Alum
AKA: Jonathan Knippschild
FRC #0357 (Royal Assault)
Team Role: Alumni
 
Join Date: Oct 2005
Rookie Year: 2006
Location: Pennsylvania
Posts: 43
Knippschild has a spectacular aura aboutKnippschild has a spectacular aura about
Re: PHP Help

Quote:
Originally Posted by Chriszuma
An indespensible tool for PHP development is http://www.php.net. You can look up any function in the search box for its syntax, or browse through functions by category.
Quite so. PHP dot net will probably become your new bible, I often use it to look up the syntax of confusing functions.. also, I always forget the parameter values for date(); :-p
__________________
Bayou Regional 2007 - Best Website Award
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What does it mean when a php script is executed as a cgi?? Adam Y. Website Design/Showcase 1 01-04-2005 21:57
PHP and MySQL MrToast Website Design/Showcase 4 18-03-2005 22:29
White Paper Discuss: Basic PHP Tutorial AIBob Extra Discussion 0 07-03-2005 15:11
openFIRST PHP 5 Compatibility Timothy D. Ginn FIRST-related Organizations 0 30-07-2004 13:45
PHP and Wiki Error Venkatesh Website Design/Showcase 2 24-07-2004 15:51


All times are GMT -5. The time now is 02:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi