1
Hadesteam
Module icontent - problem
  • 2017/3/21 15:40

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


I have a problem with the icontent module. Instead of the title of a particular article (<title>), the module name (description) is displayed, in my case the Atlas ćwiczeń.

Example here:
Http://www.kulturystyka.org.pl/modules/icontent/index.php?op=explore¤tDir=7
When you click on the first article from the top: "Pompki na poręczach" instead of <title>Pompki na poręczach</ title> displays: <title> Atlas ćwiczeń </ title>

Anyone know how to solve this problem?

2
Bleekk
Re: Module icontent - problem
  • 2017/3/21 16:00

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


which module version do you use? where have you downloaded it? which version of xoops do you use?

Please provide always all infos

3
Hadesteam
Re: Module icontent - problem
  • 2017/3/21 16:57

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


Hi,

My xoops version is 2.5.7
Module is 4.50
I do not remember where I got this module, but I dropped it on my server:
http://www.kulturystyka.org.pl/icontent.zip

regards, Michal

4
Bleekk
Re: Module icontent - problem
  • 2017/3/21 17:37

  • Bleekk

  • Theme Designer

  • Posts: 940

  • Since: 2002/12/14


sorry but this module does not work on 2.5.7 or 2.5.8

5
Hadesteam
Re: Module icontent - problem
  • 2017/3/22 15:02

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


I have 2.5.7 and it works because the user Mamba modified it into my side. The only thing is to display a page title tag <title>

Maybe someone knows how to do it?

6
Hadesteam
Re: Module icontent - problem
  • 2017/3/23 12:29

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


So the best solution is to transfer articles from icontent to news module and add 301 redirects?

7
zyspec
Re: Module icontent - problem
  • 2017/3/23 15:26

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


Hadesteam,

First - A warning, try this on a test server first since I haven't actually inserted this code in a working copy of icontent...

in ./index.php add the following after line 101 - which is:
include_once(XOOPS_ROOT_PATH.'/header.php');

$xoTheme->addMeta('meta''title'htmlspecialchars($page->nameENT_QUOTES));


I think this will do what you want... which, as I understand it, is to change the <title> meta keyword to the page title...

8
Hadesteam
Re: Module icontent - problem
  • 2017/3/24 15:28

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


Thanks for the answer. Maybe I was wrong. I want the Category and Article Category to be displayed in the <title> tag. I pasted the code you gave me but without change, only the module name is displayed, in my case Atlas Ćwiczeń ... :(

Below I add 2 photos about what I mean exactly:

Resized Image

Resized Image

9
zyspec
Re: Module icontent - problem
  • 2017/3/24 16:01

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


No, you're right - sorry...

I just forgot the page title isn't "really" a meta tag. Try the following instead to see if this does what you want.
$GLOBALS['xoopsOption']['xoops_pagetitle'] = htmlspecialchars($page->nameENT_QUOTES));


Hopefully I did it right this time...

10
Hadesteam
Re: Module icontent - problem
  • 2017/3/25 19:21

  • Hadesteam

  • Not too shy to talk

  • Posts: 162

  • Since: 2011/9/5 1


HTTP ERROR 500 Strange ....

Login

Who's Online

140 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 140


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