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)
-   -   Logician NEWS: Drag Any Message to Your Main Page (https://vborg.vbsupport.ru/showthread.php?t=39278)

WebMasterAJ 06-02-2002 03:32 AM

Alright, I probably have the dumbest question ever. First, let me say this script is FANTASTIC. However, is there any way for me to make it "View 179 Times" instead of "197 Times Viewed".

I've tried to do this on my own... but always got an error... so I must of been doing somethin wrong.

Anyways... THANKS FOR THE GREAT SCRIPT!

Logician 06-02-2002 08:08 AM

Quote:

Originally posted by WebMasterAJ
However, is there any way for me to make it "View 179 Times" instead of "197 Times Viewed".

Easy.. In newsconfig.php, find:

$replace_text=$news[$i][views].' Times Viewed';

Replace it as:

$replace_text='View '.$news[$i][views].' Times';

Enjoy.. ;)

Unknown553 06-02-2002 08:50 PM

Ok, got almost everything working right. I just noticed that the time I posted the news is always the current time, so I need some help with that. I changed some return date () code, but it clearly didn't work. I want to have the time is this format (in PHP): M. jS, Y \a\\t g:i A. Can someone help me get the correct time in there?

Logician 06-03-2002 05:25 AM

Quote:

Originally posted by Unknown553
Ok, I want to have the time is this format (in PHP): M. jS, Y \a\\t g:i A. Can someone help me get the correct time in there?
Edit "phpheader.php", find:

return date ("Y-d-m H:i:s", mktime($saat+$timeset, $dakika, $saniye, $ay, $gun, $yil));

and edit "Y-d-m H:i:s" part according to your wish..

Ihsahn 06-03-2002 06:49 AM

mmm ... looks very handfull ... i have a try with your hack ...
Thx a lot Logician :)

Unknown553 06-03-2002 07:43 PM

I tried that, and it returned: Dec. 31st, 1999 at 12:02 PM

Logician 06-03-2002 07:56 PM

Quote:

Originally posted by Unknown553
I tried that, and it returned: Dec. 31st, 1999 at 12:02 PM
And? What does it suppose to return? it seems that this is the date format you asked, isnt it? Confused here lol

Unknown553 06-03-2002 09:08 PM

Quote:

Originally posted by Logician
And? What does it suppose to return? it seems that this is the date format you asked, isnt it? Confused here lol
I didn't post it 3 years ago....

Logician 06-04-2002 08:04 AM

Quote:

Originally posted by Unknown553

I didn't post it 3 years ago....

I checked that out and couldnt find any bugs, it works for me: ie date is displayed in the format you want and correctly.

1- Please double check you modified the correct line:

return date ("Y-d-m H:i:s", mktime($saat+$timeset, $dakika, $saniye, $ay, $gun, $yil));

will be:

return date ("M. jS, Y \a\\t g:i A", mktime($saat+$timeset, $dakika, $saniye, $ay, $gun, $yil));

2- Make sure your post date is correct: News date is the date of your thread message, not the date you inserted [news] tags. So if you tag an old message as news, its news date will be old either.

If these do not work:
a) Give me the URL of your board message and news page so that I can check them out (Edit: Never mind I already checked them)
b) Send me your phpheader.php (as you modified)(delete password), newsconfig.php and your news message's entire text (with option tags you used). You can zip them and send via pm..

Regards,
Logician

Wildthinks 06-04-2002 11:19 AM

Hi Logician,

thx for this very good script...any wish form me:

- config with parameter for show only headers on site where i it wont and the completnews on a other page
- colorsupport (don't work on my page)
- more - button, when I have more then x-news
- search the news....

:rambo: it's unbelievable, but works fine :cheeky:


All times are GMT. The time now is 11:23 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.01330 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)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