11
etcetera
Re: here we are: switching themes from selectable themes with a link ...
  • 2009/7/2 0:56

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


edit: fixed. :)



12
etcetera
Re: Problem altering newbb templates
  • 2009/7/1 21:14

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


You should edit the newbb_viewtopic_flat.html and newbb_viewtopic_threaded.html in the newbb section of your templates.

Find the snippet of code I posted in the first post and change it to what Bandit-x posted above. :)



13
etcetera
Re: Problem altering newbb templates
  • 2009/7/1 18:48

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Bandit-X: you are my hero. This is just the fix I needed! Thank you so much for putting a positive spin on a terrible day. :)



14
etcetera
Re: here we are: switching themes from selectable themes with a link ...
  • 2009/7/1 15:03

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Thank you ghia!



15
etcetera
Re: Problem altering newbb templates
  • 2009/7/1 14:05

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


Yes. I'm positive this is the active template. All other changes I've made have displayed without problems... and yes, I am editing from the admin area.

The problem exists only with newbb_thread.html and newbb_item.html. I make a change in the admin area, it DOES save, but it does not display on the front end.

The newbb_thread pages have the following errors:

In flat and compact display modes:
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


In threaded display mode:
Quote:

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

Warning: Class 'XoopsTree' is deprecated, check 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45

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





16
etcetera
Re: Display new field in newbb
  • 2009/7/1 13:47

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


This is excellent! Thank you very much, zite83.


Question: would anyone mind taking this idea and applying it for use on /modules/profile/userinfo.php ?

I ask because I know absolutely no PHP, and am entirely incapable of doing it myself. lol I would like the same outcome - I'd like to be able to call each variable individually, so that I can embed it in my own html.



17
etcetera
Re: HOWTO: Accessing (Missing) PHP Variables in Theme/Smarty Templates
  • 2009/6/30 18:56

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


I have a simple question.

Could someone demonstrate for me how I could take the above code and use it towards custom user profile variables (/fields)?

For example, if I were to add the custom field "gender", how would I alter the above code to read "Welcome, (real name), you are a female."?


Edit: This was not quite clear. I would like to show the information for the user whose profile you are currently viewing, not for the user who is signed in. I.e., if I added custom fields for "gender" and "emotion", I would like to be able to display, for each user, "(Username) is a female. She is feeling happy."

How might I go about doing this?



18
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. :/



19
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.



20
etcetera
Re: here we are: switching themes from selectable themes with a link ...
  • 2009/6/28 20:46

  • etcetera

  • Just popping in

  • Posts: 23

  • Since: 2009/6/13


reviving this topic (again). Any thoughts on how I could take this and twist it to switch themes with image links?




TopTop
« 1 (2) 3 »



Login

Who's Online

150 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 150


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