1
EyeKeeper
Re: Module Template Admin
  • 2008/2/7 23:33

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


*** bump for help ***



2
EyeKeeper
Module Template Admin
  • 2008/2/6 12:39

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hello!

I've been digging around the forums for a while now trying to find out on how to bring up the admin of modules into templates instead of having html tags hardcoded and shown through tonnes of "echos"...

Does anyone know how to use templates in the admin or are there any links available?

So far I have from my form the templates defined in xoops_version.php, I have already creted the template such as

<{foreach from=$myForm.elements item=element}>

<{/foreach}>


in the admin file I call the form using

echo $tpl->fetch(XOOPS_ROOT_PATH.'/modules/mymodule/templates/my_template.html');


and the form is associated with the template as follows

$myForm->display();

I tried using

$myFomr->assign($xoopsTpl);

but I get an error stating problems when trying to access the tpl file

Any ideias, directions?
thanks



3
EyeKeeper
Re: Redirect page with ajax
  • 2008/1/22 19:11

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


thanks bud

I readapted the code but still no luck...
I'll have to take a deeper look why this dam*** code is not running...

thanks once again



4
EyeKeeper
Re: Redirect page with ajax
  • 2008/1/21 23:19

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Well...

I followed the instructions on the the site, someone and it worked well for the front-end part of the site...

But under the admin no luck yet...

any suggestions?



5
EyeKeeper
Re: Redirect page with ajax
  • 2008/1/21 21:05

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


thanks someone!

that's basically the same as commented on the link on my previous post...

about xt...

we're just waiting for Giba getting back from vacation and after they'll check the files again and I guess we'll be ready to move on and re-upload the site



6
EyeKeeper
Redirect page with ajax
  • 2008/1/21 19:46

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hey there

I'm trying to get rid of the redirect page or at least be able to use one that allows me to use ajax to reload a div after data has been inserted....

First, I tried using the default redirect_header function from XOOPS but since I adapted the whole admin interface to use ajax every time I use the redirect_header function it reloads the whole page and, consequently, it get some errors 'cause it should be loaded into the div and not the whole page itself.

I know the header function has to reload the whole page and then I started looking over here to get a workaround and came to this link --> Show XOOPS redirect page messages in theme - Xoops-magazine.com.

But I couldn't get this running either on my XOOPS version.
I'm currently running XOOPS Brasil version and the lines to be changed are different and some non-existent.

Is there a way to recreate a new redirect page or having after the insertion some auto-reload function for the div? I wanted just to get the page loaded somehow... I've already looked for two days over google and found bunches of links and suggestions but I couldn't get any to work!

Thanks for any help.



7
EyeKeeper
Re: Using the XOOPS Name
  • 2008/1/15 17:11

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


about names I don't think there is a problem on using it...

just about the content and code should be taken into consideration the legal rights as stated --> here.

Further there many XOOPS sites with the word "xoops" in and are non-profitable as

xoopsinfo.com
xoops-tips
xoopsdesign...

just to name a few...

IMHO it's a question of using the site considering the right use of it...



8
EyeKeeper
Re: Custom Field Validation
  • 2008/1/14 17:50

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


client side... in fact it is a complementary information where the user has to enter the data by him/herself...

$formCadastro = new XoopsThemeForm(_MD_BC_EFETUAR_CADASTRO"form""cadastro.php""post"false);
    
$formCadastro->setExtra('enctype="multipart/form-data"');
    
$formCadastro->addElement(new XoopsFormText(_MD_BC_NOME'bi_nome'50255,""),true);
    
$formCadastro->addElement(new XoopsFormText(_MD_BC_SOBRENOME'bi_sobrenome'50255,""),true);

etc...

    
$formCadastro->addElement(new XoopsFormText(_MD_BC_DT_NASCIMENTO'bi_dt_nascimento'50255,''),true);
    
$formCadastro->addElement(new XoopsFormButton('''post'_MD_BC_ENVIAR'submit'));
    
$formCadastro->addElement(new XoopsFormHidden('op''gravar'));
    
$formCadastro->display();


and this info is shown under the front-end part of the site (not admin...)

btw... how can I retrieve info stored for the form to be edited?

thanks again



9
EyeKeeper
Custom Field Validation
  • 2008/1/14 17:23

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


Hello!

I created a page with some custom infos I want to save in a database. The database operations are working ok but I have a doubt on how to validate fields...

I need to check if the type info such as birth date and email are valid (valid date and valid emails) but I don't know on how to do it when processing the form or leaving the field...

On a normal HTML site this can be achieved by a simple "java script" but I'm not getting any results with XOOPS forms...

Any ideias on how to get this running?

Thanks



10
EyeKeeper
Re: Mastop Publish and Manin Menu
  • 2007/9/27 11:07

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


you can change mastop's menu according to your needs...
the mais key items (css) you can change when you go to --> mastop publish --> options (top menu) --> blocks

there you choose the main menu and click on edit...
you'll the css properties at the end of this page so you can customize it according to your theme's default menus




TopTop
(1) 2 3 4 ... 17 »



Login

Who's Online

214 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 214


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