Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Addons/Mods Graveyard (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=41)
-   -   Integrated Forum V 2.0 -Released!- *Old Version* (http://www.mysidiaadoptables.com/forum/showthread.php?t=849)

Fireballchad 09-08-2009 07:48 PM

RE: Integrated Forum V 2.0 -Released!-
 
Ok, well this thread is really old but I am stuck. How do I get the signature to allow html? So people can post there "adopt" in this forum. I wouldn't assume its harder then getting BBCode working, is it just filtering out html somewhere? There is a lot of files so I might of missed it somewhere but i've been trying to do this for a bit now.

BMR777 09-09-2009 01:11 PM

RE: Integrated Forum V 2.0 -Released!-
 
Well, I haven't looked thoroughly at the forum mod code, however to secure the data before entering it into the database the secure() function is used, at least I am assuming that is the case. That also strips out HTML though. In the forum mod you can safely replace instances of secure() with instances of mysql_real_escape_string() to enable HTML while still filtering malicious SQL statements. :)

Bloodrun 09-09-2009 03:46 PM

RE: Integrated Forum V 2.0 -Released!-
 
Quote:

Originally Posted by BMR777
Well, I haven't looked thoroughly at the forum mod code, however to secure the data before entering it into the database the secure() function is used, at least I am assuming that is the case. That also strips out HTML though. In the forum mod you can safely replace instances of secure() with instances of mysql_real_escape_string() to enable HTML while still filtering malicious SQL statements. :)

The mysql_real_escape_string() should work, if not it's because this version has the same kink the first has.

The next version, number 3 I believe, The one I was suppose to make and release last month, has that fixed. I just currently have no computer and one 32 gig Flash Drive with everything on it. You can see where my delima lies.

I apologize for not being to help and release anything else.

Fireballchad 09-09-2009 10:25 PM

RE: Integrated Forum V 2.0 -Released!-
 
Thanks guys that worked for the most part.

Quote:

Originally Posted by bloodrun
The next version, number 3 I believe, The one I was suppose to make and release last month, has that fixed. I just currently have no computer and one 32 gig Flash Drive with everything on it. You can see where my delima lies.

I apologize for not being to help and release anything else.

No worries ive been there before, you have done tons of stuff for this site. :D

I ended up adding the bbcode.php in between
$signature = $_POST["signature"];
$signature = mysql_real_escape_string($signature);
Located in accountpost.php
to make it change bbcode to html so the forum could read it :D

Bloodrun 09-11-2009 11:24 AM

RE: Integrated Forum V 2.0 -Released!-
 
Quote:

Originally Posted by Fireballchad
Thanks guys that worked for the most part.

Quote:

Originally Posted by bloodrun
The next version, number 3 I believe, The one I was suppose to make and release last month, has that fixed. I just currently have no computer and one 32 gig Flash Drive with everything on it. You can see where my delima lies.

I apologize for not being to help and release anything else.

No worries ive been there before, you have done tons of stuff for this site. :D

I ended up adding the bbcode.php in between
$signature = $_POST["signature"];
$signature = mysql_real_escape_string($signature);
Located in accountpost.php
to make it change bbcode to html so the forum could read it :D

Good to hear, now if only I remember to look back on this post the next I go to update the code, it should be just fine for the next release.

gabeki 10-20-2009 09:45 AM

RE: Integrated Forum V 2.0 -Released!-
 
hi, can you help me? :P

I installed this script in my site, and it works pretty well but it will only have 1 parent forum...

when I create another nothing changes, even if I create foruns inside it...

and the parents and foruns are being inserted in the database, so I guess it's a problem of showing and not of inserting...

here's the code where it's supposed to show all parents

PHP Code:

$table $table."

<table width='95%' border='1' align='center' cellpadding='3' cellspacing='1' class='forum'>"
;

$query "SELECT * FROM parent_forum ORDER BY pid ASC";
$result mysql_query($query);
$num3 mysql_numrows($result);

    
//Loop out code
    
$i=0;
    while (
$i $num3) {
    
$pid=@mysql_result($result,$i,"pid");
    
$ptopic=@mysql_result($result,$i,"topic");
    
$ptopic stripslashes($ptopic);

$table $table."
<tr>
<td width='100%' class='forum'><img src='images/iconforum.png'> <b>"
.$ptopic."</b></td>
</tr>
</table>
<table width='95%' border='1' align='center' cellpadding='3' cellspacing='1' class='forum'>
<tr>
<td width='55%' class='forum2' align='center'><strong>Fórum</strong></td>
<td width='10%' class='forum2' align='center'><strong>Tópicos</strong></td>
<td width='10%' class='forum2' align='center'><strong>Posts</strong></td>
<td width='20%' class='forum2' align='center'><strong>Último Post</strong></td>
</tr>"
;

$query "SELECT * FROM forum Where pid='".$pid."'";
$result mysql_query($query);
$num2 mysql_numrows($result);

    
$i=0;
    while (
$i $num2) {
    
$fid=@mysql_result($result,$i,"fid");
    
$topic=@mysql_result($result,$i,"topic");
    
$desc=@mysql_result($result,$i,"desc");
    
$posts=@mysql_result($result,$i,"posts");
    
$threads=@mysql_result($result,$i,"threads");
    
$lby=@mysql_result($result,$i,"lby");
    
$ldatetime=@mysql_result($result,$i,"ldatetime");
    
$ltopic=@mysql_result($result,$i,"ltopic");
    
$lid=@mysql_result($result,$i,"lid");
    
$topic stripslashes($topic);
    
$ltopic stripslashes($ltopic);
    
$desc stripslashes($desc);

if(
$ltopic == ""){
$lpost "<i>Nunca</i>";
}
else{
$lpost "<a href='view_topic.php?id=".$lid."'>".$ltopic."</a> por: <a href='perfil.php?user=".$lby."'>".$lby."</a><br>".$ldatetime;
}

$table $table."
<tr>
<td class='trow'><a href='main_forum.php?fid="
.$fid."'>".$topic."</a><BR><i>".$desc."</i></td>
<td align='center' class='trow'>"
.$threads."</td>
<td align='center' class='trow'>"
.$posts."</td>
<td align='center' class='trow'>"
.$lpost."</td>
</tr>"
;

    
$i++;
    }
    
$i++;
    }

$table $table."
</table><br>"


and here's the link http://www.maplepet.co.cc/main_forum2.php

ty from now. :D

Bloodrun 10-20-2009 11:46 AM

RE: Integrated Forum V 2.0 -Released!-
 
Quote:

Originally Posted by gabeki
hi, can you help me? :P

I installed this script in my site, and it works pretty well but it will only have 1 parent forum...

when I create another nothing changes, even if I create foruns inside it...

and the parents and foruns are being inserted in the database, so I guess it's a problem of showing and not of inserting...

here's the code where it's supposed to show all parents

PHP Code:

$table $table."

<table width='95%' border='1' align='center' cellpadding='3' cellspacing='1' class='forum'>"
;

$query "SELECT * FROM parent_forum ORDER BY pid ASC";
$result mysql_query($query);
$num3 mysql_numrows($result);

    
//Loop out code
    
$i=0;
    while (
$i $num3) {
    
$pid=@mysql_result($result,$i,"pid");
    
$ptopic=@mysql_result($result,$i,"topic");
    
$ptopic stripslashes($ptopic);

$table $table."
<tr>
<td width='100%' class='forum'><img src='images/iconforum.png'> <b>"
.$ptopic."</b></td>
</tr>
</table>
<table width='95%' border='1' align='center' cellpadding='3' cellspacing='1' class='forum'>
<tr>
<td width='55%' class='forum2' align='center'><strong>Fórum</strong></td>
<td width='10%' class='forum2' align='center'><strong>Tópicos</strong></td>
<td width='10%' class='forum2' align='center'><strong>Posts</strong></td>
<td width='20%' class='forum2' align='center'><strong>Último Post</strong></td>
</tr>"
;

$query "SELECT * FROM forum Where pid='".$pid."'";
$result mysql_query($query);
$num2 mysql_numrows($result);

    
$i=0;
    while (
$i $num2) {
    
$fid=@mysql_result($result,$i,"fid");
    
$topic=@mysql_result($result,$i,"topic");
    
$desc=@mysql_result($result,$i,"desc");
    
$posts=@mysql_result($result,$i,"posts");
    
$threads=@mysql_result($result,$i,"threads");
    
$lby=@mysql_result($result,$i,"lby");
    
$ldatetime=@mysql_result($result,$i,"ldatetime");
    
$ltopic=@mysql_result($result,$i,"ltopic");
    
$lid=@mysql_result($result,$i,"lid");
    
$topic stripslashes($topic);
    
$ltopic stripslashes($ltopic);
    
$desc stripslashes($desc);

if(
$ltopic == ""){
$lpost "<i>Nunca</i>";
}
else{
$lpost "<a href='view_topic.php?id=".$lid."'>".$ltopic."</a> por: <a href='perfil.php?user=".$lby."'>".$lby."</a><br>".$ldatetime;
}

$table $table."
<tr>
<td class='trow'><a href='main_forum.php?fid="
.$fid."'>".$topic."</a><BR><i>".$desc."</i></td>
<td align='center' class='trow'>"
.$threads."</td>
<td align='center' class='trow'>"
.$posts."</td>
<td align='center' class='trow'>"
.$lpost."</td>
</tr>"
;

    
$i++;
    }
    
$i++;
    }

$table $table."
</table><br>"


and here's the link http://www.maplepet.co.cc/main_forum2.php

ty from now. :D

That was something, a feat, that took me up until now to solve. It is solved for the next release, I can't help you fix it now, because it wont work with the current version you have.

Bloodrun 11-02-2009 12:20 AM

RE: Integrated Forum V 2.0 -Released!-
 
I have decided to release this old version to the Free Public. All the problems have been dealt with and answered already. If you have a problem that hasn't been answered you may post it here.

Please don't make me regret releasing this old version.

SJC 11-02-2009 07:07 PM

RE: Integrated Forum V 2.0 -Released!- *Old Version*
 
I cant seem to find the link to create a parent forum.

EDIT: Fix it, for got to upload functions.php.

Bloodrun 11-03-2009 05:16 PM

RE: Integrated Forum V 2.0 -Released!- *Old Version*
 
Quote:

Originally Posted by SJC
I cant seem to find the link to create a parent forum.

EDIT: Fix it, for got to upload functions.php.

Lol. Just a note, the parent forum feature does not work with this Version.


All times are GMT -5. The time now is 05:17 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.