![]() |
Plurplanet,
thanks so much for looking to see already. I'll go over everything from your readme from 2.0 to 3 like you said and double check all the templates info.. ..man, I can't believe I did that... |
ok plurplanet, found a bug, the birthdays on the home page don't link to the right place?? missing the bburl...any ideas?
|
Hi...
I have a question... but 1st I would just like to say very nice hack... ok well now for my Q: is there a way to have an attachment show up on the news postings? with or preferably without the text saying it is an attachment.... I would like to be able to post a picture with the news without having to upload the image via FTP.... please let me know... thanks |
Ranger - You're running v3.0, right? That's something I accidentally overlooked in that version. Here's how to fix that:
Edit your calendar_showbirthdays template. Change the link in this template and to the full url to your forums member.php file (ex /forum/member.php?s=$session[sessionhash]&action=getinfo&userid=$bd_userid). Note that it might take a day or or so before that will work properly because of the way vBulletin does the birthdays... It basically uses the above template to insert the birthdays into a field in the database, and won't update that field unless that field is manually deleted or it's time to update it. ;) Matrix - I've never really looked at adding attachments to news posts, but I wouldn't think it would be that hard. I'll try to look at that over the weekend and post here how you would go about adding that feature. |
*Edited to attach the file to add to the minihacks section* :)
|
Hi Plurplanet,
Here's the list of my options...to keep it clean I think I would like the queries to get rid of the unnecessary ones. Quote:
will I be able to re run the 3+ install script to get the latest default templates installed for sure...so I can do a compare with my customized? I'm sure my defauts are all probably 2.0 (errrr I suck) I'm thinking I might get an error when the script first goes to load the tables that are already existing...can I bypass that part somehow? sorry about this...all was totally my bad |
Actually it appears you are missing about 10 options as well... I was thinking that there would only be a couple of extra ones, but I must have got the version's confused for second and was thinking of the difference between 3.0 - 3.1. To make things easy on both of us, I made you a quick script that should update everything for you. Just upload it to your forums/admin folder and then go to the url in your browser. Note that it will change all the settings to their default, so you will have to reset all the myvbindex options in your Admin CP after you run it. It will also update all the default templates so you will be sure to have them all. You will not lose any changes to the templates that you have made, but it will overwrite all of the original ones so you will be able to click on the "view default template" link to see any changes. Also, you may want to edit any tempates that are still original since the default templates installed with be using the new style. Anyways, hope that helps you out and if you have any other problems let me know. :)
|
PlurPlanet - I just wanted to personally thank your for a great hack. I love it, and my members love it - It's great and you're support is great too!
thanks - jeff |
plurplanet...holy cow! you are wonderful! And it was all my fault too. Thank you thank you thank you ...for making things so easy for us numbnuts. lol
|
jeffj - Thank you. Glad you and your users are enjoying the script. :)
Littlebit - No problem at all. I figured a quick script would be easier than trying to explain everything. ;) Oh, and ignore the "Uninstall" part at the top. I just took parts from the uninstall and upgrade scripts and put them together, but I didn't change the header part. |
Plur...I just ran it and it worked great! thank you again :)
|
Hey, thanks again PlurPlanet.... what you did works, but one more little problem... now on every post, even those without attachments it shows a spot for a picture... and if there is not a picture for it then it will show a little broken image box (you know what i am talking about right?)
so... is there a way to say if attachment = 0 then do not display or something... i am not sure how 2 do it... once again i would really like it if u could help me... thanx!!! |
Glad everything's working for you Littlebit. :)
Matrix - Sorry about that. You should be able to fix that by opening your myvbindex.php file and looking for the code you just added: eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";"); And replacing it with: $news[attachment]=''; if ($news[attachmentid]!='') { eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";"); } |
Hi plurplanet, I just noticed that the vB code for the sigs in news aren't working. I checked and do have vB (and html) enabled for news. where do I need to head to fix it?
|
Quote:
now the ones with stuff in them dont show up |
Littlebit - Thank you for pointing that out. I didn't think about vB code in signatures when I added that part. You can fix that by opening your myvbindex.php file and looking for:
if ($news[showsignature]==1) { Right below that add: $news[signature]=bbcodeparse($news[signature]); Matrix - That's strange... It works just fine on my server. You could try changing this line: if ($news[attachmentid]!='') { To: if ($news[attachmentid]!=' ') { (just adding a space between the ' marks) That might fix it... If not let me know and I'll try a different method for it to see if an attachment exists. |
Just incase that doesn't work, here's another method you could try. Just replace that whole attachment part with this instead:
if ($news[attachmentid]=='') { $news[attachment]=''; } else { eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";"); } |
yeah mine is already like that... and is still doesnt work... i am not sure what 2 do... anything else i should check?
|
Quote:
|
Sorry, I guess I should have been more specific. Yes, still in the myvbindex.php file replace this part with what I posted above:
$news[attachment]=''; if ($news[attachmentid]!='') { eval("\$news[attachment] = \"".gettemplate("index_attachment")."\";"); } |
Quote:
Quote:
|
Quote:
|
Matrix - It looks like there's a } missing... To make things easy, just replace everything starting from:
// News Admin Options With: PHP Code:
// vbPortal mini calendar - by wajones |
Ok, the error is gone, but i am still not getting the attachments in there...
|
you can see here the thread with the attached file : Thread with picture
myvbindex.php is here... the 1st post should have it... : Myvbindex |
Matrix - Check your PM's. :)
|
Thanks PlurPlanet... it all works great now!!!
|
ok when i go to the addy for my website is (www.liquidflo.com/myvbindex.php) and its all white and it says done .. and at first i though it was cause teh templates were missing but they aint... i need help.. i have installed many harder hacks ...
my MSN is liquidflo@msn.com |
What did you set as your path in your myvbindex.php file?
|
chdir('/home/simon14/public_html/');
i had a feeling that was wrong lol but i dindt know it would make teh file blank.. do u know what it should be or... cant i run a readme file or something to find it |
Supersimon - try chdir('/home/simon14/public_html/rap');
If that doesn't work, search this thread for info.php and that will tell you how to find out what the path should be. |
Quote:
Did that exact thing and the box doesnt show up ? i made the template .. ?? |
Greetings,
I thought I followed the directions, but I seem to have screwed up something. After making all the changes, and uploading the files, I tried to install, and was greeted with the following message: Parse error: parse error in /home/pkrwud/public_html/vbulletin/admin/functions.php on line 812 Fatal error: Call to undefined function: vbsetcookie() in /home/pkrwud/public_html/vbulletin/admin/sessions.php on line 205 This same message came up when attempting to visit the forums as well, so, I just moved the vbulletin folder to a safe location, and replaced it with the back-up, and everything is as it was, but I'd really like to install this. Do you have any idea what I did wrong? TIA! Take care, ~Chris |
supersimon - There was a small mistake in 350chevy's instructions for that. If you'll refer to this post it will tell you how to fix that. :)
PKRWUD - It looks like you didn't edit your admin/functions.php file correctly. Make sure that file was edited according to the instructions and it should work fine. |
Thanks for the quick reply!
The only editing I did to the admin/functions.php file was to copy and paste the "weather functions" code above the "start doshutdown" code, as instructed. I just tried it again, and got the exact same error message. Confused in California |
how update from v2.0 to v3.1 ?
|
Quote:
I tried one more time, and had the same errors, so I just replaced the admin/funtion.php file with one from my back-up. and went forward with the install, minus the weather. Everything went smoothly, until I entered myvbindex.php after my domain to access the index. I was greeted with a parse error telling me I didn't enter my path correctly at line 13 of the myvbindex.php file. I tried every combo I could think of, but nothing corrected it. I'm obviously a rookie at this, and would appreciate if you could specifically tell me what should be entered on line 13. Here is the way it is right now (with the lines from before and after): // Enter The Full Path To Your Forums Here http://www.ricehatersclub.com/vbulletin/index.php?s= // No Further Editing Necessary Thanks |
3dfly - There are quite a few changes from versions 2.0 - 3.1. One of the biggest is that most all the templates were changed so that it would mesh better with vBulletin. If you look at the screen shots in the first post you can see that there's not much of a difference... If you would like to keep the templates the way they are you can still upgrade, it just makes it a little harder since you will have to edit a few of the templates to apply any changes. If you would like to change to the new template style then upgrading should be a little easier. Either way, let me know if you wish to keep the old style or switch to the new one and I will tell you what you need to do to upgrade.
PKRWUD - What version of vBulletin are you running? I don't see why you would get an error if you edited the admin/functions.php file correctly, but it's possible it could be something to do with the version of vBulletin you're running. As for the path, it should be the path to your forum folder, not the url. Try this instead - /home/pkrwud/public_html/vbulletin ;) |
I just installed 2.2.9.
Here is the first 14 lines of my myvbindex.php file: <?php error_reporting(7); // ------------------------- // mYvBindex v3.1 release by PlurPlanet (Brian Gunter) // ------------------------- $templatesused = 'index,index_threadbit,index_newsbits,index_news_a dminopts,index_news_comments,i ndex_news_commentnull,index_news_readmore,index_ne wsbits_rating,index_newsbits_s ignature,index_newsbits_avatar,index_newsbits_send tofriend,index_newsbits_printa ble,index_header,index_footer,headinclude,forumhom e_pmloggedin,index_welcometext ,index_logincode,index_buddy,index_buddylist,index _buddypmlink,forumhome_loggedi nuser,index_online,index_search,index_welcometext_ avatar,index_calendar,index_ca lendar_todaysevents,index_weather,index_custom1,in dex_custom2,index_pollresult,i ndex_polloption_multiple,index_polloption,index_po lloptions,index_pollresults_vo ted,index_pollresults_closed,index_pollreview,inde x_pollresults,index_polldiscus s,index_polledit,showthread_ratingdisplay,index_st ats,index_birthdaybits'; $loadmaxusers=1; $loadbirthdays=1; // Enter The Full Path To Your Forums Here /home/pkrwud/public_html/vbulletin // No Further Editing Necessary And here's the error I get: Parse error: parse error in /home/pkrwud/public_html/myvbindex.php on line 13 I want to resolve this before I try to figure out what's wrong with the weather. Thanks again |
your problem is the line below //Enter....
it should be PHP Code:
I hope this helps you out... this is the best hack I've ever installed. |
All times are GMT. The time now is 01:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|