91
Antoine
Re: Adjusting left column width in newbb2
  • 2005/1/19 18:58

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


As far as I can see from the code it's pretty much theme dependant. A regular TR tag is used and the inclusion of the image is outside of any DIV CLASS="..." scope. The only class it indirectly belongs to, due to it's cell, as far as i can see, is "odd", which doesn't influence the width.

Maybe you can edit your theme's style.css and add a class that does what the "odd" class does plus defines a width. Or assign an id to the cell and define whatever you want in there.

Now I am relatively new to XOOPS so I'm not 100% sure it'll work but judging the code the solution should be in that area. E.g. the style.css and the newbb_thread.html files. Feel free to correct me staff

EDIT: excuse my double post. accidents happen.



92
Antoine
Re: Adjusting left column width in newbb2
  • 2005/1/19 18:57

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


As far as I can see from the code it's pretty much theme dependant. A regular tag is used and the inclusion of the image is outside of any <DIV CLASS="..."> scope. The only class it indirectly belongs to, due to it's cell, as far as i can see, is "odd", which doesn't influence the width.

Maybe you can edit your theme's style.css and add a class that does what the "odd" class does plus defines a width. Or assign an id to the cell and define whatever you want in there.

Now I am relatively new to XOOPS so I'm not 100% sure it'll work but judging the code the solution should be in that area. E.g. the style.css and the newbb_thread.html files. Feel free to correct me staff



93
Antoine
Re: Making Module
  • 2005/1/19 18:32

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Quote:

Dave_L wrote:
That's not necessarily good if you're using caching. It could cause unnecessary database queries or other processing.


Hmmm, really? Never realised that and am pretty interested in knowing why that is. This far I've been going out of my way to postpone sending a header as long as possible in my code.
I am pretty new to XOOPS 2.0 (even went so far as to mod PHPNuke to use Smarty, hehe) but pretty impressed as to it's workings. (Minus a few annoyances.)

As far as I understand it; postponing the invocation of the header file would only cause the page rendering commands to be grouped closer together in the code.

But since it is beyond the scope of this thread to discuss it: maybe you'd be willing to PM me the explanation or direct me to another thread or documentation where this has been done before?

(Speaking of documentation, wouldn't it be nice if phpDocumentor would also support documentation of $_GET and $_POST variables. Sometimes you have to plough through over 4 files of code to find the exact usage of such a parameter)



94
Antoine
Re: Making Module
  • 2005/1/19 16:50

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Well it might help to answer Mithrandirs question about which theme you are using. If the theme doesn't do something like this setting the options won't help a bit:

Quote:
<{if $xoops_showrblock == 1}> <{/if}>


And also as stated before allways set the options BEFORE you include header.php. The header.php starts rendering the site so a good rule of thumb I use is to include it as late as possible. Possibly even right before you let Smarty render your template.



95
Antoine
Re: About instpage.php question
  • 2005/1/19 16:39

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


What module or hack is this instpage.php a part of? Searching my XOOPS directory tree there was no instpage.php popping up.



96
Antoine
Re: about somara-xp theme block
  • 2005/1/19 16:34

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


I am not entirely sure what you are trying to accomplish, but I guess that whatever it is should be done in the style.css file of the theme. Using the default theme's style.css as an example you would want to edit the lines like:

Quote:
from /themes/default/style.css:

td#leftcolumn {width: 170px; border-right: 1px solid #cccccc; font-size:12px;}
td#leftcolumn th {background-color: #2F5376; color: #FFFFFF; vertical-align: middle;}
td#leftcolumn div.blockTitle {padding: 3px; background-color: #dddddd; color: #639ACE; font-weight: bold;}
td#leftcolumn div.blockContent {padding: 3px; line-height: 120%; line-height: 120%;}


This would be for the left block column. I guess you can figure out what id's you'd have to edit to influence the style of the other columns.

If the theme you are referring to is vastly different from the default I would advise you to either read it's documentation or consult it's author.



97
Antoine
Re: about set block question
  • 2005/1/19 16:24

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


I am not sure if I am understanding the problem correctly so first I will summarise what I think you asked:

"I have a block that is only visible to registered users but I want to make it visible to anonymous users too."

Well, if you want to make a block accessible for anonymous users you first go to the admin panel. In the admin panel choose System->Groups->Anonymous users. In that screen look for the block name and tick the box next to it and confirm. That should generally do the trick.

If this is not what you meant to ask please clarify.



98
Antoine
Re: imagemanager.php
  • 2005/1/19 15:09

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Quote:

Mithrandir wrote:
target is referring to the name of the window that contains the text area, the image tag should be inserted into.


I assume you mean the id of the XoopsDhtmlTextArea? Since it appears to retrieve this textarea using:

Quote:
var targetDom = window.opener.xoopsGetElementById('<{$target}>');


Well I'll have to think about how I am going to have to hack the imagemanager.php to add the option to return something more usefull to me instead.

Thanks a lot for the answer. It's been a great help.



99
Antoine
Re: imagemanager.php
  • 2005/1/19 9:51

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Ok, let's simplify the question, anyone know and willing to tell what the $_GET['target'] or $_POST['target'] are referring to in imagemanager.php?



100
Antoine
imagemanager.php
  • 2005/1/18 12:43

  • Antoine

  • Friend of XOOPS

  • Posts: 112

  • Since: 2004/11/14


Hi, I just recently started developing modules for XOOPS 2. Now I'd like to use some user uploaded images and link their Id's to an object I have already written.
My question is: How does one use imagemanager.php? What does the $target parameter refer to? Can I make it return the Id of a user selected image for storage in the link table I use?
I'd be very gratefull if someone can shed some light on the correct usage or point me to any documentation (other than the source itself).




TopTop
« 1 ... 7 8 9 (10) 11 »



Login

Who's Online

156 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 156


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