Page Index Toggle Pages: 1 ... 9 10 [11] 12 13 ... 22 Send TopicPrint
Very Hot Topic (More than 25 Replies) News Script v2.0 for SP1.3 (Read 50294 times)
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #150 - Oct 29th, 2003 at 2:58am
Print Post  
Hi Michael

Install fine work fine Except

The the user picture ($userpic) showed improperly only in the message with HTML post it showed as
Code
Select All
http://www.mysite.com/YaBBImages/avatars/<br><img%20src=" border="0">  



Sounds like it couldn't interprete $userpic_url.
This happened only in the message with HTML post and the user picture is chosen from avatars the code that I added to allow HTML posts to show properly is below
Code
Select All
### Begin Enable HTML Mod
if ($message =~ /\#enable_html/isg) {
  $html_username = $tusername;
  $message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
  $enable_html = HTML_allow($html_username);
  $message = $message_backup;
  if ($enable_html == 1) {
    $message =~ s/\#enable_html//isg;
    $message =~ s/<br>/\n/ig;
    &FromHTML($message);
  }
} else { $enable_html = 0; }


if ($enable_html != 1 && $enable_ubbc) {
  $displayname = $tname;
  $mediausername = $tname;
  require "$sourcedir/YaBBC.pl";
  &DoUBBC;
}
### End Enable HTML Mod 



[edit1]
I think when the post message is the HTML format the script can't interprete this line correctly
Code
Select All
if ($tusername ne 'Guest' && &LoadUser($tusername)) {
                        $userprofile{$tusername}->[13] ||= 'blank.gif';
                        [highlight size=2 color=red background=]$userpic_url = $userprofile{$tusername}->[13] =~ m~\A[\s\n]*http://~i ? $userprofile{$tusername}->[13] : qq~$facesurl/~.$userprofile{$tusername}->[13];[/highlight]
                        $userpic = qq~<img src="$userpic_url" border="0">~;
                  }
 



[edit2]
<<SEE HERE>><===topic name My Romantic page doesn't show the User pic and this topic is the HTML format

<<SEE HERE>><==topic no 8 and 14 from top the poster is guest(Name -Kiss forever) but the user picture is belong to the previous member of the previous topic.

Thanks

« Last Edit: Oct 29th, 2003 at 12:33pm by Jake »  

   
Back to top
 
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #151 - Nov 11th, 2003 at 3:26am
Print Post  
Hi Everybody,I haven't heard any news from Michael Prager for a couple of weeks,He might be busy I think. Wink


Did anyone experience the problems that i mentioned on the previous post.

Thanks  Grin
Jake
  

   
Back to top
 
IP Logged
 
np6s4x
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 21
Location: Eau Claire
Joined: Nov 12th, 2003
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #152 - Nov 25th, 2003 at 10:34am
Print Post  
html wasn't working on the news page, so i added the code in the post at the top of the page, now html works yay! thx Grin

but yea, now user pics are busted in all posts on the news page html or not, i got two things:

1. a red x with this url:

Code
Select All
http://np6s4x.netfirms.com/public_html/YaBBImages/avatars/<br><img%20src= 



and 2. below the red x is:

Code
Select All
" border="0">  



if i look inside the page's source it says this:

Code
Select All
<img src="http://np6s4x.netfirms.com/public_html/YaBBImages/avatars/<br><img src="http://np6s4x.netfirms.com/public_html/YaBBImages/avatars/blank.gif" border="0" alt=""><br>" border="0"> 



looks like that it tried posting the avatar twice, with one inside the other... ???

it worked fine before, but not now, after getting the html to work...

so yea, pretty much the same problem, lol
« Last Edit: Dec 3rd, 2003 at 3:38am by np6s4x »  
Back to top
 
IP Logged
 
joelmachado
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 18
Joined: Oct 29th, 2003
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #153 - Nov 28th, 2003 at 12:43pm
Print Post  
Grin i love the mod, works great i love it,

Embarrassed  i just witsh that the mod was compartible with file attachment mod, so that when i put news on my board with a picture Att.. it will also display the picture
mybe with an <FILE ATT> tag or someting..

also the ability to print news like a print button for the html pages will be nice

o also, the ability for to count the topics, next every topic tittle, sort of like the Whoson mod does with recent topics,,  so that u can have a Sumary of all news on your home page also and then all the news on a news page

great mod
« Last Edit: Nov 29th, 2003 at 5:07pm by joelmachado »  
Back to top
WWW  
IP Logged
 
Aussa
Guest


Re: News Script v1.3 for SP1.3
Reply #154 - Nov 28th, 2003 at 12:50pm
Print Post  
It would be great to have a NEW flag indicate which topic is new or new post added.
  
Back to top
 
IP Logged
 
Pigdish
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 69
Joined: Feb 20th, 2003
Re: News Script v1.3 for SP1.3
Reply #155 - Dec 2nd, 2003 at 3:39pm
Print Post  
Hi!
I'm having some trouble getting this mod to work.  I have MCO2 installed and using YaBB 1.3.

I have installed the mod, uploaded the news_template.html in the location of YaBB.cgi, I have News.pl in the Sources folder, renamed the page, where I want to display the news, index.shtml.  What I am confused about is how to designate a board to display the news items from my current boards.  Currently when I go to the index.shtml page the entire forum is displayed with an error:

An Error Has Occured!

You are not allowed to access this section.


Any help in getting this to work would be appreciated.

Thanks in advance.
  
Back to top
 
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #156 - Dec 2nd, 2003 at 4:06pm
Print Post  
Are you sure that guests are able to access this board? (check this by logging out of your forum, and looking at your board index - if you can't see the board you are looking for, guests can't access it) - also check that the board id is spelled correctly in your test.shtml file.
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Pigdish
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 69
Joined: Feb 20th, 2003
Re: News Script v1.3 for SP1.3
Reply #157 - Dec 2nd, 2003 at 4:43pm
Print Post  
I think that is part of the problem.  For some reason I can't enable guest posting (checked or unchecked in the Forum settings).  I also seem to be having a problem staying logged in (despite having the 'stay logged' in box checked).
  
Back to top
 
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #158 - Dec 2nd, 2003 at 5:22pm
Print Post  
guest posting is not the same as having guest access - did you do those tests? do you have MBCO installed?

also, is your YaBB running in a frames, and does your browser have cookies enabled (regarding your YaBB logging you out)
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Pigdish
Junior Member
**
Offline


I love YaBB 1G - SP1.2!

Posts: 69
Joined: Feb 20th, 2003
Re: News Script v1.3 for SP1.3
Reply #159 - Dec 3rd, 2003 at 12:33am
Print Post  
Hi Loony!

I got the news script to work on my old board.  Your suggestions were the exact thing I needed to figure it out.

The problem is with my new board, the one you helped me with transferring the data.

Thank you very much for your help as always.  Smiley
  
Back to top
 
IP Logged
 
ms_ukyankee
Senior Member
****
Offline


fka whisper68

Posts: 365
Location: England
Joined: Apr 18th, 2002
Gender: Female
Re: News Script v1.3 for SP1.3
Reply #160 - Dec 11th, 2003 at 1:38pm
Print Post  
I've come across a strange error that a single user gets with the News, I'm a bit lost at what could be causing it.

This user, upon trying to follow the "read more" or "comments" links, gets this error.

Code
Select All
CGI Error..The specified CGI application misbehaved by not returning a complete set of Http headers.  The headers it did return are:
undefined subroutine &main::LoadIMs called at ./Sources/Subs.pl line 351.
Compilation failed in require at F:/WEBs/mysite.com/public/cgi-bin/yabb/YaBB.pl line 34 



Windows server, yabb 1.3.1. I've had other people test this, it works fine for everyone but this one user. Any ideas? ???
  

No longer active on Boardmod, migrated to another forum system.
Back to top
ICQ  
IP Logged
 
carm
New Member
*
Offline



Posts: 41
Joined: Sep 26th, 2001
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #161 - Dec 13th, 2003 at 1:42am
Print Post  
I apologize if this question has been asked before.  I'm wondering if it's possible to declare the length of each news article similar to the way we can declare the total number of news articles to display.

For example:

Display only one paragraph:
YaBB.cgi?cat=general_cat;action=news;display=10;paragraphs=1

Display the entire news article:
YaBB.cgi?cat=general_cat;action=news;display=10;paragraphs=all

I know i could set $only_first_paragraph = 1 in news.pl, but this will affect all templates.

Does something like this already exist?  If not, would it be possible to add this to the list of things to do?   Smiley
  
Back to top
 
IP Logged
 
Kyle McCullough 105
Guest


Re: News Script v1.3 for SP1.3
Reply #162 - Dec 15th, 2003 at 2:14pm
Print Post  
I can't download it from the link!

I get an internal server error!

Help?!?

Can someone make it work again?  Thanx!
  
Back to top
 
IP Logged
 
LoonyPandora
God Member
*****
Offline


Daft Cow?

Posts: 1705
Location: London
Joined: Jun 27th, 2002
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #163 - Dec 15th, 2003 at 2:23pm
Print Post  
  

Apple Technical Support
Code
Select All
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig; 

Back to top
WWWICQ  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: News Script v1.3 for SP1.3
Reply #164 - Dec 19th, 2003 at 11:06pm
Print Post  
carm wrote on Dec 13th, 2003 at 1:42am:
I apologize if this question has been asked before.  I'm wondering if it's possible to declare the length of each news article similar to the way we can declare the total number of news articles to display.

For example:

Display only one paragraph:
YaBB.cgi?cat=general_cat;action=news;display=10;paragraphs=1

Display the entire news article:
YaBB.cgi?cat=general_cat;action=news;display=10;paragraphs=all

I know i could set $only_first_paragraph = 1 in news.pl, but this will affect all templates.

Does something like this already exist?  If not, would it be possible to add this to the list of things to do?   Smiley

Take a look at reply #23, you can do it the same way for your only_first_paragraph.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 9 10 [11] 12 13 ... 22
Send TopicPrint