XSitePro Website Design Software Message Board

The online forum dedicated to XSitePro users. Get help with website design in general and using this popular and incredibly powerful website software
It is currently Fri May 24, 2013 6:39 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: Fri Jun 03, 2011 7:54 am 
Offline

Joined: Tue Dec 28, 2010 2:28 pm
Posts: 4
Recently on the 1st of June, Google introduces the Google +1 and make it available to webmaster:

http://www.google.com/webmasters/+1/button/index.html

My question is when I tried to add it into my Xsitepro site, the code is not recognize and nothing appears. Please anyone who had successfully implement the +1 on their xsitepro advises on how to go about it.

Thanks

James


Top
 Profile  
 
PostPosted: Fri Jun 03, 2011 12:17 pm 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
You have to publish your site before it will show up.

Add this code to Others > Global Scripts > Immediately before the closing </BODY> tag:
Code:
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>


Add this code to the Source view wherever you want your Google +1 image to appear:
Code:
<!-- Place this tag where you want the +1 button to render --><g:plusone></g:plusone>


You won't see anything in XSitePro (blank space in Design view), plus part of the code will disappear in XSP (<g:plusone></g:plusone>), so Publish your site and then take a look online.

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Top
 Profile  
 
PostPosted: Fri Jun 03, 2011 10:05 pm 
Offline

Joined: Sat Feb 03, 2007 2:29 am
Posts: 571
Location: New Zealand
ablewebs wrote:
You have to publish your site before it will show up.

Add this code to Others > Global Scripts > Immediately before the closing </BODY> tag:
Code:
<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>


Add this code to the Source view wherever you want your Google +1 image to appear:
Code:
<!-- Place this tag where you want the +1 button to render --><g:plusone></g:plusone>


You won't see anything in XSitePro (blank space in Design view), plus part of the code will disappear in XSP (<g:plusone></g:plusone>), so Publish your site and then take a look online.


Hey ablewebs

I did both of the above. The (<g:plusone></g:plusone>) disappears as you say, I publish but the button does not appear on the live site.

_________________
Wholesale Electronics
Christian Books,Music and Articles
_________________
SmartMedia - Games - Prizes - Education - Social Networking - Opportunity for You
Join for Free - it is Easy!
Its Your Turn To Get Paid
Read Online Magazine


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 6:58 am 
Offline
User avatar

Joined: Fri Jun 13, 2008 12:54 pm
Posts: 2996
Location: South Bend, IN USA
Hi,

Code:
<g:plusone></g:plusone>


I'm not familiar with plus one code, but can you try placing text between the these <g> tags and see if it shows up?

You also might need to change DOCTYPE to XML, like this:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


Global Scripts->Before anything else in file.

_________________
-Brett...

Image

Image

XSitePro Templates - $297 | XSitePro Membership Sites, XSitePro Shopping Carts, XSitePro Scripts Integration


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 7:53 am 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
That code disappears in XSP whether I wrap it in <div> tags or add text between the <g:plusone> tags. So, I suggest you add it to a panel that you don't change very often, like the Header Panel or the Right or Left Panel. However, it does show up online the first time I publish after adding the code. Just don't go back into that panel after adding the code. Usually, wrapping code in <div> tags will stop XSP from messing with it, but not this time.

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 10:16 am 
Offline

Joined: Tue Dec 28, 2010 2:28 pm
Posts: 4
That is a temporary solution. Me and my team updates numerous sites frequently and therefore we really need to look for a long term solution.

I would like to ask if the technical team who does xsitepro updates if they will add it into the social settings like the facebook and twitter. It will be more convenient if they can do it.

Google already mention that the +1 will be use as a factor in ranking so we definitely hope there will be a permanent solution.

So is there anyone who has tested out the +1 button to go around the problem?

Thanks

James


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 2:10 pm 
Offline
User avatar

Joined: Fri Jun 13, 2008 12:54 pm
Posts: 2996
Location: South Bend, IN USA
James,

Quote:
That is a temporary solution. Me and my team updates numerous sites frequently and therefore we really need to look for a long term solution.


That's the way it is done, as Andrea stated. That's not a temporary solution. That is what you have to do to work with source code level scripts in XSitePro, as the WYSIWYG editor will mess with the code. It's hoped that some future version this will be fixed, but it's been asked for, for years, so we're still hoping that it may come, maybe in version 3.0?

_________________
-Brett...

Image

Image

XSitePro Templates - $297 | XSitePro Membership Sites, XSitePro Shopping Carts, XSitePro Scripts Integration


Top
 Profile  
 
PostPosted: Sat Jun 04, 2011 4:15 pm 
Offline
User avatar

Joined: Fri Jun 13, 2008 12:54 pm
Posts: 2996
Location: South Bend, IN USA
Hi,

Ok, I just tested and I see what you are saying now. It is a bug that has to be fixed in XSitePro, but I can get it to render. I had to wrap it in correct DIVs, and force it to an explicit render (from Google) as well as do all the tricks I did with Facebook, here's how I placed it on my page (note it's placed inside of a table cell also):
Code:
            <td style="BORDER-BOTTOM-COLOR: ; BORDER-TOP-COLOR: ; BORDER-RIGHT-COLOR: ; BORDER-LEFT-COLOR:"
                valign="top"
                align="center">
                <div style=
                "BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 52px; HEIGHT: 60px; COLOR: red; BORDER-TOP: medium none; BORDER-RIGHT: medium none"
                     id="GooglePlusOne"
                     contenteditable="false"
                     align="left"
                     overflow="hidden"
                     marginwidth="0"
                     name="GooglePlusOne"
                     allowtransparency=""
                     width="52"
                     frameborder="0"
                     marginheight="0"
                     height="60">
                    <nodesigner><div id="content"><g:plusone></g:plusone></div><script type="text/javascript">gapi.plusone.go("content");</script></div></nodesigner>
            </td>



The better fix is for Intellimon to add a Google Plus One widget, as they did for Facebook Like.

_________________
-Brett...

Image

Image

XSitePro Templates - $297 | XSitePro Membership Sites, XSitePro Shopping Carts, XSitePro Scripts Integration


Last edited by Brett2000 on Sun Jul 17, 2011 4:37 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Jun 05, 2011 8:36 am 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
Hi, Brett,

I tried your workaround exactly (in the Right Panel). I also added the rest of the table code, as follows:
Code:
<table border="0">
        <tbody>
            <tr>
                <td valign="top"
                    align="center">
                    <div style=
                    "BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 52px; HEIGHT: 60px; COLOR: red; BORDER-TOP: medium none; BORDER-RIGHT: medium none"
                         id="GooglePlusOne"
                         contenteditable="false"
                         align="left"
                         height="60"
                         marginheight="0"
                         frameborder="0"
                         width="52"
                         allowtransparency=""
                         name="GooglePlusOne"
                         marginwidth="0"
                         overflow="hidden">
                        <div id="content"><g:plusone></g:plusone></div><script type="text/javascript">gapi.plusone.go("content");</script>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
I then closed the Right Panel, saved my template and re-opened the Right Panel. It still didn't retain the Google plusone code. When I went back into my Right Panel, it looked like this:
Code:
<table border="0">
        <tbody>
            <tr>
                <td valign="top"
                    align="center">
                    <div style=
                    "BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; WIDTH: 52px; HEIGHT: 60px; COLOR: red; BORDER-TOP: medium none; BORDER-RIGHT: medium none"
                         id="GooglePlusOne"
                         contenteditable="false"
                         align="left"
                         height="60"
                         marginheight="0"
                         frameborder="0"
                         width="52"
                         allowtransparency=""
                         name="GooglePlusOne"
                         marginwidth="0"
                         overflow="hidden">
                        <div id="content"></div><script type="text/javascript">gapi.plusone.go("content");</script>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Top
 Profile  
 
PostPosted: Sun Jun 05, 2011 10:20 am 
Offline
User avatar

Joined: Fri Jun 13, 2008 12:54 pm
Posts: 2996
Location: South Bend, IN USA
Andrea,

Quote:
I then closed the Right Panel, saved my template and re-opened the Right Panel. It still didn't retain the Google plusone code. When I went back into my Right Panel, it looked like this:


I can get it to work just fine in the InfoBar. I know because I tried one specific page (tested it and saw Google Plus One), then I changed something on the page and re-published, refreshed the page and (still saw Google Plus One).

I just re-checked it. It seems that this bit of code is staying in my Info Bar, even after I open/edit and re-save, so you need to make sure that happens. How will you know? Because when you Save the website in XSitePro you will see 2 errors flash on the screen, and then it finishes the save, so it works (even though XSitePro thinks it is incorrect code), here's the way it needs to look, make sure this is in between the <div id="content">
Code:
<div id="content"><g:plusone></g:plusone></div>


Also make sure you have wrapped the code in <nodesigner> tags, like this:
Code:
<nodesigner><div id="content"><g:plusone></g:plusone></div><script type="text/javascript">gapi.plusone.go("content");</script></div></nodesigner>


It works and shows Google Plus One. The only problem I have is that I cannot get Google Plus One to show on the home page, any ideas? Every other page on the site (over 100) shows Google Plus One.

Every time I save (the website), I get two errors from XSitePro, apparently related to the source code used by Google. If I tried dropping it into a PHP file I had problems so I stuck with pasting it in direct as I have shown... See if you get the Errors, do you see them on a save? If you do not see the errors then you know that XSitePro has removed that plusone tags on you, and it will not work.

Anyway, Google Plus One still shows on all of my internal pages, I cannot get it to show on the homepage however. Intellimon needs to go further with this and provide us a solution inside of XSitePro, similar to how they did the Facebook Like button (with options).

_________________
-Brett...

Image

Image

XSitePro Templates - $297 | XSitePro Membership Sites, XSitePro Shopping Carts, XSitePro Scripts Integration


Last edited by Brett2000 on Sun Jul 17, 2011 4:38 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Jun 05, 2011 11:11 am 
Offline
User avatar

Joined: Fri Feb 24, 2006 1:53 pm
Posts: 3448
Location: Vancouver, BC, Canada
Hi, Brett,

Perhaps it's something to do with the Right Panel. I have used your EXACT code as I show in my earlier post, plus I added the Doctype that you posted, also. It all stays the same, except that this crucial bit disappears: <g:plusone></g:plusone>.

_________________
Andrea Wilson

1. Custom XSitePro Templates. XSitePro Consulting and Training. FREE TIPS!

2. Off-the-Shelf XSitePro Templates! Versatile designs. Easy to manage and maintain!

3. AllWebMenus Pro and XSitePro Work Perfectly Together! NEW!

Image


Top
 Profile  
 
PostPosted: Sun Jun 05, 2011 12:12 pm 
Offline
User avatar

Joined: Fri Jun 13, 2008 12:54 pm
Posts: 2996
Location: South Bend, IN USA
Andrea,

Quote:
It all stays the same, except that this crucial bit disappears: <g:plusone></g:plusone>.


I suspect it is something to do with how XSitePro is saving your website. I had it do that too a few times, I'm not sure what I changed, if anything, but it did start saving it every time - as I said though, I see 2 error boxes popup, and then disappear (I cannot even read them) every time I save the website!

Maybe a support ticket and ask them why it will not save yours with the same code in the right panel?
http://xsitepro.helpserve.com/

_________________
-Brett...

Image

Image

XSitePro Templates - $297 | XSitePro Membership Sites, XSitePro Shopping Carts, XSitePro Scripts Integration


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 7:04 pm 
Offline

Joined: Sat Feb 03, 2007 2:29 am
Posts: 571
Location: New Zealand
ablewebs wrote:
Hi, Brett,

Perhaps it's something to do with the Right Panel. I have used your EXACT code as I show in my earlier post, plus I added the Doctype that you posted, also. It all stays the same, except that this crucial bit disappears: <g:plusone></g:plusone>.


Without using Brett fix I put the above code in the left panel and it shows up only in Firefox not in IE so not sure why IE does not like the code. I have used nothing else other than the code supplied by Google. :roll:

_________________
Wholesale Electronics
Christian Books,Music and Articles
_________________
SmartMedia - Games - Prizes - Education - Social Networking - Opportunity for You
Join for Free - it is Easy!
Its Your Turn To Get Paid
Read Online Magazine


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 8:27 pm 
Offline
User avatar

Joined: Fri Jun 13, 2008 12:54 pm
Posts: 2996
Location: South Bend, IN USA
Hi,

Quote:
Without using Brett fix I put the above code in the left panel and it shows up only in Firefox not in IE so not sure why IE does not like the code. I have used nothing else other than the code supplied by Google.


Are you looking at the internal pages at your site? I can get it to show up on every browser, however only for internal pages. The homepage never shows the Google Plus One code, on any of the browsers.

I suggest you follow my instructions above, also take note and make sure that you see the 'error messages' flash on your screen twice when you save the website. If you do not see those error messages I don't believe Google Plus One will be showing up for you, or there will be problems. That's what we have to live with until Intellimon sticks in the proper code into a widget like they did with Facebook Like.

_________________
-Brett...

Image

Image

XSitePro Templates - $297 | XSitePro Membership Sites, XSitePro Shopping Carts, XSitePro Scripts Integration


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 9:20 pm 
Offline

Joined: Sat Feb 03, 2007 2:29 am
Posts: 571
Location: New Zealand
Brett2000 wrote:
Hi,

Quote:
Without using Brett fix I put the above code in the left panel and it shows up only in Firefox not in IE so not sure why IE does not like the code. I have used nothing else other than the code supplied by Google.


Are you looking at the internal pages at your site? I can get it to show up on every browser, however only for internal pages. The homepage never shows the Google Plus One code, on any of the browsers.

I suggest you follow my instructions above, also take note and make sure that you see the 'error messages' flash on your screen twice when you save the website. If you do not see those error messages I don't believe Google Plus One will be showing up for you, or there will be problems. That's what we have to live with until Intellimon sticks in the proper code into a widget like they did with Facebook Like.


Brett - in FF it shows up on the homepage and every page on the site. Going through the pages the only difference I see with the counter is if anyone has given the page a ranking. See the homepage has "1" . Any other page the counter is at "0"

_________________
Wholesale Electronics
Christian Books,Music and Articles
_________________
SmartMedia - Games - Prizes - Education - Social Networking - Opportunity for You
Join for Free - it is Easy!
Its Your Turn To Get Paid
Read Online Magazine


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 70 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group