Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Addons/Mods Graveyard

Notices

Reply
 
Thread Tools Display Modes
  #21  
Old 09-08-2009, 07:48 PM
Fireballchad Fireballchad is offline
Member
 
Join Date: Aug 2009
Posts: 49
Credits: 9,753
Fireballchad
Default 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.
Reply With Quote
  #22  
Old 09-09-2009, 01:11 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 13,385
BMR777 is on a distinguished road
Default 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. :)
Reply With Quote
  #23  
Old 09-09-2009, 03:46 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,561
Bloodrun
Send a message via Yahoo to Bloodrun
Default 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.
Reply With Quote
  #24  
Old 09-09-2009, 10:25 PM
Fireballchad Fireballchad is offline
Member
 
Join Date: Aug 2009
Posts: 49
Credits: 9,753
Fireballchad
Default 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
Reply With Quote
  #25  
Old 09-11-2009, 11:24 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,561
Bloodrun
Send a message via Yahoo to Bloodrun
Default 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.
Reply With Quote
  #26  
Old 10-20-2009, 09:45 AM
gabeki gabeki is offline
Premium Member
 
Join Date: Oct 2009
Posts: 24
Gender: Female
Credits: 1,407
gabeki
Default 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
__________________
My Pets site: MaplePet (Released: No)
Done: Stats system, Adoptables Sex system, Battle and using pokeballs like items to capture pets, stats (luck and dexterity) affecting the chance of capturing, Element system (8 elements), Trading, shopping, inventory system, Pet profile for each pet.
Working: Battle System againsts monsters found in the Map
Reply With Quote
  #27  
Old 10-20-2009, 11:46 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,561
Bloodrun
Send a message via Yahoo to Bloodrun
Default 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.
Reply With Quote
  #28  
Old 11-02-2009, 12:20 AM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,561
Bloodrun
Send a message via Yahoo to Bloodrun
Default 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.
Reply With Quote
  #29  
Old 11-02-2009, 07:07 PM
SJC SJC is offline
Member
 
Join Date: Apr 2009
Posts: 118
Credits: 10,080
SJC
Default 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.
Reply With Quote
  #30  
Old 11-03-2009, 05:16 PM
Bloodrun's Avatar
Bloodrun Bloodrun is offline
I am, who I am.
 
Join Date: Apr 2009
Posts: 532
Gender: Male
Credits: 35,561
Bloodrun
Send a message via Yahoo to Bloodrun
Default 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.
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
Integrated Forum & Premium Question Niku Questions and Supports 2 08-11-2011 01:01 AM
MyBB 1.4.11 released! God of Webmasters Area 0 12-30-2009 01:50 AM
A basic Integrated Forum Bloodrun Addons/Mods Graveyard 30 05-17-2009 09:51 PM


All times are GMT -5. The time now is 01:46 AM.

Currently Active Users: 856 (0 members and 856 guests)
Threads: 4,081, Posts: 32,029, 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