Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 131,718
» Latest member: megalfa123
» Forum threads: 176,502
» Forum posts: 1,237,000
Full Statistics
|
|
|
New Register Member wont go to Female Group |
Posted by: Black Box - 2015-07-21, 08:14 AM - Forum: 1.6 General Support
- Replies (3)
|
|
Hi good day my co-mybb users..
Every New Female Registree in our Forum is not going to Female Group.. they go into Male group, insted to female user group..
So i edit them manually in ACP to change there Group in the right place..
how can i fix this, can anyone help me?
Thank you very much..
|
|
|
task.php issues,kindly read |
Posted by: testbear - 2015-07-20, 05:12 AM - Forum: 1.6 General Support
- Replies (2)
|
|
Hi,
I am using this as robots.txt in my mybb installation.
User-Agent: *
Disallow: /captcha.php
Disallow: /editpost.php
Disallow: /modcp.php
Disallow: /moderation.php
Disallow: /newreply.php
Disallow: /newthread.php
Disallow: /online.php
Disallow: /printthread.php
Disallow: /private.php
Disallow: /ratethread.php
Disallow: /report.php
Disallow: /reputation.php
Disallow: /search.php
Disallow: /sendthread.php
Disallow: /task.php
Disallow: /usercp.php
Disallow: /usercp2.php
Disallow: /calendar.php
Disallow: /calendar.php
Disallow: /*action=emailuser*
Disallow: /*action=nextnewest*
Disallow: /*action=nextoldest*
Disallow: /*year=*
Disallow: /*action=weekview*
Disallow: /*action=nextnewest*
Disallow: /*action=nextoldest*
Disallow: /*sort=*
Disallow: /*order=*
Disallow: /*mode=*
Disallow: /*datecut=*
Disallow: /*action=nextoldest*
Disallow: /misc.php?action=help
Disallow: /memberlist.php
Disallow: /action=syndication
Disallow: /*action=profile*
Disallow: /showteam.php*
Disallow: /online.php*
Disallow: /stats.php*
Allow: /
task.php is also blocked using robots.txt as it is evident from above.
I am getting issues in google webmaster tools
that it is not not able to fetch ...../task.php even after I removed it from the robots.txt
kindly advise, since it is affecting more pages in GWT.
|
|
|
$db->update_query(); not working |
Posted by: Nitrome - 2015-07-18, 12:09 AM - Forum: 1.6 General Support
- Replies (3)
|
|
Hello
I have a small problem with $db->update_query();
It looks like it doesn't work...
I want to be able to banish people by typing a command in the shoutbox (plugin: MyShoutbox 1.7)
/ban Nitrome
for exemple
Here is the piece of code that interests us
// verify if my message begin by "/ban" (the message is in $postData)
if ($mybb->usergroup['cancp'] == 1 && substr($postData, 0, 4) == '/ban') {
// i load the username in $pseudo[1]
preg_match('/\/ban\s{1,}([A-Za-z0-9]+)($)/i', $postData, $pseudo);
if (!empty($pseudo[1])) {
// the problem is here, when i update the usergroup
$db->update_query("users", array('usergroup' => 7), "username = '".$pseudo[1]."'");
// just a test to see if my preg_match work, it works well, the usernam is in $pseudo[1]
/* $db->insert_query('mysb_shouts', array('uid' => 29703, 'shout_msg' => 'pseudo[0]:'.$pseudo[0].' || pseudo[1]:'.$pseudo[1].' || pseudo[2]:'.$pseudo[2], 'shout_date' => time(), 'shout_ip' => get_ip())); */
}
die("deleted");
}
The problem is in the $db->update_query (and i'm shure of that), nothing happen, but I don't manage to correct it...
Thank you
|
|
|
|