Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Contact staff
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-11-12 22:28:02
Now, it jumped onto line 36 with the same error of ]

Line 36

$query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', '" .$CURUSER['username']. ". needs help in the ."/staffbox.php]Staff Box', now(), '0')";

Parse error: syntax error, unexpected ']' in /homepages/12/***********/htdocs/takecontact.php on line 36
Unknown User
2008-11-12 23:48:56
here is my whole takecontact.php backup yours and replace with this.

<?php

///////////////////////////////////////////////////////////

/// hack by MasterRoot by www.maniatorrent.com

/// 05/07/2007 Open Souce GPL

// Please dont remove my credits

// Torrent Trader for all versions

////////////////////////////////////////////////////////////

require_once ("backend/functions.php");

dbconn();

if ($_SERVER["REQUEST_METHOD"] != "POST")

show_error_msg("Error", "Method");

dbconn();

$msg = trim($_POST["msg"]);

$subject = trim($_POST["subject"]);

$language = $_POST["language"];

if (!$msg)

show_error_msg("Erro","Entre com uma mensagem!");

if (!$subject)

show_error_msg("Erro","Voc
Unknown User
2008-11-13 01:36:41
After I used your code...

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /homepages/12/*********/htdocs/backend/functions.php on line 612



Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /homepages/12/*********/htdocs/backend/functions.php on line 612



Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /homepages/12/*******/htdocs/backend/functions.php on line 614



Warning: stdhead(themes//block.php) [function.stdhead]: failed to open stream: No such file or directory in /homepages/12/***********/htdocs/backend/functions.php on line 247



Fatal error: stdhead() [function.require]: Failed opening required 'themes//block.php' (include_path='.:/usr/lib/php') in /homepages/12/***********/htdocs/backend/functions.php on line 247

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3173"]functions.php[/url]
functions.php
Download
Unknown User
2008-11-13 01:51:41
i have changed it because there was one thing that i forgot causes problems in V2.05 also you may have a problem with this line header("Location: index.php"); but then again you may get lucky like i do and not have a problem
Unknown User
2008-11-13 22:50:07
If that's all you can come up with, no problem.

I'll try to fix it on my own.

Thank you
Unknown User
2008-11-20 13:57:21
Hello,

this is very good and it run by me.... Thanks.

Gr33tz
Unknown User
2008-12-12 20:25:21
Hi everyone,

Thanks for your answers.

However (after modifications) I've an another problem.

When I'm on page staffbox.php and I try to click on subject, I've Page 404.

Action : staffbox.php?action=viewpm&pmid=4

Thanks all,

Okay, mistake from me

print("<tr><td><a href=/staffbox.php?action=viewpm&pmid=$pmid><b>$arr[subject]</b></td><td><a href=account-details.php?id=$arr[sender]><b>$arr[username]</b></a></td><td>$arr[added]</td><td align=left>$answered</td><td><input type=\"checkbox\" name=\"setanswered[]\" value=\"" . $arr[id] . "\" /></td><td><a href=/staffbox.php?action=deletestaffmessage&id=$arr[id]>Del</a></td></tr>\n");
So, I replaced by this :




print("<tr><td><a href=staffbox.php?action=viewpm&pmid=$pmid><b>$arr[subject]</b></td><td><a href=account-details.php?id=$arr[sender]><b>$arr[username]</b></a></td><td>$arr[added]</td><td align=left>$answered</td><td><input type=\"checkbox\" name=\"setanswered[]\" value=\"" . $arr[id] . "\" /></td><td><a href=/staffbox.php?action=deletestaffmessage&id=$arr[id]>Del</a></td></tr>\n");



I deleted / before staffbox.php?...

Thanks everyone !
Unknown User
2008-12-15 19:33:00
How can I do for my modo and S-modo can see and go in the staffbox and respond to members ?

Thanks
Unknown User
2008-12-15 20:09:29
easiest way is to let them view the staff panel but then they will see and be able to use the other options in the staff panel. other options you have is making certain things in your staff panel only available to you. another option is to make the staffbox.php available to them and put a link somewhere that only they can see. any one of these options can be done by changing the code a bit.
Unknown User
2008-12-15 20:57:48
"walker1977, post: 50382":
easiest way is to let them view the staff panel but then they will see and be able to use the other options in the staff panel. other options you have is making certain things in your staff panel only available to you. another option is to make the staffbox.php available to them and put a link somewhere that only they can see. any one of these options can be done by changing the code a bit.

My S-modo have staff pc but he dosen't .

I found the solution go to staffbox.php and change all  of this :

if ($CURUSER["class"] < "7")


and replace whit this:

if ($CURUSER["class"] < "5")


For me is perfect all my staff have autorisation for staffbox now.
Unknown User
2009-01-02 14:19:17
thank you operates a 100% :)
Unknown User
2009-02-07 22:50:01
Thanks to you ...Great job...;)
Unknown User
2009-10-13 20:45:57
Thank you for this mod
Unknown User
2010-02-02 09:26:12
"walker1977, post: 48930":
this is how it is on my site and it works.


mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES(0, 0, $arr[0], $dt, '[url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url] needs help in the [url=".$site_config["SITEURL"]."/staffbox.php]Staff Box[/url]')") or die(mysql_error());


Works fine thnks walker
Unknown User
2011-01-04 17:24:04
Please forgive this possibly ignorant question, but where do the users go to PM the staff? I have this mod installed and have sent a regular PM to myself and a staff member using my test account, but I receive nothing in the Staff Contacts in the admin CP. What obvious thing am I missing here?
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 4
  • Members: 0
  • Guests online: 4
  • Comments: 3
  • Messages: 1,728