61
mboyden
Re: combine modules
  • 2010/6/18 14:20

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


There are two options for inline blocks that I've found.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



62
mboyden
Re: Possible Problem for which we used Liaise 1.26
  • 2010/6/18 14:13

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I'm going to guess it's a problem with how your server has changed. I use liaise extensively and while it has a couple of bugs, the mailer works fine sending to all members of groups (at least no complaints so far, and I did a server upgrade to some of our XOOPS servers about 2 months ago).

There was a recent thread where someone had problems sending to hotmail and such. Hotmail, Yahoo, AOL/TimeWarner, Gmail and the other biggies all want to see SPF, DomainKeys (DKIM) and such in place which helps reduce spam. If your host isn't doing this, ask them to add it for your domain. If your IP address changed or other aspects changed from the digitial signatures they have on file and you're not using SPF, DKIM, then they may have blacklisted you. Check to make sure that's not the case. Try and send a message from another email box on the server. Try to use the command line to send a message. Etc.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



63
mboyden
Re: Homepage Text
  • 2010/6/18 14:09

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


The concept of any CMS including XOOPS is that your site has functionality but your page is blank until you fill it with bits and pieces of functionality that highlight the content in your various modules of functionality. Think of the home page like the front of an interactive newspaper. It's not all on the home page, rather teasers to get you to visit sections of interactive content. Blocks are the way to display these teasers.

There is also a method to allow you to specify a specific module to be the start page, but I only recommend this on single function sites. Most sites aren't, but I run across them. Even if they were, though, I think XOOPS (and any CMS) is still better off using a block as appropriate.

BTW, there is also now a system block/template for the home page that will show whatever you put in there if it's not blank.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



64
mboyden
Re: Log Off Button Missing
  • 2010/6/18 14:02

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


It's somewhat dependent on the theme. The way the system is designed OOB, when a person is logged off there is a login block on the pages and they can login. Once logged in, there is a User Menu block which shows the logoff link. Many themes have incorporated code which checks to see if the user is logged in or not and shows either login area or logoff depending (and then turn off the login block), and that code is readily available here on this site and so themes that don't have that can have it easily added.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



65
mboyden
Smarty {while} Loops
  • 2010/6/17 15:26

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I'd been lamenting that there is no {while} loop in Smarty. I understand some of the reasoning why they haven't done it, but I've found times where I really needed it and had to hit the functional layer which I'd rather avoid when possible. So, I came across a solution that works if you want/need it.

Create a file in XOOPS_ROOT/class/smarty/xoops_plugins called compiler.while.php and put this code into it:
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/

/**
* Smarty {while} compiler function plugin
*
* Type:     compiler function<br>
* Name:     while<br>
* Date:     Sep 08 2006<br>
* Purpose:  provide a while-loop<br>
* @author Frank Habermann <lordlamer at lordlamer dot de>
* @param string containing var-attribute and value-attribute
* @param Smarty_Compiler
* Examples: The following code will loop 5 times ;)
*     <pre>
* {assign var="test" value=1}
* {while ($test <= 5)}
*    {assign var="test" value="`$test+1`"}
*   jo
* {/while}
*     </pre>
*/

$this->register_compiler_function('/while''smarty_compiler_endwhile');

function 
smarty_compiler_while($tag_arg, &$smarty) {
   
$res $smarty->_compile_if_tag($tag_arg);
   
preg_match("/<?php if (.*): ?>/",$res,$token);
   return 
"while " $token[1] . " {";
}

function 
smarty_compiler_endwhile($tag_arg, &$smarty) {
   return 
"}";
}

?>


Save it and you're done. Then u can use it just like the example shown. Works for me; hope it works for you.

I found this Smarty while loop solution in the Smarty forums.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



66
mboyden
Re: Smarty and Jqery slider
  • 2010/6/15 14:14

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I am using jQuery code all over the place in my installs now, and have been doing such before it was officially added into XOOPS. I've never had to use any literal tags to make it work, but I also won't say that it won't ever be necessary. Also, in XOOPS, a smarty tag looks a little different than the standard smarty tags using <{ }> instead of just { }. I have smarty tags replaced in scripts in blocks, pages, and the theme. However, I do have to often go back to static pages to get it working and then incorporate it into the template code.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



67
mboyden
Re: Counter modules statistics
  • 2010/6/15 14:01

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


the iStats module does most if not all of this. There is also the TDMstats module which I haven't used yet. Of course, there is also Google Analytics (but requires registration and inserting into your theme), assuming you are willing to use that (and share your data with Google).
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



68
mboyden
Re: How to update a module on xoops repository??
  • 2010/6/15 13:57

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Yes, it will create a new entry.

I have to question how good an idea it is to have multiple versions in the repository. It will generally pollute the overall value IMHO because when you find a module, then you have to find the other 7 versions that have been posted and make sure you have the latest one. That's assuming that when we have 10 versions of each news module, you can find the one you want to use.

For an easy to use CMS, I don't think we want such a user-vicious repository.

That said, there may be reason to have more than one version available in the repository if you have one for the 2.0.x version and one for 2.3.x or later. However, I think we ought to break those out somehow in categories or areas instead to make it clear.

I know there is some effort going on to redo the repository interface which may help in the future, but don't know the details other than it is somewhat imminent.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



69
mboyden
Re: User profile URL rewrite hack
  • 2010/6/14 15:37

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Do you really want to reveal the usernames? To me this is asking for script kiddiez to come try and break into your site. Among other reasons, this is the reason why our sites use the "Real Name" field (we call it display name) and don't ever reveal the login name to other users. It also means that many modules need some modifications because of it.

Also, how well would this hack work with the xoRewriteModule which also IMHO should belong in the core. I dont' think it will based on other similar module SEO/rewrite code I've played with.

Anyhoos, good luck with it.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development



70
mboyden
Re: Smarty and Jqery slider
  • 2010/6/14 15:31

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I don't have an answer, but when I'm incorporating jQuery scripts into projects, sometimes I render a XOOPS page and then use that page as a simple HTML page and then edit over and over again until I get the script working right and then incorporate those changes back into the block/template/theme code to make it do what I want. What I run into is the problem of the multiple layers of XOOPS adding complexity until I understand what the true problem is.

My suggestion would be to get the code working on a static HTML page (non-XOOPS, but based on a page generated by XOOPS) until you figure out the conflict or problem.

Hope that helps.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 43 »



Login

Who's Online

260 user(s) are online (186 user(s) are browsing Support Forums)


Members: 0


Guests: 260


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