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)

TECK 02-05-2003 07:34 PM

VB3 did not upgraded yet fully to XHTML, it still uses deprecated tags from old templates:
http://validator.w3.org/check?uri=ht...com%2Fforum%2F

They will be fixed once the code is out of beta, so it will look the same in Netscrape 4.7.

fuelcbx 02-05-2003 07:45 PM

Ah, got it!

Thanks!

leviw 02-06-2003 07:15 AM

I like the printer friendly ability vbhome lite offers, I know its barely related to your hack and if you dont want to support it thats fine, but heres my question:

How can I use the printarticle feature to make printer friendly versions of articles in my normal forum?

I have it all set up to use the printarticle.php page, but apparently the current code can only read the first article from the thread and I need to be able to pull up any individual article instead.

Here is the original code:

Code:

<a href="$bburl/printarticle.php?s=$session[sessionhash]&amp;threadid=$article[threadid]" target="_blank"><img src="{imageshome}/articleprint.gif" alt="Printer Friendly version" class="imgbordermiddle" /></a>
That can be found in "home_articlebit"

That works fine, the problem being if you use that same code on the normal page it just pulls the first article from that thread. I tried tinkering with it, substituting postid for threadid, etc, but I think the actual printarticle.php file needs a tweak to allow it to work and I just dont know enough php yet to make that tweak.

Any suggestions? :rolleyes:

TECK 02-06-2003 08:16 AM

FILE: printthread.php
FIND:
Code:

  ORDER BY dateline $postorder
  LIMIT $startat,$perpage

REPLACE WITH:
Code:

  ORDER BY dateline ASC
  LIMIT 1


sylem 02-07-2003 10:15 PM

got a screenshot???

1

leviw 02-08-2003 12:16 AM

So far as I can tell that didnt make any change.

Maybe I can rephrase this to make more sense:

I'd like to be able to make any single post printer friendly.

Currently both vbhome lite and the normal vbulletin support this using either printarticle.php or printthread.php, but both work off a thread ID which means it just pulls the top post.

Is there an alteration I can make that would allow me to use a link like this:

printarticle.php?s=$session[sessionhash]&amp;postid=$post[postid]

to pull ONLY the one post I want into a printer friendly format? Any tips would be greatly appreciated.

If this is off topic to the vbhome lite support please let me know I'd be glad to take the question someplace more appropriate.

-Just call me young grasshoppa and gimmie the turtle wax. :rambo:

Dan_UPC 02-08-2003 03:21 AM

I've just installed vbhome lite on my test board and I get the following error when trying to view the vbhome lite homepage:

Database error in vbHome 2.2.9:

Invalid SQL:
SELECT COUNT(*) AS total
FROM thread
WHERE dateline>0 AND forumid IN( )

mysql error: You have an error in your SQL syntax near ')
' at line 4

mysql error number: 1064

Any ideas how to fix this?

Thanks,
Daniel.

TECK 02-08-2003 07:30 AM

Search the thread. :)

TECK 02-08-2003 07:32 AM

Quote:

Originally posted by leviw
So far as I can tell that didnt make any change.

Maybe I can rephrase this to make more sense:

I'd like to be able to make any single post printer friendly.

Currently both vbhome lite and the normal vbulletin support this using either printarticle.php or printthread.php, but both work off a thread ID which means it just pulls the top post.

Is there an alteration I can make that would allow me to use a link like this:

printarticle.php?s=$session[sessionhash]&amp;postid=$post[postid]

to pull ONLY the one post I want into a printer friendly format? Any tips would be greatly appreciated.

If this is off topic to the vbhome lite support please let me know I'd be glad to take the question someplace more appropriate.

-Just call me young grasshoppa and gimmie the turtle wax. :rambo:

Ask your questions to the support forums, we have there several people that are familiar with vbHL and VB. :)

corsacrazy 02-09-2003 07:05 PM

how wood i go about showing the [img] tag in the article ! my pics just appear as links ! and yes i did search thru 179 pages but i found nutin ! and yes

Enable BB Code in article? is ON


All times are GMT. The time now is 02:33 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
  • Page Generation 0.04191 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_code_printable
  • (1)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