1
etcetera
Problem altering newbb templates
  • 2009/6/28 17:47

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Using: XOOPS 2.3.3; newbb 3.08

I'm in the process of customizing my site with all new templates. I cloned the default template set, set the new template set to display, and checked yes on "show changes in templates." I've had no problem changing other templates around the site, or in changing the newbb_index or newbb_viewforum templates... but I am entirely unable to change newbb_thread and newbb_item. None of the changes I make are displaying on the live site.

In scanning through the templates for flat and threaded display, I noticed these files are being imported in:

Quote:

<{foreach item=topic_post from=$topic_posts}>
<{if $viewmode_compact}>
<{include file="$newbb_template_path/newbb_item.html" topic_post=$topic_post}>
<{else}>
<{*include file="db:newbb_thread.html" topic_post=$topic_post mode=$mode*}>
<{include file="$newbb_template_path/newbb_thread.html" topic_post=$topic_post mode=$mode}>
<{/if}>




<{/foreach}>


My first thought was that these lines might be pulling from the default templates, so I experimented with replacing the calls to newbb_thread with the full URL to the templates I wanted it to read... which resulted in just a blank page. Apparently it didn't want to import the file that way.

Since I know absolutely nothing about PHP, my question is: are these commands pulling from the default template instead of my cloned one? And if so, how would I reroute them to the correct files?

2
ghia
Re: Problem altering newbb templates
  • 2009/6/28 21:07

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you try to update the module newbb after the changements?
Any messages with debug? Check also Smarty debug.

3
etcetera
Re: Problem altering newbb templates
  • 2009/6/28 23:15

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


I did update the module; still no change. And no - no error messages.

4
ghia
Re: Problem altering newbb templates
  • 2009/6/29 0:25

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you read the verbose report of the update? No errors or anomalies there?
Is caching off for the module?

Here no problem for changing: eg change 'IP:' in newbb_thread.html and newbb_item.html to 'IP address:'. After reload in the browser it is changed. (Preference 'Check templates for modifications ?' in system general is 'yes'.)

5
deka87
Re: Problem altering newbb templates
  • 2009/6/29 6:16

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


I had the same problems with newbb templates. I don't know how but I managed to edit the cloned template and get it up on my website. The other day I wanted to get it back to normal but nothing works. I do edit the cloned template set for newbb, clear all the cache folders + browser cache but it just won't work.
Mind anchors

6
culex
Re: Problem altering newbb templates
  • 2009/6/29 9:38

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


looks to me as if the template is including only the database template and ignoring the server template versions.

possible the new template set doesnt get saved to db, but instead the old templateset is still being pulled ?
Programming is like sex:
One mistake and you have to support it for the rest of your life.

7
ghia
Re: Problem altering newbb templates
  • 2009/6/29 11:08

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


If you are using extended character set characters in your template, make sure your template is formatted according to your XOOPS database and site character set: ansi or UTF-8.

8
etcetera
Re: Problem altering newbb templates
  • 2009/6/29 14:35

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


After more playing around...

Quote:
Notice: Deprecated function 'mod_getIP', use XoopsUserUtility directly. in file /Frameworks/art/functions.user.php line 20

Warning: Class XoopsEditorHandler does not exist
Handler Name: editor in file /include/functions.php line 446


@Culex: That's exactly what I figured was happening... I'm just not sure how to fix it to call the correct template. :/

9
deka87
Re: Problem altering newbb templates
  • 2009/7/1 11:42

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


I found the cloned template thru phpmyadmin and edited the sql value itself but it took no affect too tho I cleared the cache. what's wrong with it
Mind anchors

10
ghia
Re: Problem altering newbb templates
  • 2009/7/1 13:35

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You are sure it was from the active template set?
You can edit it online with admin - tools - templates - list - edit

Login

Who's Online

310 user(s) are online (204 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

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

Latest GitHub Commits