1
mferreira
I want a header in news module.
  • 2006/10/5 21:43

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


I need to use a header in each module. I need them to be somehow "standard" on its formatting. But i dont know if i need to modify my template, or... Well, i hope that somebody can help me...

Thanks in advice.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

2
christian
Re: I want a header in news module.
  • 2006/10/5 22:26

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


You can use the Pictureurl module, but waiting few days, philou adapt this module for XOOPS 2.0.14/2.0.15.

3
davidl2
Re: I want a header in news module.
  • 2006/10/5 22:33

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Definately worth waiting for

4
mferreira
Re: I want a header in news module.
  • 2006/10/7 21:20

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Thanks!

I tried to understand that module but i didnt succeed...

Well, but i think that its not what i want. I want to be able to include in the top of each module index some kind of "title" like "News" "Forum", etc. (and only on some modules)

I was thinking on doing something like:

<{if $module.name == "news"}>
<
bNews of mysite.com
<{elseif 
$module.name == "forum"}>
 Support Forums" 
b>
<{/if}>


Ant paste it in my theme.html somewhere over the <{$xoops_contents}>
So it is displayed over the module as if it were a "title" o "header".

Well, I hope that i have explained myself. If there was a smarty variable that i could use to put it in that "if, else if", that contained the module name (the database one or the folder one) it would be wondelful.

BTW, is that the best way to achieve that "title" part?

Thanks!
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

5
tcnet
Re: I want a header in news module.
  • 2006/10/7 23:01

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


The variable $xoops_dirname returns the module's original name.
<{if $xoops_dirname == "news"}>
<
b>Newsb>
<{elseif 
$xoops_dirname == "newbb"}>
<
b>Forumb>
<{/if}>


Here are a couple of threads on this method:

https://xoops.org/modules/smartfaq/faq.php?faqid=335

https://xoops.org/modules/newbb/viewtopic.php?topic_id=52247&forum=17&post_id=230574#forumpost230574

6
mferreira
Re: I want a header in news module.
  • 2006/10/8 1:42

  • mferreira

  • Just popping in

  • Posts: 57

  • Since: 2006/1/19


Wow..!! And think that i had beed looking for it for a couple of hours.

:blush: It's a faq. Im sorry, i didnt see it... I only used the site search and none of the entries im my search returned those links... Or maybe i missed them.

Well, thanks a lot again.
Sorry for my bad english... :)
I love to learn, feel free to tell me when I misspell something.
Using Xoops 2.0.16, FC4, PHP 5.0.4-10.5, Apache 2.0.54-10.4, mysql-4.1.20-1.FC4.1.

Login

Who's Online

482 user(s) are online (344 user(s) are browsing Support Forums)


Members: 0


Guests: 482


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