I think I’m probably doing this wrong:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252"></head><body><pre><pre class="xdebug-var-dump" dir="ltr"><b>object</b>(<i>database</i>)[<i>2</i>]
</pre></pre>
<title>Universal Empires</title>
<link rel="stylesheet" href="Universal%20Empires_files/default.css">
<div id="content">
<div id="header">
<div id="status_bar">
</div>
<br>
<a href="http://localhost/universal_empires/index">Home</a>
<a href="http://localhost/universal_empires/game">Game</a>
<a href="http://localhost/universal_empires/forum">Forum</a>
<a href="http://localhost/universal_empires/blog">Blog</a>
<a href="http://localhost/universal_empires/wiki">Wiki</a>
<a href="http://localhost/universal_empires/bugs">Bugs</a>
<a href="http://localhost/universal_empires/support">Support</a>
<a href="http://localhost/universal_empires/Chat">Chat</a>
<a href="http://localhost/universal_empires/admin">Admin</a>
<a href="http://localhost/universal_empires/login/logout">Logout</a>
SpacePhoenix </div>
<div id="page_contnet">
<div id="crumb_trail">
</div>
<div id="nav_tabs">
</div>
<h1>Inbox</h1>
<p>This is your Inbox</p>
<form method="post" action="/universal_empires/create/create_items/{$_GET[" continent']}'="">
<fieldset>
<legend>Inbox</legend>
<table>
<tbody><tr>
<th>Select</th>
<th>Subject</th>
<th>Starter</th>
<th>Started</th>
<th>Last Poster</th>
<th>Last Post Date</th>
<th>Posts</th>
</tr>
<tr>
<td><input name="selected_pms[]" value="1" type="checkbox"></td>
<td> <a href="http://localhost/universal_empires/message/view/1">Test Message 1</a></td>
<td><a href="http://localhost/universal_empires/ajax.php?username=SpacePhoenix" class="ajax_link">SpacePhoenix</a></td>
<td>2014-06-25 20:40:52</td>
<td>Toaster</td>
<td>2015-02-14 04:04:20</td>
<td>7</td>
</tr>
<tr>
<td><input name="selected_pms[]" value="2" type="checkbox"></td>
<td> <a href="http://localhost/universal_empires/message/view/2">Test Message 2</a></td>
<td><a href="http://localhost/universal_empires/ajax.php?username=SpacePhoenix" class="ajax_link">SpacePhoenix</a></td>
<td>2014-06-26 07:26:53</td>
<td>SpacePhoenix</td>
<td>2014-06-26 07:26:53</td>
<td>1</td>
</tr>
<tr>
<td><input name="selected_pms[]" value="3" type="checkbox"></td>
<td> <a href="http://localhost/universal_empires/message/view/3">Test Message 3</a></td>
<td><a href="http://localhost/universal_empires/ajax.php?username=SpacePhoenix" class="ajax_link">SpacePhoenix</a></td>
<td>2014-06-30 09:14:41</td>
<td>SpacePhoenix</td>
<td>2014-06-30 09:14:41</td>
<td>1</td>
</tr>
</tbody></table>
<select>
<option selected="selected" value="delete">Delete</option>
<option value="move">Move</option>
<option value="export">Export</option>
</select>
<input value="Select Messages" class="button" type="submit">
</fieldset>
</form> </div>
<div id="footer">
<p>The Footer</p>
</div>
</div><!-- end content div -->
<div id="sidebar">
<div id="site_logo">
<a href="http://localhost/universal_empires" class="image" title="Goto the Home Page">
<img style="border:0;" src="Universal%20Empires_files/SpacePhoenix.png" alt="http://localhost/universal_empires" longdesc="http://localhost/spacecoreccms" height="115" width="85">
</a>
<p>Universal Empires</p>
</div>
<div id="round_info">
<div id="sys_time">
<p>
February 14, 2015<br>05:09:16 UTC </p>
</div>
<div id="round_name">
<p>
Bodge In Progress!
</p>
</div>
</div>
<div id="navigation">
<ul id="nav">
<li>Menu Goes Here</li>
</ul>
</div>
</div> <!-- end sidebar div -->
<script type="text/javascript" src="Universal%20Empires_files/tinymce.js"></script>
<script type="text/javascript" src="Universal%20Empires_files/jquery.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor colorpicker textpattern"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});
</script>
<script type="text/javascript" src="Universal%20Empires_files/jquery_002.js"></script>
<script language="javascript">
// Create the tooltips only when document ready
$(document).ready(function()
{
// MAKE SURE YOUR SELECTOR MATCHES SOMETHING IN YOUR HTML!!!
$('a').each(function() {
$(this).qtip({
content: {
text: function(event, api) {
$.ajax({
url: api.elements.target.attr('href') // Use href attribute as URL
})
.then(function(content) {
// Set the tooltip content upon successful retrieval
api.set('ajax.php', content);
}, function(xhr, status, error) {
// Upon failure... set the tooltip content to error
api.set('ajax.php', status + ': ' + error);
});
return 'Loading...'; // Set some initial text
}
},
position: {
viewport: $(window)
},
style: 'qtip-wiki'
});
});
});
</script>
</body></html>
When I click on a user name it’s redirecting to another page instead of displaying a tooltip. Have I messed up the script or could it be down to the .htaccess file?
It’s supposed to grab via ajax 3 items about a user which should be displayed