No reply email and popup message

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

No reply email and popup message

Post by kabuc »

Script URL:
Version of script: 2.3
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello,

How to make that "No reply email" will have - company name support <support@domain.com>
Now if I enter <...> don't work, because these <> symbols disapear.

Second problem is then I am in admin/admin_main.php, and I mouseover on table row shows popup message like: Assigned to MEtest text - it is very ugly text, can it change to more correct text like:
Assigned to ME
text text
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No reply email and popup message

Post by Klemen »

For #1 try editing file inc/email_functions.inc.php, change

Code: Select all

From: $hesk_settings[noreply_mail]\n
to

Code: Select all

From: Company name <$hesk_settings[noreply_mail]>\n
TWICE in the file.

For #2 - can you tell me what Operating system you are using on your computer on on the server?

Then try modifying inc/ticket_list.inc.php, change all instances of

Code: Select all

\n\n
to

Code: Select all

\n\r\n\r
(should be THREE times in the file).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

Re: No reply email and popup message

Post by kabuc »

for #1 work perfect

but #2 don't work, it's same problem. I tried on localhost per xampp and this problem is on Your live Hesk demo too.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No reply email and popup message

Post by Klemen »

What browser are (also what version) you using and what version of Windows?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

Re: No reply email and popup message

Post by kabuc »

I use firefox 7.0.1 on windows xp and 7, but on IE 8 works.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No reply email and popup message

Post by Klemen »

Looks like Firefox isn't processing multi-line titles properly, but I think there is a way around it:

Open file ticket_list.inc.php and:

1. Just ABOVE

Code: Select all

<form
paste

Code: Select all

<script language="Javascript" type="text/javascript"><!--
var g_iCavTimer;
var g_CarEle = null;
var g_iCavDivLeft;
var g_iCavDivTop;

function SetCavTimer(evt)
{
	var e = (window.event) ? window.event : evt;
	var src = (e.srcElement) ? e.srcElement : e.target;

	g_iCavDivLeft = e.clientX - 2 + document.body.scrollLeft;
	g_iCavDivTop = e.clientY + 19 + document.body.scrollTop;

	window.clearTimeout(g_iCavTimer);
	g_iCavTimer = window.setTimeout("ShowCavTitle()", 500);
	g_CarEle = src;
}

function CancelCavTimer(evt)
{
	var e = (window.event) ? window.event : evt;
	var src = (e.srcElement) ? e.srcElement : e.target;

	var div = document.getElementById('cavTitleDiv');
	if (div)
		document.body.removeChild(div);

	window.clearTimeout(g_iCavTimer);
	g_CarEle = null;
}

function ShowCavTitle()
{
	for (var i = g_CarEle.attributes.length - 1; i >= 0; i--)
	{
		if (g_CarEle.attributes[i].name.toUpperCase() == 'CAVTITLE')
		{
			var div = document.getElementById('cavTitleDiv');
			if (div)
				break;

			div = document.createElement("div");
			div.id = 'cavTitleDiv';
			div.style.position = 'absolute';
			div.style.visibility = 'visible';
			div.style.zIndex = 10;
			div.style.backgroundColor = 'white';
			div.style.border = '1px solid black';
			div.style.font = "normal normal normal 11pt normal 'Times New Roman'";

			var sLeft = new String();
			sLeft = g_iCavDivLeft.toString();
			sLeft += 'px';
			div.style.left = sLeft;
			var sTop = new String();
			sTop = g_iCavDivTop.toString();
			sTop += 'px';
			div.style.top = sTop;

			div.innerHTML = g_CarEle.attributes[i].value.split("\n").join("<br>").split(" ").join("&nbsp;");
			document.body.appendChild(div);

			var iWidth = div.scrollWidth + 10;
			var sWidth = new String();
			sWidth = iWidth.toString();
			sWidth += 'px';
			div.style.width = sWidth;

			break;
		}
	}
}

//-->
</script>
2. Find and delete this part of code:

Code: Select all

title="$ticket[message]"
3. Change

Code: Select all

<a href="admin_ticket.php?track=$ticket[trackid]&Refresh=$random">
to

Code: Select all

<a href="admin_ticket.php?track=$ticket[trackid]&Refresh=$random" cavtitle="$ticket[message]" onmouseover="SetCavTimer(event);" onmouseout="CancelCavTimer(event);">

This should work when you place your mouse cursor over SUBJECT link.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

Re: No reply email and popup message

Post by kabuc »

still don't work on FF.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No reply email and popup message

Post by Klemen »

Works in my test - note that you need to place the mouse over ticket subject link to see it.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

Re: No reply email and popup message

Post by kabuc »

Yes i know, but popup text still in 1 row
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No reply email and popup message

Post by Klemen »

Are you sure you did evetything as instructed above? Because I just tested again with FF 7.0.1 and it shows multiple lines to me :shock:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
kabuc
Posts: 69
Joined: Tue Jun 21, 2011 6:32 am

Re: No reply email and popup message

Post by kabuc »

I don't know what happen but now works :oops:

But if text is very long popup continue over right side browser
Post Reply