51
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 21:40

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


[ger]mußt dir halt mal die includes.php anschaun zu der ich ein paar posts vorher gelinkt hab.
das theme KANN die farbe wechseln (r,g,b) und von 800px zentriert auf fullscreen switchen.das ganze wird dann natürlich in cookies gespeichert damits auch anhaltend is.
funzt auch alles super, bis auf die 100 zeilen php code am anfang der theme die mich zwar net wirklich stören aber die übersichlichkeit a bissl beeinträchtigen find ich.aber bleibt halt nix anderes übrig als es so zu lassen wenn das mit dem auslagern net hinhaut.
ich denk ich werd in 14 tagen fertig haben, hab noch einiges zu tun weil ich modul templates für ein paar module mitgeb die sich net mit der 800er breite vertragen und das layout sonst crashen würden.
[/ger]



52
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 21:09

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


this is definitv not what i want to hear.
but why it works when i put the code into the theme directly?that should be impossible if the smarty have to be set before rendering the theme.
if theres no other solution i have to let it in the theme directly, the solution with the header makes no sense to me



53
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 20:56

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


but this would be just a half-solution cause i will distribute this theme to the xoopsers and i spend much time to make all the path´s relative just to let the theme be plug&playable.

i think its contra productive if i hardcode some things for a theme.
isnt there any other solution for that?



54
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 20:04

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


i've just included the mailfile for testing but it makes no diff if its included or not.

your right, the error comes from the tmp assign.i'm no coder so i cant figure out how to prevent that sorry.
it would be nice if you can exlpain me how to



55
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 7:33

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


yeah mainfile is included but no changes

you can see the the includes HERE
and the theme HERE

and THIS is what it does



56
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 7:08

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


if you read my post you see that it is my only question how to NOT put it into the theme.html

there is a lot more code like the above and ich dont want 200 lines php code in my theme.html ;)

but thanks very much for the try



57
simeon
Re: "exclude" some php code for my theme.html
  • 2005/4/5 6:47

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


im really despaired.its just the last step to finishing my new theme.
i tried everything but i cant get it to work.
pls help me



58
simeon
"exclude" some php code for my theme.html
  • 2005/4/4 7:19

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


hi there

i need to page out some php code needed for my theme.
i.E. the following
$mod $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
$GLOBALS['xoopsTpl']->assign'xoops_cmod'$dirname );


i put that into a php file named includes.php located in my theme folder and include it with the following at the beginning of my theme.html
<{php}>
include_once 
XOOPS_URL.'/themes/theme/includes.php';
<{/
php}>


but i just got that error
Fatal errorCall to a member function on a non-object in /www/htdocs/root/themes/theme/includes.php on line X


matter of that all is that i have to include some more tpl assigns, wrote some cookies and so on an i dont want to put that all into the theme.html

thanks in advanced for all responding



59
simeon
Re: NEW FOURM LOGO
  • 2005/3/31 15:18

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


thx for using my icons



60
simeon
Re: Newbie asks: how restrict user groups to a particular theme?
  • 2005/3/26 12:40

  • simeon

  • Not too shy to talk

  • Posts: 104

  • Since: 2003/12/18


if its possible for you to just take just 3 different css its no prob.just ask if is user elsif is admin in your theme for the css selection




TopTop
« 1 ... 3 4 5 (6) 7 8 9 »



Login

Who's Online

227 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 227


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