1
dleewo
How do I make templates part of a theme?
  • 2005/11/2 18:56

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


I'm working on a theme that requires me to make a few changes to some template files. I've already cloned the template and made the changes and I can get them to work this way.

Based on what I can find, it seems that I can actually make those template changes part of my theme by including them in a "templates" directories such as "templates/<modulename>/" and "templates/<modulename>/blocks/" within my theme. Is that correct?

If I do this and want to now distribute my theme, do I have have to tell people to go through the cloning process, or can they then simply install the theme as they would any other theme and it'll work "out-of-the-box"

Lastly, is there any tutorial or document out there that talks about templates? I've found a lot of stuff about themes and the only stuff I can find on templates talk about cloning them and making them active.



2
dleewo
Re: Error display news item (Xoops 2.2.3a and news 1.4)
  • 2005/11/1 21:08

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


OK...I think I've found and fixed the problem. In the file functions.php at line 319, there should be a call as follows:

$config_handler =& xoops_gethandler('config');

I've added that so the code now looks like this:

if(count($tmp)>0) {
return implode(',',$tmp);
} else {
// New line below
$config_handler =& xoops_gethandler('config');
$xoopsConfigMetaFooter =& $config_handler->getConfigsByCat(XOOPS_CONF_METAFOOTER);
return $xoopsConfigMetaFooter['meta_keywords'];
}

This now works correctly. I still don't know why I only go through this branch when I'm logged in as a user.



3
dleewo
Re: Where do I find XoopsHeadline
  • 2005/11/1 16:03

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


Quote:

gestroud wrote:
Try the xhld module for displaying RSS. It's a lot more versatile:
https://xoops.org/modules/repository/singlefile.php?cid=84&lid=1437


I saw xhld in the repository and considered using it (and may still do so), but I thought XOOPS had a more "official" module called XoopsHeadline and if so, I would at least like to try that one first and then decide if it's not adequate for what I want and then move on to a 3rd party module.



4
dleewo
Error display news item (Xoops 2.2.3a and news 1.4) - SOLVED
  • 2005/11/1 13:40

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


When I try to display a new items by clicking on the title, I get the following error:

Fatal error: Call to a member function on a non-object in /home/dleewo/public_html/test.leewo.net/xoops/modules/news/include/functions.php on line 319

This only happens if I'm logged in as a user. If I'm not logged it, it displays fine.

Also, whether logged in or not, the items is displayed OK on the main news page. I only see the problem if I click on the title.

I pulled up the code referred to. Here is line 319:

$xoopsConfigMetaFooter =& $config_handler->getConfigsByCat(XOOPS_CONF_METAFOOTER);


Does anyone have any suggestions?



5
dleewo
Where do I find XoopsHeadline
  • 2005/11/1 13:06

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


I'm looking for a module/block so I can display RSS feeds on my website. After some searching, I've seen that XoopsHeadline is supposed to be part of XOOPS 2. Is that correct?

The reason I ask is that I installed XOOPS 2.2.3a, but it's not there. I checked a few of the community packs, but I couldn't find this module.

I did a search on Google, but while I've found references to it, none show up on the xoops.org site except in the forums.

Where can I get XoopsHeadline and is this the recommended module for displaying RSS feeds (I see there are others in the modules repository, but if there is an "official" module, I would prefer to use that)

Thanks
Derek



6
dleewo
Re: I can't install news 1.4 on 22 system
  • 2005/9/10 4:26

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


I'm getting the same error and would like to know if there is a solution.



7
dleewo
Re: xoopsgallery (new photo) column photo display style
  • 2004/9/20 15:27

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


How come you're at version 1.4. If you check:

http://xoopsgallery.org/

I only see 1.3.3.X

Derek




8
dleewo
Re: xoopsgallery (new photo) column photo display style
  • 2004/9/20 15:20

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16



xoopsgallery 1.33




9
dleewo
Re: xoopsgallery (new photo) column photo display style
  • 2004/9/20 14:59

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


Quote:

asdfg wrote:
u mean in the block admin --> edit "new photo" block?
i din found something that can change the photo arrangement. it's only a column to set the biggest photo wide available.


Here is what I see in my settings:

Resized Image

If you select "Wide", you should get a horizontal display



10
dleewo
Re: xoopsgallery (new photo) column photo display style
  • 2004/9/20 10:46

  • dleewo

  • Just popping in

  • Posts: 12

  • Since: 2004/9/16


Yes.

In the blocks section, go to "Edit" for the new photos block. Under options, you'll see a drop down combo. You can select "Wide"

I'm new to XOOPS myself so I hope my terminology is sufficient for you to find the correct place to go to.

Derek




TopTop
(1) 2 »



Login

Who's Online

259 user(s) are online (132 user(s) are browsing Support Forums)


Members: 0


Guests: 259


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