http://www.mysidiaadoptables.com/for...ead.php?t=2432 << a tip,use that first.thanks INf3RNAL!!!
This tutorial is reserved to good users of php,though.you might hardly win against the computer if you even don't know what <?php is.Goodluck anyway.
so it look like the squiby thingy,and its really awesome because it allow people to make their own website ON YOUR website ;) or at least a page...to present theirself and put their pets on.that allow people to make as many page as they can do,of course...i'll probably put a limitation code later.
WARNING : make a backup of used files before doing this.just in case,please.
i dont have any access to my site before tomorrow/in two days so ill try to copy paste the squiby tutorial and modify it...its why you need a backup,if you do it before i test it.
Go to admin.php(in your php editor/database,etc...)
Search:
Quote:
if($canedit == "yes"){
// We can edit pages!
|
Remove and put that instead of it:
Quote:
if($canedit == "no"){
// We can edit pages!
|
This is quite more complicated than the squiby one because we need to make people not able to delete other people sites...><
sooo..
Search:
Quote:
$article_title = "Page and Content Editor";
|
Now we'll heavily edit what's coming next.*open her shell*Well,hmm...
Let's make people,unless they're admin,unable to delete pages.
Below What you searched,there must be:
Quote:
$article_title = "Page and Content Editor";
$article_content = "Here you can edit the content that appears on your site. Here you can edit your home page, terms of service page, and more. You can also create new pages as needed below.
<br><br><b><a href='admin.php?set=content&do=new'><img src='templates/icons/add.gif' border=0> Add a new page</a></b><p><b><u>Your Existing Pages:</u></b></p>
<table width='575' border='1'>
<tr>
<td width='150'><strong>Page URL: </strong></td>
<td width='175'><strong>Page Title: </strong></td>
<td width='32'><strong>Edit:</strong></td>
<td width='51'><strong>Delete:</strong></td>
</tr>";
|
You're lucky,I did it for you!xD so add before:
Quote:
if($canedit == "no"){
// We can edit pages!
|
and close with a
after that :9
now copy paste the code with canedit==no and all...but this time,change the no into yes!
Quote:
if($canedit == "yes"){
$article_title = "Page and Content Editor";
$article_content = "Here you can edit the content that appears on your site. Here you can edit your home page, terms of service page, and more. You can also create new pages as needed below.
<br><br><b><a href='admin.php?set=content&do=new'><img src='templates/icons/add.gif' border=0> Add a new page</a></b><p><b><u>Your Existing Pages:</u></b></p>
<table width='575' border='1'>
<tr>
<td width='150'><strong>Page URL: </strong></td>
<td width='175'><strong>Page Title: </strong></td>
<td width='32'><strong>Edit:</strong></td>
<td width='51'><strong>Delete:</strong></td>
</tr>";
}
|
search:
Quote:
$article_title = "Create a new page";
$article_content = "Here you can create a new page for your site. You can use the buttons above the textarea below to insert BBCODE into the form.
<br><form name='form1' method='post' action='admpost.php'>
<p>Page URL:
<input name='pageurl' type='text' id='pageurl'><br>
<br><u>Pages will appear at:</u><br> http://www.".$domain."".$scriptpath."/<b>pages.php?page=pageurl</b>
<br>The page url may contain letters and numbers only and may not include spaces.
</p>
<p>Page Title:
<input name='pagetitle' type='text' id='pagetitle'>
</p>
<p>Page Content: </p>
<p><input type=\"button\" value=\"Bold\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'Bold Text Here'\">
<input type=\"button\" value=\"Italics\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'Italic Text Here'\">
<input type=\"button\" value=\"Underline\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'Underlined Text Here'\">
<input type=\"button\" value=\"URL / Link\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'Link text goes here'\">
<input type=\"button\" value=\"Image\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+''\">
<input type=\"button\" value=\"Links a Text\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[urlsame=]Linked Text Here[/urlsame]'\">
<input type=\"button\" value=\"Striking Format\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[s]Strike Text Here[/s]'\">
<input type=\"button\" value=\"Youtube Video\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[youtube]http://www.youtube.com/videoname[/youtube]'\">
<input type=\"button\" value=\"User Profile\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[profile]Username[/profile]'\">
<input type=\"button\" value=\"Image Maps\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[imgmap]http://www.urlhere.com/[/imgmap]'\">
<input type=\"button\" value=\"Map Locations\" onClick=\"document.forms['form1']. elements['pagecontent'].value=document.forms['form1']. elements['pagecontent'].value+'[map][where=#,#,#,#=http://www.firstlinkhere.com/][wherecirc=#,#,#=http://www.secondinkhere.com/][/map]'\">
|
copy /paste it and put if($canedit == "yes"){ or if($canedit == "no"){ before(dont forget to close })
nooow...ooooh!i forgot to put the users cant delete their no-own post xD so...
search:
Quote:
$showdelete = "<center><a href='admin.php?set=content&do=delete&more=".$ourp age."'><img src='templates/icons/delete.gif' border=0></a></center>";
}
|
remplace with:
Quote:
if($canedit == "yes"){
$showdelete = "<center><a href='admin.php?set=content&do=delete&more=".$ourp age."'><img src='templates/icons/delete.gif' border=0></a></center>";
}
}
|
now search
Quote:
else if($do == "edit"){
$article_title = "Edit a Page";
if($more != ""){
$article_content = "Here you can edit an existing page:<br>";
//Select the page info from the database...
$pageinfo = getsitecontent($more);
$pagetitle = $pageinfo[title];
$pagecontent = $pageinfo[content];
$pagetitle = stripslashes($pagetitle);
$pagecontent = stripslashes($pagecontent);
|
now DELETE IT.yes,delete it.unless you want really much to code....
so humm...did we finish?NOOO!and we're far from it!MOUHAHAHAHA!
i love to bother you >=3 so ...
search (that must come at the very firsts lines of codes ...):
delete it.also,delete the } that is hiding somewhere...
soooo go ahead and search
if($canedit == "yes"){
// We can edit pages!
REMOVE IT REMOVE IT REMOVVVEEE IT >< lolz.
also remove the second bracket } hiding somewhere.
ALRIGHT,YOU JUST MADE A FREE WEB HOSTING...SHHH...NOT GOOD FOR PARADEHOSTING THAT.LOL.
in the future,i'll make a "use html in yours pages" to make people abble to add html and make a real site <3
CUSOONSALLYCRAZY♥