1
techdb
Re: Differences in Template files (database vs theme files) as XOOPS evolves
  • 2011/6/13 1:59

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


I figured this stuff out...

1. Switch is to set preferences to default template.
2. Probably no reason to wipe database templates. When you generate template files on newer xoops they generate from the template folder inside the module - not the database. You need to use database file to then update template file inside theme folder and then forget about them.
3. Yes- things seem to work fine with updating template files for old modules in template folder




2
techdb
Re: Problem with news1.66 and xoops 2.5
  • 2011/6/12 12:41

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


The reason some people have this problem and some don't have to do with what templates are selected and if you are using an old template then you don't run into the problem.

As the edit describes in the above post... two files were corrupted in the News 1.66 template...

news_block_randomnews
news_block_top

I cut and paste

<{if $block.sort=='counter'}>

from an older version template on top of the code dictated by the messages and got it working...





3
techdb
Differences in Template files (database vs theme files) as XOOPS evolves
  • 2011/6/10 16:54

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


I am running XOOPS 2.5.1a and extGallery 1.0.9 and am running into either a template problem and/or cache problem. I have been running xoops since close to the beginning and continually upgrading.

I have an old hack that I created through the old template system. I hacked the public-album.php module file. Despite clearing cache and reloading over and over again, generating new template files with the new XOOPS, turning the check for template modification button on and off, I can't get the new templates to load.

This made me look more carefully at 'templates' and I am wondering where I should be making template changes from now on....

Remnants of old Xoops is on preferences/general settings where I can choose my regular old default template set.

New Xoops (extGallery) generates template files for all modules inside of my selected theme. I like this as it is much better to have template files sitting in theme folder...

Questions:

1. Is there a switch I need to select to change from the database generated templates from old XOOPS (for example the ones that can be altered by using ALTSYS) as start using the new XOOPS templates (the ones stored in theme/module folder)?

2. How can I definitely clear old template cache? Should I do this?

3. Will new templates for old modules work if I make alterations in the theme/modules/ templates?

I finally found work around by using ALTSYS to manually rewrite the database templates with the file templates but it seems like there should be a switch to turn off using database generated templates.

Many thanks.




4
techdb
Re: Lightbox/Fancybox - extGallery help
  • 2011/5/31 1:55

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


Is there an easy way to do the hooks hack? I would like to use the AJAX overlay if possible from other modules...

Also although the different effects work very well in the block templates, when I switch the gallery preferences (i.e. to overlay) I keep getting lightbox no matter what I do...

Is this a common problem or just me?



5
techdb
Re: help for Test extgallery 1.0.9!!!!
  • 2011/5/25 14:25

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


Any updates on 1.0.9? Is a stable release available?



6
techdb
Re: Browser specific theme
  • 2010/7/21 15:23

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


1. Create a theme for ie 6 and call it ie6theme
2. Download your common.php file from inside the folder include/
3. Open the file inside an editor
4. Around line 260 or so (before the text
/**
* Theme Selection
*/)
Cut and paste the following code:


// IE6 string from user_agent
$ie6 = "MSIE 6.0"; // detect browser
$browser = $_SERVER['HTTP_USER_AGENT']; // yank the version from the string
$browser = substr("$browser", 25, 8); // if IE6 set the $alert
if($browser == $ie6){ $_SESSION['xoopsUserTheme'] = 'ie6theme';}

5. Save your common.php file
6. upload it back to inside the folder include/



7
techdb
Re: Browser specific theme
  • 2010/7/19 15:50

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


Ghia gave me this solution for an IE6 Redirect... works very well

https://xoops.org/modules/newbb/viewtopic.php?topic_id=69599&forum=17&post_id=317355#forumpost317355



8
techdb
Re: @Trabis: Defacer
  • 2009/11/16 21:01

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


Upgrade did the trick thanks.



9
techdb
Defacer Xoops 2.4.1 Undefined offset
  • 2009/11/15 15:35

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


I am running Defacer 1.0 and just upgraded to XOOPS 2.4.1 from 2.3.3.

Defacer seems to be doing what it is supposed to be doing however when I debug XOOPS I find these (among others) repeating errors:

Notice: Undefined offset: -1 in file /modules/defacer/include/beforeheader.php line 34

Notice: Undefined index: 41 in file /modules/defacer/include/beforeheader.php line 48

Notice: Undefined offset: -1 in file /modules/defacer/include/beforeheader.php line 34

Notice: Undefined offset: -1 in file /modules/defacer/include/beforeheader.php line 48

Notice: Undefined offset: -1 in file /modules/defacer/include/beforefooter.php line 35

Now Running XOOPS Version - XOOPS 2.4.1
PHP Version - 5.2.9

Any ideas?



10
techdb
Re: PHP Hack to Redirect for IE6 Theme
  • 2009/9/28 23:37

  • techdb

  • Just popping in

  • Posts: 23

  • Since: 2005/3/7 1


Works perfect. Many thanks.




TopTop
(1) 2 »



Login

Who's Online

168 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 168


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