join.php

pure

Member
Hi a question in his aardvarktopsites found
$ TMPL ['categories_menu'] .= "</ select>";
if ($ CONF ['max_banner_width'] & & $ CONF ['max_banner_height']) {
$ TMPL ['join_banner_size'] = sprintf ($ lng ['join_banner_size'], $ CONF ['max_banner_width'], $ CONF ['max_banner_height']);
}
else {
$ TMPL ['join_banner_size'] ='';
}
eval (PluginManager:: getPluginManager () -> pluginHooks ('join_fields'));
if (isset ($ TMPL ['username'])) {$ TMPL ['username'] ='';}
if (isset ($ TMPL ['url'])) {$ TMPL ['url'] = 'http://';}
if (isset ($ TMPL ['title'])) {$ TMPL ['title'] ='';}
if (isset ($ TMPL ['description'])) {$ TMPL ['description'] ='';}
if (isset ($ TMPL ['banner_url'])) {$ TMPL ['banner_url'] = 'http://';}
if (isset ($ TMPL ['email'])) {$ TMPL ['email'] ='';}
if (isset ($ TMPL ['url'])) {$ TMPL ['url'] = stripslashes ($ TMPL ['url']);}
if (isset ($ TMPL ['title'])) {$ TMPL ['title'] = stripslashes ($ TMPL ['title']);}
if (isset ($ TMPL ['description'])) {$ TMPL ['description'] = stripslashes ($ TMPL ['description']);}
if (isset ($ TMPL ['category'])) {$ TMPL ['category'] = stripslashes ($ TMPL ['category']);}
if (isset ($ TMPL ['banner_url'])) {$ TMPL ['banner_url'] = stripslashes ($ TMPL ['banner_url']);}
if (isset ($ TMPL ['email'])) {$ TMPL ['email'] = stripslashes ($ TMPL ['email']);}
Found on Visio course in join.php
But when a member joins the line there are not inserted your banner, of course it is found in members area in visio.
my question, since no members put the banner because it is too used to do without going through the registration area from members how to solve this problem
How to make the line appear in the registration
Thank you in advance
 

Mark

Administrator
Staff member
VisioList allows members to upload banners to your server, Aardvark does not.

It is not considered safe to allow everyone to upload to your server without first some user authentication.

You can copy this into your join template and it should work the same way aardvark does:
Code:
<div class="{$error_style_banner_url}"><label>{$lng->g_banner_url} {$join_banner_size}<br />
<input type="text" name="banner_url" size="50" value="{$banner_url}" />
{$error_banner_url}

</label></div><br />
 

Basti

Administrator
Staff member
Hmm, so your members do not even visit their control panel?

Upload form in open registration iam against that. Putting the normal external banner there makes the upload banner useless. And linked banner urls often slow down your website.
I personally would point out on join form to go to the user control panel next, Or mention it in the join_email. Will talk to make on how we handle it to make it clear.
 

pure

Member
Hello thank you for help, he and a real top banner's List without disorder is not, like visitors or personal images or banner, just know that I noticed a contact on top of another list, after you were right
On the merits, of course I send emails to members who have not put a banner, my view I ask a 468x60, there are some who do not want to resize them a banner, in this as it will be interesting
to have a plugin that automatically resizes the banner, depending on what the admin application via the admin style 500x100 or 468x60 so on, at least super thank you, I v test code for the next registration for this which is slowing the server so on, right now jean paid the price, I rent a new server to compensate for the query button, then within a short time I will transfer it to the new server. in all you made of super thank you to continue working Courage
thank you
Sorry for my English
 

Basti

Administrator
Staff member
to have a plugin that automatically resizes the banner
This is not suggested. If the user put a small banner online and you resize it to something bigger, it looks not really good
 

Mark

Administrator
Staff member
also when you allow PHP to resize animated gif it seems to lose the animation :( You might want to simply hard code in your templates something like <img src="{$banner_url}" width="468px" height="60px" alt="{$title}" />
 

pure

Member
Hello
Thank you for the clarification Mark / basti, ok I'll listen to your advice, I'll test my code hard to test, it is not won all its hi hi hi for a novice like me, they will explode neurons
Thank you to;)
 

Bart

Active Member
Why not have a function that when a user links a banner to their account the script will automatically reupload it onto the server and load it from the server instead or onto a specific image hosting site?
 

Mark

Administrator
Staff member
that is planned feature, has been on the todo list for quite some time
 

cajkan

Active Member
I support Mark, this feature should be custom one.

I do not recommend members to link when register, they can do once they logged in.

Simple register worth more.
 
Top