(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-12-24 05:17 PM
Acmlm's Board - I3 Archive - - Posts by Parasyte +
Pages: 1 2 3
User Post
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-18-06 01:09 PM, in I want to change my smilies system... How ? Link
I don't know? I tested it on my server, and it works as expected. Unless you are dumping an 8MB post of text into it, it should not be overflowing anything...

I did have to update it once again, though. I had "$milie[0]" in one part... The dollar sign hardly substitutes for the 's', oops. ;(

Here, you can see the script in action... view page source to see all of the line breaks and everything: http://parasyte.panicus.org/s.php

And if you REALLY need to see the script source as an example, I can post that as well. Then you can test it for yourself? :X


(edited by Parasyte + on 03-18-06 12:10 PM)
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-19-06 09:13 AM, in I want to change my smilies system... How ? Link
Hmm, I think I know what it could be, add this to the list of escape codes:
(I have already added it to the 'original' post)

$smilie[0]=str_replace("/", "\\/", $smilie[0]);
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-19-06 09:35 AM, in Shitty PM system Link
You can try something silly like this:



$tofromsel = array("to", "from");
if ($msg[userto]==$loguserid || $msg[userfrom]==$loguserid) {
if ($msg[userto]==$loguserid) {
$tofrom = 0;
} else {
$tofrom = 1;
}
mysql_query("UPDATE pmsgs SET folder$tofromsel[$tofrom]=".PM_DELETED." WHERE id=$id");
if (@mysql_result(@mysql_query("SELECT COUNT(*) FROM pmsgs WHERE folder$tofromsel[$tofrom]=".PM_DELETED." AND folder".$tofromsel[$tofrom ^ 1]."=".PM_DELETED." AND id=$id"), 0, 0)) {
mysql_query("DELETE FROM pmsgs WHERE id=$id");
mysql_query("DELETE FROM pmsgs_text WHERE pid=$id");
}

// ...



If any of the following code relies on the original $tofrom variable, this will not work. It also will not work if the database structure is any different since the code was commented. There is little I can do or say about that unless I take the time to actually look through the sources.


(edited by Parasyte + on 03-19-06 08:36 AM)
(edited by Parasyte + on 03-19-06 04:46 PM)
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-19-06 05:43 PM, in I want to change my smilies system... How ? Link
It is being copied incorrectly. This is the only answer? Test the demo script on your server, copy the code directly from it:

http://parasyte.panicus.org/s.zip
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-19-06 05:45 PM, in Shitty PM system Link
Come to think of it, it may be better to dump mysql_num_rows in favour of this:

if (@mysql_result(@mysql_query("SELECT COUNT(*) FROM pmsgs WHERE folder$tofromsel[$tofrom]=".PM_DELETED." AND folder".$tofromsel[$tofrom ^ 1]."=".PM_DELETED." AND id=$id"), 0, 0)) {


(edited by Parasyte + on 03-19-06 04:46 PM)
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-19-06 06:13 PM, in VB6 Halving strings Link
If this is for splitting hexadecimal bytes into nybbles, as it appears to be, you are better off using math:

results(1) = number / 16
results(2) = number Mod 16
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-20-06 04:02 PM, in Shitty PM system Link
It it the same ... now. After I already updated it. Compare it to the one you are using.
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-20-06 11:16 PM, in I want to change my smilies system... How ? Link
The edited function would look like this:

function doreplace2($msg){
global $smilies;
if(!$smilies) $smilies=readsmilies();
for($s=0;$smilies[$s][0];$s++){
$smilie=$smilies[$s];
$smilie[0]=str_replace("[", "\\[", $smilie[0]);
$smilie[0]=str_replace("\\", "\\\\", $smilie[0]);
$smilie[0]=str_replace("^", "\\^", $smilie[0]);
$smilie[0]=str_replace("$", "\\$", $smilie[0]);
$smilie[0]=str_replace(".", "\\.", $smilie[0]);
$smilie[0]=str_replace("|", "\\|", $smilie[0]);
$smilie[0]=str_replace("?", "\\?", $smilie[0]);
$smilie[0]=str_replace("*", "\\*", $smilie[0]);
$smilie[0]=str_replace("+", "\\+", $smilie[0]);
$smilie[0]=str_replace("(", "\\(", $smilie[0]);
$smilie[0]=str_replace(")", "\\)", $smilie[0]);
$smilie[0]=str_replace("/", "\\/", $smilie[0]);
$msg=preg_replace("/(^|[^a-z0-9])".$smilie[0]."($|[^a-z0-9])/imx","$1<img src=$smilie[1] align=absmiddle>$2",$msg);
}
etc


Did you test s.php on your server to ensure it works as it is supposed to?
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-22-06 05:12 PM, in I want to change my smilies system... How ? Link
How odd, it looks like the $1 is getting removed from your s.php. The script is replacing the smilie AND the preceeding character. The $1 will put the preceeding character back, while the $2 puts the proceeding character back.

And the for loop shouldn't change anything. Someone correct me if I am wrong, but that should have no affect at all.
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-23-06 05:51 AM, in I want to change my smilies system... How ? Link
Do you mind zipping your function.php file so I can take a closer look at it? And you smilies config, if you can.
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-23-06 05:58 AM, in Metroid Genocide... Link
Oi, it's so hard to find a good Metroid hack.
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 03-31-06 02:24 PM, in N64 Pointer Referencing Link
Addresses above 0x20000000 can be mapped however the programmer wishes using the MIPS R4300i's Memory Management Unit. Typical MMU address space is as Hyper mentioned, with the addition of the 0xA0000000 area mapped to uncached RAM.

N64 does not read or execute directly from ROM; it transfers ROM contents in blocks to RAM via DMA. Thus all code is compiled to run from mapped RAM. Some games use the MMU further to map smaller portions of system RAM to other addresses such as the 0x70000000 area. A good example of this is GoldenEye 007.

In other words, the MMU can make N64 hacking a true pain in the ass.
Parasyte +

Red Paragoomba


 





Since: 01-05-06

Last post: 6645 days
Last view: 6645 days
Posted on 04-03-06 01:20 PM, in C++ Compilers Link
MinGW is the only GCC suite for Windows. Likewise, MSys is the only UNIX-like environment for Windows. Get with the program.
Pages: 1 2 3
Acmlm's Board - I3 Archive - - Posts by Parasyte +


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.039 seconds; used 393.82 kB (max 486.65 kB)