TinyPortal

General => Chit chat => Topic started by: gfxindia on July 26, 2006, 04:02:37 PM

Title: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:02:37 PM
Hey people I need something that can be achieved preferably by html and if not possible by html then by PHP.
Please Bloc help me if you can.
I need to know how to do the following.

Note : the extension .html is optional. It may be .php too


I'll be having webpage http://mysite.com/index.html
Where i'll be having sections.
Like say News, Article One, Article two etc....

I'll be having http://mysite.com/admin.html

where i can login (I can work out the password protecting).
There will be some text boxes there.
News, Article One, Article Two etc . . .
The content i enter there show up on http://mysite.com/index.html in their respective places.

This is much similair to the html boxes used in Cerberus, Helios, Themis and other themes. So i am sure Bloc can help me out with this.

Please help Bloc. Thank You
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: IchBin on July 26, 2006, 04:08:01 PM
Its a bit more difficult than you imagine probably. You'll have to create an authentication system to see if you are admin or not. Well, I don't have to explain what you need I guess. lol I started on something similar but haven't had the time to get into it really. There are lots of tutorials out there that will help you along your way. But I think this will definately have to be PHP/MySQL, especially if you want to have an admin section where you enter in your articles and news etc that need to be stored.

For someone like Bloc its not too difficult I'm sure. :)
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:11:36 PM
If have http://mysite.com/admin/index.html
I can use some simple script to password protect the dir Admin.
Many such scripts available.

The main part of my post is that you enter the data which will be displayed in the spot we desire. I don't think MYSQL intervention is needed.

Looking for someone like Bloc to help me.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:32:23 PM
none ? ? ?
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: IchBin on July 26, 2006, 04:40:08 PM
Quote from: Darkman on July 26, 2006, 04:32:23 PM
none ? ? ?

I'll let you in on a little secret. Not everyone is here 24/7 nor do they have time to do such a thing. I'm not saying that Bloc won't help, but be patient and wait more than a half hour for your answers. I would give you some suggestions but it seems you don't want my help so I'll just let you go on your marry way until someone like Bloc comes along.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:42:50 PM
Oh no ! !
I'd definitely appreciate any help.
Help me Ichbin
I'll accept any suggestion.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: eeek on July 26, 2006, 04:45:47 PM
What you need is TinyPortal showing no blocks and no header :)

Or a least thats what I'd do. Why re-invent the wheel :) Take someone elses wheel and chop it to size.

Install smf that takes care of the users/admin/login.

Install TP and only show your articles/ the links you require/ login box maybe?

Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:47:08 PM
Not SMF or TP related.
Its about a stand alone website
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: akulion on July 26, 2006, 04:48:07 PM
if its stand alone u could still use a stand alone software like joomla
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:48:56 PM
nope. just simple webpages. i'd like to have a simple admin cp
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: Xarcell on July 26, 2006, 04:49:30 PM
Please don't use all caps. Thanks you...
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: eeek on July 26, 2006, 04:55:31 PM
if it just simple webpages, then just use ...... > simple webpages linked with hyperlinks.....like a em website :)

What you going to admin? the content of the pages?
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 26, 2006, 04:56:52 PM
yes .
read the first post to get an idea of what i want.
I don't want any alternatives. I want to know how to do this .
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: JPDeni on July 26, 2006, 05:27:20 PM
Where are you planning to store the text that goes in these various text boxes? MySQL is the easiest, IMO. The alternative is to make .txt files that are saved to your webspace. You would read them via php and insert them into your textboxes, and could edit them in your admin page. Or you can just hardcode it all into html pages and do all of your editing offline and then upload it.

I came across a book (http://www.sitepoint.com/books/phpmysql1/) yesterday that would probably teach you everything you need to know. What you're looking for (or looking to build) is a Content Management System -- CMS. I'm not plugging that book or anything, but it does say that it'll teach you how to build a CMS.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: Crip on July 26, 2006, 07:08:53 PM
Is it (a book) or E-book?
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: akulion on July 26, 2006, 07:37:51 PM
its a full fledge book with that thing they call paper ...bbrrrr gives me the shivers how people could use paper

lol jk
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: Porky on July 26, 2006, 07:39:01 PM
Has anyone even red it to determine if it has good information in it?
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: akulion on July 26, 2006, 07:48:39 PM
u have to buy it first it says but u can read a chapter

but all the info in it is probably already available online for free im guessing
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: Crip on July 26, 2006, 07:56:25 PM
Yeah..pages..
me and paper pages don't do well together...lol.. ;D
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: JPDeni on July 26, 2006, 08:33:22 PM
I'm sure it is all available online. I just happened to remember that I came across it and it's all in one place.

Anyway, the thing that Darkman wants is a CMS. He can find one or he can write one, but that's what he wants.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: bloc on July 27, 2006, 12:18:48 AM
IMHO this would really be easiest as IchBin suggests, to use PHP and MySQl to store the pages.

I have done a couple of small websites where the owner just create and update her own pages. And they all are fetch through something like index.php?page=xxx. Works fine.

Fetching pages physically is a bit more involved, you need to get the files , and parse them into variables to be able to put that into textboxes. I reckon it would aslo need some kind of control system to know what pages there are. Again: this would be much easier to do with a databse. thats what they are good at lol. :)
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: Techdomain on July 27, 2006, 01:29:40 AM
yep... get a cms (joomla) and let it do it for you.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: gfxindia on July 27, 2006, 02:23:25 AM
QuoteWhere are you planning to store the text that goes in these various text boxes? MySQL is the easiest, IMO. The alternative is to make .txt files that are saved to your webspace. You would read them via php and insert them into your textboxes, and could edit them in your admin page.
Both these seems good. Can you say me how to do this ? Please . . .

QuoteIMHO this would really be easiest as IchBin suggests, to use PHP and MySQl to store the pages.

I have done a couple of small websites where the owner just create and update her own pages. And they all are fetch through something like index.php?page=xxx. Works fine.

Fetching pages physically is a bit more involved, you need to get the files , and parse them into variables to be able to put that into textboxes. I reckon it would aslo need some kind of control system to know what pages there are. Again: this would be much easier to do with a databse. thats what they are good at lol
Please say me how to do that Bloc. How to parse and how to put variables etc . .

Please Help people.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: JPDeni on July 27, 2006, 02:29:16 AM
This isn't something that someone can explain in a post or two, especially if you don't have any experience with it. As I mentioned earlier, there's a whole book that explains how to do it.

Do a Google search for "Content Mangement System" and see what you get. Wikipedia has a page of explanation, plus a list of links to directories of existing systems. Take a look at this site -- http://www.opensourcescripts.com/dir/PHP/Content_Management/ -- where you can download open-source systems. Looking at other people's scripts is the best way to learn how to do it for yourself.
Title: Re: HEY BLOC AND OTHER PHP EXPERTS ! ! !
Post by: IchBin on July 27, 2006, 03:28:55 AM
There are a plethera of tutorials on the net that will help you along the way. Unfortunately, I don't think any of us have the time to attack such a task Dark.

Heres a tutorial that shows you how to dump a MySQL table to HTML. Something you'll need to know. :)

http://www.biorust.com/tutorials/detail/221/en/

If I were you I would just go to a place like pixel2life.com and read up on as many PHP tutorials that you can.