icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Choosing Surpass » Signed Up? » Gallery2 Issues

Signed Up? If you're new with a question, ask here!

Reply
 
LinkBack Thread Tools Search this Thread
Old April 15th, 2007, 9:57 PM   #1 (permalink)
Registered User
Seasoned Poster
 
mattmill's Avatar
 
Joined in Jan 2007
Lives in Brunswick, ME
Hosted on sh112
99 posts
Gave thanks: 13
Thanked 1 Time in 1 Post
Gallery2 Issues

I am having trouble uploading with g2. All was fine for a while and tonight I am having trouble. I can upload and the files are in the directory (they show with ftp) but gallery2 doesn't see them.

The gallery in question is http://photos.mainemillers.com/gallery2/v/misc/lenox/

I also notice the server loads are running 5+ tonight could that be the issue?

One last thing. I was invited to beta test reinvigorate stats program but cannot figure out how to incorporate the javascript. If anyone is using it that would be a great help.

thanks,
matt
__________________
Life in Maine with fur and feathers
http://blog.mainemillers.com

SH112
mattmill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 16th, 2007, 4:29 AM   #2 (permalink)
Surpass Fan
Comfy Contributor
 
Joined in Dec 2004
224 posts
Gave thanks: 6
Thanked 19 times
I don't know much about gallery2, but a server load around 5 isn't much to worry about, and shouldn't be causing the gallery's problems.
__________________
SH106 - out-burst.org
lonelydreamer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 10:47 AM   #3 (permalink)
Dan
Staff of Surpass
Super #1
 
Dan's Avatar
 
Joined in Apr 2007
2,744 posts
Gave thanks: 152
Thanked 184 times
Installation

Installing Reinvigorate on your site is simple, you simply include a few lines of Javascript (such as <script type="text/javascript" src="http://include.reinvigorate.net/re_.js"></script>) in your site’s body tag (for most sites, this is an easy cut-and-paste operation of the footer template).

From: MacInTalk
Dan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 11:05 AM   #4 (permalink)
Registered User
Seasoned Poster
 
mattmill's Avatar
 
Joined in Jan 2007
Lives in Brunswick, ME
Hosted on sh112
99 posts
Gave thanks: 13
Thanked 1 Time in 1 Post
Dan, I got it to work on html sites but cannot find where to insert it in Gallery2 which is php not html.

matt
__________________
Life in Maine with fur and feathers
http://blog.mainemillers.com

SH112
mattmill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 11:22 AM   #5 (permalink)
Dan
Staff of Surpass
Super #1
 
Dan's Avatar
 
Joined in Apr 2007
2,744 posts
Gave thanks: 152
Thanked 184 times
which theme are you using? it looks like you can go to /themes/your theme/templates/theme.tpl and there's a set of body tags in there where you should be able to add your script
Dan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 11:26 AM   #6 (permalink)
01101100
Super #1
 
markscns's Avatar
 
Joined in Jan 2006
Lives in West Michigan
Hosted on SH92
1,613 posts
Gave thanks: 49
Thanked 114 times
It should be similar to adding Google Adsense to Gallery.
http://gallery.menalto.com/node/55062

Remember you can put any html that you want inside a php file generally without any troubles.

Gallery is similar to forum software in that it uses a template system. Any changes to the look of the page has to be done in the template file.
__________________
twinlakeweather.us SH92
markscns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 1:16 PM   #7 (permalink)
Registered User
Seasoned Poster
 
mattmill's Avatar
 
Joined in Jan 2007
Lives in Brunswick, ME
Hosted on sh112
99 posts
Gave thanks: 13
Thanked 1 Time in 1 Post
Quote:
Originally Posted by markscns View Post
It should be similar to adding Google Adsense to Gallery.
http://gallery.menalto.com/node/55062

Remember you can put any html that you want inside a php file generally without any troubles.

Gallery is similar to forum software in that it uses a template system. Any changes to the look of the page has to be done in the template file.
The instructions say:
Cut and paste the code below onto any page you want tracked. We recommend placing this code anywhere between the opening and closing <body> tags.

Would I need to add the <body> tags to the file main.php?

matt
__________________
Life in Maine with fur and feathers
http://blog.mainemillers.com

SH112
mattmill is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 1:37 PM   #8 (permalink)
01101100
Super #1
 
markscns's Avatar
 
Joined in Jan 2006
Lives in West Michigan
Hosted on SH92
1,613 posts
Gave thanks: 49
Thanked 114 times
Nope, you need to add it to all the template files, as the link shows that I posted it above. Not the main.php page.
__________________
twinlakeweather.us SH92
markscns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 24th, 2007, 1:41 PM   #9 (permalink)
01101100
Super #1
 
markscns's Avatar
 
Joined in Jan 2006
Lives in West Michigan
Hosted on SH92
1,613 posts
Gave thanks: 49
Thanked 114 times
Found a better way:

http://codex.gallery2.org/Gallery2:H...o_my_Gallery_2

1. Copy /gallery2/themes/matrix/templates/theme.tpl into a new directory under templates/ called local.

The new copy should now reside in /gallery2/themes/matrix/templates/local/theme.tpl

This makes Gallery 2 use the copy in templates/local/ instead of the default one in templates/ and doing this ensures that any changes you have made will survive an update (either via a new Gallery 2 release or a cvs update).

2. Open /gallery2/themes/matrix/templates/local/theme.tpl and find the following:


{* Put any debugging output here, if debugging is enabled *}
{g->debug}
</body>
</html>

3. Insert the Google Analytics javascript right above the </body> tag like this:

{* Put any debugging output here, if debugging is enabled *}
{g->debug}
{* Google Analytics Code *}
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxx-x";
urchinTracker();
</script>
</body>
</html>
__________________
twinlakeweather.us SH92
markscns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On