PDA

View Full Version : [User Settings] Mod


VSDan
06-06-2006, 02:49 AM
Description: This mod allows surfer to completely configure the directory look according to preset variables you define. And, not just phpLD components. For example, if you have embedded a weather box / stock ticker / etc. component in the phpLD template, you can allow surfers the option to display it or not. Settings can be either saved as cookie, or saved to database. If you configure the mod to save to database, then surfer must login first (or register if they are unregistered) to use this service - requires a user registration backend, and is only for phpLD v3.04+. If you use version of phpLD less than v3.04, then settings can only be saved as cookie.

Demo: http://www.monster-submit.com/directory/
(Click on the [Preferences] link from the menu)

Download: http://www.monster-submit.com/phpld/


To download this and other VS mods, please go here : VS phpLD Mods (http://www.monster-submit.com/phpld/)

Steven Myers
06-06-2006, 03:32 AM
Now THIS is what I need!

Thank you for the work put into this Dan, excellent mod, I'll deffinently think about having viewers register to get listed, though it might cause a bit of frustration on their end :-/

VSDan
06-06-2006, 06:08 AM
Hi Steve:

Thanks, and you're welcome =) So, that there's no confusion. You can use the mod whether listers must register or not. The mod uses cookies and not mySQL database, so no registration required. Plus, it is directed towards surfers, and not listers per se. It just allows surfers to change the look of the directory pages.

bobby9101
06-07-2006, 03:24 PM
that looks very nice
too bad i wouldnt work for me... i clear my cookies almost everyday

VSDan
06-07-2006, 04:01 PM
Same for me, I clear all cookies except those for my domain and this one. I will in the very near future tie it in to phpLD's built-in registration system so that settings are preserved.

bobby9101
06-07-2006, 04:13 PM
but then again i wouldnt register in the first place either lol.
here is a suggestion write the info to a MySQL database recording his IP then when he visits from same ip viola
not sure if it can be done but its worth a shot

VSDan
06-07-2006, 06:47 PM
IP-based recognition is flawed at best, unless the surfer has a static IP address - many ISPs use proxy-based IPs (I have seen AOL IPs change with every file request - and, often quite dramtically). One possible solution would be to just use part of their IP. However, those with proxy-based IPs may see settings of others sharing their proxy IP (if they visited same website, and also shared their settings). Not likely, but possible depending on your site's volume and quality of traffic (e.g., proportion of proxy users). Another possible solution (that I use in one of our non-phpLD applications) is to generate a server-based session (ours is stored as file and referenced via Rewrite, but in phpLD, would be mySQL-based if we implemented this) that consists of first subset of surfer's IP + first regex Word component of surfers' HTTP_USER_AGENT - we also prefix with surfer's authenticated username (REMOTE_USER), but would not be applicable here. I'll give it some thought.

bobby9101
06-07-2006, 07:16 PM
correct you are... my Ip changes roughly weekly
however i was at 151....... for a long time
no i am at 70.......
so who knows maybe you need a hybrid version

omikami
05-04-2007, 02:49 AM
Is this compatible with 3.2?

VSDan
05-04-2007, 03:02 AM
Should be. But if any issues, I'll resolve =)