![]() |
yep ok but u still need to do it to phpheader
i aint installed it m8 so only going off a quick read of the install instructions. But u deffo missing some tables thats for sure |
ehh.. i did it in the phpheader.. and i know im missing the tables ... i guess ill wait for Logician to respond...
|
Quote:
PHP Code:
Quote:
|
O ok so im supposed to you the same database the vB is using? ... damn im dumb lol.. i made a whole new databse for this lol, i'll change it when i come home today afterschool.
|
ok i did what you said...
and i wrote several news threads....and when i look @ where the news is supposed to go to.. it just says "News has been compiled in 0.0143 seconds." and it shows no news though/ |
Quote:
For instance your problem usually happens because you didn't edit the part: PHP Code:
|
yes i edited that ...
PHP Code:
|
and checked other phpheader.php options too? Say:
PHP Code:
|
Thank you very much .. i just need to change the way the news looks when posted, thank you for all the quick reposnses :)
|
o damn sorry to double post but ... my concern is not post count of these boards lol neways...
i would like to change the format of the date in 2 ways .. i would delete the part that says "Past Date:" because i dont need that part... also i would like the date to read (random date) .."9/18/2003 at 'time'" ALSO this right here may be asking alot lol so if it is you dont have accomodate this request, anyway you think you make it so that the time is in a 12hour format and then you can use am or pm ... |
Quote:
PHP Code:
http://tr.php.net/date |
thank you
|
Logician I'm trying to get the news table to match the design specs for my site's main page. I know I can get the text to layout properly however I'd like to have the option of including a graphic along-side the intro text (see the attached image for an example of what I'm trying to do). I had the idea of making a new vbcode (something like [newsimage={file}]) that could be included in news posts. However I'd like to know how to get your script to pick-up the file so I could drop it into my table as one of the news variables (££nImage££ or some such). Any ideas on how this could be accomplished?
|
Quote:
But if you want to insert a different image per news, this wouldn't easily be possible without tweaking with the hack structure. |
Yeah I'm looking to include a different image per post. I'm fully willing to tweak if you're up for showing me what to tweak. :)
|
very nice, solves my problems
|
Is there a Vb3 version of this in the pipe!?
|
Quote:
|
the old hack works fine on my vb3 testboard
|
Hey logician! How ya doing??.... well, I installed this and it works perfectly, I just need one more thing though... I want the avatar of the news poster to appear on the index of my site... is this possible withouth modifying the SQL?... if no, then its just fine :) I just wanted to ask :)
Thnx for another GREAT hack! |
hey logician... humm.. sorry for being such an annoying guy... but I think u are the only one who can help me....
first of all, I don?t care about the avatar thing anymore.... I create a news template that looks quite good :)... but I have a functionality problem... I have my site in both, english and spanish, so I need two news scripts (I used to use fusionnews... but it was too slow to login, write the news, then logout and then do it all over again on the other script... it worked, but it was too slow...). I?ve installed this script in two different folders, noticias and news. Then installed the advanced way and post a news item on my spanish forum. worked.. perfectly... then posted on the english one.. perfect again, both showing on their respective pages. The problem came when I posted agian on the english forum, one newswriter posted and the old post dissapeared from the mainpage... I thought it may be a installation error but no. I then tried to post another news on the english forum and nothing, the post my friend created was(and still is) the only one that can be viewed on the english main page... even if I post a newer news item.. X.x... I can post again on the spanish forum and it works perfectly... they started deleting each others [news]tags, but that was an easy tsolve problem... (just had to set "$remove_news_tag" to 0) but now I?m desperate... plz help! here are some URLS that may be helfull: http://zelda.wi3k.net/home2.php <-- english mainpage http://zelda.wi3k.net/foro/forumdisplay.php?forumid=22 <-- english news forum http://zelda.wi3k.net/home.php <-- spanish mainpage http://zelda.wi3k.net/foro/forumdisplay.php?forumid=23 <-- spanish news forum hope u can help me... I think the solution is to create a whole new script.. kinda... for the english news... I mean, with different variables, tags and everything.. but I?m unsure.... :) thnx in advance and sorry for being so annoying (again)... BTW I?ve double and triple checked the phpheader.php file of both, english and spanish and they are right. also, every post has the tags within it :o... |
The script is designed to turn off news tags when a news is not pulled into the news page for a reason. In your example when spanish script runs, english news is not pulled since their forum id is not matched so the script deletes them.
This should fix your problem: find: PHP Code:
PHP Code:
|
lol.. it didn?t.... I, the administrator, can?t post news.. I logged in as "Zeldafan" (my other news poster" and it worked... kinda... it replaced the other new with the one I posted under his name... of course I?ve checked this: $max_news=0; so I dunno what the problem is... :oops:..... again sorry for beeing so annoying :s...
[EDIT] mmmm.. now it?s weirder.. it says: "news hve been compied in xxxxx seconds" but nothing appears!!... Oo... and the spanish one has just 1 news (there are 2 news on the forum @@.... [EDIT] I installed all over again from start, of course, replacing the text that u gave me logician, and here?s what I get: PHP Code:
|
sorry should be in_array not inarray
|
lol, thnx, it solve the fatal error problem, but it?s not compiling the news.. I?ll try erasing the forums and creating new ones and installing all over.. I?ll tell u how it came out after :)
[EDIT] lol, I did what stated above... english poster posted a news on english and I posted in spanish... again, spanish is working and english isn?t... english just says: "News has been compiled in 0.0535 seconds." but the news don?t appear... I did a new install (downloaded and started all over again) for both files, I erased the old forums and created new ones, what changed their ID?s.... I checked all twice and it?s not working. I think it?s the hack since it?s not created to support two different languages in two different pages.... but I dunno :ermm: any ideas?... if it?s too much trouble just tell me and I?ll install fusionnews or something for the enlgish part.. (damn.. >.<)..... |
Logicina,
Warning: mysql_connect(): Access denied for user: 'a0005075@localhost' (Using password: YES) in /home/logician/public_html/newsdemo/newsconfig.php on line 26 Couldnt find MYSQL! |
check your database settings in phpheader.php
|
will this work for 3.x?
|
i've installed this hack a year ago, now i've upgraded to vb3 and it still works.
great works with vbulletin 3.06 |
Quote:
|
with an upgrade, it works.i didnt tried with a new install.
|
Can we get details on how to use it for vb3? It would be awesome :D!
|
I still use this even now in vb 3.6.4 , Fresh install :)
the only problem i have with it now is the ability to hide the tags from people who use quote. We used to have to edit the newreply.php and add a small drop of code, however cant see where to continue doing this as the newreply.php no longer has that code or at least has changed considerably. OLD Instructions:- Step 4: (Optional) What if you use news tags in a message and someone replies this message by pressing "QUOTE" in the original thread? Your news tags will be revealed to him. IF he is not authorized to send news, this is no big deal but if you want to hide them anyway, you can apply this optional hack too: Edit newreply.php and find Code:
$postdate=vbdate($dateformat,$postinfo[dateline]); Before that add this: Code:
$pagetext = preg_replace("/(\[)(news)(])(\r\n)*([^\"]*)(\[\/news\])/siU", "" ,$pagetext); If you get the time, Id appreciate an update to this :) also do you know if its possible to hide the buttons on the advanced wysiwyg editor from specific groups ? |
i get an error when i try this
mySQL error:Table 'squaddes_Vbulletin.post' doesn't exist it is in the phpmyadmin stuff code. Code:
<?php |
All times are GMT. The time now is 08:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|