1
doktorj
smart code not processing in custom block
  • 2005/6/14 5:58

  • doktorj

  • Just popping in

  • Posts: 9

  • Since: 2004/10/28


hi.
i'm kindof new to XOOPS and am a little unclear on how
to properly set it up so that I can have some custom
code (google ads) under the system search box.

after giving up trying to modify the system module
( I added the code to the template but it would never
show up in the code even after I clearned template_c
dir) so I ended up making a new block, and copying
the search code from the system search block into
my new search/google ad block.

the google ad code works now, but the system search
stuff doesn't process the smart code (atleast that's
what I think the problem is.

I'm unclear on what code I need to add top of the
new block to make the smarty system search code
to process.

you can see the search /google on right bottom
of this site:
http://66.194.152.247/~tcmpunk/xoops/modules/AMS/

any help/direction is appreciated.
thanx!
doktor J
http://www.doktorj.ca

2
pegasus00321
Re: smart code not processing in custom block

Well, first off <{$block.lang_search}>
That is reserved for Blocks, since it starts with block and that will only work in the blocks file for a module, it doesnt work for custom blocks.

I'm not sure if lang_search is defined in the main language files, if it is, then <{$lang_search}> should work.

3
pegasus00321
Re: smart code not processing in custom block

Wait, you can't put smarty code in blocks.
Just replace that with <{$block.lang_search}> with Search

And also,
That wont work
you need to replace it to

4
doktorj
Re: smart code not processing in custom block
  • 2005/6/15 1:46

  • doktorj

  • Just popping in

  • Posts: 9

  • Since: 2004/10/28


thanx for the tip.

I changed the code around and that makes the search form look better, but when I enter something into search box and hit submit it re=displays XOOPS with the search/google custom block, only the google stuff at bottom disappears.... (only after search submit)

this is the code I have:



hmm can't seem to paste the code in here...- how do you make your example code show up all like that?

I basically just made the 2 chnages you suggested.

thanx for helpin me out.
J
http://www.doktorj.ca

Login

Who's Online

175 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 175


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