21
sarahmx
Re: Publisher and xoops 2.5.8 tests
  • 2017/3/4 11:46

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Create item with original publisher ok

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



22
sarahmx
Re: One block feature I'm missing from older Xoops versions
  • 2016/7/21 3:09

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


can core developer comment on this feature.. ?



23
sarahmx
mymenus and xbootstrap theme menu
  • 2016/7/21 1:29

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Hi

Im using XOOPS 2.5.8 and mymenus 1.50beta

anyone have skin menu for xbootstrap ?
is it possible to recreate the menu in xbootstrap in mymenus...so i dont have to edit the following file in xbootstrap manually ?


themes/xbootstrap/tpl/nav-menu.tpl
<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 -->



24
sarahmx
Content zone block - Xbootstrap theme in mobile
  • 2016/6/17 13:57

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Hello xoopsers

How do i set the xbootstrap theme so when we browse our website through mobile device it will start displaying with contentzone-leftblock -rightblock instead of now starting with left block
I hope i made myself clear

Thank you



25
sarahmx
Re: xBootstrap XOOPS Theme - Development
  • 2015/1/14 8:25

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Quote:

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.


nice job

can you open the extcal event details for public to see ..now it is closed and open for registered user only

TQ...



26
sarahmx
Re: Bootstrap XOOPS Admin theme
  • 2015/1/14 1:54

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


when i tried its not responsive..so i assume its not using bootstrap

But great to know indeed it support bootstrap

Rmcommomn addition to 2.6 will be awesome

Thank you for the explanation mamba

2.6 final will sure be a great release





27
sarahmx
Bootstrap XOOPS Admin theme
  • 2015/1/14 0:35

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


we have the xbootstrap theme for front theme in xoops 2.5.7

can we have a bootstrap theme at the backend ?

i just tried XOOPS 2.6 alpha, it is great with all the changes but unfortunately the front and backend theme are not in bootstrap mode...

wish someday it will will support bootstrap so it will be mobile friendly ..like most of website and cms today....



28
sarahmx
Re: One block feature I'm missing from older Xoops versions
  • 2013/9/14 2:36

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Quote:

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.



should be in xoops 2.6



29
sarahmx
search, sort, pagination in XOOPS
  • 2013/4/7 5:51

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


Hi

Im a php newbie

Im currently working on a simple directory module to show list of staff at my club house

is there any easy example module that can be my guide that implement its own search, with sort and pagination

i would like the data be display have pagination (30 records per page) and im able to sort it by asc/desc for all columns ..

and when doing search, pagination and sorting is also working

this i what i did so far..

excuse me for my newbie code..want to do this right way if there any easy xoops example out there...

will try to move this to using smarty template later

<?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) > 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
$resultmysql_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;

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 '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");
?>

the code is currently working where it will display data with pagination and searching is working but without paginantion

what im trying to do right now is
- display data/search with pagination/sorting asc&desc


any xoops master can guide me ?



30
sarahmx
Re: Help with custom module search.inc.php
  • 2013/4/6 16:12

  • sarahmx

  • Quite a regular

  • Posts: 381

  • Since: 2007/10/28


i didnt see it either..

now finally its working... thank you zyspec







TopTop
« 1 2 (3) 4 5 6 ... 32 »



Login

Who's Online

182 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 182


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits