11
brentw
Text truncation?
  • 2005/6/16 21:05

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Hi folks.

Why does XOOPs like to truncate text and put a "..." at the end? Is there a setting I can change somewhere to stop/modify this behavior?

Thanks!



12
brentw
Re: changing header for different pages?
  • 2005/6/15 13:59

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


I figured out how to do this. XOOPS uses the following code in header.php to determine if the loaded page is the top page or not:

[size=xx-small] $toppage = false;
if (isset($xoopsModule)) {
// set page title
$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name'));
$xoopsTpl->assign('xoops_dirname', $xoopsModule->getVar('dirname'));
$moduleid = $xoopsModule->getVar('mid');
if (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) {
$toppage = true;
}
} else {
$xoopsTpl->assign('xoops_pagetitle', htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES));
$xoopsTpl->assign('xoops_dirname', "system");
$moduleid = 0;
if (!empty($xoopsOption['show_cblock'])) {
$toppage = true;
}
}
[/size]

I'll just use similar code to determine which header to render.



13
brentw
Re: changing header for different pages?
  • 2005/6/14 21:04

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Hmmm...not sure. Though the header changes, technically it seems that the behavior is the same no matter where you are.

When setting up blocks, you have to select whether you want a block to be visible in: Top, All, etc. Somewhere XOOPs determines what page is being rendered and sets the visibility style of a block depending on that variable. Essentially, I want to be able to do this same sort of thing statically from the theme.html file (presumably using a <{$xoops_.....}> variable.



14
brentw
changing header for different pages?
  • 2005/6/14 20:00

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Hello all.

I want to display different headers on my website depending upon where the user is. If the user is on the "top page", I have a large graphical header. Otherwise, I want a smaller header in order to maximize the space available for the loaded pages (modules).

How do I determine the "visibility" of the current page from within my custom theme.html file?


Thanks!

Brent Weatherly



15
brentw
Re: module w/ dynamic IFRAME?
  • 2005/6/13 20:43

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Ooops...sorry, didn't see the hyperlink. I thought you were questioning the sanity of my post.

Thanks, I'll read it.



16
brentw
Re: module w/ dynamic IFRAME?
  • 2005/6/13 20:36

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Are you saying the post is confusing or moronic?



17
brentw
module w/ dynamic IFRAME?
  • 2005/6/13 20:19

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Hello all.

I'm still trying to locate a simple "wrapper" module that simply displays an IFRAME for which the SRC can be dynamically changed. In this way, I can display older, non-xoops web pages in the center block. I'm porting an existing intranet to XOOPs and don't want to have to re-engineer every web page.

Essentially, I need hyper-links that are displayed in one block to call a module that will then display the linked web page in its IFRAME. I have a hacked version, but I'm looking for something a little more stable, if available.

Thanks!

Brent Weatherly



18
brentw
porting existing PHP, XSL, HTML, etc to XOOPs
  • 2005/6/9 20:50

  • brentw

  • Just popping in

  • Posts: 18

  • Since: 2005/5/25


Hello folks. I've been working for a couple of weeks getting a new XOOPs site up and running. We are a research lab, so first off, I'm wondering if there are any others out there who are using XOOPs as a lab intranet, as we probably have similar needs.

My pressing question is how to integrate existing web pages of various forms into XOOPs w/out having to re-engineer them all. As a simple fix, is there a module that will simply load a page into one of the blocks?

I'd also like to get some feedback on the theme I've created. Where would I post an image?

Thanks!

Brent Weatherly
University of Georgia




TopTop
« 1 (2)



Login

Who's Online

209 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 209


more...

Donat-O-Meter

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

Latest GitHub Commits