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)
-   -   vbHome (lite) - your vBulletin(powered) main homepage (https://vborg.vbsupport.ru/showthread.php?t=36756)

JBMoney 04-30-2002 02:24 AM

How can I get the news display to recognize UBB code? As of now, it's printing out all the UBB codes.

TECK 04-30-2002 02:39 AM

in the vbHome file, is used the function bbcodeparse();
that means everything related to vBcode, smilies, etc is reflected on your forum options.

JBMoney 04-30-2002 03:45 AM

I see this line:

PHP Code:

$newstext=bbcodeparse($getnewssql[pagetext],$newsforum,1); 

That's the only line referring to 'bbcodeparse' that I see and it doesn't seem to be doing the trick. :(

TECK 04-30-2002 03:59 AM

this function is used in VB, in functions.php
curious if anyone else have the same problem?

AussieSat 04-30-2002 07:24 AM

Thanks Nakkid, it helps if one uses the correct code.......
I'll give it a try and see how it goes.

Cheers, AussieSat

JBMoney 04-30-2002 02:42 PM

I figured that out. I had done some customizing and had neglected to change one item.

This isn't a problem, but what VB code would have to be copied to the vbHome index.asp, to make attachments display?

TECK 04-30-2002 05:16 PM

as i said before, i will give support on the addons as much as i can.. i plan on rewriting this hack.. since it uses alot of queries.. please ask other fellows hackers here, i'm sure they will help you..

Bad Bunny 05-04-2002 08:59 AM

This is totally awsome. I will be trying it out to add some more features and such to it. Thanks CO MUCH.

E 05-04-2002 10:44 AM

how would i go about having the newsbit so it displayed the first message on the front page... but havin like a news.php file or something so i can have links next to it of say the last 4 news items before that one so it will look like this

Code:

NEWS                  |  Sidebar
                            | Other News
news message    | News Item 1
bla bla bla            | News Item 2
bla bla bla            | News Item 3

wehn u cliuck the news items it takes u to that piece of news items on a new page..... or this would be easier too make... u could have it so it says OTher News....
and when u click it it takes u too news.php with all 4 of the news pieces..... ??

E 05-05-2002 12:21 AM

k i have news.php done.. but it has the piece on the front page as well as the others.... how can i get rid of the first one editin this code
PHP Code:

// news ***************************
$newssql=$DB_site->query("SELECT * FROM thread
                          WHERE forumid='
$newsforum'
                          ORDER BY dateline DESC LIMIT 
$newsposts");
while (
$news=$DB_site->fetch_array($newssql)) {
  
$newsthreadid=$news[threadid];
  
$newstitle=$news[title];
  
$newstime=vbdate($timeformat,$news[dateline]);
  
$newsdate=vbdate($dateformat,$news[dateline]);
  
$newsusername=$news[postusername];
  
$newsuserid=$news[postuserid];
  
$getnewssql=$DB_site->query_first("SELECT * FROM post
                                     WHERE threadid='
$newsthreadid'
                                     ORDER BY postid ASC LIMIT 1"
);
  
$newstext=bbcodeparse($getnewssql[pagetext]);
  
$newsavatarurl=getavatarurl($newsuserid);
  if (
$newsavatarurl=="") {
    
$newsavatarurl="{imagesfolder}/clear.gif";
  }

  eval(
"\$newsavatar = \"".gettemplate('home_avatar')."\";");
  eval(
"\$newsbits .= \"".gettemplate('home_newsbits')."\";");
}
// end news *********************** 



All times are GMT. The time now is 06:01 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.02384 seconds
  • Memory Usage 1,751KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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