The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

/contact in any widget. Is it possible?

4 posters

Go down

Solved /contact in any widget. Is it possible?

Post by TheCrow Sun 4 May - 11:23

Good Morning. Is there any way i can add the fields displayed in the /contact page in any widget of my forum?
If yes how?

Thank you!


Last edited by Marios94 on Tue 6 May - 10:00; edited 1 time in total
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Pizza Boi Sun 4 May - 19:11

Hi Very Happy

A few sites use it actually. Try getting an embedded code from "UserVoice" since they provide contact pages.

I believe it doesn't run on flash so you shouldn't be too worried about forum loading.

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Sun 4 May - 19:18

I want to use it in a widget code so it appears in a box. I didn't understood what you said! :/
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Pizza Boi Sun 4 May - 19:22

Hi Very Happy

Oui, you can input the embedded code in a widget and style it with CSS Smile . You can check out this site: https://www.uservoice.com/

In there, you can search for contact forms and then you should be provided with an embedded code which then can be input in your widget. Something like:

Code:
<script src="blach blach" /></script>

But if you want, you can input a class for it and then style it in your CSS so that it appears in a widget in your Portal or Homepage Smile .

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Sun 4 May - 19:26

I need the default contact. It's no need to add anything else. Is there a way to add the default contact field?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Pizza Boi Sun 4 May - 19:29

Hi Very Happy

I don't think it's possible unless you do it manually via table in a widget. Is the contact widget's contents supposedly filled with the people authorized or do you want it in general?

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Sun 4 May - 19:32

The only thing i want is for those that are members, to be able to see one box, write what they want and when they send it to come to my inbox (to all admin)
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Pizza Boi Sun 4 May - 19:36

Hi Very Happy

Hmm... the best I can suggest is working around this:

Code:
http://help.forumotion.com/t130751p30-html-page-with-a-button-to-post-a-new-thread

You can input the codes in a widget, and change the redirection page of the URL to the /contact page to be for sending PMS to the admin.

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 11:47

Hello Pizza Boi.
The thread you gave me its very complicated. I tried to find a way out of there with the latest codes but nothing worked. If you know and you have time to help me can you give me the codes for a default form?
What i want?
i only want a small box that users can write what they want and a send button. Thats all.
i don't want so complicated form because guests won't be able to see the page that will have the form.

Thanks for your time and your effort.

Best regards and wishes,
Marios94.

Edit: I found this tutorial that adds a text field with a simple Name and the button shows a message. I want the exact same thing but the button to send the admins pm.
http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_dom_val_get

Edit2: This is what and how exactly i would like it to be.
/contact in any widget. Is it possible? Hcmnvp1
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Pizza Boi Mon 5 May - 17:02

Hi Very Happy

This is generally what I can come up with the link you just gave me:

Code:
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
</script>
<script>
$(document).ready(function(){
  $("button").click(function(){
    alert("Value: " + $("#test").val());
  });
});
</script>
</head>

<body>
<p>Name: <input type="text" id="test" style="padding:30px; width:500px;height:300px;" value="Your feedback here"></p>
<a href="LINK to the page you want sent"><button>Click to open the email option</button></a>
</body>
</html>

To put it simply, you'll just be redirected to the contact page. I'm still not entirely sure how you do this right now.

Regards,
Pizza Boi
Pizza Boi
Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 21:04

Alright this makes it very complicated.

SOLVED and i will make a new thread asking it very simple.


Last edited by Marios94 on Mon 5 May - 21:40; edited 1 time in total
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 21:22

Hello,

I have an easier solution Wink

Create a new widget and paste this code:
Code:
<div id="contactform"></div>

then, create a javascript code with this content (in all pages)
Code:
jQuery("contactform").load("/contact .report.frm-form");



Basically, this code will load the content of the contact page (only the part of the form) in the widget, inside of the div you created Wink

Let me know if it works :rose:
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 21:39

This is what exactly i want but unfortunately it did not work. Sorry! :/
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 21:50

ops, my mistake

the javascript code is:
Code:
jQuery("#contactform").load("/contact .report.frm-form");
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 21:55

Still nothing changes my friend! Sorry! :/
If you are able to create something more easy its fine with me. I only need a box that users can write in it and a submit button. Thats all. And if that button, takes the content in a specific post thats ok also.

Thanks for your time and your effort anyway!
Regards,
Marios94.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 22:00

that's the easier way Wink

try this one, this should work

Code:
$(document).ready(function() {
    jQuery("#contactform").load("/contact .report.frm-form");
});
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 22:02

Mostly i would like the easier way because it will be easier for member too.

Anyway, the code you gave me did this:
/contact in any widget. Is it possible? WioBIFm
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 22:04

That's because now you need to stylise them Wink

if you give a live demo with the codes installed I can provide you the exact CSS codes to fix it
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 22:05

Do you know the easier way to do this. The way i told you before? Just to check it if it works..
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 22:09

oh, so you need a textarea and a button to open a real new topic?
exactly?

you want to open a new topic in a certain forum?
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 22:11

Yes exactly that!!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 22:31

here you are the html code Wink

Code:
<form enctype="multipart/form-data" onsubmit="return vB_Editor['text_editor'].prepare_submit(0,0)" name="post" method="post" action="/posting.forum">
    <textarea onselect="storeCaret(this)" tabindex="3" name="message" onkeyup="storeCaret(this)" cols="19" rows="13" onclick="storeCaret(this)">Content</textarea> <br><b>Title of the topic:</b><br>
<input style="width: 100%;" class="posting-subject" onkeypress="if (event.keyCode==13){return false}" maxlength="100" value="" name="subject" type="text">
 <input value="0" name="lt" type="hidden"><input value="newtopic" name="mode" type="hidden">
 <input name="f" type="hidden" value="FORUMID" <br><input accesskey="s" tabindex="6" value="Send" name="post" type="submit"><br>
</form>

you just have to chane FORUMID with the id of the fourm you want to post this content in
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 22:54

Sorry for deleting the last post.
I am having a problem..
i have this now
/contact in any widget. Is it possible? MwLqgvj
i want the text area bigger and the title field small as the text area is now!

I want text area around 500px and title around 100px.
And how do i move these up? I posted the code in the widget and it appeared it at the bottom of the widget. :/
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 22:58

If I can see it live, it would be better Wink
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 23:02

i sent you a pm how to see it live! Smile
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Niko Mon 5 May - 23:07

Actually the widget is shown at the bottom because you have added there Wink

you have to add it in the left column for example (have a look in FAQs, or made a search to see how to manage portals)
Niko
Niko
Helper
Helper

Male Posts : 3100
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by TheCrow Mon 5 May - 23:10

My friend, i added it in the rest of it and not at the bottom. I added it in the middle of the code for the main widget there and it appeared there.. :/

SOLVED!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: /contact in any widget. Is it possible?

Post by Jophy Tue 6 May - 10:47

Solved
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum