Author Topic: Neues Modul: "Members"  (Read 48185 times)

Offline hansis

  • Posts: 34
Re: Neues Modul: "Members"
« Reply #100 on: September 02, 2009, 04:11:32 PM »
hallo
recht herzlichen Dank!
Das funktioniert.
Dieses Modul ist genau das, was ich gesucht habe.

thx
hansis

snark

  • Guest
Re: Neues Modul: "Members"
« Reply #101 on: October 25, 2009, 04:12:56 PM »
is it possible to get random display of a single member every refresh/pageclick



I found this and it works linke a charm

http://www.javascriptkit.com/script/script2/randomcontent.shtml

Yippeekayaye

  • Guest
Re: Neues Modul: "Members"
« Reply #102 on: October 25, 2009, 08:50:05 PM »
Still trying to find my way around this site.

Can someone please tell me where I can download the members module  :? :?

Thanks!

chio

  • Guest
Re: Neues Modul: "Members"
« Reply #103 on: October 25, 2009, 08:52:51 PM »
http://WebsiteBaker.at/download/members-0-7.zip

The module is german with pidgin-english ;-)

Yippeekayaye

  • Guest
Re: Neues Modul: "Members"
« Reply #104 on: October 25, 2009, 09:10:45 PM »
excellent. thanks!

I was actually looking for a user profile module that enhances the built-in profile.  I guess this is something differnt. :|

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #105 on: November 13, 2009, 02:01:54 PM »
Hi chio,

it seems that up and down arrows for sorting members are still missing (I use wb2.8), do you have any tips to sort order ?
-- they appeared after a while  :?

Also, is there a way to set number of members per one page , like pagination ?

cheers
« Last Edit: November 13, 2009, 02:30:44 PM by crnogorac081 »
no bb in signature

Offline gottfried

  • Posts: 1339
Re: Neues Modul: "Members"
« Reply #106 on: November 16, 2009, 07:41:41 PM »
Hi Crnogorac 081!  :-D

I am off topic here i think ?!  :-o

But http://www.dj-pascal-events.de/wb/pages/impressionen.php

collage is made with the members module.

Also the pictures on most other pages  with rollover and lightbox made with members. (it's not soo.. chaotic)

Cheers !  :-D
« Last Edit: November 16, 2009, 07:49:58 PM by gottfried »

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #107 on: November 16, 2009, 10:58:33 PM »
wow, nice, I like it :)
no bb in signature

Offline Falcon

  • Posts: 50
Re: Neues Modul: "Members"
« Reply #108 on: November 23, 2009, 08:53:03 AM »
Hallo,

gibt es bereits eine Möglichkeit ein Suchfeld oberhalb der Listen
einzubauen, so dass man in selbst erstellten Datenbanken (Listen)
nach bestimmten Parametern suchen kann?

Ansonsten - reicht es in der view.php ein Formular einzubauen
mit einem entsprechenden $where in der sql Abfrage?

Gruss
Falcon

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #109 on: December 06, 2009, 08:27:20 PM »
Is it possible to reorder position by Drag & Drop like Pages?

cheers
no bb in signature

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #110 on: December 08, 2009, 02:30:36 PM »
Is it possible to reorder position by Drag & Drop like Pages?

cheers

Is this possible ??
no bb in signature

Offline Ruud

  • Posts: 3649
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Neues Modul: "Members"
« Reply #111 on: December 08, 2009, 02:45:50 PM »
No, Not in the current version.
But you must have seen that already.


Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #112 on: December 08, 2009, 02:57:00 PM »
I have seen some jquery solutions and there is not much code.. And I know that there were some talks about it somewhere on forum.. I thought it may be easy to update :)
no bb in signature

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #113 on: December 30, 2009, 06:50:54 PM »
Hi,

Maybe a suggestion for a next release:

If you insert a page id number when you add/edit member, the memberlink in your template will be like this<a href=
Code: (blue) [Select]
www.site/pages/this-member.php[/color]> More about this member </a>, but if you dont enter page id number for some members,  the link will go to the same page where you currently are..

I sugest to make additional field where you can insert link to your site (or maybe some different solution like this...) , which will redirect you to the page where you will find mesage - there is no more information about this member..

what do you think ?

cheers
no bb in signature

Offline gottfried

  • Posts: 1339
</br></br>
« Reply #114 on: February 01, 2010, 05:37:17 PM »
Hallo!  :-D

Isch hab so ein kleines Problemchen. Ich hab ein wysiwyg Feld im Member. Da verwende ich nun <br>'s, damit die Zeilen zusammenbleiben. Wenn ich das nun auf die Website bringe, sind 2 br's drinne, also </br></br>.

Im Quellcode ist nur eines, auf der website (Quellcode) 2, sowohl in FF, IE8, Opera.

kann das woran liegen?  :roll:




« Last Edit: February 01, 2010, 05:44:09 PM by gottfried »

chio

  • Guest
Re: Neues Modul: "Members"
« Reply #115 on: February 01, 2010, 11:28:50 PM »
Hmm ... nl2br?
Mal sghauen, wenn die Sonne wieder scheint...

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #116 on: February 02, 2010, 01:15:18 AM »
Hi,

this patch allows position reordering via Drag n Drop. It works with JQuery, so no additional scripts are required..

How to patch:
1. Go to Members folder and make backup for your Modify.php file
2. Unpack attachment and copy these 3 files to folder where modify.php is
3. Open backend.js and add this CSS:

Code: [Select]
#dragableTable_1 li {
    list-style: none;
    margin-top: 3px;
    width: 800px;
    list-style: none;
    padding: 2px;
    background-color:#00CCCC;
    border: #CCCCCC solid 1px;
    color:#fff;
}

#dragableTable_2 li {
    list-style: none;
    margin-top: 3px;
    width: 800px;
    list-style: none;
    padding: 2px;
    background-color:#00CCCC;
    border: #CCCCCC solid 1px;
    color:#fff;
}

#dragableTable_3 li {
    list-style: none;
    margin-top: 3px;
    width: 800px;
    list-style: none;
    padding: 2px;
    background-color:#00CCCC;
    border: #CCCCCC solid 1px;
    color:#fff; 
}

#dragableResult {
    width: 50%;
    padding:10px;
    background-color:#336600;
    color:#FFFFFF;
}

/* -------  module members NEW classes for drag n drop -------  */
.mod_members_wrapper {width: 100%; display: block; border: 1px #333 solid;}
.mod_members_links a img {border:0;}

.mod_members_group {width: 100%; height: 30px; display: block; border: 1px #00ccccc solid;    font-size: 12px; background-color: #E7E7E7; }

if you have more groups than 3, you must add #dragableTable_4 li { ; #dragableTable_5 li { and so on with same css for each group you have..

WORKING>
You can reorder position between members for every group

NOT WORKING:
You can not reorder position between groups (use arrows for this ), or assign members to another group by draging it to it..

I left arrows so you can still reorder members and groups manualy. When you for example move last item somewhere in the middle (which has only one arrow for UP), that arrow will remain and seccond arrow for DOWN will not appear untill you refresh  - this is not a bug, this is because it is AJAX call.

Please test this, if you like it I will post the tutorial how to implement this in other modules..

All best and long baking,
Ivan


[gelöscht durch Administrator]
« Last Edit: February 02, 2010, 01:20:41 AM by crnogorac081 »
no bb in signature

doc

  • Guest
Re: Neues Modul: "Members"
« Reply #117 on: February 02, 2010, 07:06:07 AM »
Hi,

you really have to sanitize user inputs (e.g. from $_POST ) before outputing them on screen OR as in your case, BEFORE passing them into SQL queries. In addition you should make use from the WB access control (see class admin) to restrict access to people allowed to access the module only. Checking if a POST variable is set, is no security measure at all. Only had a quick look to "reorderDND.php" contained in your zip package.

Note: I strongly recommend not to use this patch on live servers until the weak points gets fixed.

Regards Doc
« Last Edit: February 02, 2010, 07:11:50 AM by doc »

chio

  • Guest
Re: Neues Modul: "Members"
« Reply #118 on: February 02, 2010, 08:57:15 AM »
@doc
What exactly do you mean? members is an older module (WB 2.6), what should be improved?
The reorderDND.php is not that critical, because its only the internal counter which is writen to database.

@crnogorac
Thanks! Seems to work great! On small problem: Moving by arrow-klick (as use before) doesnt work if you move a little bit while clicking.  Could there be a minimum movement (eg 2 pixels)

Why do we need those #dragableTable_X li styles for each group? It would be better ti highlite the one moved element. is this possible?
« Last Edit: February 02, 2010, 09:34:49 AM by chio »

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #119 on: February 02, 2010, 09:41:10 AM »
@doc

well, I probably said a 1000 times I am not a coder, so I feel very excited that this code works at all..

Of course, I hope you and everybody will help me and guide me how to remove these weak points..
no bb in signature

doc

  • Guest
Re: Neues Modul: "Members"
« Reply #120 on: February 02, 2010, 10:11:21 AM »
Hi,

@Chio: I was talking about $_POST['group'] which is not sanitized and used in the query string.

@crnogorac081: Well I haven't found anything written in your post containing the files that you are not a coder and your solution may have security issues etc. Maybe you made a statement somewhere else. Anyway it was just a warning nothing else.

Doc

chio

  • Guest
Re: Neues Modul: "Members"
« Reply #121 on: February 02, 2010, 10:21:46 AM »
Yes doc, youre right; $_POST['group'] must be checked if numeric.

.. so I feel very excited that this code works at all..
Yo! I also do! This is really a great improvement, I would be glad if you make a little tutorial HOW it works. So I could improve the code of the members module and check for security issues.

With a little help from doc and his coming up "Do's and Don'ts Guide" ;-)


Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #122 on: February 02, 2010, 10:41:40 AM »
@doc

sorry, it was in my signature for over an year, and I removed it half month ago since I coded Searchbox with suggestions

Of course, since I am beginner I dont know tips & tricks about security issues..

I really respect every critics from you and any other coder, as I know it will only make code better !!!!

I think this way we can sanitize Group_id
Code: [Select]
if(!is_numeric($_POST['group'])){
               die (redirect to Index..);
        } else { continue processing...

After this code this part will be OK right ?

Now my concerns are how to sanitize:
   $action                 = $_POST['action'];
   $updateRecordsArray     = $_POST['recordsArray'];

This is why I posted it here, so that everyone can test this patch and point to any weak points before it may be added to final version.

After all, this is Chio's module, and it is up to him weather this will be included in his module or not, I am just trying to add an improvement if he agrees..

Ivan
« Last Edit: February 02, 2010, 11:06:12 AM by crnogorac081 »
no bb in signature

Offline gottfried

  • Posts: 1339
Re: Neues Modul: "Members"
« Reply #123 on: February 02, 2010, 11:00:09 AM »
Hi Chio!

Ich find drag and drop auch interessanter als </br> verdopplung. Toll, wenn das geht! Bis die Sonne scheint wart ich nun nicht.
Ich sag dann, was war!  :-D

Offline crnogorac081

  • Posts: 1908
  • Gender: Male
Re: Neues Modul: "Members"
« Reply #124 on: February 02, 2010, 11:07:03 AM »
@gottfried

Did you test this patch ?
no bb in signature