Build Your Own Business Website header image

Welcome to our Members Only Forum

You are welcome to view the content on our Forum, just scroll down to view this forum post.
If you like what you find and want to be able to post a question, please check out our subscription options.
Please feel free to search the forum using either the Google Site Search above or the forum search below.

Avatar
Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Custom PHP
Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
1
November 17, 2013 - 3:51 am
sp_Permalink sp_Print

Hi Rick

In order for me to use a Web-Dorado.com form in a widget I have to add "add_filter('widget_text', 'do_shortcode');  to the functions.php file.

I've looked at your video on adding to the custom.php file in the Thesis/Skin folder so as not to lose changes with upgrades, but when I put the code into the custom.php file I got this message on the webpage: /*This file is for skin specific customizations. Be careful not to change your skin's skin.php file as that will be upgraded in the future and your work will be lost. If you are more comfortable with PHP, we recommend using the super powerful Thesis Box system to create elements that you can interact with in the Thesis HTML Editor.*/   ... and the form didn't show correctly in the widget.

I went to the functions.php file in the (first) Thesis folder and when I open that to add the code I get a message from DIYthemes saying //WARNING: Unless you just LOVE problems, DO NOT EDIT THIS FILE!   So I didn't! 

I've never done PHP before. Am I doing something wrong, or do I have to go back to Web-Dorado to get answers (or use another form)?

Thanks in advance for any help you can give me.

Website is 192.185.29.248/~bwdbwh/    It's the form in the right hand column at the bottom (not the one at the top.)

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
2
November 17, 2013 - 6:47 am
sp_Permalink sp_Print

Leonie, you don't need to do that in Thesis 2.1.  Text widgets automatically process shortcodes in 2.1.  So do Thesis text boxes, so you don't need to use a widget, you can choose to use a text box instead.

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
3
December 2, 2013 - 6:09 am
sp_Permalink sp_Print

Hi Rick

I'm using the Thesis Classic Skin on the above website. I can't seem to get this working. In your videos I see a "Sidebar Text Box" which you put into the Sidebar, but I can only see a Text Box.

Am I missing something. Do I have to download a Sidebar Text Box? Is it not available in the Classic Skin?

Can you please put me on the right track.

Thanks

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
4
December 2, 2013 - 8:21 am
sp_Permalink sp_Print

Leonie, you should watch the Beginner's Guide to the Thesis 2.1 Skin Editor seminar.  Your confusion over this suggests that you don't understand how text boxes (and various templates in skins) work.

That's the long and best answer.

The short answer is that the text box will assume whatever name you give it.  Sidebar Text Box is simply the name the skin gave that text box.

But, definitely watch that seminar.

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
5
December 2, 2013 - 5:58 pm
sp_Permalink sp_Print sp_EditHistory

Thanks Rick

I've looked at the videos – thanks for pointing me to those.

I've checked the coding and put the same code on a WordPress page and in the Sidebar Textbox.

You can view it here

On the page the form is showing correctly (with the shortcode), but in the siebar it is not.

Please help!

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
6
December 3, 2013 - 7:56 am
sp_Permalink sp_Print

You're right, it definitely isn't processing the shortcode.  Are you sure you are using Thesis 2.1?

You might try placing a check in the box where it says "Don't add automatic paragraph tags".

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
7
December 3, 2013 - 2:02 pm
sp_Permalink sp_Print

Thanks Rick.

Yes using WordPress 3.7.1, Thesis 2.1.4 and the Thesis Classic Skin. I've posted in the Thesis support forum. I'll let you know if I find a fix.

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
8
December 3, 2013 - 3:44 pm
sp_Permalink sp_Print

Try deactivating all of your plugins - except the one that adds the form - and see what happens.  It could be that one of the other plugins is breaking the filter.

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
9
December 3, 2013 - 4:10 pm
sp_Permalink sp_Print

Unfortunately that didn't work. I tried it with the paragraph tags ticked and unticked.

pbaron from the DIYThesis.com forum answered my post and said "that's a shortcode, which I don't think will work in a Text Box" - I guess he meant a text box in the sidebar, then he went on to say to add "add_filter ('widget_text', 'do_shortcode'); to the skin's custom.php. 

What stops the short code working in the sidebar?

Any other suggestions I can try apart from changing the custom.php?

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
10
December 3, 2013 - 4:14 pm
sp_Permalink sp_Print

Actually, I believe that Phil is mistaken on both counts.

First, text in a text box doesn't go through the the widget_text filter, so that code wouldn't work anyway.

Second, it has worked several times for me - I've demonstrated it repeatedly in video.  There is some chance that a later version has removed that.  I'll give it a quick try.

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
11
December 3, 2013 - 4:19 pm
sp_Permalink sp_Print

It's working just fine.  Here I've created a text box and placed the shortcode in it for my most recent pricing table.  I've inserted this text box within the feature box on the front page.

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
12
December 3, 2013 - 4:23 pm
sp_Permalink sp_Print sp_EditHistory

Oh so what am I doing wrong. My code is working fine on a page, but not in the sidebar, but it is exactly the same code.

If the Text Box: Sidebar Text Box I have

HTML Tag div

HTML id (this is empty)

HTML class (this is empty)

Is this right? 

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
13
December 3, 2013 - 4:26 pm
sp_Permalink sp_Print

Again, try turning off all plugins except the one you need for the form.  If it still doesn't render the form double check your shortcode.

Heck, try using a different text box, maybe that one is broken somehow.

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
14
December 3, 2013 - 4:29 pm
sp_Permalink sp_Print

I just ran a test on the same site using Thesis Classic and it works in the default sidebar text box.

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
15
December 3, 2013 - 4:37 pm
sp_Permalink sp_Print

So in the Text Box: Sidebar Text Box I have

HTML Tag div

HTML id (this is empty)

HTML class (this is empty)

Is this right? 

 

I'll go and try a different short code and see if that makes a difference. 

I appreciate your help with this.

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
16
December 3, 2013 - 4:37 pm
sp_Permalink sp_Print

You might have "curly" quotes instead of regular quotes.  Try using single quotes to wrap your id

Avatar
Leonie Alaimo
Gold Coast, Queensland, Australia
Jedi
Members

Community Member
Forum Posts: 94
Member Since:
April 21, 2012
sp_UserOfflineSmall Offline
17
December 3, 2013 - 5:18 pm
sp_Permalink sp_Print

FYI

I'm using Web-Dorado Form Maker. I can't get it to work in the sidebar, however I've tried a different form and put the shortcode in the sidebar and it has worked.

I guess it maybe something to do with Web-Dorado

Avatar
Rick Anderson
Desert Hot Springs, CA
Admin
Forum Posts: 13637
Member Since:
November 8, 2009
sp_UserOfflineSmall Offline
18
December 4, 2013 - 10:54 am
sp_Permalink sp_Print

There once were a bunch of poorly designed plugins that simulated shortcodes without actually creating them.  Wishlist Member is also an example of that odious behavior.  I routinely forget about that on this site.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 228

Currently Online:
19 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Keith W Jones: 1428

Brian Tozer: 1004

Carolin: 982

Heidi Hafner: 508

John Cunningham: 423

Reece Morrel: 353

Newest Members:

emma62755

sharonmarks

emma80233

Tijs de Jong

Daniel Frey

mutek

Forum Stats:

Groups: 8

Forums: 46

Topics: 6995

Posts: 34796

 

Member Stats:

Guest Posters: 6

Members: 6761

Moderators: 2

Admins: 2

Administrators: Rick Anderson, Rick Anderson

Moderators: Pierre Cote, Laura Nugent