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)
-   -   Hack News v3.0 (https://vborg.vbsupport.ru/showthread.php?t=42728)

grog6 08-24-2002 10:00 PM

Hack News v3.0
 
I finally decided to translate it in english (i'm french) :nervous:

This hack allows you to add on your index page a system of news viewable by all your members. You manage news via the admin CP, they are displayed on the forum in the shape of a "marquee" text.

You can insert HTML when you add a news in the admin CP and so, you can insert images, or effects on your text.

You can have the number of news you want, display will automatically adjust :)

You can totally customize the display too by editing the 3 new templates to make it more beautifull or adjust it with your visual theme !

Colors automatically adjust too with your themes but you can change it (put a background...) by modifying the templates

Have fun with it, i hope you will like ;)


[HIGH]VERSION 4 IS HERE [/HIGH]

grog6 08-25-2002 10:52 AM

of the admin CP

grog6 08-25-2002 10:53 AM

display on your index page if you only added 1 news

grog6 08-25-2002 10:54 AM

and with 2 news

Floris 08-25-2002 11:57 AM

thank you for sharing this with us :)

Chris M 08-25-2002 12:27 PM

Nice work:)

Satan

Ninth Dimension 08-25-2002 12:29 PM

Is there a limit to the number of letters in each news item? and how many news items get displayed on the site at anyone time?

[D]Vincent 08-25-2002 12:49 PM

Looks great bu I already have the news ader installed ^^

Tok Muda 08-25-2002 01:14 PM

i've followed all the instructions but is doesnt show up
on my header template, put the $news_affichage

dont know whats wrong? anyone could help..

grog6 08-25-2002 05:33 PM

Quote:

Originally posted by Tok Muda
i've followed all the instructions but is doesnt show up
on my header template, put the $news_affichage

dont know whats wrong? anyone could help..

Dont put this variable in the header but in your template forumhome ! ;)

For Ninth Dimension Each news is defined a a mediumtext in the DB, you can increase it by longtext but i think it is enough so !
All news you add are displayed, there is no limit, to remove a news item, just remove it from the DB via the admin CP ! ;)

tcs 08-26-2002 04:51 AM

Installed but only allows for 1 itemt then I get a sql error when adding additonal news items.

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO news (newsid,comments) VALUES ('Test','test')
mysql error: Duplicate entry '0' for key 1

mysql error number: 1062

Date: Monday 26th of August 2002 01:48:45 AM

grog6 08-26-2002 06:21 AM

Quote:

Installed but only allows for 1 itemt then I get a sql error when adding additonal news items.

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: INSERT INTO news (newsid,comments) VALUES ('Test','test')
mysql error: Duplicate entry '0' for key 1

mysql error number: 1062

Date: Monday 26th of August 2002 01:48:45 AM
Choose a number as id for your news item

Each news has to have a different number id ! ;)

thefreestyler 08-26-2002 06:32 AM

nice work click install
is it possible to put also the french version

grog6 08-26-2002 06:42 AM

Oki for the french version Freestyler :classic:

thefreestyler 08-26-2002 07:02 AM

thanks

grog6 08-29-2002 11:18 PM

It's not better here, 52 dls and only 7 answers ... :devious:

K_2 10-16-2002 10:57 PM

I have installed newshack 3.0 and went over to check and see if all the installation was done correctly (and it was) but the news does not appear. I have pasted $news_affichage right after $header and still nothing.

Could it be that the weatherhack is causing some problem?

maverick1969 10-16-2002 11:05 PM

Alors la je dit bravo pour ce hack

grog6 10-17-2002 06:28 AM

Thx a lot Maverick1969 (Merci beaucoup ;))

K_2 : Can you create me a member access to your forum to see the pb, normally there is no pb to install the hack ;)

maverick1969 10-17-2002 10:23 AM

je l'ai mis sur mon forum de teste et je le trouve nickel et encore sorry pour l'anglais mais je suis novice.

K_2 10-17-2002 03:03 PM

Quote:

Originally posted by grog6
Thx a lot Maverick1969 (Merci beaucoup ;))

K_2 : Can you create me a member access to your forum to see the pb, normally there is no pb to install the hack ;)

Email me man, and I will get you taken care of..

k_2@cox.net

Thanks alot!

grog6 10-17-2002 04:20 PM

K_2, I created an account on your forum, can you pm me on this forum or here to have more information ;)

K_2 10-17-2002 04:45 PM

you have PM here

vetrivex 01-03-2003 07:13 AM

hmmm, I dont' know how to make queryes O_O

grog6 03-19-2003 06:03 PM

[HIGH]NEW VERSION : 4.0[/HIGH]

Here is the new version of my hack

Modification between version3.0 and version4.0 :

- Best integration in the forum due to the variable {contenttatblewidth} in the news templates concerned, so, news templates'width is now the same that your forum's width.
- you can now add smilies directly
- You can now put vbcodes directly
- You can choose to display or no news from your admin CP

The archive countains an upgrade file to upgrade from v3 to v4 easily ;)



Modification par rapport a la version 3:

- Meilleure integration dans le forum grace a l'insertion d'une variable {contenttatblewidth} dans les templates news concernees, ce qui a pour effet d'ajuster automatiquement la largeur des news a celle de votre forum (par ex si vous avez defini une taille differente par rapport a l'origine)
- Affichage des smileys directement via leur code
- Possibilitee de mettre des vbcodes
- Possibilit?e d'afficher ou non les news, gerables directement depuis le CP

L'archive contient egalement un fichier de Mise a jour pour passer plus facilement de la version 3 a la 4 ;)


Here is the french version
Voici la version francais

grog6 03-19-2003 06:07 PM

Here is the english version
Voici la version en anglais

[HIGH]ARCHIVE UPDATED[/HIGH]
The news.php for the admin CP is now in english ;)

grog6 03-19-2003 06:10 PM

with news display options in the admin CP
avec option d'affichage des news dans le CP admin

grog6 03-19-2003 06:12 PM

and result with Vbcodes and smilies
Resultat avec des vbcodes et des smileys

:banana:

VampireMan 03-19-2003 08:50 PM

Merci! :-)

cirisme 03-20-2003 10:47 PM

Umm, the English version(4) has a French option...

PHP Code:

INSERT INTO `settingVALUES (201,2,"[b]Afficher les news sur votre forum ?[/b]","news_affich",1,"[b]Cette option vous  permet de choisir d\'afficher ou pas sur votre forum le systeme de news[/b]","yesno",7); 

Is a translation available?

yxboom 03-20-2003 11:25 PM

Babelfish says:
Quote:

To post the news on your forum?", "news_affich",1," This option enables you to choose to post or not on your forum the system of news
Anyway when you click Submit it resets itself.

grog6 03-21-2003 07:44 AM

Hummmm .... Where do you see option in french in the english archive ?? I've just downloaded it again and my query is in english :

Code:

INSERT INTO `setting` VALUES (201,2,"Display news on your forum ?","news_affich",1,"This option allow you to choose or no if you want to display news system on your forum","yesno",7);

One-Team 03-21-2003 07:49 AM

wooow
one team installed :p

yxboom 03-21-2003 12:08 PM

When you use the news update 3_4 it is French.

yxboom 03-21-2003 12:09 PM

I can't get the news to stick everytime I press submit it goes to 0 when adding a news.

Entourage 04-09-2003 12:00 PM

Got the same as yxboom, I installed it, everything did go perfect. But when your in the admin cp, and press: Manage tour news or add --> the things there are in french (like yxboom says: news.php is frenche)

pls upload an english version. Tnx

grog6 04-10-2003 12:49 AM

Oups, a file is in french in the englsih version ?
Sorry, it's too late now for me to dot it, it's 3:42AM in France ;)

Do it tomorrow ;)

Entourage 04-10-2003 06:58 AM

hehe np, thank you in advance.

grog6 04-10-2003 02:40 PM

It's now OK, I've updated the archive here:

https://vborg.vbsupport.ru/showthrea...447#post369447

News.php is now in english ;)
Just replace your by the new of the archive

Entourage 04-11-2003 11:15 AM

is it me or is the news.php still in french? pls recheck the zipfile


All times are GMT. The time now is 04:43 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.01383 seconds
  • Memory Usage 1,808KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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