1871
trabis
Re: username as uid ?
  • 2007/11/24 15:45

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Dave_L
Quote:
I'm not sure if the subdomain reference (username.xoops.org) could be handled in this manner.


You just need a hosting account with Dedicated IP. Then you redirect your subdomains to your domain. You should have the option for use multicard subdomains so you don´t have to create all the subdomains by hand.

Example: redirect *.yoursite.com to www.yoursite.com

Then you need a script included on your mainfile.php to read the PHPSELF and extract the subdomain name. If the there is a name (subdomain) in the URL then you match it against your users database and get the corresponding UID. Having the uid you just need to redirect the page. No need for htaccess this way. :)



1872
trabis
Re: How to use a cancel button?
  • 2007/11/17 18:11

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Actually it did not work, oops.

I did not want a reset button to clear the fields but a cancel button to take me back where I were before.

I looked in this forum submit form (that has a cancel post button) and into the formbutton.php and I got my answer:


$button_tray = new XoopsFormElementTray('' ,'');

$submit_btn = new XoopsFormButton('''post'_MD_XTL_POST'submit');
$submit_btn->setExtra('accesskey="s"');
$button_tray->addElement($submit_btn);

$cancel_btn = new XoopsFormButton('''cancel'_MD_XTL_CANCEL'button');
$cancel_btn->setExtra('accesskey="c"');
$cancel_btn->setExtra('onclick='location="mymodules.php"'');
$button_tray->addElement($cancel_btn);

$sform->addElement($button_tray);


Anyway thanks a lot for your time suico!



1873
trabis
Re: How to use a cancel button?
  • 2007/11/17 17:17

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Thanks Suico!
So simpleeeeeeeeeee, eheh.

[portuguese]
Excelente o seu trabalho com o yogurt network, parabéns!
[/potuguese]



1874
trabis
How to use a cancel button?
  • 2007/11/17 0:25

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hello,
I´m creating a form and I added a button to cancel the operation. The problem is that I have required fileds in the form and when I click the 'cancel' button XOOPS asks me to write in the required fields.

This is the code:
$button_tray = new XoopsFormElementTray('' ,'');

$submit_btn = new XoopsFormButton('''post'_MD_XTL_POST'submit');
$submit_btn->setExtra('accesskey="s"');
$button_tray->addElement($submit_btn);

$cancel_btn = new XoopsFormButton('''cancel'_MD_XTL_CANCEL'submit');
$cancel_btn->setExtra('accesskey="c"');
$button_tray->addElement($cancel_btn);

$sform->addElement($button_tray);


What can I do here?



1875
trabis
Re: I want to know how to develop
  • 2007/11/13 22:14

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Viva Damaster!

Yeah, that´s just what I was looking!
Thanks for sharing that.

[portuguese]
Muito obrigado pela explicação detalhada, já baixei tudo, vou instalar agora mesmo.

Um abraço!



1876
trabis
Re: I want to know how to develop
  • 2007/11/13 20:31

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Adding questions here:

I have a localhost with EasyPhp and PHPEditor.

Beside having a brain, what other tools do you (Module developer) advise me to use?

Is there any team developing a translation module like lang-tools? Other than XOOPS mx total?

I think xoops´ "owners" should bet on educating and motivating users for module/blocks/theme development.

I don't mean selling books, I mean sharing Knowledge.

Ah, yes! What about CVS? Can you breafly explain me how can I use it? Do I have to have an acount on sourceforge or ss there a program I can download and use on my PC/windowsXp?


Forgieve my ignorance,
Thank you!



1877
trabis
Re: Xoops not sending mail to everyone
  • 2007/11/7 13:59

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


It happened to me when I changed servers.
I had to set the email settings on xoops. Set email to sendmail() and add the servername, etc.



1878
trabis
Re: Credit for hacking xoops core and modules
  • 2007/11/6 20:32

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I´m creating a XOOPS version and I want to do as in xoops2.5 that needs profile module to deal with users and not as part of the core(so i needed to merge two modules in just one, that´s done). I want php4 so it can be compatible with all enviroments. I think this is the ideia of the future XOOPS 2.3
I´ll do the same for Private messages. I´ve implemented also an admin control panel with theme so theme designers can include adminthemes in their releases. I also think it is important for users to have a control panel to manage modules settings and their own settings instead of the normal edituser.php

Thanks for the tip, I wiil look into it, thanks!



1879
trabis
Re: How can I make my xoops to be a poetry script
  • 2007/11/6 19:55

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I run a portuguese poetry site with xoops.
My answer is a hacked version of the news module so it fetch news by user and not only by category. My news module also shows the user avatar and has the ability of adding users as favorites. It has also a feed(RSS) by user and a statistic page by user. Hum, it also gives the ability of sorting news by hits, name etc. Hum, it workes with two templates. The normal one and short one that only shows the title, the author, date, etc ((like a list). It count hits by Ip so users don´t click in their own poems to geat extra readings(eheh). OH, it also as tagas included. Well , It´s heavly hacked!

I also have another hack of the news module to show books!

I love to hack the news module that´s for shure!

Of corse you can start has I did with a simple news module that has a simple "news by this author" section but if you are planing to have a lot of users you will need to make the module working better.

Check it
http://www.luso-poemas.net

I was forgeting, it has a pdfmaker that allow users to select the poems they want to include in the pdf instead of a pdf by poem. It makes a ebook with 3 simple clicks!



1880
trabis
Credit for hacking xoops core and modules
  • 2007/11/6 19:26

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


I´m not new to XOOPS but I´m new to develpoment.

I´m hacking smartprofile module, changing filenames, merging with smartobject, giving suport to php4, adding stuff etcetc. Can I, later on, release this module with a diferent name, diferent filenames, diferent database names?
Should I keep credits and make a changelog with all the extra code, removed code, merged code?

And with xoops?
Can I make my own version of xoops? Can I call it xoopsY for example and release it?

How does this credit stuff works and what are the limitations? Thanks!




TopTop
« 1 ... 185 186 187 (188) 189 190 »



Login

Who's Online

50 user(s) are online (24 user(s) are browsing Support Forums)


Members: 0


Guests: 50


more...

Donat-O-Meter

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

Latest GitHub Commits