xoops forums

Forum Index


Board index » All Posts (Draven)




Draven

Module Developer
Posted on: 2005/1/24 3:35
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#31

Re: {$xoops_imageurl} Problem

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


Draven

Module Developer
Posted on: 2005/1/24 3:32
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#32

Re: {$xoops_imageurl} Problem

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


Draven

Module Developer
Posted on: 2005/1/24 3:29
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#33

Re: {$xoops_imageurl} Problem

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>


Draven

Module Developer
Posted on: 2005/1/24 3:22
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#34

Re: {$xoops_imageurl} Problem

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


Draven

Module Developer
Posted on: 2005/1/24 3:17
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#35

Re: Images inside

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.


Draven

Module Developer
Posted on: 2005/1/18 17:56
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#36

Re: need a news theme

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


Draven

Module Developer
Posted on: 2005/1/6 18:49
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#37

Re: Content/Menu Help

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.


Draven

Module Developer
Posted on: 2004/12/19 0:57
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#38

Re: Any software programmers here (windows)???

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


Draven

Module Developer
Posted on: 2004/12/19 0:53
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#39

Re: image sizing in mylinks module

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


Draven

Module Developer
Posted on: 2004/12/17 7:44
Draven
Draven (Show more)
Module Developer
Posts: 337
Since: 2003/5/28
#40

Re: Any software programmers here (windows)???

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 out http://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 »