Current time: 09-06-2010, 01:37 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No Avatar
05-24-2006, 04:00 PM
Post: #1
No Avatar
Is there a way to specify an avatar when the user has no selected one yet?

CafeParents.com - Parent-to-Parent discussion forums
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2006, 04:13 PM
Post: #2
RE: No Avatar
you could change the default-setting in phpmyadmin to some value that you wish to have as a avatar?
Find all posts by this user
Quote this message in a reply
05-24-2006, 05:41 PM
Post: #3
RE: No Avatar
Here you go:

http://mods.mybboard.com/view.php?did=216

Please do not PM me for help, I will always tell you to ask in the support forums.
Likewise, people who contact me through MSN or another IM client asking for help will be instantly ignored...
The Atheist Blogger | My MyBB Mods | DrPoodle.com | My Blog | Atheist Forum
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2006, 06:46 PM
Post: #4
RE: No Avatar
DrPoodle Wrote:Here you go:

http://mods.mybboard.com/view.php?did=216
Thanks, DrPoodle!

Perfect for new users. Now just have to figure out how to find/replace if no avatar is present for current members.

Thanks again.

CafeParents.com - Parent-to-Parent discussion forums
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2006, 06:59 PM (This post was last modified: 05-24-2006 07:09 PM by Martin M..)
Post: #5
RE: No Avatar
Save this script to an file
PHP Code:
<?php
require "./global.php";

$url "http://www.homepage.com/avatar.jpg";
$db->query("UPDATE ".TABLE_PREFIX."users SET avatar='".addslashes($url)."' WHERE avatar=''");
?>
And upload it and run it through your browser.
Hope it works. Not tried.
Find all posts by this user
Quote this message in a reply
05-24-2006, 07:03 PM
Post: #6
RE: No Avatar
You can also run this query in the phpmyadmin

PHP Code:
UPDATE mybb_users SET avatar='http://blabla' WHERE avatar='' 

Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2006, 07:04 PM
Post: #7
RE: No Avatar
require "./general.php"; ??

Do you mean global.php?

Thanks for all the help guys.

CafeParents.com - Parent-to-Parent discussion forums
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2006, 07:08 PM (This post was last modified: 05-24-2006 07:10 PM by Martin M..)
Post: #8
RE: No Avatar
ops. sorry. I use general for my page so I mixes them up. *fixes*
oh wasn't really necessary with all that queries =P
Find all posts by this user
Quote this message in a reply
05-24-2006, 07:11 PM
Post: #9
RE: No Avatar
zaher1988 Wrote:You can also run this query in the phpmyadmin

PHP Code:
UPDATE mybb_users SET avatar='http://blabla' WHERE avatar='' 
Worked great.

Thanks again.

CafeParents.com - Parent-to-Parent discussion forums
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2006, 07:37 PM
Post: #10
RE: No Avatar
Couldn't he just put that query into the global.php so it runs constantly, to save him from running the file again and again? Or will that affect the actual changing of a avatar in the User CP?

Please do not PM me for help, I will always tell you to ask in the support forums.
Likewise, people who contact me through MSN or another IM client asking for help will be instantly ignored...
The Atheist Blogger | My MyBB Mods | DrPoodle.com | My Blog | Atheist Forum
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)