+ Reply to Thread
Results 1 to 7 of 7

Thread: edit/delete forums wapdesire

  1. #1
    Junior Member hyperlad
    Join Date
    Feb 2009
    Location
    wolverhampton west midlands
    Posts
    24
    Thanks
    8
    Thanked 1 Time in 1 Post
    Rep Power
    0

    edit/delete forums wapdesire

    hi everyone im using wapdesire script now im in need of help though, my question is for the mod tools im host there If i create the forum i can delete & edit my own topic but not the other replies i post , but if someone has created a topic i cannot delete or edit thier replies in topics or posts iv tried add delete on the options page but im getting permission denied all the time the topics and posts i want to delete keep on saying that. i would be very greatfull if someone could help me on this i will add options.php and delete.php so you can all look if anything is needed feel free to say thankyou
    Help eachother and make coding talk a even more friendly fun fab place coz people here are terrific ;)

  2. #2
    Junior Member hyperlad
    Join Date
    Feb 2009
    Location
    wolverhampton west midlands
    Posts
    24
    Thanks
    8
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Code:
    ////////////////////////FORUM OPTIONS/////////////////////////
    
    if($topic==1)
    {
    addonline(getuid_sid($sid),"Forum Options","");
    $nick=getnick_sid($sid);
    echo head_tag($nick."@Forum Options",1,$nick);
    $title="<b>Forum Options</b>";
    $main="<p align=".align().">\n";
    addonline(getuid_sid($sid),"Topic Options","");
    $tinfo=mysql_fetch_array(mysql_query("SELECT name, fid, uid, text, pinned, closed FROM forumtopics WHERE id='".$thread."'"));
    $trid=$tinfo[2];
    $ttext=htmlspecialchars($tinfo[3]);
    $tname=htmlspecialchars($tinfo[0]);
    $main.="Topic ID: <b>$thread</b><br/>\n";
    $trnick=getnick_uid($trid);
    $main.="<ahref=\"../inbox/send.php?who=$trid&amp;sid=$sid\">»Send Inbox To $trnick</a><br/>
    <ahref=\"../profile.php?who=$trid&amp;sid=$sid\">»View $trnick's Profile</a>\n";
    //echo "<ahref=\"index.php?action=post&amp;sid=$sid&amp;thread=$thread&amp;qut=$pid\">»Quote</a><br/>";
    /*
    $plid=mysql_fetch_array(mysql_query("SELECT poll FROM forumtopics WHERE id='".$thread."'"));
    if($plid[0]==0){
    if(isowner(getuid_sid($sid))){
    $main.="<ahref=\"index.php?action=pltpc&amp;sid=$sid&amp;thread=$thread\">»Add Poll</a><br/>";
    }
    }else{
    if(isowner(getuid_sid($sid))){
    $main.="<ahref=\"genproc.php?action=dltpl&amp;sid=$sid&amp;thread=$thread\">»Delete Poll</a><br/>";
    }
    }
    */
    //$main.="<ahref=\"genproc.php?action=rtpc&amp;sid=$sid&amp;thread=$thread\">»Report</a>";
    $main.="</p>\n";
    if(mod_tools("fid",$tinfo[1],"topic_".$thread,getuid_sid($sid),1)){
    $main.="<div class=".align().">
    <form action=\"rename.php?thread=$thread&amp;sid=$sid\" method=\"post\">
    <b>Title:</b><br/>
    <input name=\"tname\" value=\"$tname\" maxlength=\"25\"/><br/>
    <input type=\"submit\" value=\"Rename\">
    </form>
    </div>
    <div class=".align().">
    <form action=\"./edit.php?topic=1&amp;sid=$sid&amp;thread=$thread\" method=\"post\">
    <b>Text:</b><br/>
    <input name=\"ttext\" value=\"$ttext\" maxlength=\"500\"/><br/>
    <input type=\"submit\" value=\"Edit\">
    </form>
    </div>
    <p align=".align().">
    <ahref=\"./delete.php?topic=1&amp;thread=$thread&amp;sid=$sid\">»Delete</a><br/>\n";
    }
    if(mod_tools("fid",$tinfo[1],"topic_".$thread,getuid_sid($sid),0)){
    if($tinfo[5]=='1'){$ctxt="Open";$cact="0";}
    else{$ctxt="Close";$cact="1";}
    $main.="<ahref=\"./close.php?sid=$sid&amp;thread=$thread&amp;tdo=$cact\">»$ctxt</a><br/>\n";
    if($tinfo[4]=='1'){$ptxt="Unpin";$pact="0";}
    else{$ptxt="Pin";$pact="1";}
    $main.="<ahref=\"./pin.php?sid=$sid&amp;thread=$thread&amp;tdo=$pact\">»$ptxt</a>
    </p>\n";
    }
    //echo "<ahref=\"index.php?action=post&amp;sid=$sid&amp;thread=$thread&amp;qut=$pid\">»Quote</a><br/>";
    $forums=mysql_query("SELECT id, name FROM forums WHERE clubid='0'");
    if(mod_tools("fid",$tinfo[1],"topic_".$thread,getuid_sid($sid),0)){
    $main.="<div class=".align().">
    <form action=\"move.php?thread=$thread&amp;sid=$sid\" method=\"post\">
    <b>Move to:</b><br/>
    <select name=\"mtf\">\n";
    while($forum=mysql_fetch_array($forums)){
    $main.="<option value=\"$forum[0]\">$forum[1]</option>\n";
    }
    $main.="</select><br/>
    <input type=\"submit\" value=\"Move\"/>
    </form>
    </div>\n";
    }
    $main.="<p align=".align().">\n$fivekey<a $key5href=\"viewtopic.php?thread=$thread&amp;sid=$sid\">Back to topic</a></p>\n";
    $L1="$sixkey<a $key6href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9href=\"./forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0href=\"../main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Home</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    }
    
    elseif($post==1)
    {
    $pinfo= mysql_fetch_array(mysql_query("SELECT uid, thread, text FROM forumposts WHERE id='".$pid."'"));
    $tinfo=mysql_fetch_array(mysql_query("SELECT fid FROM forumtopics WHERE id='".$pinfo[1]."'"));
    $trid=$pinfo[0];
    $tid=$pinfo[1];
    $ptext=htmlspecialchars($pinfo[2]);
    addonline(getuid_sid($sid),"Forum Options","");
    echo head_tag(getnick_sid($sid)."@Forum Options",1,getnick_sid($sid));
    $title="<b>Post Options</b>";
    $main="<p align=".align().">\n";
    $trnick=getnick_uid($trid);
    $main.="<ahref=\"../inbox/send.php?who=$trid&amp;sid=$sid\">»Send PM to $trnick</a><br/>
    <ahref=\"../profile.php?who=$trid&amp;sid=$sid\">»View $trnick's Profile</a>\n";
    //echo "<ahref=\"index.php?action=post&amp;sid=$sid&amp;tid=$tid&amp;qut=$pid\">»Quote</a><br/>";
    //$main.="<ahref=\"genproc.php?action=rpost&amp;sid=$sid&amp;pid=$pid\">»Report</a>";
    $main.="</p>\n";
    if(mod_tools("fid",$tinfo[0],"post_".$pinfo[1],getuid_sid($sid),1)){
    $main.="<div class=".align().">
    <form action=\"./edit.php?post=1&amp;pid=$pid&amp;sid=$sid\" method=\"post\">
    <b>Text:</b><br/> 
    <input name=\"ptext\" value=\"$ptext\" maxlength=\"500\"/>
    <br/><input type=\"submit\" value=\"Edit\">
    </form>
    </div>
    <p align=".align().">\n";
    $main.="<ahref=\"./delete.php?post=1&amp;pid=$pid&amp;sid=$sid\">»Delete</a><br/><br/>\n";
    }
    $main.="$fivekey<a $key5href=\"viewtopic.php?page=$page&amp;thread=$tid&amp;sid=$sid\">Back to topic</a>\n</p>\n";
    $L1="$sixkey<a $key6href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9href=\"./forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0href=\"../main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Home</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    }
     

    Help eachother and make coding talk a even more friendly fun fab place coz people here are terrific ;)

  3. #3
    Junior Member hyperlad
    Join Date
    Feb 2009
    Location
    wolverhampton west midlands
    Posts
    24
    Thanks
    8
    Thanked 1 Time in 1 Post
    Rep Power
    0

    /////////////////////////DELETE TOPIC/POST/////////////////////////
    This is delete.php
    Code:
     
    Code:
    if($topic==1)
    {
    addonline(getuid_sid($sid),"Forum Options","");
    echo head_tag(getnick_sid($sid)."@Delete Topic",1,getnick_sid($sid));
    $title="<b>Delete Topic</b>";
    $main="<p align=".align().">";
    $tname=mysql_fetch_array(mysql_query("SELECT name, text, fid FROM forumtopics WHERE id='".$thread."'"));
    if(mod_tools("fid",$tname[2],"topic_".$thread,getuid_sid($sid),1)){
    $fname=mysql_fetch_array(mysql_query("SELECT name FROM forums WHERE id='".$tname[2]."'"));
    $res=mysql_query("DELETE FROM forumtopics WHERE id='".$thread."'");
    if($res){
    mysql_query("DELETE FROM forumposts WHERE thread='".$thread."'");
    mysql_query("INSERT INTO logs SET action='topics', details='<b>".getnick_uid(getuid_sid($sid))."</b> Deleted The Topic<br/><small>(<ahref=\"../forums/viewforum.php?fid=$tname[2]&amp;sid=$sid\">".$fname[0]." forum</a>)</small><br/><b>".$tname[0]."</b> ".$tname[1]."<br/>', date='".time()."'");
    $main.="<imgsrc=\"../images/ok.gif\"alt=\"o\"/><br/>Topic Deleted\n";
    }else{
    $main.="<imgsrc=\"../images/error.gif\"alt=\"x\"/><br/>Database Error\n";
    }
    }else{
    $main.="<imgsrc=\"../images/error.gif\"alt=\"x\"/><br/>Permission Denied!\n";
    }
    $main.="</p>\n";
    $L1="$sixkey<a $key6href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9href=\"./forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0href=\"../main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Home</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    }
    
    elseif($post==1)
    {
    addonline(getuid_sid($sid),"Forum Options","");
    echo head_tag(getnick_sid($sid)."@Delete Topic",1,getnick_sid($sid));
    $title="<b>Delete Topic</b>";
    $main="<p align=".align().">";
    $thread=mysql_fetch_array(mysql_query("SELECT thread FROM forumposts WHERE id='".$pid."'"));
    $tname=mysql_fetch_array(mysql_query("SELECT name, text, fid FROM forumtopics WHERE id='".$thread[0]."'"));
    if(mod_tools("fid",$tname[2],"post_".$thread,getuid_sid($sid),1)){
    $pname=mysql_fetch_array(mysql_query("SELECT text FROM forumposts WHERE id='".$pid."'"));
    $fname=mysql_fetch_array(mysql_query("SELECT name FROM forums WHERE id='".$tname[2]."'"));
    $res=mysql_query("DELETE FROM forumposts WHERE id='".$pid."'");
    if($res){
    mysql_query("INSERT INTO logs SET action='posts', details='<b>".getnick_uid(getuid_sid($sid))."</b> Deleted Post<br/><ahref=\"../forums/viewtopic.php?thread=$thread[0]&amp;sid=$sid\"><b>".$tname[0]."</b></a><br/>".$pname[0]."<br/>', date='".time()."'");
    $main.="<imgsrc=\"../images/ok.gif\"alt=\"o\"/><br/>Post Deleted\n";
    }else{
    $main.="<imgsrc=\"../images/error.gif\"alt=\"x\"/><br/>Database Error\n";
    }
    }else{
    $main.="<imgsrc=\"../images/error.gif\"alt=\"x\"/><br/>Permission Denied!\n";
    }
    $main.="<br/>
    <br/>$fivekey<a $key5href=\"./viewtopic.php?thread=$thread[0]&amp;sid=$sid\">View Topic</a></p>\n";
    $L1="$sixkey<a $key6href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9href=\"./forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0href=\"../main.php?sid=$sid\"><imgsrc=\"../images/home.gif\"alt=\"\"/>Home</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    } 

    Help eachother and make coding talk a even more friendly fun fab place coz people here are terrific ;)

  4. #4
    Senior Member nclemale36
    Join Date
    May 2007
    Location
    newcastle
    Posts
    370
    Thanks
    2
    Thanked 6 Times in 2 Posts
    Rep Power
    0

    edit your admin tools or steal the bits u want from admin tools and paste them in mod tools .
    [Only Registered Users Can See Links Click Here To Register]


    [Only Registered Users Can See Links Click Here To Register]

  5. The Following User Says Thank You to nclemale36 For This Useful Post:

    hyperlad (09-02-10)

  6. #5
    Senior Member brand is on a distinguished road
    Join Date
    May 2009
    Posts
    198
    Thanks
    2
    Thanked 1 Time in 1 Post
    Rep Power
    1

    all y aneed to do is go on the profile to the person that you want to be able to edit/delete a forum and then click owner tools and then mod tools then add all the forums and then go to the forum that ya want to edit/delete and then click on the * and then ya can edit/delete then
    cheap sites for rent sites come with 24hrs help and support

    [Only Registered Users Can See Links Click Here To Register]

    click here and earn cash

  7. The Following User Says Thank You to brand For This Useful Post:

    hyperlad (09-02-10)

  8. #6
    Junior Member hyperlad
    Join Date
    Feb 2009
    Location
    wolverhampton west midlands
    Posts
    24
    Thanks
    8
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Thankyou both for replying i might just try that now , haha like oh my if i new that before i wouldnt posted this post thankyou very much its fixed all my problems yay happy now admin team you can delete this post *•. ˜*•.•*˜ .•*˜ ˜*•. ˜”*•.˜”*•.•*”˜.•*”˜ .•*˜ ˜”*•. * woohoo *”˜.•*”˜ .•*˜ .• *” lol *•. ˜*•. .•*˜ .•*˜*•. ˜*•
    Help eachother and make coding talk a even more friendly fun fab place coz people here are terrific ;)

  9. #7
    Senior Member brand is on a distinguished road
    Join Date
    May 2009
    Posts
    198
    Thanks
    2
    Thanked 1 Time in 1 Post
    Rep Power
    1

    hope i answered ya question ok and hope it worked
    cheap sites for rent sites come with 24hrs help and support

    [Only Registered Users Can See Links Click Here To Register]

    click here and earn cash

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. New Forums Skins
    By GumSlone in forum News, Announcements, Site Discussion
    Replies: 9
    Last Post: 10-11-08, 13:33
  2. Real Sof Forums Mine.
    By subzero in forum WEB World
    Replies: 0
    Last Post: 04-10-08, 23:44
  3. Cyberferb.com/forums/
    By jamaica in forum WEB World
    Replies: 1
    Last Post: 08-11-07, 17:50
  4. Forums On A Different Page
    By futurewap in forum Scripts Forum
    Replies: 14
    Last Post: 21-06-07, 10:43
  5. How To Delete Own Topic And Post By User In Forums?
    By super55 in forum Coding Forum
    Replies: 1
    Last Post: 12-03-07, 04:31

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO