View Full Version : Hack News v3.0
grog6
08-24-2002, 10:00 PM
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 ;)
VERSION 4 IS HERE (https://vborg.vbsupport.ru/showthread.php?postid=369444#post369444)
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
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 ! ;)
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
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:
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.
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 ;)
vetrivex
01-03-2003, 07:13 AM
hmmm, I dont' know how to make queryes O_O
grog6
03-19-2003, 06:03 PM
NEW VERSION : 4.0
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
ARCHIVE UPDATED
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...
INSERT INTO `setting` VALUES (201,2,"Afficher les news sur votre forum ?","news_affich",1,"Cette option vous permet de choisir d\'afficher ou pas sur votre forum le systeme de news","yesno",7);
Is a translation available?
yxboom
03-20-2003, 11:25 PM
Babelfish says: 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 :
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/showthread.php?s=&postid=369447#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
/me clicks install
Thanks
Edit:
Is there a way to make the text smaller?
grog6
04-11-2003, 09:26 PM
@oricon : Which text ?
The marquee text ? Just use Vbcode to reduce the size ;)
grog6
04-11-2003, 09:33 PM
@Entourage : It's you ;)
Remove your Internet temporary files and dl it again ;)
chitown
05-07-2003, 01:58 PM
is there anyway to set this up for only certain usergroups to see?
grog6
05-07-2003, 02:43 PM
Add restriction access to modification to add in the index.php such as
if ($bbuserinfo[usergroupid] == X) {
............ Modification for my hack .........
}
;)
mitomcua
07-16-2003, 09:08 AM
Sorry to ask but how do i create a table as per instruction? what command should i type in the mysql prompt?
Thanks,
m
esfron
07-18-2003, 03:10 PM
Where can I see it in action ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.