Here is the complete right code, also url working..
Now the only problem is when a user didn't upolad a picture... nothing is shown on Firefox but on IE the classic X of picture missing...
Printable View
Here is the complete right code, also url working..
Now the only problem is when a user didn't upolad a picture... nothing is shown on Firefox but on IE the classic X of picture missing...
Well, this is getting annoying. My original username was banned (mhancoc7). I sent admin an email apologizing for anything that I did wrong and never got a response. So I opened a new username (thejesustv) and now admin is deleting my posts. I am not even sure why this one was deleted. Anyway, if you read this before admin deletes you will understand.Quote:
Originally Posted by grynmoors
Thanks, Jereme
JesusTV -
Thank you for the assistance - and yes I must agree just because you have a modified site, it does not make your knowledge any less valuable.
If you have any luck with the url portion, please let me know and I will be happy to send you a donation, for your efforts!
I will also PM you about your one of your scripts (Carousel), I really like it, but I am wondering if it can be resized to a 300 or 325 width.
-MTOD
Quote:
Originally Posted by mytakeondisney
Thanks!!
Did you try ramius's code from above?
I will check my PMs.
Thanks, Jereme
ramius -
Correct me if I am wrong - but can we place a default pic like /photo/no_pic.gif and use an "else" statement - to fix that issue?Quote:
Now the only problem is when a user didn't upload a picture... nothing is shown on Firefox but on IE the classic X of picture missing...
I am going to read the php manual section on the "else" command (sorry I know I am a total newbie - I need a book to learn) and see if I can figure a way around it - most likle a PHP guru here may have the answer, but I am going to try! :DCode:<a href="{$baseurl}/{$uname}">[img]{$baseurl}/photo/{$UID}.jpg[/img] ELSE [img]{$baseurl}/photo/no_pic.jpg[/img]
-MTOD Erica
The thing ramius posted works...it puts up their profile picture with the link to their profile page, but not the website they mention in their profile. We're also trying to figure out how to get their website to appear.
I'll also try the "else" statement,but where you have an "else" statement, you must also have an "if" statement (I believe).
Ok, I have got the users website on my View Video page as well as my View Picture/Audio pages.Quote:
Originally Posted by grynmoors
The problem is that it requires that you edit the /include/function.php file which is encoded.
Here is the code anyway.
Add to /include/function.php
Add to /templates/view_video.tplCode:function insert_id_to_website($id)
{
global $config,$conn;
$sql="select website from signup where UID=$id[un]";
$rs=$conn->execute($sql);
return $rs->fields[website];
}
Code:{insert name=id_to_website assign=uwebsite un=$UID}
{if $uwebsite ne ""}<center>My Website: {$uwebsite}</center>{else} {/if}
This will display the Users website only if they have entered one. You need to be sure that the user does not inlcude the http://. I did this by putting a note next to the field when they initially add it.
You can see it in action here.
Again, this will NOT work on vshare unless someone knows how to pass different functions into the pages. For instance maybe we could save all of these new functions in a file named /include/extra_functions.php and then pass them into the view_video.php page. I am just not sure how to do that since the view_video.php file is also encoded. :(
Jereme
grynmoors -
Yes an IF statement is needed for the ELSE to work (or you kill the page - I have found that out - lol) - My little ones been sick the past two days so no time to work on that - but I will get to it tomorrow (Monday) and let you know what I found.
thejesustv -
What else can I say - incredible & awesome! I will plugin the code in the morning and let you know how it all works!
-MTOD Erica
I have solved in a "drastic" way, just putted 3000 standard pictures on /photo/, batch renamed 1.jpg, 2.jpg, 3.jpg etc etc... So the script have the pictures to associate to users (first 3000) and when a user upload his picture automatically the default one is overwritten! ;)
Rough but it works!
thanks for the code!