Page Index Toggle Pages: 1 ... 19 20 [21] 22  Send TopicPrint
Very Hot Topic (More than 25 Replies) News Script v2.0 for SP1.3 (Read 49902 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #300 - Dec 5th, 2004 at 2:37pm
Print Post  
the upper news frame from your test2.htm works almost fine, the problem is that your post contains this line
Code
Select All
src="http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?board=news_feed_bd;action=news;type=frame;bgcolor=FFFFFF;textcolor=000000;linkcolor=0000FF" 


There is no way to wrap this line as there is no space in it. Remove and it it should show properly.
  

The Administrator.
Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #301 - Dec 5th, 2004 at 4:04pm
Print Post  
also some people that have large avatar pictures for there profiles are resized in the forum 65x65 corectly but are full size in the new feed. Is there a way to make the <yabb userpic> stay resized?
  
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #302 - Dec 5th, 2004 at 4:33pm
Print Post  
Quote:
the upper news frame from your test2.htm works almost fine, the problem is that your post contains this line
Code
Select All
src="http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?board=news_feed_bd;action=news;type=frame;bgcolor=FFFFFF;textcolor=000000;linkcolor=0000FF" 


There is no way to wrap this line as there is no space in it. Remove and it it should show properly.


I am confused If I remove this line then the upper news Iframe won't have a source.
  
Back to top
 
IP Logged
 
Romplayer
Full Member
***
Offline


Do you know the Muffin
Man?

Posts: 216
Location: Augsburg
Joined: Oct 22nd, 2003
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #303 - Dec 5th, 2004 at 4:47pm
Print Post  
Roll Eyes

Just delete the whole tag!

Code
Select All
<iframe src="http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?board=news_feed_bd;action=news;type=frame;bgcolor=FFFFFF;textcolor=000000;linkcolor=0000FF" width="35%" height="800" marginheight="0" marginwidth="0" frameborder="0" name="news"> 

  
Back to top
WWWICQ  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #304 - Dec 5th, 2004 at 4:53pm
Print Post  
Romplayer wrote on Dec 5th, 2004 at 4:47pm:
Roll Eyes

Just delete the whole tag!

Code
Select All
<iframe src="http://nbvrl.servebeer.com/~nascar/cgi-bin/YaBB.pl?board=news_feed_bd;action=news;type=frame;bgcolor=FFFFFF;textcolor=000000;linkcolor=0000FF" width="35%" height="800" marginheight="0" marginwidth="0" frameborder="0" name="news"> 



I just did as you can see and the news feeds in the table don't autowrap. if you resize your explorer windows as you shorten the width you will see that the text in the cells above the iframe cell in both tables auto-wraps as the width becomes narrower but the iframe text does not. here is my code for the news_template maybe there's something I'm missing there.

Code
Select All
<table border="0" width="100%" align="center"><!--DWLayoutTable-->
<tr>
  <td colspan="2">
    <font face="verdana" size="2">
	<yabb icon> <b><yabb cat_name>: <yabb title></b></font><font face="verdana" size="1"><br>
	Written by <yabb author> on<yabb date><br>
	<br>
    </font>
  </td>
</tr>
<tr>
  <td width="100%" valign="top">
    <font face="verdana" size="2">
	<yabb message><br><br>
    </font>
  </td>
  <td valign="top" align="center">
    <yabb userpic>
  </td>
</tr>
<tr>
  <td colspan="2">
    <font face="verdana" size="1">
	<yabb views> times read, size: <yabb size> bytes, last comment by: <yabb lastposter><br>
    </font>
    <font face="verdana" size="2">
	<a href="<yabb viewcomments_url>" target="<yabb link_target>"><yabb comments_text></a> | <a href="<yabb print>">Print</a>
    </font>
  </td>
</tr><tr><td height="3"></td><td><img src="home/nascar/public_html/images/spacer.gif" alt="" width="46" height="1"></td></tr>
</table>
<br><hr width="100%">

 



again I appreciate your patience
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #305 - Dec 5th, 2004 at 10:00pm
Print Post  
D0T-C0M wrote on Dec 5th, 2004 at 4:33pm:
I am confused If I remove this line then the upper news Iframe won't have a source.

I'm refering to the actual post. Edit your post and remove this long line and it should look properly.
  

The Administrator.
Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #306 - Dec 5th, 2004 at 10:38pm
Print Post  
Excellent , it works. thank you so much for your patience.

now is there a way to resize the <yabb userpic> tags when they appear in the news feed? I need the news.pl to check for and resize userpics that are too big like the yabb board does and resize them accordingly.
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #307 - Dec 5th, 2004 at 10:53pm
Print Post  
In your news template, instead of the <yabb userpic> tag use the <yabb userpic_src> tag and put a <img src="..." width="65" height="65"> around it.
  

The Administrator.
Back to top
WWW  
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #308 - Dec 5th, 2004 at 11:10pm
Print Post  
thanks again michael, that's everything that was outstanding for me, thanks a bunch.
  
Back to top
 
IP Logged
 
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #309 - Dec 7th, 2004 at 3:52am
Print Post  
Just one more question, I have installed the enable_html_v14a_sp13.mod which allows me let let certain users to post HTML code but in the news feed it only displays the code and not the html page itself. In the forum the html is shown correctly. Is it possible to do this presently with this mod or does it require a mod to this mod for it to work? This is such a great mod and this would be an awesome addon.
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #310 - Dec 7th, 2004 at 4:04pm
Print Post  
Take a look at posts #149 and #150, they show how to modify the news to to allow html.
  

The Administrator.
Back to top
WWW  
IP Logged
 
cole
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 2
Joined: Feb 17th, 2005
Linking titles
Reply #311 - Feb 17th, 2005 at 5:07am
Print Post  
Hello,

thanks for the news mod.
I am using 1.3.1 and the news script works great.
(http://www.italiamia.com/cgi-bin/yabb/YaBB.cgi?board=annotico;action=news).

However I have a question:
How do I put the link in the titles of the news so I can get rid of "Read more" and the beginning of the message which I believe is in the <yabb message>?

Thanks,
Cole
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #312 - Feb 17th, 2005 at 11:36am
Print Post  
You'll have to modify News.pl a bit:

look for
Code
Select All
			# cut off too long messages if requested
			$size = length($message);
			if ($news_only_first_paragraph != 0 && $message =~ m/<br>/is) {
				@words = split(/<br>/,$message);
				$message = $words[0] . qq~ ... <a href="$scripturl?board=$board;action=display;num=$tnum" target="$news_link_target">$lang_news{'more'}</a>~;
			} elsif ($news_max_number_of_words != 0) {
				@words = split(/\s/,$message);
				if (@words > $news_max_number_of_words) {
					$message = "";
					for ($j = 0; $j < $news_max_number_of_words; $j++) {
						$message .= $words[$j] . " ";
					}
					$message .= qq~... <a href="$scripturl?board=$board;action=display;num=$tnum" target="$news_link_target">$lang_news{'more'}</a>~;
				}
			} 


and replace it with
Code
Select All
			# cut off too long messages if requested
			$size = length($message);
			if ($news_only_first_paragraph != 0 && $message =~ m/<br>/is) {
				@words = split(/<br>/,$message);
				$message = $words[0];
			} elsif ($news_max_number_of_words != 0) {
				@words = split(/\s/,$message);
				if (@words > $news_max_number_of_words) {
					$message = "";
					for ($j = 0; $j < $news_max_number_of_words; $j++) {
						$message .= $words[$j] . " ";
					}
				}
			} 


then look for
Code
Select All
$news{'send_topic_url'} = qq~$scripturl?board=$board;action=sendtopic;topic=$tnum~; 


and add the following after it:
Code
Select All
$news{'topic_url'} = qq~$scripturl?board=$board;action=display;num=$tnum~; 


Now you have a new tag available in your news template: <yabb topic_url>. Place that arround your topic title.
  

The Administrator.
Back to top
WWW  
IP Logged
 
cole
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 2
Joined: Feb 17th, 2005
Re: News Script v2.0 for SP1.3
Reply #313 - Feb 17th, 2005 at 6:29pm
Print Post  
Michael,

thank you very much!

Here's my implementation of the news script using a scrolling page with iframe: http://www.italiamia.com/

Mahalo!
(Thank you in Hawaiian)
  
Back to top
 
IP Logged
 
Romplayer
Full Member
***
Offline


Do you know the Muffin
Man?

Posts: 216
Location: Augsburg
Joined: Oct 22nd, 2003
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #314 - Feb 18th, 2005 at 6:17am
Print Post  
Wow, that's great! Shocked
  
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: 1 ... 19 20 [21] 22 
Send TopicPrint