xoops forums

Forum Index


Board index » All Posts (goffy)




goffy

Quite a regular
Posted on: 12/29 17:30
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#1

Re: Working gallery module?

Hi

Resized Image

The uploader takesas default the name of the file as title, but you can easily change it
- before uploading them (see image)
- after uploading if you goto image editing


goffy

Quite a regular
Posted on: 12/28 18:51
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#2

Re: Working gallery module?

Hi

it is still alpha (but I hope I have RC soon), but you can try https://github.com/ggoffy/wggallery
- you can use different gallery types (viewer.js, colorbox, lclightboxlite, Justified Gallery with Colorbox or Jssor) for the slideshow
- you have different album types to present the albums on blocks/index page.
- it supports multi upload with drag&drop (please read xoops259.txt, otherwise it works not)
- automatic resizing
- watermarks
-....

demo: https://xoops.wedega.com/modules/wggallery/

Attention: for perfect style you need a bootstrap theme

let me know your opinion


goffy

Quite a regular
Posted on: 2018/7/17 5:47
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#3

Re: set class for form elements

hi geekwright

I agree, partially.
The separation between logic, data and presentation should be anyway, and I code no presentation with php in my modules.
My idea was to get the same look and feel - each submit button should have the same style (btn-success in this case).

And if we remove style code 100% from XOOPS core then we have to remove all class attributes in XoopsFormRendererBootstrap3.php
But then it doesn't look like bootstrap anymore


goffy

Quite a regular
Posted on: 2018/7/16 11:39
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#4

Re: set class for form elements

hi Mamba

I want to use full possibilities of bootstrap, nothing instead

example:
by using XoopsFormButtonTray I get following buttons:
- Cancel ( bootstrap class: btn-danger = red)
- Reset ( bootstrap class: btn-warning = yellow)
- Submit ( bootstrap class: btn-success = green)

If I now want to add a fourth button this button (as a standard button) will have bootstrap class: btn-default (= no color)

with my suggested changes I can decide, which style my additional button will have

see image Resized Image


goffy

Quite a regular
Posted on: 2018/7/10 22:18
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#5

Re: set class for form elements

hi zyspec

i want to use the class during rendering

I have adopted my xoops e.g.
public function renderFormButton(XoopsFormButton $element)
    {
        if ( 
$element->getClass() ) {
            return 
"<input type='" $element->getType() . "' class='" $element->getClass() . "' name='"
            
$element->getName() . "'  id='" $element->getName() . "' value='" $element->getValue()
            . 
"' title='" $element->getValue() . "'" $element->getExtra() . ' />';
        } else {
            return 
"<input type='" $element->getType() . "' class='btn btn-default' name='"
            
$element->getName() . "'  id='" $element->getName() . "' value='" $element->getValue()
            . 
"' title='" $element->getValue() . "'" $element->getExtra() . ' />';
        }
    }


now I can use the function.

My question is: I think it make sense. Should I make these changes in xoops core and send a request? or is there another idea?


goffy

Quite a regular
Posted on: 2018/7/7 10:20
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#6

set class for form elements

hi

is it right that a form element has the functions setClass and getClass, but they are not used for rendering a form element?


goffy

Quite a regular
Posted on: 2018/6/29 6:22
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#7

Re: XOOPS Module Team ~ Need Face to Face Meetups!

hi wishcraft

Look I just wanted to write as the only module developer team member that seems to be active

I'm not officially in module developer team, but I'm also trying to develop modules (https://github.com/ggoffy). But I never really learnt programming (learnt all myself).
The idea with a central directory/place for all releases sound good. But a lot of things you wrote I'm even not understanding, therefore I'm not sure whether I could be a help or not.


goffy

Quite a regular
Posted on: 2018/3/17 7:07
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#8

Re: XoopsPreload

Hi

I tried to reproduce the error:
if XOOPS_ROOT_PATH is wrong I get:
Quote:
Warning: include(C:/Homepages/wamp/www/naturfreunde/htdocs-wrongpath/include/common.php): failed to open stream: No such file or directory in C:\Homepages\wamp\www\naturfreunde\htdocs\mainfile.php on line 104

Quote:
Warning: include(): Failed opening 'C:/Homepages/wamp/www/naturfreunde/htdocs-wrongpath/include/common.php' for inclusion (include_path='.;C:\php\pear') in C:\Homepages\wamp\www\naturfreunde\htdocs\mainfile.php on line 104

Quote:
Fatal error: Class 'XoopsPreload' not found in C:\Homepages\wamp\www\naturfreunde\htdocs\index.php on line 31

if warning are turned off in php.ini you get only the fatal error.

If I am not sure whether the path is really ok I do following:
- create a folder on root (e.g. test)
- then uploading a new xoops
- installing
- checking mainfile.php, because then you see the path needed


goffy

Quite a regular
Posted on: 2018/3/16 16:13
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#9

Re: XoopsPreload

Hi
did you also transfer database?
if yes, does the database and the user have the same name, is the password the same?
if names or password changed you have to adopt xoops_data/data/secure.php


goffy

Quite a regular
Posted on: 2018/3/16 13:03
goffy
goffy (Show more)
Quite a regular
Posts: 328
Since: 2010/12/27
#10

white page after search

Hi

if I use the search on xoops.org I get blank page on firefox and http-error 500 on IE



TopTop
(1) 2 3 4 ... 24 »