but Cant create item with cloned publisher
admin/item.php?op=mod
no related debug error..just half load page
Publisher 1.05 Beta
PHP 5.6.29
mySQL 5.6.34
<div class="navbar-wrapper">
<div class="navbar navbar-inverse navbar-static-top global-nav">
<div class="container">
<div class="navbar-header">
<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<{$xoops_url}>" class="navbar-brand xlogo" title="<{$xoops_sitename}>">
<img src="<{$xoops_imageurl}>images/logo.png" alt="<{$xoops_sitename}>">
</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="<{$xoops_url}>"><{$smarty.const.THEME_HOME}></a></li>
<li><a href="javascript:;"><{$smarty.const.THEME_MODULE1}></a></li>
<li class="dropdown"><a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;"><{$smarty.const.THEME_MODULE2}><b
class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:;">Topic 1</a></li>
<li><a href="javascript:;">Topic 2</a></li>
<li><a href="javascript:;">Topic 3</a></li>
<li><a href="javascript:;">Topic 4</a></li>
<li><a href="javascript:;">Topic 5</a></li>
</ul>
</li>
<li><a href="<{$xoops_url}>/modules/newbb"><{$smarty.const.THEME_MODULE3}></a></li>
<li><a href="<{$xoops_url}>/modules/contact"><{$smarty.const.THEME_MODULE4}></a></li>
</ul>
<form class="navbar-form navbar-right" role="search" action="<{xoAppUrl search.php}>" method="get">
<div class="form-group">
<input type="text" name="query" class="form-control" placeholder="<{$smarty.const.THEME_SEARCH_TEXT}>">
<input type="hidden" name="action" value="results">
</div>
<button class="btn btn-primary" type="submit"><{$smarty.const.THEME_SEARCH_BUTTON}></button>
</form>
</div>
</div>
</div>
</div><!-- .navbar-wrapper -->
AngeloRocha wrote:
Hi!
Add extCal support and new extgallery blocks style, see:
http://themes.angelorocha.com.br/modules/extgallery/
http://themes.angelorocha.com.br/modules/extcal/calendar-month.php
Shareaholic site:https://shareaholic.com/
Enjoy.
irmtfan wrote:
yes a very good feature, but modules may have many sub cats or in newbb case may have many categories and forums therefore it may affect the performance and I can recall the excuse of the last xoops core developer for removing this feature was the bad performances.
Also the customization will be limited to cats/forums and not for example each newbb topic or a single news.
maybe we can implement it by a different method. Trabis already introduced block anywhere smarty plugin and we need to just a user side/admin side ( i mean a theme/smarty ) online visual block editor like that work with some kind of jQuery drag and drop. i.e. you drop your favorite block in the page of your site you wish to see that block and it will insert the html code in the right place by getting some inputs from webmaster like $_GET variables in the URL. eg in newbb get the topic_id in a topic page.
side note:
with great block anywhere i already can insert my blocks really anywhere i want even in a single news or a specific topic (using topic_id) but an advance webmaster can do it. i taught we can make that easier for all webmasters.
<?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$meta_keywords = ""._DIRECTORY_NAME."";
$meta_description = ""._DIRECTORY_NAME."";
$pagetitle = ""._DIRECTORY_NAME."";
if(isset($xoTheme) && is_object($xoTheme)) {
$xoTheme->addMeta( 'meta', 'keywords', $meta_keywords);
$xoTheme->addMeta( 'meta', 'description', $meta_description);
} else { // Compatibility for old Xoops versions
$xoopsTpl->assign('xoops_meta_keywords', $meta_keywords);
$xoopsTpl->assign('xoops_meta_description', $meta_description);
}
$xoopsTpl->assign('xoops_pagetitle', $pagetitle);
//this will only work if your theme is using this smarty variables
$xoopsTpl->assign( 'xoops_showlblock', 1); //set to 0 to hide left blocks
$xoopsTpl->assign( 'xoops_showrblock', 1); //set to 0 to hide right blocks
$xoopsTpl->assign( 'xoops_showcblock', 1); //set to 0 to hide center blocks
$page_name="index.php"; // If you use this code with a different page ( or file ) name then change this
$start=$_GET['start'];
if(strlen($start) > 0 and !is_numeric($start)){
echo "Data Error";
exit;
}
$eu = ($start - 0);
$limit = 25; // No of records to be shown per page.
$this1 = $eu + $limit;
$back = $eu - $limit;
$next = $eu + $limit;
?>
<html>
<head>
<title><?php echo ""._DIRECTORY_NAME.""; ?></title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<form method="post" action="" >
<br /><?php echo ""._DIR_SEARCHSTAF.""; ?> <input type="text" name="search" />
<input type="submit" value="<?php echo ""._DIR_SEARCH.""; ?>"/><br />
<?php
//if the search button is being clicked
if (isset($_POST['search'])) {
$_POST['search'] = mysql_real_escape_string($_POST['search']);
//run the query for searching
global $xoopsDB;
$result= mysql_query("SELECT * FROM ".$xoopsDB->prefix("directory_info")." where name like '%" . $_POST['search'] . "%' or unit like '%" . $_POST['search'] . "%' or department like '%" . $_POST['search'] . "%' or position like '%" . $_POST['search'] . "%' ORDER BY name");
$search_result=mysql_num_rows($result);
if ($_POST['search'] =='')
{
echo "<div style='text-align:right;padding:5px;color:#CB1D1D;font-weight:bold;'><img src='message.gif'> "._DIR_KEYWORD."</div>";
//exit();
}
else
{
echo "<div style='text-align:right;padding:5px;color:#000;'><img src='message.gif'> $search_result "._DIR_SEARCHRECORD." <b>" . $_POST['search'] . "</b> "._DIR_FOUND."</div>";
}
}
else {
$result = mysql_query("SELECT * FROM ".$xoopsDB->prefix("directory_info")." ORDER BY name limit $eu, $limit");
$result2 = mysql_query("SELECT * FROM ".$xoopsDB->prefix("directory_info")." ORDER BY name");
$nume=mysql_num_rows($result2);
echo "<div style='text-align:right;padding:5px;'><img src='message.gif'> "._DIR_TOTAL.": $nume<br /></div>";
//if not searching then display all data
}
echo "<ul id='pagination-digg'>";
if($nume > $limit ){ // Let us display bottom links if sufficient records are there for paging
/////////////// Start the bottom links with Prev and next link with page numbers /////////////////
//// if our variable $back is equal to 0 or more then only we will display the link to move back ////////
if($back >=0) {
print "<li class='previous-off'><a href='$page_name?start=$back'>« "._DIR_PREV."</a></li>";
}
//////////////// Let us display the page links at center. We will not display the current page as a link ///////////
$i=0;
$l=1;
for($i=0;$i < $nume;$i=$i+$limit){
if($i <> $eu){
echo " <li><a href='$page_name?start=$i'>$l</a></li> ";
}
else { echo "<li class='active'>$l</li>";} /// Current page is not displayed as link and given font color red
$l=$l+1;
}
///////////// If we are not in the last page then Next link will be displayed. Here we check that /////
if($this1 < $nume) {
print "<li class='next'><a href='$page_name?start=$next'>"._DIR_NEXT."</a></li>";
}
}// end of if checking sufficient records are there to display bottom navigational link.
echo "</ul>";
// check if records were returned
if (mysql_num_rows($result) > 0) {
$countstaf = (isset($eu) && $eu > 0) ? $eu+1 : 1;
echo "<table id='directorystaf'><tr>";
echo "<th>No</th>";
echo "<th>"._DIR_NAME."</th>";
echo "<th>"._DIR_POSTION."</th>";
echo "<th>"._DIR_UNIT."</th>";
$int = 0;
while($row = mysql_fetch_array($result))
{
$log_id=$row['log_id'];
echo '<tr class="', ++$int & 1 ? 'even' : 'odd', '">';
echo "<td>";
echo $countstaf++;
echo "</td>";
echo "<td>" . $row['name'] . "</td>";
echo "<td>" . $row['position'] . " </td>";
echo "<td>" . $row['unit'] . "</td>";
echo "</tr>";
}
echo "</table>";echo "";
echo "<ul id='pagination-digg'>";
///////////////////////////////
if($nume > $limit ){ // Let us display bottom links if sufficient records are there for paging
/////////////// Start the bottom links with Prev and next link with page numbers /////////////////
//// if our variable $back is equal to 0 or more then only we will display the link to move back ////////
if($back >=0) {
print "<li class='previous-off'><a href='$page_name?start=$back'>« "._DIR_PREV."</a></li>";
}
//////////////// Let us display the page links at center. We will not display the current page as a link ///////////
$i=0;
$l=1;
for($i=0;$i < $nume;$i=$i+$limit){
if($i <> $eu){
echo "<li><a href='$page_name?start=$i'>$l</a></li> ";
}
else { echo "<li class='active'>$l</li>";} /// Current page is not displayed as link and given font color red
$l=$l+1;
}
///////////// If we are not in the last page then Next link will be displayed. Here we check that /////
if($this1 < $nume) {
print "<li class='next'><a href='$page_name?start=$next'>"._DIR_NEXT."</a></li>";}
}// end of if checking sufficient records are there to display bottom navigational link.
echo "</ul>";
}
?>
</body>
</html>
<?php
include(XOOPS_ROOT_PATH."/footer.php");
?>