| 245 | 0 | 1 | View Entry |
Anyone have any ideas for this?? Good idea.?? Bad idea??
Thanks,
Eric View Comments & Reply...
Check LuvPoint.com for updated templates.
Most of our templates have been updated:
- some design restyling
- fixed minor issues
- many things have been added and changed
If you have seen our demo a while ago - now it's time to check it out at demo.luvpoint.com
Moreover - use coupon blackfriday to get a 20% on any template.
Offer ends on the 1st of December.
;) View Comments & Reply...
| 1074 | 3 | 11 | View Entry |
Sometimes it may be useful to set minimum length of the filed. Especially for textareas. This is example for profile editing page. Let's say we want minimum 5 words for every textarea field.
Open your lib.account_profile.php, function save_member(), line ~464 (Validate value conditions)
Right after:
elseif ($field['field_maxlength'] && strlen($field['field_value']) > $field['field_maxlength'])
{
$TEMPLATE->set_message("error", str_replace("%1%", $field['field_name'], str_replace("%2%", $field['field_maxlength'], ($LANG['profile']['field_too_long']))), 0, 0);
return 0;
}
Add this:
elseif ($field['field_type'] == 'textarea' && $field['field_required'] && str_word_count($field['field_value']) < 5)
{
$TEMPLATE->set_message("error", str_replace("%1%", $field['field_name'], str_replace("%2%", 5, ($LANG['profile']['field_too_short']))), 0, 0);
return 0;
}
Now we have to add language string to /includes/languages/english/lang.lib.account_profile.php
right below "field_too_long" translation:
"field_too_short" =>
"\"%1%\" has to contain at least %2% words.",
Voila!
P.S.: If you still want to count only chars, use strlen function instead of str_word_count.
P.P.S.: That was controlling number of words for textareas in Edit profile page. If you want control words number during registration modify lib.account_register.php page! View Comments & Reply...
| 1206 | 2 | 5 | View Entry |
This simple yet very effective mod allows you to create gifts with name starting with digit (ie "100 credits certificate") with price a bit higher than nominal (Casino's comission ;)
This would allow your members send really useful gifts: 50 credits, 100 credits, 500 credits, whatever you like! Isn't it cool? You can get it for $39.
Why would they need a lot of credits if there is no much sense in having them except for spending them for gifts or sending each other through above mentioned mod? - I've just developed brilliant mod - "Internal credits" payment gateway. All you would need is just to go to CP enable gateway and set "exchange rate" coefficient: how credits relate to dollars (or other currency you use).
For example 1.2 setting will allow your members by $10 membership for 12 credits with just one click!
Payment gateway's cost is $59.
Get both for $89
This will be really nice, money-making improvement to your dating site/social network. It will bring life and fun to your member experience. It will bring you much more profit in longer run than you invest in implementing.
You can play with gifts sending and profile upgrade at my testing site:
here
I gave 700 credits bonus to all existing members :)
P.S.: As you probably know I try keep my work configurable and vldP coding standards compliant. (Though may be expensive for somebody but it always worths what it costs). View Comments & Reply...
Just visited the comet chat website and it appears that the stable version is now ready. They also revamped their website, looks a lot better than before. Thought you guys would like to know!
Cheers! View Comments & Reply...
Doing well? I hope you are.
Well, "RelaxDate" is a new template for vldPersonals 2.5.5 which is available now at LuvPoint.com
Have nothing more to say. And think I don't need to))
Watch Live Demo
Best wishes View Comments & Reply...
Dozens of small and big changes. It looks more attractive & more friendly.
Have a look at the demo
Enjoy! View Comments & Reply...
| 1155 | 1 | 8 | View Entry |
I played around with the demo and it seems nice.
Here are some of my thoughts:
1. When you want to create a new chat room in Internet Explorer, I get a message that says " This website is using a scripted window to ask you for information. If you trust this website, click here to allow scripted windows" It doesn't do ths in Firefox. I don't know about you but when I see messages like that, it doesn't make me feel very comfortable.
2. Didn't see any demo on Youtube Integration.
3. How safe would it be to let members send files? What kind of files can you send?
4. Has anyone noticed any major improvements when using Comet Chat with Internet Explorer.
5. I noticed that Pro Chat Rooms has a new footer Chat that resembles Comet Chat. Has anyone used this? Is it worth getting Pro Chat and having someone integrate the footer chat?
Anyway, hope to hear from some of you!
Thanks View Comments & Reply...
Demo site has been updated too.
Important!
1. Use your login and password (you've got in e-mail with purchase) to login to Luvpoint and download the new package.
2. If you do not have such e-mail (even in your SPAM folder)) send me a message to info[at]luvpoint.com with the copy of your purchase or your Paypal address, name, etc. I will send you new version by e-mail.
Thank you View Comments & Reply...
| 446 | 1 | 1 | View Entry |
Sometimes you may want to pass variables from a template to a language call:
Like have a string output:
"Welcome Idealists to VldCrowd.com! You can post up to 5 blog posts today."
Where:
Idealists is a username
VldCrowd.com is app_title
5 is some limit set somewhere (daily_blog_post_limit)
Currently it is not possible to do such language string manipulation within a tpl file itself.
All that is required for this example, is a language definition:
"vldcrowd_welcome_message" => //MOD
"Welcome %1% to %2%! You can post up to %3% blog posts today", //MOD
And then within the tpl file you would call the language string normally except now you pass the variables as such (variable 1 to 3, from left to right):
{lang:"custom","vldcrowd_welcome_message",session.username,settings.app_title, session.daily_blog_post_limit}
Only change is to replace (backup original ofcourse) the function vldext_lang within your ext.lang.php which is under /includes/ext/core with:
function vldext_lang ($mod, $key, $value1 = "", $value2 = "", $value3 = "")
{
global $LANG;
$language_string = isset($LANG[$mod][$key]) ? nl2br($LANG[$mod][$key]) : $key;
$variables = array("%1%", "%2%", "%3%");
$values = array("$value1","$value2","$value3");
$language_string = str_replace($variables, $values, $language_string);
return $language_string;
}
Also this will output the variable name instead of "Unknown field" if the field isn't found within the language definition. A bit more user friendly, and if you name your fields well, it should mean something to a user.
You can pass a max of 3 variables (if you know PHP you can easily increase it)
If you only need to pass 1 variable then it would be like:
{lang:"custom","vldcrowd_welcome_message",session.username}
If you don't need to pass variable it would be the same as old days, like:
{lang:"custom","vldcrowd_welcome_message"}
So no need to change all language calls. View Comments & Reply...








Latest Comments
Looking for Developer - VLD Site Mods and Fixes - Paid Job
about 10 hours ago
Looking for Developer - VLD Site Mods and Fixes - Paid Job
about 19 hours ago
Looking for Developer - VLD Site Mods and Fixes - Paid Job
about 20 hours ago