1
jasXoop
Re: xBootstrap XOOPS Theme - Development
  • 2014/2/21 8:06

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


Hello All,

Firstly, I would like to say thank you for the great work on this theme
and the support of Xoops. I stumble upon this program over nine years ago,
and have been very impressed by Xoops.

I really like how the theme is broken down into the components with tpl files,

I am have some problems following the css components of the theme.


I would like to change some of the formatting and look and feel of the theme,
for my purposes, but I don't want to make changes which will break the functioning
of the theme.

In the following:

<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"><img src="<{$xoops_imageurl}>images/logo.gif" alt="wwww.1stopautocare.com"></a>
</div>

<div class="credits visible-lg">
<li>651-292-1485</li>
<li>159 W. Pennsylvania Avenue</li>
<li>St. Paul MN 55103</li>
<li>Hours: 8:00 to 4:30 M-F</li>
<li> Saturday: 10:00-12:00</li>
</div>

<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="<{$xoops_url}>">Home</a></li>
<li><a href="javascript:;">About Us</a></li>
<li class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;">Find Us <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:;">Phone</a></li>
<li><a href="javascript:;">Location 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 class="dropdown"> <a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;">Announcements<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="javascript:;">Important</a></li>
<li><a href="javascript:;">Industry</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/contact">Contact</a></li>
<li><a href="<{$xoops_url}>/modules/extgallery">Services</a></li>
<li><a href="<{$xoops_url}>/modules/sitemap">Site Map</a></li>
<li><a href="<{$xoops_url}>/modules/publisher">Information</a></li>
<li><a href="<{$xoops_url}>/modules/smartpartner">Partners</a></li>




</ul>
</div>
</div>
</div>
</div><!--

I wanted to add an address to the theme, but the formatting is not allowing the address to be visible on the site.

I am not sure which CSS file I should look to add a class for the address to format it to
become visible.

Thank you for your advice in advance.

Jas




2
jasXoop
Re: catads
  • 2011/10/15 2:11

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


I have mad the change in the ads.phpas follows:


function CatadsAds()
{
$this->XoopsObject();
$this->initVar('ads_id', XOBJ_DTYPE_INT, null, false);
$this->initVar('cat_id', XOBJ_DTYPE_INT, null, true);
$this->initVar('ads_title', XOBJ_DTYPE_TXTBOX, null, true, 100);
$this->initVar('ads_type', XOBJ_DTYPE_TXTBOX, null, true, 40);
$this->initVar('ads_desc', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ads_tags', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('ads_video', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('price', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('monnaie', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('price_option', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('email', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('uid', XOBJ_DTYPE_INT, 0, false);
$this->initVar('phone', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('pays', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('region', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('departement', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('town', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('codpost', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('created', XOBJ_DTYPE_INT, 0, false);
$this->initVar('published', XOBJ_DTYPE_INT, 0, false);
$this->initVar('expired', XOBJ_DTYPE_INT, 0, false);
$this->initVar('expired_mail_send', XOBJ_DTYPE_INT, 0, false);
$this->initVar('view', XOBJ_DTYPE_INT, 0, false);
$this->initVar('notify_pub', XOBJ_DTYPE_INT, 0, false);
$this->initVar('poster_ip', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('contact_mode', XOBJ_DTYPE_INT, 0, false);
$this->initVar('countpub', XOBJ_DTYPE_INT, 0, false);
$this->initVar('suspend', XOBJ_DTYPE_INT, 0, false);
//add v1.30
$this->initVar('waiting', XOBJ_DTYPE_INT, 0, false);
//add v1.40
$this->initVar('photo0', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo1', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo2', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo3', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo4', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('photo5', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('thumb', XOBJ_DTYPE_TXTBOX, null, false);
$this->initVar('dohtml', XOBJ_DTYPE_INT, 1, false);

}


What is the correct syntax to have the editor as a choice. Does it need to be modified in each of the forms mentioned earlier? Thanks again!

// Formulaire avec ou sans bbcodes
if ($xoopsModuleConfig['bbcode'] == 1) {
$text_annonce = new XoopsFormDhtmlTextArea(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
} else {
$text_annonce = new XoopsFormTextArea(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
} else {
$text_annonce = new ???????????????????(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
} else {
$text_annonce = new ???????????????(_MD_CATADS_TEXTE_S.'*', "ads_desc", $ads_desc);
}







3
jasXoop
Re: catads
  • 2011/10/14 3:32

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


I am not sure why you are recommending tiny editor.

In the function.php the following code is there.


if ($xoopsModuleConfig['bbcode'] == 1) {
$annonce_text = new XoopsFormDhtmlTextArea(_AM_CATADS_DESCR, "ads_desc", $ads_desc);
} else {
$annonce_text = new XoopsFormTextArea(_AM_CATADS_DESCR, "ads_desc", $ads_desc);
}
$adsform->addElement($annonce_text, true);


I am confused.




4
jasXoop
Re: catads
  • 2011/10/13 20:19

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


Hello,

Thanks for the reply.

Which file do I have to look at.

It is just for my use.

Jas



5
jasXoop
catads
  • 2011/10/13 5:40

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


I am looking for some information regarding catads.

When I adding the text in the ad description field, it only allows me to enter plain text, but I want to add html text in that box.

Can anyone suggest how and what o modify to get a different editor to work which will allow html in the ad desc field?

Thank you,

Jas



6
jasXoop
Re: 2.3.1 Upgrade Issue
  • 2008/11/30 15:42

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


can you get to your database tables? I would check session.php, I had the same problem and I modified my session.php in order to fix the problem.

see below

<?php
// $Id: session.php 1908 2008-07-27 06:52:24Z phppp $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <https://xoops.org/> //
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// This program is distributed in the hope that it will be useful, //
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
// Author: Kazumi Ono (AKA onokazu) //
// URL:http://www.myweb.ne.jp/,https://xoops.org/,http://www.xoopscube.jp/ //
// Project: The XOOPS Project //
// ------------------------------------------------------------------------- //
/**
* @package kernel
*
* @author Kazumi Ono <onokazu@xoops.org>
* @author Taiwen Jiang <phppp@users.sourceforge.net>
* @copyright copyright (c) The XOOPS project XOOPS.org
*/


/**
* Handler for a session
* @package kernel
*
* @author Kazumi Ono <onokazu@xoops.org>
* @author Taiwen Jiang <phppp@users.sourceforge.net>
* @copyright copyright (c) The XOOPS project XOOPS.org
*/
class XoopsSessionHandler
{

/**
* Database connection
*
* @var object
* @access private
*/
var $db;

/**
* Security checking level
*
* Possible value:
* 0 - no check;
* 1 - check browser characteristics (HTTP_USER_AGENT/HTTP_ACCEPT_LANGUAGE), to be implemented in the future now;
* 2 - check browser and IP A.B;
* 3 - check browser and IP A.B.C, recommended;
* 4 - check browser and IP A.B.C.D;
*
* @var int
* @access public
*/
var $securityLevel = 3;

/**
* Enable regenerate_id
*
* @var bool
* @access public
*/
var $enableRegenerateId = false;

/**
* Constructor
*
* @param object $db reference to the {@link XoopsDatabase} object
*
*/
function XoopsSessionHandler(&$db)
{
$this->db =& $db;
}

/**
* Open a session
*
* @param string $save_path
* @param string $session_name
*
* @return bool
*/
function open($save_path, $session_name)
{
return true;
}

/**
* Close a session
*
* @return bool
*/
function close()
{
$this->gc_force();
return true;
}

/**
* Read a session from the database
*
* @param string &sess_id ID of the session
*
* @return array Session data
*/
function read($sess_id)
{
$sql = sprintf('SELECT sess_data, sess_ip FROM %s WHERE sess_id = %s', $this->db->prefix('session'), $this->db->quoteString($sess_id));
if (false != $result = $this->db->query($sql)) {
if (list($sess_data, $sess_ip) = $this->db->fetchRow($result)) {
if ($this->securityLevel > 1) {
$pos = strpos($sess_ip, ".", $this->securityLevel - 1);
if (strncmp($sess_ip, $_SERVER['REMOTE_ADDR'], $pos)) {
$sess_data = '';
}
}
return $sess_data;
}
}
return '';
}

/**
* Write a session to the database
*
* @param string $sess_id
* @param string $sess_data
*
* @return bool
**/
function write($sess_id, $sess_data)
{
$sess_id = $this->db->quoteString($sess_id);
$sql = sprintf('UPDATE %s SET sess_updated = %u, sess_data = %s WHERE sess_id = %s', $this->db->prefix('session'), time(), $this->db->quoteString($sess_data), $sess_id);
$this->db->queryF($sql);
if (!$this->db->getAffectedRows()) {
$sql = sprintf('INSERT INTO %s (sess_id, sess_updated, sess_ip, sess_data) VALUES (%s, %u, %s, %s)', $this->db->prefix('session'), $sess_id, time(), $this->db->quoteString($_SERVER['REMOTE_ADDR']), $this->db->quoteString($sess_data));
return $this->db->queryF($sql);
}
return true;
}

/**
* Destroy a session
*
* @param string $sess_id
*
* @return bool
**/
function destroy($sess_id)
{
$sql = sprintf('DELETE FROM %s WHERE sess_id = %s', $this->db->prefix('session'), $this->db->quoteString($sess_id));
if ( !$result = $this->db->queryF($sql) ) {
return false;
}
return true;
}

/**
* Garbage Collector
*
* @param int $expire Time in seconds until a session expires
* @return bool
**/
function gc($expire)
{
if (empty($expire)) {
return true;
}

$mintime = time() - intval($expire);
$sql = sprintf('DELETE FROM %s WHERE sess_updated < %u', $this->db->prefix('session'), $mintime);
return $this->db->queryF($sql);
}

/**
* Force gc for situations where gc is registered but not executed
**/
function gc_force()
{
if (rand(1, 100) < 11) {
$expire = @ini_get('session.gc_maxlifetime');
$expire = ($expire > 0) ? $expire : 900;
$this->gc($expire);
}
}

/**
* Update the current session id with a newly generated one
*
* To be refactored
*
* @param bool $delete_old_session
* @return bool
**/
function regenerate_id($delete_old_session = false)
{
$phpversion = phpversion();

if (!$this->enableRegenerateId) {
$success = true;

// parameter "delete_old_session" only available as of PHP 5.1.0
} elseif (version_compare($phpversion, "5.1.0", ">=")) {
$success = session_regenerate_id($delete_old_session);

} else {
$old_session_id = session_id();
// session_regenerate_id function available as of PHP 4.3.2
if (function_exists("session_regenerate_id")) {
$success = session_regenerate_id();
if ($success && $delete_old_session) {
// Extra step to destroy old session
$this->destroy($old_session_id);
}
// For PHP prior to 4.3.2
} else {
// session_regenerate_id is not defined, create new session ID
$session_id = md5( uniqid(rand(), true) . @$_SERVER['HTTP_USER_AGENT'] );
// Set the new session ID
session_id($session_id);
// Destory old session on request
if ($delete_old_session) {
$this->destroy($old_session_id);
// switch old session to new one
} else {
$sql = sprintf('UPDATE %s SET sess_id = %s WHERE sess_id = %s', $this->db->prefix('session'), $this->db->quoteString($session_id), $this->db->quoteString($old_session_id));
$this->db->queryF($sql);
}
$success = true;
}
}

// Force updating cookie for session cookie is not issued correctly in some IE versions or not automatically issued prior to PHP 4.3.3 for all browsers
if ($success) {
$this->update_cookie();
}

return $success;
}

/**
* Update cookie status for current session
*
* To be refactored
* FIXME: how about $xoopsConfig['use_ssl'] is enabled?
*
* @param string $sess_id session ID
* @param int $expire Time in seconds until a session expires
* @return bool
**/
function update_cookie($sess_id = null, $expire = null)
{
global $xoopsConfig;
$session_name = ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') ? $xoopsConfig['session_name'] : session_name();
$session_expire = !is_null($expire) ? intval($expire) : ( ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') ? $xoopsConfig['session_expire'] * 60 : ini_get("session.cookie_lifetime") );
$session_id = empty($sess_id) ? session_id() : $sess_id;
setcookie($session_name, $session_id, $session_expire ? time() + $session_expire : 0, '/', '', 0);
}
}
?>
Thanks,

jasXoop



7
jasXoop
Re: Installation stalls at step five.
  • 2008/11/19 3:57

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


non-persistent connection. This is the manner I installed 2.0.18.2. I did try it both ways with the same results. Is there a way to put the install in debug mode or to see the installation details?

Jas
Thanks,

jasXoop



8
jasXoop
Re: Installation stalls at step five.
  • 2008/11/18 14:00

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


installation of 2.0.18.2 with same database and user name and password installed correctly.

Jas
Thanks,

jasXoop



9
jasXoop
Re: Installation stalls at step five.
  • 2008/11/18 3:12

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


I enter the database information, and proceed to the next step, and it prompts me to enter the database information again. And again.

Thanks,

Jas
Thanks,

jasXoop



10
jasXoop
Re: Installation stalls at step five.
  • 2008/11/17 3:25

  • jasXoop

  • Just popping in

  • Posts: 22

  • Since: 2003/10/1


What to do now?
Thanks,

jasXoop




TopTop
(1) 2 3 »



Login

Who's Online

279 user(s) are online (183 user(s) are browsing Support Forums)


Members: 0


Guests: 279


more...

Donat-O-Meter

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

Latest GitHub Commits