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)

miho 08-22-2002 04:34 AM

Excuse me, may be i did not express everything right (I,m German).

I tried it on your Homepage.

http://www.turkhukuksitesi.com/hukuk...93&postid=5459

This link under the news on your frontpage brings me to the first post in the thread, not to the post number 5459.

Logician 08-23-2002 09:24 AM

Quote:

Originally posted by miho
I tried it on your Homepage.
http://www.turkhukuksitesi.com/hukuk...93&postid=5459

This link under the news on your frontpage brings me to the first post in the thread, not to the post number 5459.

ok you are correct and congrats you caught a small bug which has gone unnoticed for months.. :)

The fix is:

Replace:

PHP Code:

$news[$i][link]='[<a href="'.$forumlocation."showthread.php?threadid=".$news[$i][threadid]."&postid=".$news[$i][postid].'">'.$readresttext.'</a>]'

AS:

PHP Code:

$news[$i][link]='[<a href="'.$forumlocation."showthread.php?postid=".$news[$i][postid]."#post".$news[$i][postid].'">'.$readresttext.'</a>]'

Thx for bringing this to my attention..

DeadMan384AD 08-24-2002 11:02 PM

Wow great script!

Unfortunatly, for some reason It isnt parsing the code for when people use the quote tag.

The instructions say to look for:
Code:

$postdate=vbdate($dateformat,$postinfo[dateline]);
$posttime=vbdate($timeformat,$postinfo[dateline]);
$pagetext=htmlspecialchars($postinfo[pagetext]);

but the closest I found was :
Code:

    $postdate=vbdate($dateformat,$postinfo[dateline]);
    $posttime=vbdate($timeformat,$postinfo[dateline]);
    $pagetext=$postinfo[pagetext];

It should be near the top of the file right? I'm still pretty new at installing hacks. This isnt a huge problem, cause I have it limited to only a few people to post news, but its messy and I'm sure people will ask about. and then put all the uneeded tags in there...

Also, I cant get
Code:

??STATICLINK??
to work... and we like to post the full news post on the main page, rather than having a summary.

Otherwise it was a great script! Exactly what I was looking for!

edit- Forgot to mention I'm using vB 2.2.6

Logician 08-25-2002 10:59 AM

Quote:

Originally posted by DeadMan384AD
Wow great script!

Unfortunatly, for some reason It isnt parsing the code for when people use the quote tag.

The instructions say to look for:
Code:

$postdate=vbdate($dateformat,$postinfo[dateline]);
$posttime=vbdate($timeformat,$postinfo[dateline]);
$pagetext=htmlspecialchars($postinfo[pagetext]);

but the closest I found was :
Code:

    $postdate=vbdate($dateformat,$postinfo[dateline]);
    $posttime=vbdate($timeformat,$postinfo[dateline]);
    $pagetext=$postinfo[pagetext];

It should be near the top of the file right? I'm still pretty new at installing hacks. This isnt a huge problem, cause I have it limited to only a few people to post news, but its messy and I'm sure people will ask about. and then put all the uneeded tags in there...

Do you you mean "parsing the qoute tag" in news or "deleting the news tags when a news message is quoted by another member"? (Installation Step 4)

If it's the latter you are right. Seems that vb 2.2.6 made some small code changes but where you referred is correct. Just apply the code after that part and you should be fine (this is for "deleting the news tags when a news message is quoted by another member")

Quote:

Also, I cant get
Code:

??STATICLINK??
to work...
What happens when you use it?

Quote:

and we like to post the full news post on the main page, rather than having a summary.
It's upto you, dont use summary tags then..;)

If you use only [news]Title of your news[/news] tags in a message, all post will be moved to your news page..

Regards,

DeadMan384AD 08-26-2002 02:50 AM

Yup, putting the Step 4 after rather than before worked. Thanks

Like it says, the newslink doesnt appear if only the news tag is used.
but the staticlink tag turns out as:

Logician 08-26-2002 07:19 AM

Quote:

Originally posted by DeadMan384AD
Like it says, the newslink doesnt appear if only the news tag is used.
but the staticlink tag turns out as:

ok got you.. Edit phpheader.php, find:
PHP Code:

$readresttext="Read All->>"

after that add:

PHP Code:

$staticlink="Go to Post->>"

And it will work as you wished..

DeadMan384AD 08-26-2002 11:19 PM

Excellent... Thanks man!
Once again, great hack!

zonegray 09-09-2002 01:51 PM

What are the limits on the $news_posters array? I might have 30-50 users that I'd want to enable this for.

Great add-on, BTW.

Logician 09-10-2002 07:21 AM

Quote:

Originally posted by zonegray
What are the limits on the $news_posters array? I might have 30-50 users that I'd want to enable this for.

Go ahead and add them.. Since the array values are hard-coded inside the code, adding a lot of members does not effect the performance..

DeadMan384AD 09-10-2002 11:36 PM

I finally have this available to the public on my site... and it looks great! Works great too! :D I just need to get it so smilies work, but I think you mentioned it in this thread already, if not... :D


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