|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
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 |
|
|
|
|
|
#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.
__________________
|
|
|
|
|
|
#3 (permalink) |
|
Staff of Surpass
Super #1
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 |
|
|
|
|
|
#5 (permalink) |
|
Staff of Surpass
Super #1
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
|
|
|
|
|
|
#6 (permalink) |
|
01101100
Super #1
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 |
|
|
|
|
|
#7 (permalink) | |
|
Registered User
Seasoned Poster
Joined in Jan 2007
Lives in Brunswick, ME
Hosted on sh112
99 posts
Gave thanks: 13
Thanked 1 Time in 1 Post
|
Quote:
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 |
|
|
|
|
|
|
#8 (permalink) |
|
01101100
Super #1
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 |
|
|
|
|
|
#9 (permalink) |
|
01101100
Super #1
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 |
|
|
|