[SOLVED] Creating a...
 
Notifications
Clear all

[SOLVED] Creating addition forms

15 Posts
3 Users
0 Reactions
1,868 Views
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

URL to your eFiction: http://www.inthemoonlightfiction.com
Version of eFiction: 3.3.1
Have you bridged eFiction, if so with what?: no
Version of PHP: 5.2.4
Version of MySQL: 5.0.27-standard
Have you searched for your problem: yes I looked through all 22 pages of the general support forums
If so, what terms did you try: I didn't actually use the search function
State the nature of your problem:

It's not so much a problem as a 'how-to'.  I'd like to create an additional form that can be used by members to report plagiarized stories.  It'd look like the contact form but I'm not sure exactly how to go about doing it.  I'm pretty sure I can figure out how to add it once the form is all put together.  Any help would be greatly appreciated.

-Rah


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 1:31 pm
(@babaca)
Posts: 722
Member Moderator
 

On stories already there is a "Report This" link (next to Table of contents at the top of the screen). That would take you to the Contact page of the admin. There is a pulldown with the choices Violation of Rules, Bug Report, or Missing Information. They could explain the plagiarizing parts in the body of the message. Now if you wanted to add a "Plagiarism" as a pull down choice I must confess I don't know where THAT is, but I'm sure someone here knows.

Since you don't have any stories in your site yet, just click on a random story at my site (fics.babaca.org) and you can see it in action.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 23/10/2007 1:47 pm
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

Thank you for such a quick response.  I hadn't realized what that was (having never had reason to use it).  It could serve as the tool I'm looking for.  I was hoping that perhaps I might be able to add additional fields if Violation of Rules was slected.  Specifically I'd like to add the fields: Author, Story Title, Link to story and then use the comments field as the body (you know what exactly was plagiarized).  If that is posssilbe (i'm sure it is somehow) I'd love to know.


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 1:56 pm
(@jacynthe)
Posts: 242
Estimable Member
 

To add Plagiarism field in dropdown

In contact.php, look for this


$output .= "<form method="POST" enctype="multipart/form-data" style="width: 400px; margin: 0 auto;" action="contact.php">
               <table width="400" border="0" cellspacing="2" cellpadding="1">
                <tr>
                 <td width="22%"><label for="email">"._YOUREMAIL.":</label></td><td><INPUT type="text" class="textbox" name="email"></td></tr>";
if(!$action) $output .= "<tr><td width="22%"><label for="subject">"._SUBJECT.":</label></td><td><INPUT  type="text" class="textbox" name="subject"></td></tr>";
else if($action == "report") $output .= "<tr><td width="22%"><label for="subject">"._REPORT.":</label></td><td><select class="textbox" name="subject">
<option>"._RULESVIOLATION."</option>
<option>"._BUGREPORT."</option>
<option>"._MISSING."</option>
</select>

replace with


$output .= "<form method="POST" enctype="multipart/form-data" style="width: 400px; margin: 0 auto;" action="contact.php">
               <table width="400" border="0" cellspacing="2" cellpadding="1">
                <tr>
                 <td width="22%"><label for="email">"._YOUREMAIL.":</label></td><td><INPUT type="text" class="textbox" name="email"></td></tr>";
if(!$action) $output .= "<tr><td width="22%"><label for="subject">"._SUBJECT.":</label></td><td><INPUT  type="text" class="textbox" name="subject"></td></tr>";
else if($action == "report") $output .= "<tr><td width="22%"><label for="subject">"._REPORT.":</label></td><td><select class="textbox" name="subject">
<option>"._RULESVIOLATION."</option>
                                                               <option>"._PLAGIARISM."</option>
<option>"._BUGREPORT."</option>
<option>"._MISSING."</option>
</select>

Open languages/en.php

Look for


// Report Types

add under it


define ("_PLAGIARISM", "Plagiarism");

Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/10/2007 1:59 pm
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

Thanks so much Jacynthe.  I sort of figured that would be how to do that part.  Would you happen to know how to make the additional feilds (author, story title, story link) add to the form if Plagiarism was selected?


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 2:05 pm
(@jacynthe)
Posts: 242
Estimable Member
 

I'm currently at work so I cannot work on that right now but if no one has posted it when I come back home from work, I'll put the instructions up for you. πŸ™‚


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/10/2007 2:06 pm
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

Not a problem.  I'm at work right now as well (so I don't have access to the files or my ftp server).  It's no rush.


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 2:08 pm
(@babaca)
Posts: 722
Member Moderator
 

When you click the Report it link it associates it with the story in question by the chapter id. Does one really need to add all the rest? Wouldn't the person reporting just say that "This story is a plagairism of Joe Blow's story that can be found here [url]"? When you receive the email it gives you a link to the story being reported  (I think. I can't test that now because my webhost is upgrading my mail service so it's down at the moment) and you would have the rest of the information from what the poster left in the message.


******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3

 
Posted : 23/10/2007 2:19 pm
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

Oh Ok.  I guess that works.  I just need to change the code then.  Thanks.


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 3:46 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Actually, the report this reports the url of the chapter (since there doesn't seem to be a report this at the story level). So the modif could be for the url to the whole story to be included in the report.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/10/2007 4:11 pm
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

uh if you look at the report this link for a story when its shown in an author page it uses the story id number.


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 4:33 pm
(@jacynthe)
Posts: 242
Estimable Member
 

I don't see a report this link in author page or story index.... anyways am having a shitty day so maybe I'm just not caring enough to see it.


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 23/10/2007 9:50 pm
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

Don't worry about it hon.  I got it figured out.  Now i just have a million OTHER problems...off to keep searching the forums to make sure I don't miss something.


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 23/10/2007 10:50 pm
(@jacynthe)
Posts: 242
Estimable Member
 

Glad you got it figured out. πŸ™‚ And I sure get the million other things to figure out. It gets addictive after a while. LOL


Jacynthe

Archives: http://fanfics.e-authors.net
Version: 3.5.3
Modified? Somewhat...
PHP:  5.3.3
MySQL: 5.0.91-community

 
Posted : 24/10/2007 9:51 am
(@inthemoonlight)
Posts: 76
Trusted Member
Topic starter
 

I wouldn't say addictive...frustrating...definitely!


My Site: In The Moonlight
eFiction: v3.4.3
PHP: 5.2.4
MySQL: 5.0.27-standard
Mods: Challenges, Submit Time and Word Count

 
Posted : 24/10/2007 4:13 pm
Share: