1
deka87
Index page - add new stuff
  • 2007/10/17 19:24

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi. is it possible to add some text, pictures to the index page like content, but using no modules, just editing index.php or any other way that requires no module installation? ty
Mind anchors

2
tcnet
Re: Index page - add new stuff
  • 2007/10/17 19:40

  • tcnet

  • Friend of XOOPS

  • Posts: 297

  • Since: 2006/5/12


Yes, you can create a custom block with anything you want in it. Go to system admin - blocks and enter your code into the custom block form, assign it to the top page and click submit. Here is the FAQ: https://xoops.org/modules/smartfaq/faq.php?faqid=75

3
stefan88
Re: Index page - add new stuff
  • 2007/10/17 21:07

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


And don't forget to set the permitions for the new block in admin -> groups ...

..

4
deka87
Re: Index page - add new stuff
  • 2007/10/19 19:23

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thanks guys. it works alright.
tho' i have one more question:

i've added the search block to the top page. but i want to change the text on it's buttons like "search" and "advanced search" to something else. where is it possible?
Mind anchors

5
Will_H
Re: Index page - add new stuff
  • 2007/10/19 19:46

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


you can just make a new block, instead of us teaching you about template over riding.

anyway, in a new block paste one of these

Replace whole button: and define new .submit class (submit2)
<form action="search.php" method="get">
                <
input type="text" name="query" size="20" />
                <
input type="hidden" name="action" value="results" />
                <
input name="submit2" type="image" value="Search" src="<{$xoops_imageurl}>/images/search.png" alt="Search" align="top" />
        form>


Change text on regular .submit class
<form action="search.php" method="get">
                <
input type="text" name="query" size="20" />
                <
input type="hidden" name="action" value="results" />
                <
input name="submit" type="button" value="Search" align="top" />
        form>


if you look at the line

where it says value="Search" is what will print on your button.

BOL

Login

Who's Online

317 user(s) are online (240 user(s) are browsing Support Forums)


Members: 0


Guests: 317


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