Page Index Toggle Pages: 1 ... 20 21 [22]  Send TopicPrint
Very Hot Topic (More than 25 Replies) News Script v2.0 for SP1.3 (Read 49821 times)
D0T-C0M
God Member
*****
Offline



Posts: 806
Location: Tracadie
Joined: Sep 22nd, 2001
Gender: Male
Re: News Script v2.0 for SP1.3
Reply #315 - Feb 19th, 2005 at 4:08pm
Print Post  
Michael,
In reference to post #312 what do you mean when you say,

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

Sorry again for these stupid questions, I'm fairly new at this.
I tried doing the following without success
<yabb topic_url><yabb title><yabb topic_url>

I tried also putting the <yabb topic_url> tag on each side of my actual forum post title with  no luck also.

could you elaborate a little bit please on how
  
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 #316 - Feb 19th, 2005 at 5:52pm
Print Post  
<yabb topic_url> will be replaced with the url to your topic, so you should use something like this in your news template:

Code
Select All
<a href="<yabb topic_url>"><yabb title></a> 

  

The Administrator.
Back to top
WWW  
IP Logged
 
Vasilios Betoglou
Guest


Re: News Script v2.0 for SP1.3
Reply #317 - Mar 7th, 2005 at 8:48am
Print Post  
Great script I've used it in the past.  Is there a version or workaround for the new version of yaBB currently available?  It already includes a news.pl file and I doubt the two are compatible... but I'd still like to be able to display the posts from one particular board on another page via javascript.  I'm running YaBB YaBB 2 RC 1!
  
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 #318 - Mar 7th, 2005 at 1:29pm
Print Post  
There is no version of this mod available for Y2 yet, I'll port the mod as soon as the final release is out. Note that there are plans to improve the news.pl that comes with Y2, maybe this mod will no longer be necessary at the end.
  

The Administrator.
Back to top
WWW  
IP Logged
 
multikon
Full Member
***
Offline


Hakuna Matata

Posts: 240
Joined: May 14th, 2003
Re: News Script v2.0 for SP1.3
Reply #319 - Mar 20th, 2005 at 10:58pm
Print Post  
joelmachado wrote on Nov 28th, 2003 at 12:43pm:
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..


I Need this, anyone an idea ?


thx for reply
  

beware ... yabb goes wbb ^^
Back to top
ICQ  
IP Logged
 
Robert Peden
New Member
*
Offline


"Let's Get Dangerous!"
- Darkwing Duck

Posts: 25
Location: Torrance
Joined: Nov 11th, 2004
Gender: Male
Re: News Script v1.2 for SP1.3
Reply #320 - Jun 25th, 2006 at 1:07am
Print Post  
LoonyPandora wrote on Jun 30th, 2003 at 7:52pm:
That's an easy one - you have specified that guests cannot view any boards (look at the main board index page as a guest, you will see no boards there) - thus the news script rightly says you don't have permission to access it.

solution: goto your admin centre, and make the board / category you want your news to be on visible to guests. Easy 8)


I have a better solution.  By adding just two lines to the security.pl (in YaBB 1.4), you can make an exception - so users cannot see the "hidden" board from the forum (although they will be able to see from the "news" page).

This is for users who:
* Want to use the news script 2
* Want to hide a board from  all users except "Admin" (from the forum view)
* Disallow guests from accessing the forum, except:
* Allow guest and member access to news script 2 content on page outside YaBB

Please note that this mod required more boards / category options version 2 and news script version 2 to be installed - and this was done on e YaBB 1.4 forum, not the more recent YaBB 2.1.  Also note that the news board should have set the mbco2 options to allow the administrator user only to access the message board.

Code
Select All
<edit file>
Sources/Security.pl
</edit file>

<search for>
if ($view_users{$curboard} eq "" && $view_groups{$curboard} eq "") {$access = "granted";}
</search for>

<add after>
#Rob mod - makes users able to access news even if guest access is off.
		if ($curboard eq "Index_cat" && $username eq "Guest" && $action eq "news") {$access = "granted";}
		if ($action eq "news" && (-e("$memberdir/$username.dat"))) {$access = "granted";} # Allow members to access news also!
</add after>

 



That should do it.  IMPORTANT NOTE:
You must modify the above.  Change "Index_cat" to the id of your board to access (not the board's name, but the actual ID).

Works like a charm.

--Rob

  
Back to top
WWWAIM  
IP Logged
 
Page Index Toggle Pages: 1 ... 20 21 [22] 
Send TopicPrint