262161
El_Jordo
Re: Hack
  • 2004/4/17 17:12

  • El_Jordo

  • Just popping in

  • Posts: 64

  • Since: 2003/4/23


Perfect! That's absolutely what I wanted, and it works perfectly.

Thanks so much!



262162
kahumbu
Hack
  • 2004/4/17 16:37

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


I had the same idea, so after not finding any solution, I decided to dig in the code.

This hack will let you receive username, email and IP of the new user (if you wanted to receive notifications on new registration).

First, make a new file regnotify.tpl in language/english/mail_template/ containing this text:
new user has registered:

Username: {USERNAME}
Email: {USEREMAIL}
User IP: {USERIP}


You could change that, of course, but keep those {variables}.

Second, open up register.php and add the hack around Line 266-267:
$xoopsMailer->useMail();
[
b]// Start of Hack[/b]
$xoopsMailer->setTemplate('regnotify.tpl');
$xoopsMailer->assign('USERNAME'$myts->oopsStripSlashesGPC($uname));
$xoopsMailer->assign('USEREMAIL'$myts->oopsStripSlashesGPC($email));
$xoopsMailer->assign('USERIP'$myts->oopsStripSlashesGPC($HTTP_SERVER_VARS['REMOTE_ADDR'] ));
[
b]// End of Hack[/b]
$member_handler =& xoops_gethandler('member');


Finally, comment out this line:
//$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$myts->oopsStripSlashesGPC($uname)));


I would like to get comments from the devs about using the $myts->... syntax with the REMOTE_ADDR var. I was just going along with the syntax of the other vars. I'm not exactly sure if I needed to do that.

For now, it works on my site. Hope this helps others. Feedback appreciated.



262163
dadoprom
I am Sorry...
  • 2004/4/17 16:30

  • dadoprom

  • Not too shy to talk

  • Posts: 143

  • Since: 2004/3/2 1


...for you. I didn' read such a crap for long period of time, dear ricland.

You look to me like 15 year old high school boy with very strange opinion about life - everybody will give me everything, because I AM THE ONE - SUPERBOY.

You are STUPID - very, very, very stupid.

Advice for you: turn on your PC: (you sure are WINDOZE user)click start > click programs> click games> and run your faforite strategic game - command & conquer??

Come back in 6 years when you'll be adult! Bytheway I am not from USA or ENGLAND, I LEARNED english language...



262164
kahumbu
Re: combine news from different sites
  • 2004/4/17 16:12

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


That is possible through the Headlines module. Just use www.yoursite.com/backend.php as the source feed.



262165
kahumbu
Re: Newbie Theming
  • 2004/4/17 16:07

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


Maybe this link can help.



262166
kahumbu
Re: blocks weight
  • 2004/4/17 16:00

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


Do a search on editing the theme.html and center blocks.

Try also this link:
Link



262167
risto
png transparency
  • 2004/4/17 15:57

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


http://www.koivi.com/ie-png-transparency/

if you look here you will fin a very nice way of adding transparency to png files in ie. I'd very much like this to work in XOOPS anyone intrested in helping out?

I'd line to make a hack that dos this on all XOOPS pages!

if you have a look here:http://www.flashjab.com/pngtest/
you can try resizing the window! quite nice effect!
anyone els intrested in getting this implemented?



262168
kahumbu
Re: Can't write in the database anymore
  • 2004/4/17 15:52

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


I may be wrong, but I wouldn't worry too much about that message. I find that in my home setup of phpMyAdmin. I think it's an issue between MySQL and phpMyAdmin, and not exactly with XOOPS. My XOOPS set up runs fine with those phpMyAdmin messages.

Hmmm... come to think of it, I may have ignored that message for far too long.



262169
SevenD
Re: poll module: to display number of comments and votes on front page
  • 2004/4/17 15:52

  • SevenD

  • Not too shy to talk

  • Posts: 143

  • Since: 2003/7/23


Thanks upsadaz,

but i don't understand, can't see "design by 7dana.com" onhttp://host3.up-link.net/html/modules/news/, header image and 100% page width is not reason to remove copyright info, i'm shure you subscribe this.




262170
ricland
Sorry, Boys, I'm Dumping it
  • 2004/4/17 15:50

  • ricland

  • Just popping in

  • Posts: 28

  • Since: 2003/5/15


Sorry, boys, but I'm dumping your application.

I'll try it again in about a year.

Thanks for the memories.








Login

Who's Online

239 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 239


more...

Donat-O-Meter

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

Latest GitHub Commits