1
nmshah
Pico module header problem, pls help
  • 2008/2/10 0:36

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


i just observed something weired on checking my site with firefox for the meta tags displayed in the pico module. This is a part of the code generated in the head section that relates to meta data

<meta name="keywords" content="meditation exercise,breathing exercise,meditation,belly breathing,3 part breath,meditation by concentration on breathing" />

<
meta name="description" content="This is the basic exercise where one meditates by concentrating on breathing" />

<
meta http-equiv="Content-Script-Type" content="text/javascript" />
<
meta http-equiv="Content-Style-Type" content="text/css" />
<
script type="text/javascript" src="http://makingdestiny.com/include/xoops.js">
</
script>

<
meta name="robots" content="index,follow" />
<
meta name="keywords" content="the power of positive thinking, self-help, power of positive thinking, power of thoughts, stress, anger, fear, jealousy, depression, stress management, anger management, fear management, overcome jealousy, overcome depression, steps to positive thinking, develop positive thinking, meditation, affirmations, relaxation, creative visualization, imaging, thoughts, paying attention to thoughts, power of positive thinking in business, positive thinking in bussiness, vices management, positive thinking articles, self help articles" />
<
meta name="description" content="Understand this concept and the ways to develop a positive attitude through affirmation, meditation, visualization etc to solve your business as well as personal problems like stress, anger, fear, depression etc and also understand how believing can help you achieve everything you want." />
<
meta name="rating" content="general" />
<
meta name="author" content="Nitin Shah" />
<
meta name="copyright" content="Copyright © 2007" />
<
meta name="generator" content="XOOPS" />


In the above the keywords and description is twice the first one is the one i set in the pico module using the tips of this thread and the second one is the default XOOPS description and keywords as set in the preferences in admin.

How should i correct this issue. please help. I think an if else statement in the theme may solve my problem.

i have zero coding experience by still will try to explain with an example and then if any one can let me know the right code.

<{if xoopsmodule=pico}}><{/if}>
<{else}><
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<{/else}>


I m not sure about the right code its just an example to show that if the module is pico there will be no meta data of theme as i think that the pico header function creates the meta tags by itself without there being any connection to theme code. pls help me with the right code.

2
nmshah
Re: Pico module header problem, pls help
  • 2008/2/10 18:21

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


i m using the zetagenesis theme XOOPS 2.0.18

3
nmshah
Re: Pico module header problem, pls help
  • 2008/2/11 19:45

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


please help

4
avtx30
Re: Pico module header problem, pls help
  • 2008/2/11 22:49

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


pico is developed by GIJOE who has stopped supporting XOOPS with version > 2.0.17.

Your XOOPS version is 2.0.18. It is not compatible with pico. That's the problem I guess.
Xoops Demos:
http://www.nhatban.net/info/a0021.html

5
phppp
Re: Pico module header problem, pls help
  • 2008/2/12 3:38

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


<{if $xoops_dirname eq 'pico'}><{/if}>

6
nmshah
Re: Pico module header problem, pls help
  • 2008/2/12 10:07

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


thanks will try it out,

7
nmshah
Re: Pico module header problem, pls help
  • 2008/2/12 11:09

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


thanks a lot worked exactly as i wanted. Just made a slight change in the above code.

changed the xometa.htm file with the following code
<{if $xoops_dirname eq 'pico'}>
<else><
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<{/if}>
<{if 
$xoops_dirname eq 'pico'}>
<else><
meta name="description" content="<{$xoops_meta_description}>" />
<{/if}>

8
nmshah
Re: Pico module header problem, pls help
  • 2008/2/12 17:21

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


well on rechecking the meta info about my site i see that all the other pages no longer have meta data. By using the code given by phppp, nothing changes and by using the second code as mentioned in the previous post pico and its clones work fine but other pages of the site no longer show any meta data. M i doing something wrong.

9
nmshah
Re: Pico module header problem, pls help
  • 2008/2/13 7:32

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


ok its working now. code used

<{if strstr($xoops_module_header,"keywords")}>
<{else}
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<{/if}>
<{if 
strstr($xoops_module_header,"description")}>
<{else}>
<
meta name="description" content="<{$xoops_meta_description}>" />
<{/if}

10
xgarb
Re: Pico module header problem, pls help
  • 2008/3/2 12:50

  • xgarb

  • Not too shy to talk

  • Posts: 154

  • Since: 2003/3/30


you can create dynamic title and description tags with code similar to this in the PHP files..

$xoopsTpl->assign('xoops_pagetitle','whattitleyouwanthere');
$xoopsTpl->assign('xoops_meta_description','whatdescyouwanthere');
$xoTheme->addMeta'meta''description','whatdescyouwanthere');


or for a really fancy solution see smartmetagen.php from smartfactory.ca

Login

Who's Online

185 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits