Banshee
the secure PHP framework

Forum

Polls & Forms

Hugo Leisink
31 may 2010, 21:18
Riiight....
Ahcor Werdna
13 august 2011, 13:02
I was wondering how I would go about changing the default page layout for the forums. I know it would be based off code, but where should I look? Thank you.
http://www.projectphaze.us/forum < Those default topic
Hugo Leisink
13 august 2011, 14:52
Forum layout can be found in views/forum.xslt.
Ahcor Werdna
13 august 2011, 19:05
I'm so sorry, I know I didn't ask the right question. I mean how do I remover/modify "this" from the forum section?

"this" > Lorum ipsum (0)
"this" > Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer a purus velit, et porttitor diam.
"this" > Sed posuere (0)
"this" > Sed posuere, mauris nec pharetra pulvinar, nunc purus venenatis sapien, bibendum tempor sem.

I saw the forum.xslt file last night, but couldn't find what I was looking for.
Hugo Leisink
13 august 2011, 21:01
The forum posts can be maintained via the forum administration tool. The forum categories (what you see when you visit /forum) cannot yet be maintained via a web interface. You have to manually edit the forum table in the MySQL database via, for example, phpMyAdmin. Future versions of Banshee will have better forum administration tools.
Ahcor Werdna
13 august 2011, 21:16
Oh okay, thank you. Would that be the same for changing the theme also? The only way I would know how to do so, would be to run ./database/setup_database after editing the ../settings/website.conf
Hugo Leisink
13 august 2011, 22:08
Running setup_database for an already installed instance won't work. Changing the theme goes via the set_layout() function in the output class. In every controller, the output object is available as $this->output.
Ahcor Werdna
13 august 2011, 23:12
So running setup_database for a new site, which would create a new database&user. Would work, correct?
I decided to test it out and these are the errors I'm getting.

<quote>XSLTProcessor::importStylesheet(): I/O warning : failed to load external entity "/var/www/pp_us/views/includes/banshee.xslt" in /var/www/pp_us/libraries/xml.php on line 259.
XSLTProcessor::importStylesheet(): compilation error: file /var/www/pp_us/views/system/error.xslt line 3 element include in /var/www/pp_us/libraries/xml.php on line 259.
XSLTProcessor::importStylesheet(): xsl:include : unable to load /var/www/pp_us/views/includes/banshee.xslt in /var/www/pp_us/libraries/xml.php on line 259.
XSLTProcessor::transformToXml(): No stylesheet associated to this object in /var/www/pp_us/libraries/xml.php on line 265.
XSL Transformation error
Ahcor Werdna
13 august 2011, 23:19
I'm sure that I am doing something wrong, but just to make sure. I am wanting to us "layout_unembellished"

I can't POST/show you my banshee.xslt file, it tells me "Message seen as Spam" but it does include this.

"functions.xslt" / >
layout_compromise.xslt" />
layout_unembellished.xslt" />

="layout_compromise" />
="layout_unembellished" />

I apologize about the double post.
Hugo Leisink
14 august 2011, 11:28
About your first post: I have no idea what you did. But those errors shouldn't appear if you follow the installation documentation.

About your second post: the banshee.xslt is oke. In the controller of a module you want to layout of, add the following line to the execute() function:
$this->output->set_layout("layout_unembellished");
Ahcor Werdna
15 august 2011, 05:41
This is the only installation doc i see for themes. "To install the themes, download the theme package and unzip it in the root directory of a Banshee website. This will overwrite the file views/includes/banshee.xslt."

Thank you for clearing that up for me.
Ahcor Werdna
14 october 2011, 07:35
Thank you, I now understand how to apply a new theme.
Ahcor Werdna
14 october 2011, 07:44
http://www.pd0s.net/weblog

I have applied a new theme and now I have run into another issue. By visiting my site you can see what I mean. How and what would I edit, to fix the layout? So there isn't an overlap on the left and right side bars?
Hugo Leisink
14 october 2011, 10:17
There is a conflict in the tag classes. What you should do is this:

1) edit views/includes/layout_condition.xslt and change class="content" to class="page" on line 51.
2) edit public/css/includes/layout_condition.css and change div.content to div.page on line128.

I've fixed the themes.tar.gz. You could also re-download it and unpack it again.
Message preview

The following BB-codes are available in a message:

  • [b]Bold text[/b]
  • [center]Center text or imagen[/center]
  • [color=color name or #RGB code]Colored text[/color]
  • [i]Italic text[/i]
  • [img]Link to image[/img]
  • [right]Align text or image right[/right]
  • [s]Strike-through text[/s]
  • [size=pixelsize]Big or small text[/size]
  • [u]Underlined text[/u]
  • [url]Link to website[/url]
  • [url=link to website]Link text[/url]