91
ManXP
Re: I have an idea
  • 2004/11/22 11:12

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Hm, still have a little issue :) This method works in all the modules, but it doesn't work in search.php (in root direcotory). Why?
When i add these lines, title doesn't work, keywords and description don't work too. Any ideas? Thank you.



92
ManXP
Re: backend.php - Problems start here
  • 2004/11/20 18:25

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Thank you.



93
ManXP
Re: backend.php - Problems start here
  • 2004/11/20 17:51

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Ok, this is how i did:

As posted before, i changed variables "xoops_pagetitle" on News module. Then i saw, that backend.php uses not jut News module files, but also header.php Then it was needed to edit header.php and change all the variables from "xoops_pagetitle" to "mymodule_title" and also edit backend.php to generate HTML links instead of dynamic links such as article.php?story_id=xxx

Yoy can see how it works using my RSS Feeds



94
ManXP
Re: backend.php - Problems start here
  • 2004/11/20 14:03

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Update:

Everything is solved already, now i have a website with unique titles/descriptions/keywords for every page and 100% working backend.php with HTML links.



95
ManXP
backend.php - Problems start here
  • 2004/11/20 9:39

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Hello, XOOPS members, developers and friends. I got a problem with RSS feature in my website. Few days ago i changed some settings due to search engine optimization as described here -https://xoops.org/modules/newbb/viewtopic.php?topic_id=27331&forum=15

In News module i changed variables "xoops_pagetitle" to "mymodule_title" and of course added them on theme.html and RSS doesn't work anymore (backend.php and RSSit module doesn't work at all - feed goes blank). I was looking at backend.php source and i didn't find, that it uses "xoops_pagetitle" variable, so it can't be a problem. I was looking at RSS template file (under system/templates) - and still didn't find what causes this problem. Could anybody guide me, please?



96
ManXP
Re: I have an idea
  • 2004/11/18 17:11

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


What a great idea. Fast and easy way to customize each module. Thank you very much :)



97
ManXP
Re: I have an idea
  • 2004/11/18 14:13

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Quote:

<html>
<head>
<title>xxx</title>
</head>
<body>
Original PHP code not modified at all...
</body>
</html>

And what i got? A crap in submit page. I mean all the text is displayed (title too), but menus and other elements are looks scary. What i did wrong?


Ok, i solved this problem already, now every page has it's own title, description and keywords.

Just small issue - because i removed all titles from theme.html, now uniqu titles appears on website too slow. I mean, that when user clicks on any link, he see just an daddress first, and title appears after this.

You can go athttp://www.soft-news.net and click on any link (RSS Feeds, Contact Us, etc) for an example. What can i do to load the title immediately?

Thank you all for your responses



98
ManXP
Re: I have an idea
  • 2004/11/18 10:30

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Quote:

studioC wrote:
hi there ..
idex.php's of modules are displayed within smarty expression <{$xoops_content}> which means mostly in the center of the body of the theme.html



you may assign your own content smartys or use existing smarty to display it in theme.html if modul is active. you can add or replace <{your_metasmarty}> with normal <$xoops_meta>}> ... i've seen such solutions and some who give some meta tags with the use of xoops_modulheader to head of theme.html but dunno really where ... perhaps some modul devs can give a hint on his ..


Could you explain a little more, please?



99
ManXP
Re: I have an idea
  • 2004/11/18 10:28

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Ok, i did it but got some problems. I started with News module. Edited all template files and inserted individual titles, descriptions and keywords. Wokrs nice with News Index, Archives and Articles. But i don't see a title when submiting news, editing a story or posting a comment (just web address instead of title).
So i edited submit.php and inserted in the top of php code:

<html>
<head>
<title>xxx</title>
</head>
<body>
Original PHP code not modified at all...
</body>
</html>

And what i got? A crap in submit page. I mean all the text is displayed (title too), but menus and other elements are looks scary. What i did wrong?



100
ManXP
Re: I have an idea
  • 2004/11/17 16:14

  • ManXP

  • Quite a regular

  • Posts: 231

  • Since: 2003/8/14


Thanks you for an answer. But if articles are not cached, still can i remove keywords, title, description from theme.html and add all these lines on every *.php file individually?

I know, it will take some time to do this, but i am ready if it works




TopTop
« 1 ... 7 8 9 (10) 11 12 13 ... 22 »



Login

Who's Online

112 user(s) are online (70 user(s) are browsing Support Forums)


Members: 0


Guests: 112


more...

Donat-O-Meter

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

Latest GitHub Commits