31
Draven
Re: {$xoops_imageurl} Problem
  • 2005/1/24 3:35

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


If you must use it in a style sheet, and your XOOPS install is in the root directory of your hosting account, you can use a root path like:

background-image:url(/themes/mytheme/images/image.gif);

this will read the first '/' as being the root dir and convert it to:

http://www.mydomain.com/themes/mytheme/images/image.gif



32
Draven
Re: {$xoops_imageurl} Problem
  • 2005/1/24 3:32

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I use it all the time, it indeed does work provided you use it IN a template file parsed by smarty.



33
Draven
Re: {$xoops_imageurl} Problem
  • 2005/1/24 3:29

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Quote:

mixmaster wrote:

Thanks, I'll try this approach. However, background used in HTML and background-image: used in style sheet are not the same thing. {$xoops_imageurl} works fine in HTML, but my concern was using it within style sheet.


You cannot use smarty code in style sheets since the code is not run by smarty. The CSS includes are included by the browser upon rendering. Smarty never touchs the CSS file.

If you want to use a CSS background image you have to use it in the template itself as:

<td style='background-image: url(<{$xoops_imageurl}>images/image.gif);'> ... content... </td>



34
Draven
Re: {$xoops_imageurl} Problem
  • 2005/1/24 3:22

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Can't tell from your last post if you figured out the problem or not, but one thing to note is that <{$xoops_imageurl}> only points to the themes root directory xoops/themes/mytheme/ and not a subfolder like /xoops/themes/mytheme/images. To do this you need to use:

background-image: url(<{$xoops_imageurl}>images/image.gif);


hope that helps



35
Draven
Re: Images inside
  • 2005/1/24 3:17

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Here's what you can do...
<div id='container'>
    <
div id='leftImage' style='float:left; width: 100px'><img src='...' width='100'></div>
    <
div id='rightImage' style='float:right; width: 100px;'><img src='...' width='100'></div>
    <
div id='centerImage'><img src='...' width='100%'></div>
</
div>


This should work in IE, Mozilla Firefox, Mozilla and netscape. Floats should always appear before the 'center' item since it has no alignment. Post the exact items if you can't get it to work, I'll guide you through it.



36
Draven
Re: need a news theme
  • 2005/1/18 17:56

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Yes, fantasyref.com is one of my old sites. Feel free to PM me if you want info on theme design.



37
Draven
Re: Content/Menu Help
  • 2005/1/6 18:49

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


I'm currently developing a Menu Builder module that will allow you to make MANY different styles of menu's (Menu Tree, Verticle Drop Down, Horizontal Drop Down, Sliding Horizontal etc..) with unlimted depth levels and unlimited number of menu's. Each menu generates it's own block for use. There's no limit on the number of menu's you can have on one page.

It also include a VERY easy to use Menu Builder for building the menu struture in a "site map" like enviroment.

The module should be ready for beta in a week or so... I hope. It's going to depend greatly on my work load atm.

Anyways, not a huge help right now, I know. But you will have a solution very soon and you can do EXACTLY what you mentioned above using this module.



38
Draven
Re: Any software programmers here (windows)???
  • 2004/12/19 0:57

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


The app itself only needs to load a webpage inside of it which will control the buttons, not the app itself.



39
Draven
Re: image sizing in mylinks module
  • 2004/12/19 0:53

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Did you remove the images? Sorry I didn't look earlier, been busy with christmas styff.



40
Draven
Re: Any software programmers here (windows)???
  • 2004/12/17 7:44

  • Draven

  • Module Developer

  • Posts: 337

  • Since: 2003/5/28


Thanks bud, I really appreciate your hard work on this.

I hope I don't sound unappreciative, but this isn't quite what I had in mind.

What I need is an app just like yours that opens a broswer _in_ the app itself (think like the OLD msn messanger where the app is the box that holds the webpage inside of it. This is what the timer programe will be in (made in php) with buttons exposed in the app window for start, stop, puase ect.

The reason I want this all contained within the app and not a web browser page on it's own was for the functionality of dectecting when the computer goes inactive (the user has walked away) the app can reload the inner page and pass a varible that tells the PHP page to pause the timer. When the comp becomes active again the app would reload the inner page to tell PHP to start the timer again. Hope that makes sense.

Also having the app as the container allows everything to be confined to one neat little window that can be minimized to the system tray while you work.

For an example of what I plan to make, check outhttp://www.captureworks.com/TaskCapture.htm

This is the program I more or less want to recreate, the differece being all the buttons and so on that show inside the app are from a page and not the software itself. This will all tie in with a larger part of the module I am planning to build for contract people ( like web designers) to track work for clients. I'll be including a complete client module, billing, etc. This is just one piece to help track the time spent working on a project.

Again thanks bud. You don't have to make this, even if you can point me in the right direction for finding out how and what to build such a thing in, I can try to learn myself.




TopTop
« 1 2 3 (4) 5 6 7 ... 26 »



Login

Who's Online

168 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 168


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