PHP System To Allow User-generated HTML Profile Pages...
Has anyone created or modified an existing codebase to allow users the option to create personal pages as part of their login profile? I'd love to offers users the potential to upload single HTML pages ++ images for their profile... I suppose this would require:
1. A form to accept the HTML page + images and other content
2. A php script to parse the HTML and remove any headers, and to add site headers
3. The same script to parse out any malicious php or java code
4. ... and to store everything in a database.
Has anyone done this, or have suggestions about how to do it? Are there any codebases out there I should check out?
View Complete Forum Thread with Replies
Related Forum Messages:
How To Create Custome Profile Pages For Each User?
i'm not too familiar with mysql, databases and php. I downloaded a login script off hotscripts.com i installed it, copied what it told me to into the mysql DB, everything works fine. I can login, change my pw, register, etc. does anyone know how I would go about creating a CUSTOM profile page for that person? Basically it's an article site, and I wanted a button on each article page that would say something like "ADD ARTICLE TO PROFILE". When they clicked this, it would write that pages URL to the DB/their custom profile page. This way they can save their favorite articles to their profile, then simple click a "my profile" button on the top of the page, and see all their favorited articles on their custom profile page.
View Replies !
Profile Pages
the first question I have is this. Are there functions that could generate a basic page, based on certain information entered in to it, to create a simple profile page for someone that registers on to a website? There will be many more questions to follow, I thank any one who takes the time to read the thread.
View Replies !
Made A Form For A User Profile
I made a form for a user profile, and I want it to say if there is information in the field, update it, otherwise leave it alone (b/c info will already be in the fields in the database most likely) I am getting a parse error, and I am not sure how I would debug such an issue as I cannot just echo b/c I do know the variables exist. PHP Code:
View Replies !
Navigate Pages Generated
Mentioned below is a PHP function , which can be used to navigate pages generated from the select query . ie. in the form of << Previous || Next >> <? function PagerNextPrevious(&$sql,$pagesize,$class='txt'){ // Set Default Page Size to 20 if($pagesize=="") $pagesize=20; $page=get_post('page'); if($page!='NA'){ $beg=($page-1)*$pagesize; $end=$pagesize; }else{ $beg=0; ...................
View Replies !
Ticket System Generated In Pdf
I would like to make some sort of ticket system, but I'm still a newbie with php. What I'd like to have is the folowing: someone fills in his name and adress, these will be stored in a database. (this part I can make myself ) after I have checked there payment I want to send them a code. the user can now fill in this code in a form, when he does that a ticket will be generated in pdf with a unique code on it. (ofcourse this unique code needs to be send to the database too, because I have to be able to check if the code is valid).
View Replies !
PHP Generated Pages & Search Engines
I'm trying to get a basic idea of how well PHP generated pages can be spidered by search engines? I'm working for a company that keeps two versions of it's site at the moment. One copy run off of a database using CGI, and one copy entirely in HTML so search engines will find them. I've told them that this is just a bad idea, and far too time consuming. I'm under the impression that PHP pages can be found by search engines, am I wrong? I'm going to be running almost their entire database of products off of one file, will the search engines be able to find these if there aren't direct links to them? Any other suggestions as to how to keep their positions in the search engines (very good right now) would be appreciated as well.
View Replies !
Loading Times For Php Generated Pages
I've just noticed on my own surfing of the net and some php pages that i've done. especially long pages.... that they seem to load in blocks... one section at a time is there some sort of buffering or something that is doing this and can be turned off? I"m not that experienced in php... but know enough.
View Replies !
PHP Generated Pages And Rewrites In .htaccess
My website has been written in PHP, and stores information in MySQL. Objects are displayed on their own pages, with a multi-level url, made up of various PHP parameters. eg. ?objid=1&mode=new&type=red I have a rewrite rule in the .htaccess file, which translates the .php to a .html file - and this works successfully. However, I am finding that these .html files are not being indexed by Google or other search engines. The reason I put these rewrites in, was to create a simpler reference - eg object1.html, therefore increasing the chances of the page being indexed. Does anyone have any advice / tips of what I can check - or can confirm that this approach does actually work with search engines?
View Replies !
Passing Data Into Generated Pages
I have a template page with items being displayed on it and the idea is when a user clicks that item it's item id gets passed into the next page so that it can be compared against the flat file database and then when matched displayed the item information. I'll show you how i am displaying items on a page and then i'll show you the code i have developed so far to try and get the item id to pass pages and display the item details. Code:
View Replies !
Generated 404 Error Pages And Googlebot
I have a "site search" program written in PHP. All works fine - except I am unsure of what to do for "empty" searches (specifically, what header code to return). Until now, when someone submits the form without entering any data, I have been returning a 200 OK header, and redirecting the user to the site homepage, so that the user can try again. I now read that this could cause problems, especially with Googlebot, and that I should be returning a 404 Not Found instead. So here is my confusion: User doesn't enter anything - I have to return something. But what? I do want to return the page he was on, so that he can try again, possibly adding a "try again" message. But what header code should I be returning?
View Replies !
Select From Radio Button + Enter Username = Open User Profile
I have 4 radio buttons. each button to determine which page to go to. But before page open user enters username in a text box. So when submitted, Page opens relevant to that user displaying selected page. Page 1: <radio button> >>>>>>>>>> this page to go to page1.php (this is a table of user records 1) Page 2: <radio button> >>>>>>>>>> this page to go to page2.php (this is a table of user records 2) Page 3 :<radio button> >>>>>>>>>> this page to go to page3.php (this is a table of user records) 3 Page 4: <radio button> >>>>>>>>>> this page to go to page4.php (this is a table of user records 4) Enter Username: [text box] >>>>>>>> any user with their username [submit] Result should be : If User FAB5 selects radio button 1 >>>>>>>>>. to display FAB5's page1.php
View Replies !
Embed Php Generated Html In Another Html Page
I am trying to include some php generated html in a page that is just a standard html file, NOT a php file. I have seen other html pages do this by including an src to the cgi script in script tags, like this: <script src="http://someurl.com/somescript.cgi"></script> the html page loads and the script is executed and the returned html is displayed in the calling page. So, I tried this: <script src="http://someurl.com/somescript.php"></script> It doesnt work!!
View Replies !
Creating A User Generated Content Website
I'm planning to create a community site (in PHP and MySQL) where people can post some sort of helpful information. I want to include features that would allow people to rate this information and post comments about it. I would also like to make this information searchable, so I want to include tags. To help you understand it better, the website is sort of like digg.com or engadget.com or any other website that have content and comments on it. Sort of like a blog site. I already finished creating the login system. Now I need to work on the content posting system. I already thought about the SQL table to store this content. Here's what I have so far: ContentID, User, Title, ContentText, DatePosted, NumOfComments, Rating, Tags For the comments, I would assume the SQL table would look like this: ContentID, User, CommentNumber, CommentText Now, am I on the right track here? This is my first time creating something like this. Are there free scripts out there that does the same thing?
View Replies !
Dynamically Generated HTML
I am trying to fit dynamically generated HTML into a variable so I can mail it out to a recepient. Now - the catch is that the dynamic generated HTML contains nexted regions which mace some heavy duty use of "if" and "while" statements. Here is a code snippet example: $msgbody = "<a id="top"></a> <table width="100%" align="center"> <tr><td><span class="style3">$mailinga[analysis]</span></td></tr></table> <br />" ----> this is where the error occurs - it says unexpected T_IF <---- if I set a semicolon after the quotes above it will not include the stuff below, and I tried other combinations of symbols and googled the issue but no go - please help. ---->:( if($asnc > 0) ................
View Replies !
How To Force User On 1st Login To Change Admin Generated Password
So essentially I am have built a login page for users of a particular site. The users are inputted by the admin into the database and the admin sets their initial password. What I am trying to do is when the user logs in for the first time, force them to change the password that the admin gave them. So far the theory in my head is that after the admin adds a new user to the database to have a variable ("password_check") be set to "unchanged" (or "0"). Upon the user logging in for the first time, have the login script check to see if that variable is equal to zero. Code:
View Replies !
Php File As String Generated To Html
I have a page going on a local server but the pages are going to be hosted on another server, which doesn't support php and MySQL. So basicly have to generate the php files into html files. The pages on the localserver are all based on a template page Main.php?Cat=Home So this is what I'm trying to do. either...open the php template pages in another file then write them as html or...export the php template as html when viewed.So far all I got to see is resource id # 1 Just a little push on the file handling as a string would be much appriciated.
View Replies !
Special Characters Generated Html
$input3->setAttribute("value","<?php print $_SERVER['REQUEST_URI']; ?>"); <input ... value="<?php print $_SERVER['REQUEST_URI']; ?>"> I just don't want that $lt and $gt appear on the generated html, I want my <?php and ?> back
View Replies !
Converting Html Pages Into Dynamic Pages
I built a website in html, using Dreamweaver. I need to have a database built within these pages and the person who is going to do it told me that they will have to convert all my html pages into dynamic pages (php). Is it complicated to do this or do I just have to save my pages in php instead of html in Dreamweaver ?
View Replies !
Displaying Html Code On PHP Generated Page
I am trying to create a link page in my php application. this is a page that will display a block of html code that a visitor can copy and paste into their web site to create a link back to mine. My PHP page has a line in it like this: define('TEXT_INFORMATION', '<html page code is here>'); I have added the html code to create the page as noted above. the page contains a same of the banner image file and the html code that goes alon with it. My problem is that I haven't been able to "quote" the html code so that ir will not be executed. every time I try to run the application from my web server my page will display two copies of the banner iimage not on banner image and text block like it should. Any suggestions?
View Replies !
Members System - Members Profile
I am trying to complete a members system. I have finished the register, login, and logout parts and am now on the members profile part. I don't really know how to go about this. I don't have much coding experience and that is why I'm doing this.
View Replies !
Convert The PHP Pages To HTML Pages
how to Convert the PHP pages to HTML pages. provide me the specificaly coverting Codes or Scrpit to Converted the PHP Page to HTML page. If there in any software to convert the PHP Page to HTML pages please specify.
View Replies !
Build A System That Allow The Admin To Add & Edit Pages
I'm trying to build a system that allow the admin to add & edit pages (not real pages - using mod_rewrite to fake pages), and give the admin the possibility to add "sub folders". Another thing I need to implement is a menu with some relevant links: - In every page, I need to display links to top-level pages (pages with no "parent"). - In every page, I need to display links to pages that are "sons" of the current page. The things I can't figure out how to solve: Code:
View Replies !
Unique User Pages
I have set up a user authentication system, but I would liek to know how to make unique pages from a template that when a user would log in they would have their own personalized tools and page.
View Replies !
Directing User To Different Pages
I am running the pages on a php server. On page 1,I ask users to answer one radio-button question which has options (a), (b), (c), and (d). Based on their answer,I need to load different page 2 accordingly. At the same time, I need to save the answer for the one question on page 1 to the database. I know how to save the answer to the database. But,I don't know how to write the code for differentiating which page to load and where to place the code (on page 1 or page 2).
View Replies !
User Management System
I have been looking for a user management system for some time now. I need something that will allow the user to sign up with thier chosen user and pass but have the site administrator have final say whether they have access or not. Has anyone seen anything like this??
View Replies !
Implement User System
I have a website that I want to stop google indexing and prevent public access to. It has a large database attached and a BIG photo database. I want to lock it down so only registered users can access the site beyond a welcome page. It is all handcoded by yours truly. I would like to figure out how to roll out a membership system without chopping up everything else too much. I've changed the meta tags to ward off google and I'm currently thinking ill just pop a mysql table in with login and cookie to remember people, test on every page load for a valid user, if not valid then display an error but the coding will take a while and there might be a way around it.
View Replies !
PHP And MYSQL User System
I have made a php and mysql user login system. However when you log in ,before it re-directs you to a specified page, this error come up : Warning: Cannot modify header information - headers already sent by (output started at C:Program Filesxampphtdocslogin1.php:7) in C:Program Filesxampphtdocslogin1.php on line 50 Warning: Cannot modify header information - headers already sent by (output started at C:Program Filesxampphtdocslogin1.php:7) in C:Program Filesxampphtdocslogin1.php on line 51 I have looked this up and i have heard that it could be because in my config.php there are empty lines before or after the script, but i am sure that there are not.
View Replies !
SQL User Points System
How can I make a php script that uses a mysql database... and when the user adds "points" to a specific section (eg: strength), then it subtracts from they're alotted "total" points and adds the points to the strength section. Like so if i were a member, i had 10 total points, and i could add like 3 to strength and 2 to defense then it would take 5 from my total points, and add 3 to strth and 2 to dfnce...
View Replies !
User Login System
Before everyone jumps on the soapbox and yells 'HOTSCRIPTS!' at the same time let me say this: I've already been over hotscripts a dozen times hoping to find what I need, no luck. I've also searched google and this forum. Here what I'm after a simple & secure MySQL driven login system to use as a starting point to build a 'yahoo groups' style program (If anyone has a script like that that would be great, hotscripts doesn't). I'd build it myself but I don't have a lot of time on my hands. I know these requests are annoying but it's for a family emergency where I need to keep in touch with each other (big family) more efficiently than via telephone.
View Replies !
User Rights For Viewing Pages.
I am working on a project and I would like to have only people that have the privilege to view the page. So what I did is added a UsrRights field to my database. And if a user has the permissions level of 120 they can view the page. I have made it an include to the pages that I want restricted. How can I make an if statement so if the rights are not equal to 120 that they get a error message? What do I add to the statement to continue to the page? Code:
View Replies !
Set A Cookie As A User Logs Into The System
In short: How do cookies work? In long: I want to set a cookie as a user logs into the system, i want the cookie(or cookies) to hold his username and password, then i want him to be able to go where ever without having to re-enter his username/password either untill he logs out, or his cookie expires.
View Replies !
Time Online User System
I'm building something special but dont really know whats the best way to start this i want to messure time online from users that signup for it So i can make a toplist of the best visitors that where online and active But how do i messure time and how do i abort it when they are not active for a <? while ?>?
View Replies !
Cross Site User DB System?
I have two domains. I want to 'inter-link' the users somehow. I'm using MySQL/PHP. Basically this is how it should work: 1. User logins in on Domain1.com 2. User moves to Domain2.com and is still logged in My 'check to see if user logged in' script is working through Cookies/Session. Is this possible or am I a complete moron? What are some options.
View Replies !
Php User Error Message System
I was wondering if anyone has come across a tutorial or can give me some ideas on how to set up an effective error handling system. I currently pass the error message through the url and get the message to display on the page.
View Replies !
Progressive User Ranking System
I'm working on this website that lets you predict which stocks (the ones trading in the stockmarket like NYSE/NASDAQ) are going to rise and fall. Its very similar to socialpicks.com or feelingbullish.com. The main core of the site is the ranking algorithm. If suppose User A ranks Stock 1 as BUY (he can rank it as BUY/SELL/HOLD) and if the next day the Price is higher than its previous day, then he has predicted it right so the next time his Input must be weighed higher than others. On the other hand if his prediction goes wrong his rank should be reduced. The next time he votes His/her prediction gets a bigger wieghtage because of his previous experience.
View Replies !
System Where User Can Layer Images Upon One Another
i want to create and i'm ambitious [or stupid] enough to want to try it. This is what i want to create: A system where i can layer images upon one another, have Base image and then layer another image on top of it and so froth [using transparent .gifs] I'm unsure of what i need to know everything i've looked into points to using a GD library however, i'm not sure that can do what i want it to do. Can anyone give me a little insight here?
View Replies !
Create A User Managment System
i want to create a user managment system and I found some scripts and they are kinda what I am looking for for my website. But I need a script that I can easaly add some of my own coding like. FOR EX/ I want the users to beable to have an ABOUT ME section in their profile along with all the other feilds the UMS comes with.
View Replies !
User Authentication Billing System
Attached is our user authentication system. We plan on using it for many things to come such as a billing system, clan script,ect. We plan on using this same auth for hopefully at least the next few months without the need to modify it much. In this case, we would like to get it right the first time. We would like you to point out obvious security peoblems we have missed, along with give us tips on things to add. We would like to know where we can optimize the code, and where we can change things up a bit just to make them look cooler.
View Replies !
Creating A User Validation System
I'm creating a user validation system using PHP, and mysql. When a user fills out my registration form, they will get an email with their username, and an encrypted password. From there, they check their email, and click a link to activate their account. Below is the code:
View Replies !
Check User/password On Included Pages
if i have itlike tihs: login.php checks the username and sets $_SESSION[] variables login to 1 username to username and password to password: then it takes you to main.php. all that one does is include navigation and all the content. if the link is clicked. it also checks if the user's logged in. what i am wondering is. all the pages that are to be included. is it ok not to check username/password on them and only check if the variable $inc exists. that variable is set on main.php, plus the include pages dont have session_start() on them. will that stop people from accessing them individually? they cant fake variables right?
View Replies !
|