vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   mYvBindex v3.1 (https://vborg.vbsupport.ru/showthread.php?t=44691)

Littlebit 01-18-2003 01:31 PM

Plur...I just ran it and it worked great! thank you again :)

XtReMaTriX 01-18-2003 02:17 PM

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!!!

Tigga 01-18-2003 02:25 PM

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")."\";");
}

Littlebit 01-18-2003 02:32 PM

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?

XtReMaTriX 01-18-2003 02:42 PM

Quote:

Originally posted by PlurPlanet
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")."\";");
}

:( well that got rid of the attachments... all of them...
now the ones with stuff in them dont show up

Tigga 01-18-2003 02:48 PM

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.

Tigga 01-18-2003 02:52 PM

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")."\";");
}

XtReMaTriX 01-18-2003 02:56 PM

yeah mine is already like that... and is still doesnt work... i am not sure what 2 do... anything else i should check?

XtReMaTriX 01-18-2003 02:58 PM

Quote:

Originally posted by PlurPlanet
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")."\";");
}

um...what attachment part... sorry not sure which u r talking about??? still in the myvbindex right?

Tigga 01-18-2003 03:00 PM

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
  • Page Generation 0.02955 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete