11
ladon
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 22:05

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Yes, that might affect other parts of your website, but only within the magazine module.

You could just remove the class form the template.
from:
<div style="text-align: center; padding: 3px;margin:3px;" class="tbl520">   </div>
  <
div class="tbl520">
  <!-- 
start comments loop --> 
    <!-- 
end comments loop --> 
</
div>

to:
<div style="text-align: center; padding: 3px;margin:3px;">   </div>
 <
div>
  <!-- 
start comments loop --> 
    <!-- 
end comments loop --> 
</
div>

But as you can see, this template is empty beyond the divs, so is useless now you removed the class.
I am the BEST.......... at overstating things! - Resized Image



12
ladon
Re: Getting Magazine article template to fillwidth of site
  • 2006/3/12 20:55

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


After a short .css inspection of your site is saw that the tbl520 class is defined in modules/magazine/css/styleNN.css (or style.css voor IE viewers among us :) ) There you can change the width, or remove it to show full width.

It's unfortunate that this module has it's own .css, makes it a little harder to change your design.
I am the BEST.......... at overstating things! - Resized Image



13
ladon
Re: hack needed?
  • 2006/3/11 20:29

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Kellymac send me a PM about this thread, so i'll post it here:
Quote:

Did you evern figure out the problem in tread:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=14732&forum=14&post_id=60506

Thanks!

Kellymac, i sure did figure it out. What exactly do you want to do? If you want to remove everything but the 'post reply' button as i wanted, it's a matter of hack&slash. I simply removed everything i didn't have any use for:

(this is XOOPS 2.0.10 don't know if anything changed here, i assume not)

original:
// assign comment nav bar
        
$navbar '
<form method="get" action="'
.$comment_config['pageName'].'">
<table width="95%" class="outer" cellspacing="1">
  <tr>
    <td class="even" align="center"><select name="com_mode"><option value="flat"'
;
        if (
$com_mode == 'flat') {
            
$navbar .= ' selected="selected"';
        }
        
$navbar .= '>'._FLAT.'</option><option value="thread"';
        if (
$com_mode == 'thread' || $com_mode == '') {
            
$navbar .= ' selected="selected"';
        }
        
$navbar .= '>'_THREADED .'</option><option value="nest"';
        if (
$com_mode == 'nest') {
            
$navbar .= ' selected="selected"';
        }
        
$navbar .= '>'_NESTED .'</option></select> <select name="com_order"><option value="'.XOOPS_COMMENT_OLD1ST.'"';
        if (
$com_order == XOOPS_COMMENT_OLD1ST) {
            
$navbar .= ' selected="selected"';
        }
        
$navbar .= '>'_OLDESTFIRST .'</option><option value="'.XOOPS_COMMENT_NEW1ST.'"';
        if (
$com_order == XOOPS_COMMENT_NEW1ST) {
            
$navbar .= ' selected="selected"';
        }
        unset(
$postcomment_link);
        
$navbar .= '>'_NEWESTFIRST .'</option></select><input type="hidden" name="'.$comment_config['itemName'].'" value="'.$com_itemid.'" /> <input type="submit" value="'_CM_REFRESH .'" class="formButton" />';
        if (!empty(
$xoopsModuleConfig['com_anonpost']) || is_object($xoopsUser)) {
            
$postcomment_link 'comment_new.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode;

            
$xoopsTpl->assign('anon_canpost'true);
        }
        
$link_extra '';
        if (isset(
$comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
            foreach (
$comment_config['extraParams'] as $extra_param) {
                if (isset(${
$extra_param})) {
                    
$link_extra .= '&'.$extra_param.'='.${$extra_param};
                    
$hidden_value htmlspecialchars(${$extra_param}, ENT_QUOTES);
                    
$extra_param_val = ${$extra_param};
                } elseif (isset(
$_POST[$extra_param])) {
                    
$extra_param_val $_POST[$extra_param];
                } elseif (isset(
$_GET[$extra_param])) {
                    
$extra_param_val $_GET[$extra_param];
                }
                if (isset(
$extra_param_val)) {
                    
$link_extra .= '&'.$extra_param.'='.$extra_param_val;
                    
$hidden_value htmlspecialchars($extra_param_valENT_QUOTES);
                    
$navbar .= '<input type="hidden" name="'.$extra_param.'" value="'.$hidden_value.'" />';
                }
            }
        }
        if (isset(
$postcomment_link)) {
            
$navbar .= '&nbsp;<input type="button" onclick="self.location.href=''.$postcomment_link.''.$link_extra.''" class="formButton" value="'._CM_POSTCOMMENT.'" />';
        }
        
$navbar .= '
    </td>
  </tr>
</table>
</form>'
;
        
$xoopsTpl->assign(array('commentsnav' => $navbar'editcomment_link' => 'comment_edit.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode.''.$link_extra'deletecomment_link' => 'comment_delete.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode.''.$link_extra'replycomment_link' => 'comment_reply.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode.''.$link_extra));

        
// assign some lang variables
        
$xoopsTpl->assign(array('lang_from' => _CM_FROM'lang_joined' => _CM_JOINED'lang_posts' => _CM_POSTS'lang_poster' => _CM_POSTER'lang_thread' => _CM_THREAD'lang_edit' => _EDIT'lang_delete' => _DELETE'lang_reply' => _REPLY'lang_subject' => _CM_REPLIES'lang_posted' => _CM_POSTED'lang_updated' => _CM_UPDATED'lang_notice' => _CM_NOTICE));
    }
}

My version:
// assign comment navbar
$navbar '
<form method="get" action="'
.$comment_config['pageName'].'">
    <td class="even" align="right">'
;
        if (!empty(
$xoopsModuleConfig['com_anonpost']) || is_object($xoopsUser)) {
            
$postcomment_link 'comment_new.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode;

            
$xoopsTpl->assign('anon_canpost'true);
        }
        
$link_extra '';
        if (isset(
$comment_config['extraParams']) && is_array($comment_config['extraParams'])) {
            foreach (
$comment_config['extraParams'] as $extra_param) {
                if (isset(${
$extra_param})) {
                    
$link_extra .= '&'.$extra_param.'='.${$extra_param};
                    
$hidden_value htmlspecialchars(${$extra_param}, ENT_QUOTES);
                    
$extra_param_val = ${$extra_param};
                } elseif (isset(
$_POST[$extra_param])) {
                    
$extra_param_val $_POST[$extra_param];
                } elseif (isset(
$_GET[$extra_param])) {
                    
$extra_param_val $_GET[$extra_param];
                }
                if (isset(
$extra_param_val)) {
                    
$link_extra .= '&'.$extra_param.'='.$extra_param_val;
                    
$hidden_value htmlspecialchars($extra_param_valENT_QUOTES);
                    
$navbar .= '<input type="hidden" name="'.$extra_param.'" value="'.$hidden_value.'" />';
                }
            }
        }
        if (isset(
$postcomment_link)) {
            
$navbar .= '&nbsp;<input type="button" onclick="self.location.href=''.$postcomment_link.''.$link_extra.''" class="formButton" value="'._CM_POSTCOMMENT.'" />';
        }
        
$navbar .= 
    </td>
</form>'
;
        
$xoopsTpl->assign(array('commentsnav' => $navbar'editcomment_link' => 'comment_edit.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode.''.$link_extra'deletecomment_link' => 'comment_delete.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode.''.$link_extra'replycomment_link' => 'comment_reply.php?com_itemid='.$com_itemid.'&com_order='.$com_order.'&com_mode='.$com_mode.''.$link_extra));

        
// assign some lang variables
        
$xoopsTpl->assign(array('lang_from' => _CM_FROM'lang_joined' => _CM_JOINED'lang_posts' => _CM_POSTS'lang_poster' => _CM_POSTER'lang_thread' => _CM_THREAD'lang_edit' => _EDIT'lang_delete' => _DELETE'lang_reply' => _REPLY'lang_subject' => _CM_REPLIES'lang_posted' => _CM_POSTED'lang_updated' => _CM_UPDATED'lang_notice' => _CM_NOTICE));
    }
}


But be careful in using it. for example, i removed the <table> tags containing the form, This will screw up your templates. So according to your needs, change it accordingly (like adding tables).
I am the BEST.......... at overstating things! - Resized Image



14
ladon
Re: xoops.se?
  • 2005/8/19 12:17

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Quote:

dargosch wrote:
Ooops.. sorry landon,

I should have told you that Swedish is my native language, so I did know what that message meant, semantically.

I was just wondering if someone on this forum had more info regarding when it is to be re-opened.

/Fredrik


lol, that's ok, I like making a fool of myself
I am the BEST.......... at overstating things! - Resized Image



15
ladon
Re: xoops.se?
  • 2005/8/19 10:02

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


underhall is like overhall, or maintance. oppnar 2005-08-15 is something like opening in 2005-08-15.

So it's closed for an upgrade and was suppost to be reopened 4 days ago
I am the BEST.......... at overstating things! - Resized Image



16
ladon
Re: Third party statistics module
  • 2005/8/19 9:54

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


You have to place it in theme.html. That file is used for displaying all pages within xoops.
I am the BEST.......... at overstating things! - Resized Image



17
ladon
Re: I want to change a couple of templates :)
  • 2005/7/30 22:07

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


for renaming a module, see this FAQ.

The searchpage look is afaik not templated but hardcoded. So making any changes there would come down to hacking the search.php itself.
I am the BEST.......... at overstating things! - Resized Image



18
ladon
Re: I want a Module has this things..
  • 2005/7/30 19:07

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Many modules can do what you want to achieve. Try bvrowsing the module respository before just asking for it. The community wants to help, but it's a two-way thing, little effort from your site is welcomed. What modules have you tried and why weren'tt they good enough?

Anyway, take a look in this catagory, alle modules could be used for what you want to achieve:https://xoops.org/modules/repository/viewcat.php?cid=95

(main catagory:https://xoops.org/modules/repository/viewcat.php?cid=93)

good luck.
I am the BEST.......... at overstating things! - Resized Image



19
ladon
Re: xf guestbook
  • 2005/7/29 20:19

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


Someone at dutch support had the same problem, are you using PHP5? PHP5 is not supported. The creator did say he'd update it.
I am the BEST.......... at overstating things! - Resized Image



20
ladon
Re: How do I replace the xoops logo with one of my own
  • 2005/7/29 11:19

  • ladon

  • Quite a regular

  • Posts: 284

  • Since: 2003/10/31


If nothing changed at all i'm guessing you indeed used the wrong theme to make this edit. It should at least show the image. Check theme dir and try to make this change in the theme.css rather then the theme.html file. look for the class toptable and edit the background there.
I am the BEST.......... at overstating things! - Resized Image




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



Login

Who's Online

218 user(s) are online (141 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits