11
wammes
Re: smarty variable <{$story.topic_title}> is not giving what I want
  • 2010/9/6 20:44

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Hi red_Slider!

Thank you for your detailed reply.

I guess we are using a different version of the news module.
<{$story.topic_title}>

gives
<a href='http://www.blah.com/modules/news/index.php?storytopic=1'>xoops</a>


It should just give "xoops" but I get the a href as extra :).




12
wammes
Re: Using PHP in smarty templates.. How to do it the easy way.
  • 2010/9/6 20:31

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Hi gentlemen,

this is almost genius! It is almost what I'm looking for.

I have a smarty variable from Extcal
<{$event.formated_event_start}>
It gives the date of a upcoming event in this format: 01/02/2011

I want it to look like 01 feb

Now the code
<{$event.formated_event_start|date_format:"%b"}>
doesn't work. |date_format is making it the current date, not the date in the event.formated_event_start string. I guess because it cannot figure out a timestamp or something.

So I guess I have to make up something like described above. I prefer the include of a php file. But how can I get the value of
<{$event.formated_event_start}>
"known" in the php file?

I'm sorry I'm no coder (as you might guess)..

Thank you very much for any response!



13
wammes
smarty variable <{$story.topic_title}> is not giving what I want
  • 2010/7/14 19:27

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Hi all,


In template news_item.html of the news module I'd like to have a smarty variable with just the name of the category in it.
<{$story.topic_title}> now gives the category name with a hyperlink in it. I just want the category name with no "<a href..." html in it.

Can this be done without modifying the modules php files? Maybe with some smarty in the template?


Thanks



14
wammes
Re: What a ranker!
  • 2010/5/22 10:53

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


I agree that this admin isn't doing the project any good.

When somebody contributes to the project, but it doesn't fit in the admins thoughts, they just get deleted, edited, or wrongfully quoted.

This has got to stop. I don't think this project is the old xoops anymore. The admin has hyjacked the projectname, kicked out the old members and created a different project. And with the current development of this different project, you can't win from the other CMS available.

Just for example take the block on the right side: Xoops vs. Herko. The case is lost, only 235 persons signed it. That number of petition signs is absolutely not representive of the xoops community. Just remove it. The admin lost, judge made his verdicht. Please admin, step away from this beautiful project before you destroy it completely. Or do something much more usefull with your time spend on this project.



15
wammes
Re: Joomla Vs. Xoops
  • 2007/8/19 19:31

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


I have no experience with joomla.

How good is joomla with userrights compared to xoops?
Can I make groups and manage admin and acces rights with joomla?

Thanks.



16
wammes
Re: A Bit bored?
  • 2006/11/16 20:02

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Guess I was bored, and tried it! Whahaha, I liked it, very funny.

Thanks!



17
wammes
Re: New User Registration Email
  • 2006/11/16 19:59

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


The exact text sent in the mail is defined in the language files.

I think you'll find it in the /language folder. Adminactivate.tpl contains:
Quote:
Hello {X_UNAME},

A new user {USERNAME} ({USEREMAIL}) has just registered an account


you can change this the way you like it, for example:

Quote:

Hello {X_UNAME},

A new user {USERNAME} has just registered an account



Good luck!



18
wammes
Re: smarty load_filter in xoops?
  • 2006/10/9 19:13

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


@Djiman: thanks for pointing me at this!

Never knew I could embed a font on the page. After a quick google I figured that unfortunately this doesn't work in firefox, only IE.
But its a option for me to consider.

@Davidl2: my idea was indeed to let this smarty function convert all my news titles to images in the font that I wanted, not just the logo. I read somewhere this smarty-created image is cached, so the server will have to generate this image only once.
I think it could be done in a xoops-theme, since it uses smarty. At least it's a cool option to figure out, maybe others would like to use too in their themes.

Only problem, I have no clue where to put that load_filter(); function



19
wammes
Re: smarty load_filter in xoops?
  • 2006/10/9 15:51

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


It will surely slow down the site, instead of just text the user would have to download some images.
But my reason to use it: I'd like to display a title in a font that probably isn't installed on the user computer. It is the native font of my boyscouts association and using it would make the site typically ours

Still hoping that somebody could help me out with this...
Thanks!



20
wammes
smarty load_filter in xoops?
  • 2006/10/8 13:16

  • wammes

  • Not too shy to talk

  • Posts: 101

  • Since: 2002/1/3 1


Hello,

I´d like to use the imagetext function in my theme:
<{imagetext text="Hello World" style="big_bright" dev="1"}>
like discribed athttp://www.cerdmann.com/imagetext/

I read something about loading a smarty prefilter. I should add something like:
$smarty->load_filter('pre', 'imagetext');
$smarty should be the correct name of the used smarty class.

Anybody knows where I should add this prefilter so it works with the smarty in xoops? I put the textcache folder to my root and added the files to the class/smarty/plugins/ folder.


Thanks!




TopTop
« 1 (2) 3 4 5 ... 9 »



Login

Who's Online

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


Members: 0


Guests: 222


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