vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   PHPNuke to vB Hack (https://vborg.vbsupport.ru/showthread.php?t=6218)

01-09-2001 10:11 PM

great stuff :)

works like a charm - http://animeboards.net/forums/news.php

one problem.. how come the time posted all says

by: [eva2000] on 01-01-1970 at 10:00 AM ?




[Edited by eva2000 on 01-09-2001 at 07:23 PM]

01-09-2001 10:22 PM

Quote:

Originally posted by wluke
To limit the amount of characters shown you would do something like:
Code:

        if (strlen($message) > 160) {
          $snippet = substr($message,0,160) . " (<a href=\"".$lastposturl."\">more...</a>)<br>";
        } else {
          $snippet = $message;
        }

Then reference $snippet in the template instead of $message.

where in news.php file would you put this ?

01-10-2001 01:03 AM

Under:
$message=bbcodeparse($postinfo[pagetext],$forumid,1);

01-10-2001 05:48 AM

Quote:

Originally posted by wluke
I just started playing with this and it works great for the purposes I need. I did modify it so it was more tightly integrated with vBulletin.

Full news system in a few lines of code.

This is WAY cool! Just what I needed! But why does my news page and yours show the time/date as 12-31-1969 at 06:00 PM?

01-11-2001 03:35 AM

Nathan,

I fixed the date/time problem at t.com.
for those who are interested, here's what i changed:
========
this:
$postdate=date($dateformat,$myrow[dateline]+(($timeoffset+$bbtimezoneoffset)*3600));
$posttime=date($timeformat,$myrow[dateline]+(($timeoffset+$bbtimezoneoffset)*3600));

into this:
$postdate=date($dateformat,$thread[dateline]+(($timeoffset+$bbtimezoneoffset)*3600));
$posttime=date($timeformat,$thread[dateline]+(($timeoffset+$bbtimezoneoffset)*3600));
========

mind you i really don't know php too well so this may not be the best way to do it, but it works.

[Edited by jklbruin on 01-11-2001 at 12:37 AM]

01-11-2001 04:18 AM

Yeah that is the way it supposed to be done. I must have missed those two rows when I was changing the variable names from the original to more vB-Like names.

01-12-2001 12:50 PM

I was going to attempt this with very little skill but looks like you guys have already done so with success and I like it! Is it possible for me to get in on this? I am already upgraded to v.1.1.5 so that should help. THanks again guys.

01-15-2001 04:38 AM

i've seen quite a bit of website with the same layout as this one

http://www.purecrap.com/nuke2vb/

any idea on how the layout was made?? like all of them has this poll on the right, news in the middle, sitemap links on the left (the news are showed the same way, all with the readmore and comment function) a search, and a login command......

since i'm going to be a webamster soon too..i'm just wondering if anyone could share their 2 cents and tell me how this is made?

01-15-2001 08:55 AM

Quote:

any idea on how the layout was made??
Powered by http://www.phpnuke.org ;)

[Edited by PeF on 01-15-2001 at 05:57 AM]

01-15-2001 10:06 PM

oh cool! thx :)


All times are GMT. The time now is 12:16 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.01189 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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