51
tommyZ
Re: Adding fields in registration form
  • 2005/2/14 20:19

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hi! Thanks to everyone who contributed to this thread, it contains some very helpful information already.

I am trying to do the same thing but rather than having the Admin activation email contain the added field, I would like the email that notifies a selected group of users when a new user registers to the site to contain the field I’ve added to the register page (Real Name).

The function which sends this email is in register.php file and I have managed to slightly modify it to send the added field (Real Name in my case as well), but could not manage to have the email contain more than one variable in the e-mail’s body. This might be a limitation of the setBody(sprintf(,))?

Unmodified Register.php line 270 to 276
$xoopsMailer->setToGroups($member_handler->getGroup($xoopsConfigUser['new_user_notify_group']));
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(sprintf_US_NEWUSERREGAT,$xoopsConfig['sitename']));
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$myts>oopsStripSlashesGPC($uname)));
$xoopsMailer->send();


Attempt one of modifying Line 275
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$myts->oopsStripSlashesGPC($uname)), sprintf(_US_HASJUSTREG,$myts->oopsStripSlashesGPC($name)));

well that didn’t work,

Attempt two of momodifying Line 275
$xoopsMailer->setBody(sprintf(_US_HASJUSTREG,$myts->oopsStripSlashesGPC($uname), $myts->oopsStripSlashesGPC($name)));


well that didn’t work either,


the variable I would like to add to the body of the email is $name and it is declared with the correct value, the problem is adding it to the e-mail’s body on-top of the Username.

if you figure it out, let me know

if I need to clarify myself farther, let me know as well

TommyZ



52
tommyZ
Re: How do I make xoop php appear in an html page
  • 2005/1/24 23:48

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Well, it seems that configuring wf-channels to do as I want is not going to work.

the only other option that I see is to create a module

still having a hard time figuring exactly what is needed in the index.php of the module in order to dump the php in there.

let me explain what it is that I am after once again:

I have people from different projects (@work) posting news under different categories in the news module

for example:

project (main category)
--006 (sub)
--007 (sub)

to simplify things to not-so-computer-oriented people, I would like to centralize all of the project specfic news and downloads onto one page.

I know that it is possible to have the news module to display all the posts/articles submited under one topic.

modules/news/index.php?storytopic=4 <-- this will display only the articles under storytopic4 in the page (topic 4 is my sub category 006)

anyone have done anything like this? I don't mind if the module is statically set to display news from one topic only. Not looking to go too fancy here

I wish I knew more about the way XOOPS works... this can't be that hard to achieve!

again, any help is blessed

-Tommy Z



53
tommyZ
Re: How do I make xoop php appear in an html page
  • 2005/1/24 22:00

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


What displays is:

<{foreach item=download from=$block.downloads}> 
<{
$download.title}> (<{$download.date}>) <{/foreach}>



how do I go about passing the template on to it?

thanks a bunch!

Tommy Z



54
tommyZ
How do I make xoop php appear in an html page
  • 2005/1/24 21:20

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hi, I am using wf-channels and am trying to get the following code to appear correctly in the html page that I am uploading as one of the channel's main pages.

<ul>
  <{foreach 
item=download from=$block.downloads}>
    <
li><a href="<{$xoops_url}>/modules/mydownloads/singlefile.php?cid=<{$download.cid}>&lid=<{$download.id}>"><{$download.title}></a> (<{$download.date}>)</li>
  <{/foreach}>
</
ul>


I guess something is missing from my html page because this code is just displaying as code in my browser, do I have to include anything in the header or ...?


thanks in advance!

Tommy Z



55
tommyZ
Re: Selected module does not exist!
  • 2005/1/7 18:30

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hi!

well, after diggin around like a hungry dog, I posted yet another HELP ME NOW topic

and the solution indeed came

hope this fixes yours as well

https://xoops.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=29525&forum=27



56
tommyZ
Re: Ideal Settings for Xoops2.0.9.2
  • 2005/1/7 18:29

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


WooHOO!!!!

as I am a newB for php, I have no idea what the different between the CGI version and the SAPI version is, but telling my IIS6 to use the CGI version fixed the issues I was having and SMARTFAQ finally installed and ran correctly!

Thank you!!!

p.s

for other newb's out there, what I did was

a. Go to IIS Manager
b. Go to Web Service Extensions
c. If PHP was previously added, go to its properties; otherwise Add a new web service extension
d. Name it PHP and for the required file add \php\php.exe
e. now go to the default's website properties
f. In the home directory tab, click configuration
g. In the mappings tab, if .php was previously added, edited it and set the Executable to \php\php.exe

walla, fixed my problems and everything seems to be running smooth.


p.p.s

there are a few other steps that might be needed; you can find those in any other php guide out there.



57
tommyZ
Re: Ideal Settings for Xoops2.0.9.2
  • 2005/1/7 17:27

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


cool!

gonna try that right away!



58
tommyZ
Re: Selected module does not exist!
  • 2005/1/6 17:18

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hi,

I am bumping this to hopefully get some clues or solutions

at the moment I am trying to troubleshoot this issue with the guys at iis-resources.com

http://www.iis-resources.com/modules/newbb/viewtopic.php?topic_id=2697&forum=18



59
tommyZ
Ideal Settings for Xoops2.0.9.2
  • 2005/1/5 20:11

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hello Community,

My first encounter with XOOPS was on IIS6 with PHP5.0.3 and MySQL 4.0.23

Mostly everything worked fine expect for SMARTFAQ, which I am interested in using.

I've reconfigure my server to have IIS6, PHP-4.3.10, mysql-3.23.58, and latest xoops.

Now I encounter a new error which was discussed in a couple threads already but none of the solutions fixed the problem for me (problem: Selected module does not exist! <- in the admin menu). Related Post

I would like to hear a suggestion for the idle Windows environment to run XOOPS on - both Apache and IIS

Please include version numbers!

Thanks in Advance

TommyZ



60
tommyZ
Re: Dead links on index page after installation
  • 2005/1/5 18:25

  • tommyZ

  • Friend of XOOPS

  • Posts: 89

  • Since: 2005/1/4 1


Hi guys,

I am also new to xoops, but I think I might have a possible solution to the inactive links/broken images.

it has to do with the virtual path settings

in mainfile.php - make sure the defined value make sense for someone trying to access it externally (no localhost or other non-valid domains)

// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://win2k3-srv-std-/xoops/html');
define('XOOPS_URL', 'http://win2k3-srv-std-/xoops/html');

in php.ini - you might need to play with this value

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =



just my 2cents guys




TopTop
« 1 ... 3 4 5 (6) 7 »



Login

Who's Online

188 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 188


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