Page Index Toggle Pages: 1 2 3 [4] 5  Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] Collapsable YaBB Front End (Read 29674 times)
snYpir
New Member
*
Offline


Yo' all

Posts: 48
Joined: Apr 17th, 2002
Re: [DONE] Collapsable YaBB Front End
Reply #45 - Aug 11th, 2002 at 7:35am
Print Post  
Ok, it's been awhile. Cheers to the dudes for finally uploading this mod to the database.

Pointers - I have no idea why that occurs. The mod does nothing tricky, it simply reads a tiny file every time the main board index is loaded. Sorry but i can't really help Sad

KingOfChaos - For the record the mod will default to expanded when a user loads the modded board index for the first time.

I have started using YaBB SE and will be making a version of this mod for SE soonish. Unless there is huge demand for a change to this mod I now consider it final.

Thanks to all the beta testers! 8)
  
Back to top
WWW  
IP Logged
 
EliteRides
God Member
*****
Offline


EliteRides.com !

Posts: 692
Location: Salt Lake City
Joined: Mar 23rd, 2002
Gender: Male
Re: [BETA] Collapsable YaBB Front End
Reply #46 - Aug 16th, 2002 at 3:10pm
Print Post  
Any word on this?  Something I'd be interested in...

snYpir wrote on Apr 18th, 2002 at 1:26pm:
i also took a screenshot of the mod i'll put into boardmod format next, called the 'Member Group Pictures' mod, which you can use to automatically give members a certain picture depending on what member group they belong to.

each member can turn the picture on/off if they wish... we use it to make people feel special and stuff like that. the screen where you assign the pictures looks like this:

http://www.ofpeditingcenter.com/snYpir/pics.jpg

  

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Back to top
WWW  
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #47 - Aug 16th, 2002 at 3:45pm
Print Post  
Try searching the forum for it, I know I have it some place.
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

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


EliteRides.com !

Posts: 692
Location: Salt Lake City
Joined: Mar 23rd, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #48 - Aug 16th, 2002 at 8:05pm
Print Post  
Thanks.

I had before, but with no luck.  I upped the days to search to 200 and found it.
  

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Back to top
WWW  
IP Logged
 
EliteRides
God Member
*****
Offline


EliteRides.com !

Posts: 692
Location: Salt Lake City
Joined: Mar 23rd, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #49 - Aug 18th, 2002 at 6:58pm
Print Post  
Is this only compatible with MBOC 1.2?  I just upgraded to MBOC 2 and in using the MBOC compatible install it says to:

Code
Select All
<edit file>
Sources\BoardIndex.pl
</edit file>

<search for>
	  <td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"> <font size=2>$caticon <b>$catname{$curcat}</b></font></a></td>
</search for>

<replace>
	~;
	### snYpir's collapsable YaBB part 3
	if ( $username ne 'Guest' ) {
		my $newmsg = 0;
		my $new = "";
		# determine if there are new posts somewhere in this category, but only if cat is collapsed
		if ( !$catstatus[$catcount] ) {
			foreach $curboard (@{$catboards{$curcat}}) {
				chomp $curboard;
				my $dlp = &getlog($curboard);
				if( $max_log_days_old && $lastposttime{$curboard} ne $txt{'470'} && $dlp < stringtotime( $lastpostrealtime{$curboard} ) ) {
					$newmsg = 1; last;
				}
			}
			if ( $newmsg ) { $new = qq~<img src="$imagesdir/on.gif" alt="$txt{'333'}" border="0">~; }
			else { $new = qq~<img src="$imagesdir/off.gif" alt="$txt{'334'}" border="0">~; }
		}
		$yymain .= qq~<td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"><font size=2>&#171; $new $caticon<a href=$cgi&action=collapse_cat&cat=$catcount><b>$catname{$curcat}</b></a> &#187;</font></td>~;
	}
	else {
		$yymain .= qq~<td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"><font size=2>&#171; $caticon<b>$catname{$curcat}</b> &#187;</font></td>~;
	}
	### end snYpir's collapsable YaBB part 3
	$yymain .= qq~
</replace> 



But my line looks like this:

Code
Select All
	  <td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"> $catpic{$curcat}<font size="2"><b>$catname{$curcat}</b></font></a></td> 



What would I change that to?
  

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Back to top
WWW  
IP Logged
 
snYpir
New Member
*
Offline


Yo' all

Posts: 48
Joined: Apr 17th, 2002
Re: [DONE] Collapsable YaBB Front End
Reply #50 - Aug 18th, 2002 at 7:27pm
Print Post  
right, the following should work:

Code
Select All
<edit file>
Sources\BoardIndex.pl
</edit file>

<search for>
<td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"> $catpic{$curcat}<font size="2"><b>$catname{$curcat}</b></font></a></td>
</search for>

<replace>
 ~;
 ### snYpir's collapsable YaBB part 3
 if ( $username ne 'Guest' ) {
  my $newmsg = 0;
  my $new = "";
  # determine if there are new posts somewhere in this category, but only if cat is collapsed
  if ( !$catstatus[$catcount] ) {
   foreach $curboard (@{$catboards{$curcat}}) {
    chomp $curboard;
    my $dlp = &getlog($curboard);
    if( $max_log_days_old && $lastposttime{$curboard} ne $txt{'470'} && $dlp < stringtotime( $lastpostrealtime{$curboard} ) ) {
     $newmsg = 1; last;
    }
   }
   if ( $newmsg ) { $new = qq~<img src="$imagesdir/on.gif" alt="$txt{'333'}" border="0">~; }
   else { $new = qq~<img src="$imagesdir/off.gif" alt="$txt{'334'}" border="0">~; }
  }
  $yymain .= qq~<td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"><font size=2>« $new <a </b></a> »</font></td>~;
 }
 else {
  $yymain .= qq~<td colspan="5" class="catbg" bgcolor="$color{'catbg'}" height="18"><a name="$curcat"><font size=2>« $catpic{$curcat}<b>$catname{$curcat}</b> »</font></td>~;
 }
 ### end snYpir's collapsable YaBB part 3
 $yymain .= qq~
</replace>  


you will have to copy the entire lot into the .mod file, overwriting the bits that you posted above.

You will also need to modify the text between <search for> and </search for> so that it is exactly the same as in your boardindex.pl file!

Simply copy the line(s) out of your boardindex.pl file, and overwrite those that exist in the .mod file... obviously you need to make boardmod find the right bit of text in your code when it is installing the mod.

Please let me know if it works Wink

I'll be out of town for the next 5 days so i hope it does work!

cya
  
Back to top
WWW  
IP Logged
 
EliteRides
God Member
*****
Offline


EliteRides.com !

Posts: 692
Location: Salt Lake City
Joined: Mar 23rd, 2002
Gender: Male
Re: [BETA] Collapsable YaBB Front End
Reply #51 - Aug 18th, 2002 at 11:01pm
Print Post  
1) So far, so good.  But, it even worked before it bothered me enough to question that conflict.  So to make sure, where would the potential conflict come from so I can try it and see if there is a problem?

2)

snYpir wrote on Apr 20th, 2002 at 12:34am:
is everyone cool with the '<<' and '>>' around the category names?


How do I get rid of these all together?
  

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Back to top
WWW  
IP Logged
 
mwestjay
New Member
*
Offline


I love YaBB 1G - SP1.1!
Ah do Ah do!

Posts: 14
Joined: Sep 14th, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #52 - Sep 14th, 2002 at 10:39am
Print Post  
Installed snYpir's mod 1.3 b+c opts version on top of these (mbc2.sp11, polls, temporary_ban2_sp1) for YaBB Gold-SP1.1 and it worked great!!! after a small bit of hacking. (Please don't ask what I did - I'm a trial and error fool.) Thank you!

Now for something a bit um... contrary? I want visitors/guests to see only the collapsed version of the board (as the default) until they resgister or login. Need some help with this if the time can be spared.

I haven't monkeyed with the changes snYpir's mod made except for come html table spec changes.

Must seem like a step backwards... butta maybe include the option (collapsed or expanded for guests) in future versions?


Thx
  

Wanna learn. Gonna learn. Am learning.
Back to top
 
IP Logged
 
EliteRides
God Member
*****
Offline


EliteRides.com !

Posts: 692
Location: Salt Lake City
Joined: Mar 23rd, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #53 - Sep 14th, 2002 at 11:27am
Print Post  
But you want them to be able to just click on them to open and still view them as guests?  That kind of seems just like an extra step to hastle them, IMO.

... or do you want them collapsed and it stays collapsed so they can't do anything?  If this is the case.  Just disable guest viewing, guest posting, or both.
  

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Back to top
WWW  
IP Logged
 
mwestjay
New Member
*
Offline


I love YaBB 1G - SP1.1!
Ah do Ah do!

Posts: 14
Joined: Sep 14th, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #54 - Sep 14th, 2002 at 12:45pm
Print Post  
Hey, thanks for your speedy response!

I want people to be able to view all of the categories, but unable to get an expanded view until they login as a member. This will allow them to see what the forums are all about, (pique their curiosity perhaps? so they'll register), but'll also keep bandwidth use down a bit since they (non-members) won't be able to browse the boards/topics/replies available to members.

Guest posting is already disabled. But if I select "Disallow guests from doing anything but login or register?" as you suggested, they're taken directly to a registration screen without the chance to see the categories.

I also want to hold onto a good feature of this mod - remembering what forums are collapsed/expanded for each member.

Hey, thanks again!
  

Wanna learn. Gonna learn. Am learning.
Back to top
 
IP Logged
 
EliteRides
God Member
*****
Offline


EliteRides.com !

Posts: 692
Location: Salt Lake City
Joined: Mar 23rd, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #55 - Sep 14th, 2002 at 12:49pm
Print Post  
I would install the More Board and Category 2 mod.  It will allow you to specify which boards members/guests can view, which ones members/guests can reply in, which categories members/guests can even see...

Should solve everything  Grin
  

ElietRides.com

Nice cars and just a bunch of hotties...  Grin
Back to top
WWW  
IP Logged
 
mwestjay
New Member
*
Offline


I love YaBB 1G - SP1.1!
Ah do Ah do!

Posts: 14
Joined: Sep 14th, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #56 - Sep 14th, 2002 at 1:12pm
Print Post  
That did the trick!

Next time, I swear, I'll become more familiar with the mods I've already installed! (But please don't hold me to it.) Grin
  

Wanna learn. Gonna learn. Am learning.
Back to top
 
IP Logged
 
kb
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 38
Location: Ball Ground
Joined: Jul 31st, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #57 - Sep 24th, 2002 at 5:24pm
Print Post  
I love this mod, but I am having trouble with it working right.   Undecided

Each category title is a link for toggling between Collapsed or Expanded, but when you click on an individual category it expands or collapses all categories not just the category that was selected. 

Among all of the mods I have installed is the mbc2_sp11.mod and I have 1.3 B+C OPTS version of the collapsable frontend mod.

Any ideas?
  
Back to top
 
IP Logged
 
kb
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 38
Location: Ball Ground
Joined: Jul 31st, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #58 - Sep 24th, 2002 at 7:13pm
Print Post  
Nevermind.  I figured it out.  I manually installed this mod and I placed
Code
Select All
	### snYpir's collapsable YaBB part 5
	}
	++$catcount;
	### end snYpir's collapsable YaBB part 5
 


after the wrong curly bracket.  I fixed it and now it works properly. :s07:
  
Back to top
 
IP Logged
 
kb
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 38
Location: Ball Ground
Joined: Jul 31st, 2002
Gender: Male
Re: [DONE] Collapsable YaBB Front End
Reply #59 - Sep 24th, 2002 at 7:21pm
Print Post  
I didn't see anybody that listed the mods that this mod doesn't have a problem with, so I figured I would list what I have installed.  Since it works perfectly after I fixed my own mistake.  I hope this is useful for somebody:

YaBB 1 Gold - SP 1.1\addsmilies2.mod
YaBB 1 Gold - SP 1.1\adv_memberview_plus.mod
YaBB 1 Gold - SP 1.1\adv_memberview_plus_email.mod
YaBB 1 Gold - SP 1.1\mbc2_sp11.mod
YaBB 1 Gold - SP 1.1\newcalendar3_3.mod
YaBB 1 Gold - SP 1.1\add_more_membergroups_sp1_11.mod
YaBB 1 Gold - SP 1.1\advanced_registration_options_sp1.mod
YaBB 1 Gold - SP 1.1\EMARO1forYaMS.mod
YaBB 1 Gold - SP 1.1\yams353amm_sp11.mod
YaBB 1 Gold - SP 1.1\all_sp11.mod
YaBB 1 Gold - SP 1.1\collapsable_frontend_b+c_opts.mod
YaBB 1 Gold - SP 1.1\printpage_bugfixes.mod
YaBB 1 Gold - SP 1.1\notification_bugfix_sp11.mod
YaBB 1 Gold - SP 1.1\file_attachment.mod
YaBB 1 Gold - SP 1.1\has_image_2.mod
YaBB 1 Gold - SP 1.1\extra_message_fields.mod
YaBB 1 Gold - SP 1.1\extra_hide_addon.mod
YaBB 1 Gold - SP 1.1\moderationupdate.mod
YaBB 1 Gold - SP 1.1\add_more_mess_icons.mod
YaBB 1 Gold - SP 1.1\Polls.mod
YaBB 1 Gold - SP 1.1\report_to_moderator_sp.mod
YaBB 1 Gold - SP 1.1\UserMoreMembergroups4_for_AMM_beta1.11.mod
YaBB 1 Gold - SP 1.1\advanced_imbox_sp1_2_beta3.mod
YaBB 1 Gold - SP 1.1\box_tag.mod
YaBB 1 Gold - SP 1.1\chat_v1_94.mod
YaBB 1 Gold - SP 1.1\remove_guest_info_v1.mod
YaBB 1 Gold - SP 1.1\new_thread_notification_20_sp1.mod
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 
Send TopicPrint