![]() |
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")."\";"); } |
All times are GMT. The time now is 04:33 PM. |
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:
|