Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
spasticdonkey
Newbie
Newbie



Joined: Sep 05, 2007
Posts: 77

PostPosted: Wed Dec 05, 2007 8:45 pm Reply with quote

I'm working on a site that will eventually have many custom modules, none of which will use sql, but some may have upwards of 20-30 pages. Looking to add my own dynamic titles for those modules...

Quote:
You can certainly add your own by simply adding additional IF statements within the includes/dynamic_titles.php.


are there any examples of this process? If had a quick example I could probably make my way thru it... For example say I had a module about beer....

Code:
modules.php?name=Beer
modules.php?name=Beer&file=cheap
modules.php?name=Beer&file=tasty
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1393

PostPosted: Thu Dec 06, 2007 12:07 am Reply with quote

I don't mean to sound facetious, but you already have nine examples given to you within the script? Wink

The different here being no SQL calls right? Are you planning on keying off the $file variable? If so, you might create an array of file => 'title for the file' and then simple take the $file variable look up the key for the file in the array and then piece together the title text.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
spasticdonkey
Newbie
Newbie



Joined: Sep 05, 2007
Posts: 77

PostPosted: Thu Dec 06, 2007 3:39 am Reply with quote

Well I have to admit that I've been teaching myself php and sql on a need to know basis the past year or so... something tells me there's probably some really basic things I havent got around to learning yet Smile

This isnt a real pressing issue for me so I'll take notes to your suggestions and do a little learning when the time is right.. Smile

I did look at the code before posting Smile

and yes, i was planning on keying off the file variable
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch