Madallig,I'm struggling with Jumi - cannot get Jumi to work inside the article page ...
I hope the video could help you:
http://jumi.vedeme.cz/index.php?option= ... mitstart=1
If not please state a nature of your struggle.
Moderator: General Support Moderators
Madallig,I'm struggling with Jumi - cannot get Jumi to work inside the article page ...
Basbult,I'm not sure if this is the right place but earlier this Post there was a thing about popup/lightbox in an external php file by jumi
Code: Select all
<style type="text/css">
.client_report
{
border:2px solid #ccc;
background:#333;
width:600px;
padding:10px;
text-align:center;
overflow:auto;
table-cell:2px solid #ccc;
margin-left: auto;
margin-right: auto;
}
td {
position: relative;
width: 74px;
height: 10%;
margin: 0;
border-width: 1px 1px 1px 1px;
border-style: solid;
border-color: #ccc;
padding-top: 1em;
vertical-align: center;
}
</style>
<div class="client_report">
<?php
error_reporting(E_ALL);
if (!isset($_POST['Submit'])) {
// form not submitted
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<?php
require_once ('connect.php');
$res=mysql_query("SELECT DISTINCT client FROM jos_ay_client_activity order by client") or die(mysql_error());
echo "<select name=dropdown>";
while($row=mysql_fetch_assoc($res)) {
echo "<option value='$row[client]'>$row[client]</a></option>";
}
echo "</select>";
?>
<input type="Submit" value="Submit" name="Submit">
</form>
<?php
}
else {
// set server access variables
require_once ('connect.php');
$dropdown = empty($_POST['dropdown'])? die ("ERROR: Select from dropdown") : mysql_escape_string($_POST['dropdown']);
//Query
$query = "SELECT * FROM jos_ay_client_activity WHERE client='$dropdown'";
$result = mysql_query($query) or die (mysql_error());
$num=mysql_numrows($result);
echo "<b><center>Database Output</center></b><br><br>";
?>
<table>
<tr><td><b>Month</b></td>
<td><b>Year</b></td>
<td><b>Client</b></td>
<td><b>Surveys</b></td>
<td><b>Air Tests</b></td>
<td><b>Projects</b></td>
<td><b>Bulks</b></td>
<td><b>Entered</b></td>
</tr></table>
<?
$i=0;
while ($i < $num) {
$month=mysql_result($result,$i,"month");
$year=mysql_result($result,$i,"year");
$client=mysql_result($result,$i,"client");
$surveys=mysql_result($result,$i,"surveys");
$airtests=mysql_result($result,$i,"airtests");
$project=mysql_result($result,$i,"project");
$bulks=mysql_result($result,$i,"bulks");
$datetime=mysql_result($result,$i,"datetime");
echo "<table>"; // check width
echo "<tr><td>$month</td>";
echo "<td>$year</td>";
echo "<td>$client</td>";
echo "<td>$surveys</td>";
echo "<td>$airtests</td>";
echo "<td>$project</td>";
echo "<td>$bulks</td>";
echo "<td>$datetime</td></tr>";
echo "</table>";
?><?
$i++;
}
}
?></div>
Lukekelly,Basically i get the first part of the code up, but then when the filter is selected and submitted i get index page...I have tried the script standalone and it works fine
Actually it must be somewhere else.and tried and doesnt work anyway :P), so for example:
http://192.168.0.1/Intranet/index.php?o ... me&dir=ASC
Is there any other way of doing this???
Code: Select all
index.php?option=com_jumi&fileid=1&luke=kelly
Code: Select all
<?php
error_reporting(E_ALL);
if (!isset($_POST['Submit'])) {
// form not submitted
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<?php
$res=mysql_query("SELECT DISTINCT client FROM jos_ay_client_activity order by client") or die(mysql_error());
echo "<select name=dropdown>";
while($luk_row=mysql_fetch_assoc($res)) {
echo "<option value='$luk_row[client]'>$luk_row[client]</a></option>";
}
echo "</select>";
?>
<input type="Submit" value="Submit" name="Submit">
</form>
<?php
}
else {
// form submitted
// set server access variables
$dropdown = empty($_POST['dropdown'])? die ("ERROR: Select from dropdown") : mysql_escape_string($_POST['dropdown']);
//Query
$luk_query = "SELECT * FROM jos_ay_client_activity WHERE client='$dropdown'";
$luk_result = mysql_query($luk_query) or die (mysql_error());
$num=mysql_numrows($luk_result);
echo "<b><center>Database Output</center></b><br><br>";
?>
<table>
<tr><td><b>Month</b></td>
<td><b>Year</b></td>
<td><b>Client</b></td>
<td><b>Surveys</b></td>
<td><b>Air Tests</b></td>
<td><b>Projects</b></td>
<td><b>Bulks</b></td>
<td><b>Entered</b></td>
</tr></table>
<?
$i=0;
while ($i < $num) {
$month=mysql_result($luk_result,$i,"month");
$year=mysql_result($luk_result,$i,"year");
$client=mysql_result($luk_result,$i,"client");
$surveys=mysql_result($luk_result,$i,"surveys");
$airtests=mysql_result($luk_result,$i,"airtests");
$project=mysql_result($luk_result,$i,"project");
$bulks=mysql_result($luk_result,$i,"bulks");
$datetime=mysql_result($luk_result,$i,"datetime");
echo "<table>"; // check width
echo "<tr><td>$month</td>";
echo "<td>$year</td>";
echo "<td>$client</td>";
echo "<td>$surveys</td>";
echo "<td>$airtests</td>";
echo "<td>$project</td>";
echo "<td>$bulks</td>";
echo "<td>$datetime</td></tr>";
echo "</table>";
?><?
$i++;
}
}
?>
Code: Select all
index.php?option=com_jumi&fileid=1&luke=kelly
Code: Select all
index.php?option=com_jumi&fileid=1&month
Interesting....Joomfish translation component, everytime I run my jumi pages I am thrown an error such as..
Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/2/d144643160/htdocs/joomla/components/com_jumi/jumi.php(25) : eval()'d code on line
Code: Select all
eval("?>".$appl->custom_script);
Code: Select all
<?php
//defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" );
if(isset($_POST["submit"])) {datawrite(); buskeywrite(); datkeywrite(); netkeywrite(); buykeywrite(); datsecretwrite(); privacywrite(); $counter = 2;}
else {$user =& JFactory::getUser();$usr_id1 = $user->get('id');
$db = &JFactory::getDBO();
mysql_select_db("db285256637");
$getdataset="SELECT * FROM jos_comprofiler WHERE user_id LIKE $usr_id1";
$result=mysql_query($getdataset);
$gotdataset=mysql_fetch_object($result);
mysql_free_result($result);
$gotlat=$gotdataset->cb_latitude;$gotlong=$gotdataset->cb_longitude;
Code: Select all
mysql_select_db("db285256637");
$getdataset="SELECT cb_latitude, cb_longitude FROM jos_comprofiler WHERE user_id LIKE $usr_id1";
$result=mysql_query($getdataset);
$gotdataset=mysql_fetch_object($result);
mysql_free_result($result);
Code: Select all
$db2 = &JFactory::getDBO();
$db2->setQuery("SELECT cb_latitude, cb_longitude FROM jos_comprofiler WHERE user_id LIKE $usr_id1");
$gotdataset = $db2->loadObject();
jroswald,Overnight the system ceased recognizing the former formulation and threw up error, oh well you live and learn.
Leftfield,I have a very strange problem. Implemented script is working but after submit button it throw me on default Joomla template rhuk_milkyway. I have mine template and don't have another assigned template or anything strange. Switched off all SEF features but nothing. Had tried to wrap script and it is working normally. But if i use Jumi i had the problem with template.
Code: Select all
<input type="submit" value="<?php echo $lang[$l][35]; ?>" id="submit" />
Code: Select all
{jumi Site_Feedback_Form.php}{/jumi}
Code: Select all
{jumi *1}{/jumi}
Code: Select all
Record ID:1 does not exist or is not published, or you have got insufficient rights to read it!
Soul,Record ID:1 does not exist or is not published, or you have got insufficient rights to read it!
Soul,I'm sure im doing something wrong i just don't know what yet!
Code: Select all
<?php include($_JUMI_ROOT.DS."Site_Feedback_Forum.php"); ?>
Code: Select all
<?php
defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" );
global $mainframe;
$document = &JFactory::getDocument();
$document->addStyleSheet('components/com_jumi/files/SpryAssets/SpryValidationTextarea.css');
$document->addStyleSheet('components/com_jumi/files/SpryAssets/SpryValidationTextField.css');
$document->addScript('components/com_jumi/files/SpryAssets/SpryValidationTextarea.js');
$document->addScript('components/com_jumi/files/SpryAssets/SpryValidationTextField.js');
?>
<form>
...
</form>
<script type="text/javascript">
<!--
var sprytextarea1 = new Spry.Widget.ValidationTextarea("spry_message", {hint:"Write us a message... something nice. Why should we book your band?"});
var sprytextfield1 = new Spry.Widget.ValidationTextField("spryBandName");
var sprytextfield2 = new Spry.Widget.ValidationTextField("spryLocation", "none", {hint:"e.g. Royston Vasey"});
var sprytextfield3 = new Spry.Widget.ValidationTextField("spryGenre", "none", {hint:"e.g. \"Rock, Metal, Alternative\""});
var sprytextfield4 = new Spry.Widget.ValidationTextField("spryMySpace", "none");
var sprytextfield5 = new Spry.Widget.ValidationTextField("spryWebsite", "url");
var sprytextfield6 = new Spry.Widget.ValidationTextField("spryContact", "none");
var sprytextfield7 = new Spry.Widget.ValidationTextField("spryPhone", "integer");
var sprytextfield8 = new Spry.Widget.ValidationTextField("spryEmail", "email");
//-->
</script>
Bigspring, thanks to your appreciation! I will hand it to Ed, the other Jumi developer as well....one of the best extensions...
Bigspring, have you tried to make it running outside Joomla? If no I think you should try to do it first (with slight accommodations).What I would expect to see is that if the user clicks submit without correctly filling out the form, an error will be shown next to the appropriate input showing what is required (like almost all forms). However, it submits the form regardless of any errors and does not warn the user.
I guess you'd already posted by the time you saw my last post, it does indeed work absolutely fine outside of the Joomla/Jumi environment. That's why I'm so confused!MarHaj wrote:Bigspring, have you tried to make it running outside Joomla? If no I think you should try to do it first (with slight accommodations).