1
nightr
Re: How to insers php code into theme.html?
  • 2004/12/10 12:29

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Mithrandir:
THANK YOU DUDE!!!! I LOVE YOU!!!
Exactly waht i needed!!! Thanx! you saved me lot of time!!!



2
nightr
How to insers php code into theme.html?
  • 2004/12/10 10:35

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


How do i insert this piece of code into theme.html?


Quote:
if ($_SERVER["PHP_SELF"]=="/modules/news/index.php") {echo ('<img src="index_25_h.gif">');} else { echo ('<img src="index_25.gif">');}


When i use <{ MY CODE }> - nothing happens. Please help a newbie



3
nightr
Re: How to change menu images in different modules?
  • 2004/12/9 17:03

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Ok, now i've got a piece of code:

if ($_SERVER["PHP_SELF"]=="/modules/news/index.php")
{echo ('<img src="index_25_h.gif">');}
else {
echo ('<img src="index_25.gif">');}


This code is looking at what url am I and loade the adequate picture. But now how do I insert this code into the default.html?



4
nightr
Re: How to change menu images in different modules?
  • 2004/12/8 16:27

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


O c'mon! At least give a hint wich variable holds the module name?



5
nightr
How to change menu images in different modules?
  • 2004/12/8 8:18

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Hi
I've change the theme.html the way I like it. Everything is fine... But now I need, to change the color of menu buttons when the user enters different modules. For example on main page the button "NEWS" is grey. When a user clicks it and enters the News area (my.com/modules/news/), I want the menu button "news" to change from grey to blue. Do I need to place some script in the main theme.html instead of the button_image? I mean some sort of code, like "if $module='news', load image '1.jpg'; if $module='articles', load '2.jpg'. Or some sort of... Can you advice me on that problem? Pleeease. I need to do that till evening or my a$$ will get busted.



6
nightr
how to rename the module name in search window
  • 2004/12/2 21:39

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


How (or where) do i change the name of the modules as users do a search. I mean, when you open search page and the "global search" option is turned on, you can pick in wich modules should the search be performed. So, the question is, where to change code, so that as he picks the modules to search sees not "news" or "articles" module names but, smth else, for example, "my news" or "my articles". Where is the part of code to change the module name?



7
nightr
multilanguage site having a theme template for each language
  • 2004/11/11 9:52

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Hi
I've site that supposed to be in 3 languages. How do I create 3 different theme.html templates for each language so that when user enters the adequate place (for example site.com/en or site.com/de and so on) have the right template automaticly selected. What's the best way to do that?
Thanx in advance!



8
nightr
how do I remove top banner and footer in news module section
  • 2004/11/1 13:43

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


Hi!
How can I remove the header with that noisy XOOPS banner and the footer with "powered by" logo? I need that only news to appear. Middle part. No header/footer stuff.
Thank you in advance!



9
nightr
How to redirect unregistered user
  • 2004/10/24 16:09

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


In the news module there is a short and a full story of an artice. Short displayed in one .php file and the full article in other .php file. I want to make that only registered users could get to full story (to the other .php file). What code do i need to insert, to redirect unregistered users to page register.php when they try to reach the article.php
Thanx in advance!



10
nightr
Re: Is it possible with xoops?
  • 2004/9/7 12:32

  • nightr

  • Just popping in

  • Posts: 14

  • Since: 2003/5/28


by the way, when i added
Quote:

if (!$xoopsUser) {
redirect_header('index.php', 2, _NOPERM);echo "akaka";
}

to article.php, and try to view it being logged in as administrator, i see a blank page. Why is that?




TopTop
(1) 2 »



Login

Who's Online

145 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

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

Latest GitHub Commits