xoops forums

Forum Index


Board index » All Posts (xsell)




xsell

Quite a regular
Posted on: 2011/4/4 20:59
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#21

Re: Edit / Clone Templates

From the Template Administrator , when clicking Help icon . i Read.

If you would like to create a custom template set you can make a copy of the default set (or any other) by selecting the ‘clone’ link (you will be prompted to give the new set a name). Unlike the default, other template sets can be freely edited. You can also save a copy of a template set to disk by selecting the ‘download’ link, or remove it with the ‘delete’ link. You may also sometimes see an additional ‘Generate’ link next to new modules for which templates have not yet been created.

*****************

Where is the Clone Link they Talking about ?


xsell

Quite a regular
Posted on: 2011/4/4 12:03
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#22

Re: Edit / Clone Templates

thx , but the thing is that i already used Generate Template's tool , and no longer change take effect if template was edited directly .i wish had not Generate them and should have stucked of editing them from my pc then uploading them. or if i find the custom template then i can edit the generated file from there.

for now i will just do wht u said find the template in the tmeme directory and edit the html file from there


xsell

Quite a regular
Posted on: 2011/4/3 9:38
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#23

Edit / Clone Templates

Hello,

after upgrading to 2.5.0 , Just Can not Find where to edit/Clone Custom Templates between , I Cloned Default Template when i had 2.4.2 and Named it , Custom_Default , I see it from the General Settings . But in the Template Control Page i just Can Generate New Modules Templates , But cant see any Clone Template Button , Nor Edit Custom Template Files .


xsell

Quite a regular
Posted on: 2010/3/2 0:48
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#24

Blocks Not Shown for Some modules

Hello

i installed 2.5 alpha 2 in my localhost server . and all OK but when i installed it at live website for testing online .. Blocks for Some module did not Show up at all , and a friend of mine told me Same thing happen of some of module he tried..

this example of module i tried and could not see the block

mymovie
http://www.4shared.com/file/232493831 ... 338/xoops_mymovie-21.html

there more modules i tried with same problem .. the crazy thing they work ok on the localhost on my computer ..

my online site

xoops 2.5 A2

PHP Version 5.2.10


xsell

Quite a regular
Posted on: 2010/3/2 0:20
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#25

Re: How to us $xoopsModuleConfig inside a block Function

thx ..

WORKED VERY CHARM..


xsell

Quite a regular
Posted on: 2010/3/1 22:40
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#26

How to us $xoopsModuleConfig inside a block Function

Hello

i want to use the Value of $xoopsModuleConfig['something']

inside a block function .. how so?

for example.

function b_something_blocks_show($options) {
global 
$xoopsDB$xoopsModuleConfig;
         
$block['test'] = $xoopsModuleConfig['something'];
         return 
$block;
 }
function 
b_something_blocks_edit($options) {

    
$form "<br />test Option:&nbsp;<select size='1' name='options[0]'><option value='1'";
    if ( 
$xoopsModuleConfig['something'] == ) {
        
$form .= " selected";
    }
    
$form .= " />Yes</option><option value='0'";
    if ( 
$xoopsModuleConfig['something'] == ) {
        
$form .= " selected";
    }
    
$form .= " />No</option></select>";
    return 
$form;
     }


xsell

Quite a regular
Posted on: 2010/3/1 7:36
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#27

Re: How can i rename a module

wht do you want to do exactly .. rename a module not one click Do .. if you meant change the title then from admin area click Modules to the left is the modules list u can change the title to any thing ..

but if you mean to rename Module for Example newbb to forum .. there some steps u need to do .

1- change the module folder Name
2- search the whole module for the old name and replace it with the new name .. for Fast way . use Notepad++ in the search box search in the whole module files for newbb and replace it with forum

3- Search for any php,html,css,js... any file includes newbb wht it name and change it to forum .. example
newbb_tpl.html to forum_tpl .. newbb.png to forum.png

then install the module .. but if the module already installed un-install it .. rename it and then install .. if you can not uninstall it and want to rename it while still installed this is another story and needs more time to excplain.




xsell

Quite a regular
Posted on: 2010/3/1 2:39
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#28

Captcha Not Shown& image Veiw

Hello

I replaced Appache with Litespeed .. i installed GD and enabled it ..

All is ok But Captcha Not Shown .. and so i use Image Gellery now the Images not Shown .. And the Image Logo for Protector is the only Image Not Shown in my admin area .. it shown is if no image ..from my View it seems like any time u call image by php the image will now show for example Protector . Creats the Image from the file module_icon.php.

I know the problem is within litespeed since every thing were ok with appache ..

any idea to wht could cuse this problem ..


PHP Version 5.3.1
xoops 2.4.4


xsell

Quite a regular
Posted on: 2010/2/20 7:10
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#29

Re: Assign for loop with Smarty

Thank You Trabis .. Perfect ..!


xsell

Quite a regular
Posted on: 2010/2/20 6:10
xsell
xsell (Show more)
Quite a regular
Posts: 245
Since: 2008/9/2 1
#30

Assign for loop with Smarty

Hello

this is Simple Code i use , it Prints Ball Image equal to $image Value ..

if $image=3 that mean the Image will be printed 3 times ..

i need to assing it to Smarty to use it in template.
$image =2;
for(
$i=1;$i<=$image$i++){

echo 
'<img src="'.XOOPS_ROOT_PATH.'/modules/test/images/ball.png" />';

}


i could do it by Number Just like
$xoopsTpl->assign('image'$image);

this will print the Number .. but i need to print out the Image . so i tried something like
$xoopsTpl->assign('image''<img src="'.XOOPS_ROOT_PATH.'/modules/test/images/ball.png" alt="" />');


but this printed Out only One image regards to $image Value..

any idea?
Thx



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