topic reply automessage not working

Started on the old forum in August 2009 · view the original in the archive · old links redirect here

9 replies · 494 views · started 17 years ago · 1 min read

5 participants
honkytonkman Senior · 252 posts #1

this is part of genproc.php on wapdesire

 if($res)
      {
        $usts = mysql_fetch_array(mysql_query("SELECT posts, plusses FROM ibwf_users WHERE id='".$uid."'"));
        $res2 = mysql_fetch_array(mysql_query("SELECT name, authorid FROM ibwf_topics WHERE id='".$tid."'"));
      $usr = getnick_uid($uid);
      $tname = htmlspecialchars($res2[0]);
      if(($res2[1]!=$uid)&&(automsgs($res2[1]))){
      $msg = "Your Topic [topic=$tid]$tname"."[/topic] has been Replied to by $usr [br/][small][i]p.s: this is an automated pm[/i][/small]";
      autopm($msg, $res2[1]);
        }

the trouble is ..the automated pm gos on database but it don't show on inbox of user (appears alert of 1 new message ,but nothing inside..ghost inbox😳)

i don't find the error😠

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

morse Senior · 364 posts #2

add autopm() funtion here from your core.php

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

ranzit2 Developer · 187 posts #4

Change admin uid=1 from database

she is beautifull than php.and i love her more than php.

morse Senior · 364 posts #5

see if the first id of the site does exist or not i.e som1 should have the id number 1, if there is nobody then it will remain a ghost pm

tinyurl.com/earnbymobile Easy earning for Indians

Alternative mobile advertising network .. Minimum 100 USD pay / NET15 pay cycle, Good Brand, Best targeting for Android goo.gl/6vub3

something else Fellow · 2,296 posts #6

could update autopm to:

function autopm($msg, $who,$from)
{
if($from==""){
$from = $who;
}

mysql_query("INSERT INTO ibwf_private SET text='".$msg."', byuid='".$from."', touid='".$who."', unread='1', timesent='".time()."'");

}

that way if u need to you can select who its from aswell 🙂

CreativityKills Lead · 833 posts #7

Just go to db, edit ur id to 1 in ibwf_users. If ure one of those lazy turds, quickly make a file in ur web folder and paste this:

<?php
include_once "config.php";
include "core.php";
if(mysql_query("UPDATE ibwf_users SET id='1
' WHERE name='INSERT_OWNER_USERNAME_HERE'")){
echo 'done, now delete this file';
}else{
echo mysql_error().'. . .meaning. . .mysql is high on drugs nw and cant complete ur request, or its likely u got d wrng table or maybe ure high or sumtin';
}
?>

run this file in ur web browser then DELETE IT if its working. NOTE, pms u sent to ppl will mysteriously disappear.

something else Fellow · 2,296 posts #9

if you updating user id dont forget to change user id in forums and pms etc: sql aswell 🙂

CreativityKills Lead · 833 posts #10

I'l translate What something else just said into sql language: UPDATE ibwf_topics SET authorid='1' WHERE authorid='FORMER_USER_ID'"; UPDATE ibwf_posts SET uid='1' WHERE uid='FORMER_USER_ID'"; UPDATE ibwf_private SET byuid='1' WHERE byuid='FORMER_UID'"; UPDATE ibwf_private SET touid='1' WHERE touid='FORMER UID'";

U cud do more for ibwf_buds etc.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close