Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
News "Hack" Details »»
News "Hack"
Version: 1.00, by Link14716 Link14716 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-23-2002 Last Update: Never Installs: 40
Supported
 

Ok, I made a news ticker hack. This is my first hack. YAY!

Description:
This hack allows you to enter a message in the General Settings part of vBulletin Options in your Admin CP. Enter $news anywhere on any template and the message will show up.

HUGE credit to Xenon for showing me how to get the variables to work. Without him, this wouldn't exist.

Credit to Andy Sookram for the news ticker.

News Ticker found here.

To do:
1 MySQL Query
1 File Edit
? Template Modification(s)

Enjoy!

UPDATE 12/22/02
I decided to give this simple little hack an update. It no longer adds a query, and it is less confusing to install. Enjoy

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-28-2002, 12:29 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Satan
Reply With Quote
  #13  
Old 06-28-2002, 04:29 PM
Robert9 Robert9 is offline
 
Join Date: Oct 2001
Location: super
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

congratz! this would go well if I alrady didnt have mine ony my forums (feel free to somewhat use) www.ecforums.com/forums if you need it. I love the gradient backround
Reply With Quote
  #14  
Old 06-30-2002, 08:33 PM
Crazy Mofo Crazy Mofo is offline
 
Join Date: Nov 2001
Location: Newcastle,UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what news ticker u using Rober9?
Reply With Quote
  #15  
Old 07-01-2002, 05:32 PM
Crazy Mofo Crazy Mofo is offline
 
Join Date: Nov 2001
Location: Newcastle,UK
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me bump
Reply With Quote
  #16  
Old 07-01-2002, 07:50 PM
Schumi Schumi is offline
 
Join Date: Jan 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

I ran the query in phpMyAdmin, but i got the following mistake:

Quote:
Fehler
SQL-Befehl : [?ndern]

INSERT INTO setting (settingid,settinggroupid,title,varname,value,desc ription,optioncode,displayorder) VALUES (NULL,2,\'News\',\'$news\',\'\',\'Insert forum news here...\',\'textarea\',\'7\');
MySQL meldet: You have an error in your SQL syntax near '\'News\',\'$news\',\'\',\'Insert forum news here...\',\'textarea\',\'7\')' at line 1

Zur?ck
Who can help me?

best regards
Schumi
Reply With Quote
  #17  
Old 07-02-2002, 03:48 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would help if it where english, since that is my ONLY language, but, I think I know the problem.....

Are you using phpMyAdmin 2.2.0 or something?

Anyways, to get it to work, go into the setting table, see what the bottom settingid is (make sure you have it to view all), and add a new row.

Setting ID: 1 above the last one
Setting Group ID: 2

News
news

Insert forum news here..........
textarea
7

That should do it.
Reply With Quote
  #18  
Old 07-02-2002, 05:21 AM
Radon3k's Avatar
Radon3k Radon3k is offline
 
Join Date: Nov 2001
Posts: 245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Satan gave you a compliment! :surprised:

I'm not sure if that's good or bad... :laugh:
Reply With Quote
  #19  
Old 07-08-2002, 05:29 AM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Robert9
congratz! this would go well if I alrady didnt have mine ony my forums (feel free to somewhat use) www.ecforums.com/forums if you need it. I love the gradient backround
where can I download the newsscript YOU use ??? that looks pretty nice!!!

thanks,
Schorsch
Reply With Quote
  #20  
Old 07-19-2002, 03:05 AM
Schorsch's Avatar
Schorsch Schorsch is offline
 
Join Date: Jul 2002
Location: Germany
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*bump*
Reply With Quote
  #21  
Old 07-19-2002, 08:50 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let me "shed" some light on this.

He is using a javascript news fader. You can get a hack to have a fader somewhere around here (doesn't exactly require a hack, but it makes it considerably better), just use the little search box.

Also, the optional step in the text file has not worked for me with javascript faders, so I am guessing that it won't work with any javascript.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04882 seconds
  • Memory Usage 2,298KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete