Cant get Html block to work

andymedia

Joined: 2009-01-02
Posts: 88
Posted: Tue, 2012-10-23 20:06

HI

i want to set up some pages eg about us, booking information etc so i thought about using the html block but i not sur if this is the best idea?

i was wondering how do i get the html block to work. i already install the html block and set up some pages but i cant seem to get them to work.

When i put the address in the toolbar it comes up with the following

Forbidden

You don't have permission to access /gallery2/g2data/plugins_data/modules/htmlblock/Terms_and_Conditions on this server.
Apache/2 Server at www.crayfordmedia.com Port 80

i was wondering how do get access and if i want to formate the text can i used normally html code? will it keep the same formate as the rest of the web site. Also is the best method?

Gallery URL = http://www.crayfordmedia.com/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.17 cgi-fcgi
Webserver = Apache/2
Database = mysqlt 5.1.57-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd
Acceleration = full/21600, full/21600
Operating system = Linux web246.extendcp.co.uk 2.6.32-220.13.1.el6.x86_64 #1 SMP Thu Mar 29 11:46:40 EDT 2012 x86_64
Default theme = carbon
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows NT 6.0; rv:16.0) Gecko/20100101 Firefox/16.0
Rows in GalleryAccessMap table = 202
Rows in GalleryAccessSubscriberMap table = 94827
Rows in GalleryUser table = 109
Rows in GalleryItem table = 94693
Rows in GalleryAlbumItem table = 410
Rows in GalleryCacheMap table = 3090

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2012-10-23 20:23

your site seems to think gallery is at http://www.crayfordmedia.com/gallery2/main.php and http://www.crayfordmedia.com/main.php

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Tue, 2012-10-23 20:56

i had a bit of code so when you type http://www.crayfordmedia.com it open gallery and display the gallery as http:///www.crayfordmedia.com/main.php but the folder that gallery2 is install is http://www.crayfordmedia.com/gallery2/main.php

so what do i need to do to make it work?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2012-10-23 21:05

make sure /gallery2/g2data/plugins_data/modules/htmlblock/ is readable/writable by the webserver user try 777

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Tue, 2012-10-23 21:20

how do i do that?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2012-10-23 22:09

either in a ssh shell: chmod -R 0777 /home/sites/crayfordmedia.com/public_html/gallery2/g2data/plugins_data/modules/htmlblock
or by your ftp client
FAQ: How can I fix the filesystem permissions of the Gallery storage folder?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Thu, 2012-10-25 18:46

HI i was wondering how can i reinstall the html block as when i check plugin it not coming up any more

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-10-25 18:50
 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Thu, 2012-10-25 19:18

is the same as htmlblock as i for the files and i put them in the module folder but gallery cant pick it up. how can add this pulgin

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-10-25 19:33

Upload the contents the unzipped html module to your gallery2/modules/html
install via admin -> plugins -> display -> html
Edit the templates in modules/html/templates/HtmlPage.tpl , HtmlPage2.tpl, HtmlPage3.tpl add your desired html

Edit your root album -> theme tab -> blocks to show -> add the html block

I just tried and it works fine.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Thu, 2012-10-25 20:35

what you mean by desired html?
what you mean by edit my root album?
how can i keep the same style as my page?
can i add as many pages as i like and what the best to link them from the main site?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-10-25 21:43
Quote:
what you mean by desired html?

Those templates are just shells, you need to supply the content.

Quote:
what you mean by edit my root album?

head to http://www.crayfordmedia.com/gallery2/main.php and click edit album

Quote:
how can i keep the same style as my page?

this keeps the header/footer and just adds the middle content

Quote:
can i add as many pages as i like and what the best to link them from the main site?

This module includes 3 pages. I'm not sure how hard it is to add more.
Maybe you need to embed your gallery into a Content Management System(CMS) like Wordpress.
Here is my gallery2 embedded into Wordpress.
This allows you to add as many pages anytime as you want.
My gallery embedded in another CMS - Geeklog

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Sun, 2012-10-28 10:32
Quote:
what you mean by edit my root album?

{quote]head to http://www.crayfordmedia.com/gallery2/main.php and click edit album

where about in edit ablum do i add this?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-10-28 13:18
suprsidr wrote:
Edit your root album -> theme tab -> blocks to show -> add the html block

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
andymedia

Joined: 2009-01-02
Posts: 88
Posted: Sun, 2012-10-28 14:32

cool i done that and it working fine thank you.

If you got the http://www.crayfordmedia.com and click on more information then my page. If you click on more information again it not displaying my page and i was wondering how to fix this?