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)
-   -   'Now Playing' Hack (https://vborg.vbsupport.ru/showthread.php?t=32587)

MarkB 12-10-2001 12:11 PM

Something like that sounds about right - Chen did a hack for me where certain forums have a different first post display - I imagine that this would use something similar...

KuraFire 12-10-2001 03:42 PM

*nods*

I wouldn't know how to do it in PHP or anything, but I'm sure that the only 'scripting' necessary here, is for one single IF statement to check whether this forum is id x (where x is defined in the code by the admin) and IF so, it makes this hack appear, and if NOT, it doesn't...

Maybe we should ask someone with more experience about it.. :)

ReT 01-08-2002 05:44 PM

i cant find this piece of code in 2.2.1

PHP Code:

      $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$postid'"); 


Lesane 01-09-2002 09:02 AM

Quote:

Originally posted by ReT
i cant find this piece of code in 2.2.1

PHP Code:

      $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$postid'"); 


The only similiar UPDATE POST code is on line 202 of newthread.php:

PHP Code:

$DB_site->query("UPDATE post SET pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$posts[minpost]'"); 

change above code to:

PHP Code:

$DB_site->query("UPDATE post SET pagetext='".addslashes($message)."',NP='".addslashes($nowplaying)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid',attachmentid='$attachmentid' WHERE postid='$posts[minpost]'"); 

Your welcome Derek :D

ReT 01-09-2002 04:23 PM

Thanks Maurice :D

DelusionalMind 01-27-2002 07:39 AM

will be installing this in the morning over at teencribs.com

should be a nice addition over there :)

Lionel 01-27-2002 10:59 AM

One can also pull out the data and establish a top10 chart...

Lionel 01-28-2002 05:54 AM

I installed this one very easily. I'd like to know: in edit post, the choice that was entered at first is not being redisplayed and have to be re-entered. Is that the way it is supposed to be or did I miss something?

thanks

fresh_froot 01-29-2002 05:49 PM

How about the option to choose from different icons. Maybe a CD or Music note for music, or a PS2 or Xbox or even PC for Videogames.

This could be a popular addition for any gaming sites as well, where people playing on more than one format.

Love the hack! Maybe it'll be come more.

Another thing...the directions for editing newpost are for newreply and vice versa. I don't know if anyone else caught that.

ytclear 01-29-2002 09:32 PM

i installed the hack and i thought everything was working fine, EXCEPT now when people hit post reply on old threads it puts there reply 2nd from last instead of last post.

Weird as ****


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