The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

/contact in any widget. Is it possible?

View previous topic View next topic Go down

Solved /contact in any widget. Is it possible?

Post by Luffy on May 4th 2014, 10:23 am

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 May 6th 2014, 9:00 am; edited 1 time in total

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Pizza Boi on May 4th 2014, 6:11 pm

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
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

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

Post by Luffy on May 4th 2014, 6:18 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Pizza Boi on May 4th 2014, 6:22 pm

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
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

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

Post by Luffy on May 4th 2014, 6:26 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Pizza Boi on May 4th 2014, 6:29 pm

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
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

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

Post by Luffy on May 4th 2014, 6:32 pm

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)






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Pizza Boi on May 4th 2014, 6:36 pm

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
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

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

Post by Luffy on May 5th 2014, 10:47 am

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.

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Pizza Boi on May 5th 2014, 4:02 pm

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
Hyperactive

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

http://redlustempire.forumtl.com/

Back to top Go down

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

Post by Luffy on May 5th 2014, 8:04 pm

Alright this makes it very complicated.

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


Last edited by Marios94 on May 5th 2014, 8:40 pm; edited 1 time in total

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 8:22 pm

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
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 8:39 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 8:50 pm

ops, my mistake

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

Niko
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 8:55 pm

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.






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 9:00 pm

that's the easier way Wink

try this one, this should work

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

Niko
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 9:02 pm

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

Anyway, the code you gave me did this:






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 9:04 pm

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
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 9:05 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 9:09 pm

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
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 9:11 pm

Yes exactly that!!






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 9:31 pm

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
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 9:54 pm

Sorry for deleting the last post.
I am having a problem..
i have this now

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. :/






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 9:58 pm

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

Niko
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 10:02 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Niko on May 5th 2014, 10:07 pm

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
Hyperactive

Male Posts : 2163
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

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

Post by Luffy on May 5th 2014, 10:10 pm

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!

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

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

Post by Jophy on May 6th 2014, 9:47 am

Solved

Jophy
ForumGuru

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

Back to top Go down

View previous topic View next topic Back to top


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