Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.2.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-27-2011, 04:49 PM
kitty08's Avatar
kitty08 kitty08 is offline
Member
 
Join Date: Sep 2011
Posts: 42
Gender: Female
Credits: 6,907
kitty08 is on a distinguished road
Default Make users make their own website on your site ...

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
Quote:
}
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 ...):
Quote:
if($cancp == "yes"){
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♥
__________________



NABARUDIS.COM
Reply With Quote
Reply


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

BB 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
Cannot Make custom .php pages on site- Redirect issue Infernette Questions and Supports 1 06-10-2013 07:58 PM
Where do I go to make my site? Moontides Feedback and Suggestions 5 04-08-2013 11:35 AM
Dunno how to make my own site. (not sure if this is the right place) Thalia Questions and Supports 1 06-16-2010 02:57 PM
Where do i go to make one? Amber Questions and Supports 3 12-07-2009 04:05 PM
How do you make... Blue Icebox Questions and Supports 2 02-20-2009 01:49 AM


All times are GMT -5. The time now is 10:47 PM.

Currently Active Users: 631 (0 members and 631 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636