Welcome, Guest. Please Login or Register.
October 07, 2024, 06:27:41 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  News.php « previous next »
Pages: 1 2 [3] 4 Reply Ignore Print
Author Topic: News.php  (Read 8279 times)
pege
Full Member
***
Posts: 146


Re:News.php
« Reply #30 on: October 14, 2002, 06:41:11 PM »
Reply with quote

I'd like to see a script like this that truncates to show you the article title as a link, the author name and date, then the first few lines of the post with a trailing "....", kind of like the ones they use on Community Zero, for their index boards.  That way, you could see more of the most recent articles in a smaller space.




Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:News.php
« Reply #31 on: October 14, 2002, 08:22:56 PM »
Reply with quote

that is pretty easy to do, if i had time i would write it up only a few lines of codes, maybe later i will code it. Unless someone esle has the time and want to write it real fast.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:News.php
« Reply #32 on: October 14, 2002, 08:45:07 PM »
Reply with quote

open News.php, search for:
   $news_body = DoUBBC($row['body']);
replace with:
   $news_body = substr($row['body'],0,100)."...";
   $news_body = DoUBBC($news_body);
change 100 with number of characters u want to display
u might need to change some text too in the links

havent been tested, try at your own risk
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
ivogomes
Noobie
*
Posts: 8


I'm just part of your imagination

ICQ - 101287795ivogomes@bigfoot.com WWW
Re:News.php
« Reply #33 on: November 21, 2002, 08:29:09 PM »
Reply with quote

Wht if, instead of a board, I would like to use a thread as News. Something like this:

Instead of using this:
<? include("http://www.mysite.com/yabbse/index.php?action=news;board=10;limit=15"); ?>

I would like to use this:
<? include("http://www.mysite.com/yabbse/index.php?action=news;board=155;threadid=123456;limit=15"); ?>

Is it possible??
« Last Edit: November 21, 2002, 08:30:07 PM by ivogomes » Logged
Deskdirect
Noobie
*
Posts: 13


I love YaBB SE!

Re:News.php
« Reply #34 on: December 13, 2002, 05:08:44 PM »
Reply with quote

Has anyone considered a MOD that would allows direct integration form for external news feeds into the that uses the XML interface for a generic solution and also supports news caching for performance & efficiency.
Logged
Termite
Jr. Member
**
Posts: 54


Re:News.php
« Reply #35 on: December 14, 2002, 04:11:56 AM »
Reply with quote

i'd like to see a variable that includes the news_posters picture.
Logged

Specs: FreeBSD 5.0-RELEASE #3, PHP Version 4.2.3, Apache/1.3.27, Mysql 3.23.54, YaBBSE 1.5.4
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:News.php
« Reply #36 on: December 15, 2002, 08:35:05 AM »
Reply with quote

wouldn't be too hard, just have to add an query and a function for it to work.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Termite
Jr. Member
**
Posts: 54


Re:News.php
« Reply #37 on: December 18, 2002, 06:09:30 AM »
Reply with quote

Quote from: Nemesis on December 15, 2002, 08:35:05 AMwouldn't be too hard, just have to add an query and a function for it to work.

could you please show me the snippet of code that would be need to add the news posters avatar? :-\
Logged

Specs: FreeBSD 5.0-RELEASE #3, PHP Version 4.2.3, Apache/1.3.27, Mysql 3.23.54, YaBBSE 1.5.4
Thomas
Full Member
***
Posts: 203


WWW
Re:News.php
« Reply #38 on: December 22, 2002, 11:57:44 PM »
Reply with quote

I have a question regarding aligning pictures when using news.php. It is posted here:
http://www.yabbse.org/community/index.php?board=137;action=display;threadid=15533

Can anyone help?

Will there be support for aligning images in SE 1,5?

/MR.T
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:News.php
« Reply #39 on: March 09, 2003, 04:48:21 PM »
Reply with quote

When i use the shtml version.. it brings back random characters... does the same thing when I try to see the shtml example in the first post  ???
Logged
Thomas
Full Member
***
Posts: 203


WWW
Re:News.php
« Reply #40 on: June 15, 2003, 10:06:16 PM »
Reply with quote

I too have the same error now.

When i try to include
<!--#include virtual="/forum/index.php?action=news;board=6;limit=1;template=news_template;ext=php" -->
on a shtml page www.homebox.no/test.shtml
I get only stranger characters:
Quote‹¬"ÍjÜ0Çïûƒ §¶¶7¡...fm—†J¡ÐèQ^mŲd$Ù».}Ý}‡;²w›l"z',k>~úÏH‹ÔóB!Æ ´Kl¤ðuÆ–Iò,W²Ò[£öhY¾H½Í©yZí¡äkÌØ-ZÁ5gàäZž±<•mή3V{ß]Äñf³‰jÓba¶'6qilßÆßùååuË+tñvU²ü±•B( KŸ±í–AœCZä׺4ð:tÀÚV˜ÆEžÆæˆi8fZSa)Ì••,ï"øBóY'œC£"X¾¹Xž]$É3¡nŸ,,ÙSµÅòßg"Zà6êêî=_{it6HÜtÖ"Ráªw¤úÑJÍò›è&Jc¾Ç܏{˜˜_ÐhÿZ,áI >¡|êVBÕ¨5ZÐ;hQjÐ#t}¡$qH]9uï4Í|D2¤]|n›üjn¡'Þƒq.Äi{ª[¼T°‡tê©:PؾAKÁH0!]Ó»;£Ý¤ ™Ï-'¯ˆê!Ѝ(,{){Ý?2'ƒm0捗dï­u¦уl,,{í(%a´Æ{NÉç¨.d¢-·ƒ†ëà@ AŠ$< se"øLN td§y×QÞ";z_ãC[S³Ç÷ŒZïì,,`A™ª ZGpuGrAcGçèx3ý&1œ¤™¾O9óAÎy¼>Dƒª{5ª»©Ti[œZÄ Ü¾¢/=ID š^à !¤>ÎsëçF!x...U=NߐBÜý¯–>ñ†['½]í/u_§ø¸òƒ I;竉?KXžÌ‡Ö´F®!ü<õ~ÿ'®3ÎåòÒ+̾Òï—;5>$ÿÖX9
But when I adress this site directly it works: http://www.homebox.no/forum/index.php?action=news;board=6;limit=1;template=news_template;ext=php

How come?

/Thomas
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:News.php
« Reply #41 on: June 15, 2003, 10:52:38 PM »
Reply with quote

You're doubling compressing the output.  Either turn off output compression, don't use it in your script.... or something.

-[Unknown]
Logged
skoen
Longing For a Title
YaBB God
*****
Posts: 601


Official translator and local mod.

ICQ - 164554802hoyreskoen@hotmail.com WWW
Re:News.php
« Reply #42 on: June 16, 2003, 12:12:10 AM »
Reply with quote

I tried the link now, and it worked for me.
Logged

Proud to be Norwegian

Feel free to send me an IM if you got any questions or comments regarding YabbSE or my translation.

My portfolio(Norwegian)

Caught 43 llamas.
Thomas
Full Member
***
Posts: 203


WWW
Re:News.php
« Reply #43 on: June 16, 2003, 05:17:03 AM »
Reply with quote

Quote from: skoen on June 16, 2003, 12:12:10 AM
I tried the link now, and it worked for me.
Did this one work for you:
www.homebox.no/test.shtml

/Thomas
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:News.php
« Reply #44 on: June 16, 2003, 05:25:51 AM »
Reply with quote

Quote from: [Unknown] on June 15, 2003, 10:52:38 PM
You're doubling compressing the output.  Either turn off output compression, don't use it in your script.... or something.

-[Unknown]
Logged
Pages: 1 2 [3] 4 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  News.php « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.065 seconds with 20 queries.