21
kalamata
Re: Smarty variables in conditional statements
  • 2007/6/27 16:23

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Quote:

stefan88 wrote:
Hi,

if you edited the template file, did you updated the coreponding module?

did you clean the template cache?

I use this in my mainmenu block and it is working:

<{if !$xoops_isuser}>
      <
a href="<{$xoops_url}>/user.php"><{$smarty.const._LOGIN}></a>
      <
br />
      <
a href="<{$xoops_url}>/user.php#lost"><{$smarty.const._MB_SYSTEM_LPASS}></a>
      <
br />
      <{/if}>

I made the changed through the templates section of the admin menu, do you still need to update the module? I cleaned templates_c as well and it is still not working. My code basically looks like the following (within the for loop that returns all non-hidden installed modules):
<{if $xoops_isuser }>
a href="<{$xoops_url}>/user.php">Login</a>
<{/if}>
but it does not work.

George



22
kalamata
How do I reference Smarty variables (assigned through assignTpl) in templates?
  • 2007/6/27 15:32

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want to display a link to the main menu of my XOOPS site, but only to registered users. When I wanted it only to be shown to admin users the following conditional in the relevant template of the system module would be sufficient: <{if $xoops_isadmin}> ... <{/if}>. If I change it to <{if $xoops_isuser}>...<{/if}> to check if a user is logged on, it will not work. Any ideas on what I am doing wrong (or overlooking) here?

I look forward to hearing from you soon.

Many Thanks,
George



23
kalamata
Smarty variables in conditional statements
  • 2007/6/27 11:01

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I want to display a link to the main menu of my XOOPS site, but only to registered users. When I wanted it only to be shown to admin users the following conditional in the relevant template of the system module would be sufficient: <{if $xoops_isadmin}> ... <{/if}>. If I change it to <{if $xoops_isuser}>...<{/if}> to check if a user is logged on, it will not work. Any ideas on what I am doing wrong (or overlooking) here?

I look forward to hearing from you soon.

Many Thanks,
George



24
kalamata
Searching Inside RSS feeds generated by xhld
  • 2007/6/11 11:02

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am taking feeds from an estate agent's site for houses to let in different areas of London and combined them to form a big feed that has all London estates. I can show it fine using xhld, but the problem I have is that I want to create search functionality as well, so that the user will have the option to search inside the feed. I did a search in Google with not much luck.

Could you give me any pointers as to how this might be implemented?

I look forward to hearing from you soon.

Thanks in advance.

George



25
kalamata
Re: XOOPS 2.0.9.2 and CBB 3.05
  • 2007/4/24 12:32

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


That's what I plan to do (and always running very short of time). The module description though suggests that it should be supported in CBB 3.5, or am I reading it the wrong way?

George



26
kalamata
XOOPS 2.0.9.2 and CBB 3.05
  • 2007/4/24 10:53

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I recently upgraded my forum module to newbb 2 and then installed the CBB 3.05 for a more feature-rich site. The install went fine (also installed Frameworks and xoopseditor under class), but I can not see the sub-forums - I only see the top-level ones and the templates seem to be problematic as I only get alt="" as plain text code outside of the HTML.

Could somebody please offer some advice as to what might have gone wrong?

Thanks,
George



27
kalamata
Re: Vlweather Module
  • 2007/3/2 21:52

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


No ideas? I am confused about how you can use an iframe with a function that returns block elements. It is not making sense to have to reload a whole page in order to get the value of a couple of variables.

George



28
kalamata
Vlweather Module
  • 2007/3/1 20:27

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I enhanced the block of the module mentioned above by adding a drop-down list with a selection of cities that the user can click on to look at the weather conditions there. I am passing the parameters using GET and it works fine, except for one thing. I submit to the page I am looking at my XOOPS site, so a reload of the page is essential.

What I want to do, is have the block refresh its contents and the page should stay as it is. There was a suggestion for use of the iframe HTML tag, but since we are talking about a module block contents and not a PHP script I am a bit confused. Any suggestions?

I look forward to hearing from you soon.

Thanks in advance.

George



29
kalamata
Re: Block Refreshing
  • 2007/3/1 11:45

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Quote:

kalamata wrote:
Quote:

Herko Coomans wrote:
Sure you can, use an iframe for the block, and reload the contents of the file the iframe calls.

Herko

Hi Herko,

Many thanks for your prompt reply. What do you do, however, in the case that the php function we are talking about is the one that generates the block and returns a block structure? Would the hack still work?

I look forward to hearing from you soon.

Thanks in advance.

George


Basically, what I want to do is use the Weather block provided by the vlweather module, but give the user the option to select looking at the weather of a number of cities. I have already implemented that using a drop-down list that submits to the page, but this has the disadvantage of reloading the whole page rather than just the block contents. Following what Herko said, does this mean the source of my iframe should be the weather template block?

Thanks,
George



30
kalamata
Re: Block Refreshing
  • 2007/2/27 21:05

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Quote:

Herko Coomans wrote:
Sure you can, use an iframe for the block, and reload the contents of the file the iframe calls.

Herko

Hi Herko,

Many thanks for your prompt reply. What do you do, however, in the case that the php function we are talking about is the one that generates the block and returns a block structure? Would the hack still work?

I look forward to hearing from you soon.

Thanks in advance.

George




TopTop
« 1 2 (3) 4 5 6 ... 12 »



Login

Who's Online

161 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 161


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