The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Another new jack ineed of help
Hello, I need some help with my VBB.
I recentley lost my webmaster, so im on my own with setting up my messageboard. I pretty much have most of it down, but i need help doing 2 things.. 1. I need to make avatars automatically asign to users when they register.. 2. I need a Mini top 10 most recent messages board on my front page of my website. "I used to have one, but lost it when my site crashed" Now i'm so new to this technical side of web site stuff its not funny.. Please can some one help me with these issues in as clear of a "non tech" language as posible... Much thanks in advance.. Sidious HeadBopMusic check out the website and look at the messageboard to see a example of my avatar question. I've been manualy asigning avatars.. also if you look at the front page, you'll see a empty space in the bttom left side of the page where the top 10 most recent board was.. These are examples to maybe help you understand what im talking about.... |
#2
|
||||
|
||||
1.
Open register.php find this: PHP Code:
PHP Code:
|
#3
|
|||
|
|||
Hmmm "Open register.php" where can i find that? In my V bulletin controll panel?
|
#4
|
||||
|
||||
FTP to your site
Go to where you forum is uploaded, there you will find the file called register.php download it to your harddrive and edit it with a software like notepad, and make the changes Xenon has mentiond. |
#5
|
|||
|
|||
ok im there i found it and what xenon said to look for, now my only question is to past the EDIT INFO "if($avatarid==0) $avatarid=x;"directley in fornt of "the info xenon metioned on the same line.
or do I past it on the line above? or dose it matter.. ? |
#6
|
|||
|
|||
also after i've done that.. How dose the board know what avatar to assign? I have the avatar on my hard drive.
|
#7
|
||||
|
||||
upload it to your webspace and where xenon gave you this line to put:
PHP Code:
- Mist |
#8
|
|||
|
|||
Hmm ok i did that, and th ewhen i tryed to register it brought aup a Error.. so put back the orignal register.php anyone know why i got a error,, here exactly what i have there.
if($avatarid==0) $avatarid=http://www.headbopmusic.com/board/hblogosm.gif; $homepage = trim($homepage); if ($homepage) { if (preg_match('#^www\.#si', $homepage)) { $homepage = "http://$homepage"; } else if (!preg_match('#^[a-z0-9]+://#si', $homepage)) { // homepage doesn't match the http://-style format in the beginning -- possible attempted exploit $homepage = ''; |
#9
|
|||
|
|||
Ok i think I did everthing right. My earlyer problem with the error was fixed. insted of:
if($avatarid==0) $avatarid=http://www.headbopmusic.com/board/hblogosm.gif; $homepage = trim($homepage); if ($homepage) { if (preg_match('#^www\.#si', $homepage)) { $homepage = "http://$homepage"; } else if (!preg_match('#^[a-z0-9]+://#si', $homepage)) { // homepage doesn't match the http://-style format in the beginning -- possible attempted exploit $homepage = ''; I chenged it to: if($avatarid==0) $avatarid= http://www.headbopmusic.com/board/hblogosm.gif;$homepage = trim($homepage); if ($homepage) { if (preg_match('#^www\.#si', $homepage)) { $homepage = "http://$homepage"; } else if (!preg_match('#^[a-z0-9]+://#si', $homepage)) { // homepage doesn't match the http://-style format in the beginning -- possible attempted exploit Now it allows registration agin with no error. But it still dosent link the the avatar automatically. when registering you can choose the avatar. its there uploaded on the server, the user would have to choose to use it. I'm trying to have it be a standered that the same avatar is used for all members the register. upon they're first post it should be there. with out them or me choosing it.. can this be done? Or is this what your trying to have me do and im simpley not doing it right? Thanks for you time & Help.. |
#10
|
|||
|
|||
ok ok A lot of posts i know....
I think what i'm trying to do is set the avatar option to default "always" leaving no option to change it.. And the avatar i uploaded to my server needs to be the DEFALUT. right now the avatar option in the user registeration screen is giving the user a option to choose a avatar, and when they drop down the menu to choose, the avatar i uploaded is there, as a option.. again I followed the instructions the best i could from you guy's info and the above example of the changes i made to the "register.php" are still in effect.. I also "inside administrative options" turned off the users abilitys to upload or add a avatar in anyway.. and the min. amount of post required to use a avatar is set to zero.. hopefully this helps explain my problem a little better.. ok thanks again..... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|