1
rosytoes
length of partners title in the partners module
  • 2005/11/29 19:42

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


partners module v1.1
xoops v2.0.13.1

it looks like the partners block only displays partners' name with a max of 20 chars. If a name is more than 20 chars, the 19th and 20th chars are replaced by ..
Is there a way to force it to show the whole title?



2
rosytoes
Re: how to i change whats in a smarty tag?
  • 2005/11/6 12:17

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


I still cant get this to work, can anyone help?
actually I want the category title to display on the top of the page instead of category title + news title as the news title heading.
<{$story.categorytitle}>
<{if 
$topic_description != ''}>
    <
div style="text-align: center;"><{$topic_description}></div>
<{/if}>



3
rosytoes
Re: how to i change whats in a smarty tag?
  • 2005/10/16 13:16

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


after I edited the template directly with my text editor, I found out that the changes were not saved. Then I edited it again using the template manager in XOOPS but the changes are still not reflected. I think I need to update the news module in order to insert the new template into the database. I have done that but I still can't get the category title to show up above the topic description. Here's what I have done:
I added this to /modules/news/index.php
$story['categorytitle'] = $thisstory->textlink();

and changes the template using the template manager
<{if $topic_description != ''}>
    <
div style="text-align: center;"><{$story.categorytitle}><{$topic_description}></div>
<{/if}>

I then updated the module but the output seems to ignore the smartytag.
Can anyone see what I am doing wrong?



4
rosytoes
Re: how to i change whats in a smarty tag?
  • 2005/10/15 21:12

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


hm, I've been editing the css files for the past few days and had it turned on all along. Just had a look at the setting, apparently it only affects templates under the theme directory, is that right? I am editing the news module/templates directory, is that why it is not updating?



5
rosytoes
Re: how to i change whats in a smarty tag?
  • 2005/10/15 20:56

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


i have added the code and there are no errors but the changes are not reflected. I went into templates news_index.html and added the category smarty tag but it is not showing up when i refresh the page. Do I need to do something else?



6
rosytoes
Re: how to i change whats in a smarty tag?
  • 2005/10/15 20:44

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


thank you very much for your reply, I really appreciate it. without these answers i would have given up long time ago:)



7
rosytoes
Re: how to i change whats in a smarty tag?
  • 2005/10/15 20:31

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


i commented out this line to display story title without the topic title.
$story['title'] = $thisstory->textlink().'&nbsp;:&nbsp;'.$story['title'];

now i want to display the topic title above the topic description in news_index.html
<div style="text-align: center;"><{$topic_description}></div>

is there a smarty tag for the topic title?



8
rosytoes
how to i change what's in a smarty tag?
  • 2005/10/15 18:21

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


for example, in my news index page, the tag <{$story.title}> gives me Antivirus : Norton Antivirus. How do I separate out the name of the category so that I can use it on it's own and <{$story.title}> only gives me Norton Antivirus?



9
rosytoes
Re: changing the Comments template
  • 2005/10/15 10:44

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


ah thx, still finding my way round xoops:)



10
rosytoes
changing the Comments template
  • 2005/10/15 8:44

  • rosytoes

  • Just popping in

  • Posts: 24

  • Since: 2005/10/9


I asked in the other forum but no replies yet. I want to add a css class to the Comments part in the News 1.4 module. At the moment the default color is 2 shades of gray and I want to change that. I know I can change the td odds and even class in style.css but they affect other parts of the site as well, therefore I think it's best to give it it's own class. Does anyone know where I can find the template for the Comments? I cant find it under modules/news/templates.

TIA




TopTop
(1) 2 3 »



Login

Who's Online

167 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 167


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