1
ogimatik
newsmodule: deleting the upper pagenav
  • 2005/1/1 21:07

  • ogimatik

  • Just popping in

  • Posts: 31

  • Since: 2003/10/6


Hello there.

I'm sure that question is answered anywhere already, but i cannot find it at the moment...

So:

I would like to delete the Mini-Navigation over the first news-entry which displays "(1),2,3,4, ... 74" and represents the following/older news-sites.

It's also at the bottom of the site, THERE it may stay - just at the top it should be removed...

Can you please tell me, WHERE (which file) i have to delete WHAT (which code)?

TIA,

O.

2
Mithrandir
Re: newsmodule: deleting the upper pagenav

modules/news/templates/news_article.html, line 13 (approx.)
<div style="text-align: left; margin: 10px;"><{if $pagenav}>Page <{$pagenav}><{/if}></div>


Remove that, upload the changed template file, update the News module in System Admin -> Modules

3
ogimatik
Re: newsmodule: deleting the upper pagenav
  • 2005/1/1 21:42

  • ogimatik

  • Just popping in

  • Posts: 31

  • Since: 2003/10/6


Aaaaahm....

i just updated my news module to 1.2.1 and now there's a colon in front of every headline, which wasn't there before.... and there is no space anymore between two news-entries. Before i updated, there were about 10 pixels (one <br> ?) space between the news-entries ... i would like to have this back....

And another curiosity is, that there sometimes the "Read more..." - Link is at he end of an article, sometimes he isn't. But there is NOWHERE any more text in the second field... No, not even a space is typed in there. What's that?

Please help me ...

O.

4
ogimatik
Getting worse ...
  • 2005/1/1 22:07

  • ogimatik

  • Just popping in

  • Posts: 31

  • Since: 2003/10/6


Thank you, Mith,

but this does not work. Perhaps i should tell you, that there's a folder "templates_c" in my root folder. In that folder there were til today that files which were representative for most of my templates. Since i updated to XOOPS 2.0.9.2 today there are new files in that folder named for example "%%53^534^53481332%%db%3Anews_article.html.php" - i recognized, that i have to change THIS files now, to make my changes take effect. But it won't work for the pageNav-Thing ....



O.

5
Mithrandir
Re: Getting worse ...

No - you should never touch the templates_c files. Those are compiled templates and are cleared on module update or when submitting a preference page.

6
ogimatik
Re: Getting worse ...
  • 2005/1/1 22:17

  • ogimatik

  • Just popping in

  • Posts: 31

  • Since: 2003/10/6


Okay... i understand.

But what do i have to do now, to get a "kosher" system.
Is it perhaps a possibility to copy the relevant code/design from the templates_c-Files to the proper files in the modules-template-files and then update the modules? Can i before updating delete the files in the templates_c-Folder - are they compiled newly?

Sorry, for my silly questions ... i am a NOOOB :)

My other problems still are here:

1.) The space between the news.
2.) The colon in front of the headline
3.) The upper PageNav

and new: :)

4.) The Page-title should not include the current newsheadline. Just the Website-Name.

Sorry, sorry, sorry.

O.

7
Mithrandir
Re: Getting worse ...

The way to change the appearance of module content is through editing the templates, upload them (to the modules/templates folder, overwriting the existing ones) and then update the module. This will clear the templates_c directory and a new file will be compiled, the next time the module page is accessed.

The space and the pagenav should be possible to locate in the news_article.html template, the colon is probably in news_item.html

towards the bottom of modules/news/index.php there is this code:
/**
 * Assign page's title
 */
if($firsttitle!='') {
    
$xoopsTpl->assign('xoops_pagetitle'$myts->htmlSpecialChars($firsttitle) . ' - ' $myts->htmlSpecialChars($xoopsModule->name()));
} else {
    
$xoopsTpl->assign('xoops_pagetitle'$myts->htmlSpecialChars($xoopsModule->name()));
}

Just comment it out (put // in front of each line) and the page titles should be just the site name.

8
ogimatik
Re: Getting worse ...
  • 2005/1/2 0:10

  • ogimatik

  • Just popping in

  • Posts: 31

  • Since: 2003/10/6


Okay. What i've done now is:

I redesigned the RIGHT Template-Files (in the modules folders) in the same way i did at that time, when i modified the files in the templates_c folder. And i uploaded them already back up. I have not yet UPDATED the modules.

Now i am searching in the original (and even already freshly downloaded) news_article.html in line 13 that code.... can't find it there, but i found it line 1 ?!? Delete it there?

Then i commented the mentioned lines out (looked a little different) and, yeah, the recent article doas not appear in the sitename, but still the area ("SITE NAME - NEWS" or "SITE NAME - CONTACT") is displayed. There should just be "SITE NAME". Where do i find this to comment it out?

In news_item.html i can not delete the colon - it's not there...

:(

O.

9
ogimatik
Re: Getting worse ...
  • 2005/1/2 0:58

  • ogimatik

  • Just popping in

  • Posts: 31

  • Since: 2003/10/6


Alright. Could fix nearly all.

Just the space between the articles won't let me go to bed...
I can't figure out where i have to put this "<br>" ...

Any advices?

O.

Login

Who's Online

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


Members: 0


Guests: 140


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