New Module: about

floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-01-17 07:30

http://codex.gallery2.org/Gallery3:Modules:about

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ady1503

Joined: 2010-01-15
Posts: 79
Posted: Sun, 2010-01-17 18:25

I changed the module so. This is allowed?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-01-17 18:38

Sure it is allowed.
You should start a new thread with your module and add a codex page as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Thu, 2010-01-28 16:54

"About" is a very welcome addition. Great, Thanks.
Would it be a good extension of the module ( or even possible) to allow every registered album owner the opportunity to use it for adding their details as well as the site owner. I'm afraid I've no idea how to do this. Willing to try but would probably take a few months for me. Ken

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2010-01-29 01:18

Can you give a user story? And some moc-ups how the UI should work?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
ShakataGaNai

Joined: 2010-02-15
Posts: 2
Posted: Mon, 2010-02-15 18:40

Bug: As of 3.0 Beta 3, every time you click save in admin, it double escapes all special characters. The first time you save, a ' becomes \' , the second becomes \\\' , the third becomes \\\\\\\' ... and so on and so forth.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-02-15 18:47

Try a recent git version. It was never tested with Beta3.
Test site:
http://www.langleycom.com/gallery3/index.php/about

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-03-06 07:42

Updated the module to remove data from the var table on deactivation.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 12:26

Dave: is it possible for you to make this not display in the top menu? same as for home in menu links...?

Wether this is done in this module or in menu links matters less to me.

Maybe even create a standalone module where you have the option to deactivate any userviewed links in the menu.

Even better - integrate this module in menu_links and add the don't display about hatch

An idea for this module - expand it to create any number of html page. Examples: about, copyright, contact
Let the user define the title for each page
Let the user deactivate the link at top menu per page basis
Let the user set permission to these pages: anonymous, registered user, admin etc

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 12:38

Could you expand the text field where you html code, maybe double height what you have now? For better overview...

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 15:00

Dang something went wrong and site crashed

I had something in the field of this module. Removed that and added this

<div id="g-image-block" class="g-block">

for testing. Sites crashed and I can not recover? removed the module from intall and site is still dead???

What to do?

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 15:02

I ran the upgrader with success

site is still dead???

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 15:32

get this error:

SYSPATH/core/Kohana.php[ 812 ]
807 if ($found === NULL)
808 {
809 if ($required === TRUE)
810 {
811 // If the file is required, throw an exception
812 throw new Kohana_Exception('The requested :resource:, :file:, could not be found', array(':resource:' => __($directory), ':file:' =>$filename));
813 }
814 else
815 {
816 // Nothing was found, return FALSE
817 $found = FALSE;

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-03-06 18:03
Quote:
An idea for this module - expand it to create any number of html page. Examples: about, copyright, contact

Should be easy for the community to copy this module to come up with all the pages they want.

Quote:
Let the user define the title for each page

This is an about page. It is translatable and if you want a different page then you can copy this module to create a copyright, or contact page.

Quote:
Let the user deactivate the link at top menu per page basis

I will make this a global setting but will not make it a per page type option. Will post an update later.

Quote:
Let the user set permission to these pages: anonymous, registered user, admin etc

I want to keep it simple so that modules don't become the X_Treme theme of G2 where there was every option in the world and every option was added making it hard to work with. G3s aim is to be simple, fast, intuitive and cater to 80% of the users. Adding more options adds complexity, and has the possibility of impacting performance.

I will consider making another module to full-fill some of your needs.

Quote:
Could you expand the text field where you html code,

This is controlled with css. Look for

textarea {
height:22em;
width:97%;
}

And adjust the height.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-03-06 18:06

I tried to reproduce your other error but can't.
[img]http://gallery.menalto.com/files/About_admin.png[/img]
Is what I tried.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 18:21

What happens if you enter only the opening div and leave out the closing div?

I guess thats what I did..

Thanks on the other issues. I'll wait for your upgrade

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-03-06 21:12
Quote:
What happens if you enter only the opening div and leave out the closing div?

Could give different results for different browsers I suspect.
I don't think it is withing the scope of this module to validate HTML. :-)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 21:32

That wasn't the idea to validate.... As mentioned this code was added:

Quote:
<div id="g-image-block" class="g-block">

without the end tag. Where will the code go, and can I get to it? Is it in mySQL DB or is it hardcoded into a file in the module?

Or can I through a backdoor add the end tag?

Somehow I have a feeling this is causing it

Site is crashed in both Chrome and IE8...

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-03-06 21:50

Module data is stored in the var table.
You will need some form of DB admin tool, like phpMyAdmin or phpMinAdmin
You can delete or edit the appropriate rows in the DB. You will see the module name and variable name and value in each row.

I don't think that is your issue, as I just tried it and I still get a page displayed.

What is your URL?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 22:16

url is www.skunk.agentura.dk

Can you talk me through php myadmin, never used it and hoped it wouldn't be necessary

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 22:53

This was in the content field x 100, and I am not kidding - something generates the backslash on every save.... hmm scary

Code added and later deleted in the field, is that removed from the DB Table??? There was a lot in there that I actually removed from the module field.

Table should be empty now. Will I have to remove the about code entirely or?

Quote:
<div id=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"g-image-block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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-06 23:05

In Vars I find two tables for about module

In Modules there is no about module... Not displayed at all.

Should I delete the tables in vars entirely? Do I need to run upgrader?

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-03-07 00:41
Quote:
This was in the content field x 100, and I am not kidding - something generates the backslash on every save.... hmm scary

we know there is a ticket open for this. You have mentioned this in another thread as well. It is related to security. We will address it in time.

Quote:
In Vars I find two tables for about module

There is only one table called vars.
is has for columns in the table:

Quote:
id | module_name | name | value

Under the module name look for about and there will be 2 rows.
Then you can delete those rows.
No need to run the upgrader.

But As I said before I don't think this is related at all to this module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-03-07 06:37

The two tables for about are removed in Vars and yes only one
as mentioned I don't see about in the modules table. I wanted to set not active, but can not find

I removed all code for about, upgrade, but no change in my browser... May not be related here - only thing, this happened when I hit save from this module

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-03-07 08:51

Btw before crash I added HTML source code including SWF. I copy pasted code for the Photo Widget blocks including divs. Didn't work
I also copy pasted code for random_photo_block

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-03-07 09:52

Weird - I collect my findings here for now to keep things together.

I turned to phpmyadmin again. I guess I deactivated your photo widget at some time, set to 0 from phpmyadmin. Now I activated it again from php myadmin. Site still crashed.
I ran the upgrader and it til me there was an upgrade for photowidget. Site has now recovered..

Not sure what to conclude here, maybe you do...

If this is a bug it should be adressed ofcourse...

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-03-07 16:48

I have tried to reproduce but can't. If you can give me the steps to reproduce I will try my best.
I don't see how an about page should contain the photowidget.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sun, 2010-03-07 21:56

I tried deactivating the widget and activate again, doesn't work. I can not reproduce at this time...

all the best
HB - http://www.image.agentura.dk

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Wed, 2010-03-10 15:39

As mentioned I am making a copy of this module. I renamed everything. Files,Folders and all about inside code.

Module is there. Acitvates nicely, shows in menu. both as "home2" next to home and in admin menu.

When accessing the admin home2 link only this shows in sourcecode:
<h1></h1>

and page does not load.... No html, no head, no body, no scripts no anything. What am I missing and in which file?

all the best
HB - http://www.image.agentura.dk

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2010-03-11 01:20

Start a new thread, as this is related to the About theme.
Post your module as an attachment to the other thread.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
erwindink

Joined: 2010-06-17
Posts: 8
Posted: Fri, 2010-06-18 18:52
floridave wrote:
Quote:
An idea for this module - expand it to create any number of html page. Examples: about, copyright, contact

Should be easy for the community to copy this module to come up with all the pages they want.

Quote:
Let the user define the title for each page

This is an about page. It is translatable and if you want a different page then you can copy this module to create a copyright, or contact page.

Just wanted to point out that it's pretty easy to use this module to create more pages. I just changed all occurrences of and references to the word "about" to "links" and I now have a Links page.

Very cool!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-06-19 04:18
Quote:
I just changed all occurrences of and references to the word "about" to "links" and I now have a Links page.

Now you can consider yourself a module developer. :-)

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rain139
rain139's picture

Joined: 2010-06-20
Posts: 3
Posted: Sun, 2010-06-20 12:17

It's just what I was looking for and I got it installed nicely but it didn't add a link next to home but it actually created a new sidebar box with the text I entered?
Did I miss understood something or did I do something wrong?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-06-20 16:02

works for me and others. URL? Are you using the most recent experimental version not RC1?
You can remove the side block if you want through the user interface.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rain139
rain139's picture

Joined: 2010-06-20
Posts: 3
Posted: Sun, 2010-06-20 19:54

yeah doh... now I got what was wrong.
I removed the HOME button before and that's why it didn't show up. My bad :)
Thank you

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-06-21 03:55

Added the ability to remove the link via a admin setting.
Fixed the sidebar duplication.

See first post.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gigra

Joined: 2010-10-25
Posts: 2
Posted: Mon, 2010-10-25 11:07

Hello,

I am trying to put some script code from Google Absense on the about page. I get no result.
Is this possible?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-10-25 13:49

Why not try the proper module:
http://codex.gallery2.org/Gallery3:Modules:adsense

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
gigra

Joined: 2010-10-25
Posts: 2
Posted: Mon, 2010-10-25 14:00
floridave wrote:
Why not try the proper module:
http://codex.gallery2.org/Gallery3:Modules:adsense

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Ok, thanks. This module works great

 
gozertje

Joined: 2010-10-25
Posts: 57
Posted: Tue, 2010-10-26 12:55

i want to change "about" to anything i like and have it 4 times on the page. so i can create pages with information about anything so i have a complete website in the gallery. is this making sence?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2010-10-27 02:40

You should be able to create your own module similar to this one as I did with with:
http://codex.gallery2.org/Gallery3:Modules:services
use winmerge to see how the two modules are different. You will see that only the name in some places is different.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
halinab
halinab's picture

Joined: 2006-07-24
Posts: 43
Posted: Tue, 2010-12-07 05:09

Hi there, When adding your module (it works great) but the sidebar disappears in the dark canvas theme - any thoughts - can you point me in the right direction to fix this - it also happens with the
basket module too - must be something to to with the theme...thanks

 
Sammy_K

Joined: 2011-01-25
Posts: 35
Posted: Sat, 2011-01-29 19:27

Hi floridave,

for all the german users (who are forced by law to display an "Impressum" Page on every (even private) website I changed your "about" Page to generate an Impressum-Module.

Hope I was allowed to share that (I guess I even must share ;-) ). Please contact me if anything is wrong and I should change (coz of license).

It´s to be found here (till now an english discription is missing but probably non german people dont need that):

http://gallery.menalto.com/node/100532

Greetings,
Sammy

*** http://www.kramann.net

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-01-29 17:41

Great! Thanks for your contribution.
Care to make a codex page for it? If you need a hand let me know.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
inposure
inposure's picture

Joined: 2010-04-23
Posts: 304
Posted: Sat, 2011-01-29 17:51

Why do you put up with that Gestapo crap?

--
http://inposure.se/

 
Sammy_K

Joined: 2011-01-25
Posts: 35
Posted: Sat, 2011-01-29 19:26

@floridave: In fact I dont know how to do that but I will take a look at it :-) Thank you!

@inposure: What are you talking about? I cant get your point! Is there a problem - something to be changed? What?
Or are you kidding or even to badmouth me?

*** http://www.kramann.net

 
inposure
inposure's picture

Joined: 2010-04-23
Posts: 304
Posted: Sat, 2011-01-29 22:22

That ”Impressum” stuff.

--
http://inposure.se/

 
Sammy_K

Joined: 2011-01-25
Posts: 35
Posted: Sat, 2011-01-29 22:39

Whats up with it? Unfortunately some things are not arbitrary - we (dont know if other countries have same or similar guidelines) have to use an "Impressum".
I am sure anyone who does not need it will simply not use it ;-)

The bondage to use it (in germany) is no thing to cheer for but nevertheless no need to call it "gestapo crap" ?!
Please stay businesslike :-)

*** http://www.kramann.net

 
undagiga

Joined: 2010-11-26
Posts: 693
Posted: Sat, 2011-01-29 23:11

Every country has some sort of disclosure law, and some are stricter than others, but I am surprised that in Germany it applies to non-commercial, non-political sites. From Wikipedia:

"The Telemediengesetz requires that German websites must have an Impressum disclosing information about the publisher, including their name and address, telephone number or e-mail address, trade registry number, VAT number, and other information depending on the type of company. German websites are defined as being published by individuals or organisations that are based in Germany, so an Impressum is required regardless of whether a site is in the .de domain.".

Not something that I'd want to have to do myself, but I guess every country has some laws you like and some you don't.

 
Amalaswinta

Joined: 2011-06-06
Posts: 67
Posted: Thu, 2011-06-09 12:58

very happy with this module!!
could you please help me though? I'd like to hide the sidebar only on this About page but have it show on every other page

tnx in advance :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2011-06-09 14:23

Add

#g-sidebar {
  display: none;
}

to the css that ships with the module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team