Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
jumus
Hangin' Around



Joined: Jul 15, 2008
Posts: 30

PostPosted: Wed Jan 30, 2013 9:56 am Reply with quote

Is there an easy way to convert a module from Drupal to RN 2.5? I saw some tools for the other way around.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Wed Jan 30, 2013 10:56 am Reply with quote

No. These are two totally different systems that use totally different code.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
jestrella
Moderator



Joined: Dec 01, 2005
Posts: 593
Location: Santiago, Dominican Republic

PostPosted: Wed Jan 30, 2013 2:54 pm Reply with quote

What does that module do jumus?, maybe we can point you to a good alternative.

_________________
"For those whom have not reach the sky... Every mountain seems high"

Best Regards
Jonathan Estrella [ Only registered users can see links on this board! Get registered or login! ] 
View user's profile Send private message Visit poster's website
jumus







PostPosted: Wed Jan 30, 2013 3:18 pm Reply with quote

Hello Jestrella,
The module is to capture emails from the website for Constant Contacts.
It is just a form which will appear for people to sign up for our church mailing list.
Here is the link where I saw it:
Quote:
[ Only registered users can see links on this board! Get registered or login! ]
 
nuken







PostPosted: Wed Jan 30, 2013 5:37 pm Reply with quote

Constant Contacts has a sign up form generator that may help
[ Only registered users can see links on this board! Get registered or login! ]

If you can create the form, we can make it into a block.
 
jumus







PostPosted: Thu Jan 31, 2013 8:52 am Reply with quote

Thank you nuken,
I have downladed it and created a form.
I need it now to a block of the size 150 by 150 if possible

Quote:

<form id="ccsfg" name="ccsfg" method="post" action="/xxx/CCSFG_0.0.6/signup/index.php">

<h4>Join our Mailing List</h4>

<!-- ########## Email Address ########## -->
<label for="EmailAddress"><font color="blue">Email Address</font></label>
<input type="text" name="EmailAddress" value="" id="EmailAddress" /><br />

<!-- ########## First Name ########## -->
<label for="FirstName"><font color="blue">First Name</font></label>
<input type="text" name="FirstName" value="" id="FirstName" /><br />

<!-- ########## Last Name ########## -->
<label for="LastName"><font color="blue">Last Name</font></label>
<input type="text" name="LastName" value="" id="LastName" /><br />

<!-- ########## Contact Lists ########## -->

<h5><font color="#FF0000">Please select your newsletter.</font></h5>

<input type="checkbox" checked="checked" value="General Interest" name="Lists[]" id="list_General Interest" />
<label for="list_General Interest">General Interest</label><br />

<input type="checkbox" value="ILC (xxx)" name="Lists[]" id="list_ILC (Sunday School)" />
<label for="list_ILC (xxx)">ILC (xxx)</label><br />

<!-- ########## Success / Failure Redirects ########## -->
<input type="hidden" name="SuccessURL" value="http://www.xxx/modules.php?name=kkm_newsletters" />
<input type="hidden" name="FailureURL" value="http://www.xxx/modules.php?name=kkm_no_newsletters" />


<input type="submit" name="signup" id="signup" value="Join KKM Mailing List" />

</form>


Help me to make it a block please.
 
jestrella







PostPosted: Thu Jan 31, 2013 9:06 am Reply with quote

Code:


<?php

$content = '
<form id="ccsfg" name="ccsfg" method="post" action="/xxx/CCSFG_0.0.6/signup/index.php">

<h4>Join our Mailing List</h4>

<!-- ########## Email Address ########## -->
<label for="EmailAddress"><font color="blue">Email Address</font></label>
<input type="text" name="EmailAddress" value="" id="EmailAddress" /><br />

<!-- ########## First Name ########## -->
<label for="FirstName"><font color="blue">First Name</font></label>
<input type="text" name="FirstName" value="" id="FirstName" /><br />

<!-- ########## Last Name ########## -->
<label for="LastName"><font color="blue">Last Name</font></label>
<input type="text" name="LastName" value="" id="LastName" /><br />

<!-- ########## Contact Lists ########## -->

<h5><font color="#FF0000">Please select your newsletter.</font></h5>

<input type="checkbox" checked="checked" value="General Interest" name="Lists[]" id="list_General Interest" />
<label for="list_General Interest">General Interest</label><br />

<input type="checkbox" value="ILC (xxx)" name="Lists[]" id="list_ILC (Sunday School)" />
<label for="list_ILC (xxx)">ILC (xxx)</label><br />

<!-- ########## Success / Failure Redirects ########## -->
<input type="hidden" name="SuccessURL" value="http://www.xxx/modules.php?name=kkm_newsletters" />
<input type="hidden" name="FailureURL" value="http://www.xxx/modules.php?name=kkm_no_newsletters" />


<input type="submit" name="signup" id="signup" value="Join KKM Mailing List" />

</form>
';


Save it into your blocks directory following the naming conventions (block-???.php), replace '???' with something more meaningful, then go to to the blocks administration panel and activate it.


Last edited by jestrella on Thu Jan 31, 2013 9:21 am; edited 1 time in total 
jumus







PostPosted: Thu Jan 31, 2013 9:19 am Reply with quote

I do not know what I am doing wrong, but the blocks for information are not showing up for me.
I skipped a step, sorry Smile
 
jestrella







PostPosted: Thu Jan 31, 2013 9:23 am Reply with quote

Didn't get it, what's the issue now?
 
jumus







PostPosted: Thu Jan 31, 2013 10:03 am Reply with quote

As I created the block, it is appearing on the site, however the form does not appear inside the block. The form is outside of the block with the code $content=" on top and '; below.
Now inside the block I created where the form should be in, there is this message:There isn't content right now for this block.
 
jestrella







PostPosted: Thu Jan 31, 2013 10:51 am Reply with quote

Thid you remember to start the file with php tag <?php
 
jumus







PostPosted: Thu Jan 31, 2013 10:55 am Reply with quote

Thank you,
I found the errors and it is working now Smile
 
jestrella







PostPosted: Thu Jan 31, 2013 10:56 am Reply with quote

Wave
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©