PDA

View Full Version : Subscribed forums block on your homepage


tomshawk
08-04-2004, 11:32 PM
Hello Everyone;

What this block does?

As your users work in your forums, they may subscribed to ones that they use often, so they are accesible via there userCP.

What this does is bring the Subscribed boards section of the UserCP out onto the homepage, removing all of the extras, last post, board description, subforums.

The instructions are in the instructions.txt file.

I dont have a working demo because I set this up
Give an option to see certain modules or not. (http://www.vbadvanced.com/forum/showthread.php?t=2047)
So my users have a choice of whether they want it on the homepage or not.

I did attach an image though, so you can see it in action that way. ;)

Things still in the works:
This adds quite a few queries, so making that smaller is a priority.

I hope you all like it

and Kuddo's to Brian, as always for the help in sorting it out.

Update:

I have fixed this to remove a few queries.

Also a mistake, so when clicking on a forum in the block, it looks for
http://www.yoursite.com/forumdisplay.php (http://www.yoursite.com/forumdisplay.php) instead of http://www.tomshawk.com/forums/forumdisplay.php (http://www.tomshawk.com/forums/forumdisplay.php)

For those that have downloaded the zip file re_download it and apply the updates to forumhome_forumbit_level1_post and forumhome_forumbit_level2_post

KW802
08-05-2004, 08:56 AM
Tomshawk, looking nice! Glad to see you got it working. Seeing the end result in your attached pic' makes it a lot clearer as to what you were trying to get to.

Our Sponsors
 

tomshawk
08-05-2004, 10:47 AM
Yeah. I had a feeling that was part of the problem, (Decyphering what I was getting at).

I'm glad you like ;)

tomshawk
08-08-2004, 03:51 PM
Update:

I have fixed this to remove a few queries.

Also a mistake, so when clicking on a forum in the block, it looks for
http://www.yoursite.com/forumdisplay.php (http://www.yoursite.com/forumdisplay.php) instead of http://www.tomshawk.com/forums/forumdisplay.php (http://www.tomshawk.com/forums/forumdisplay.php)

For those that have downloaded the zip file re_download it and apply the updates to forumhome_forumbit_level1_post and forumhome_forumbit_level2_post

Our Sponsors
 

bing1112
08-08-2004, 10:35 PM
very nice thank you

bing1112
08-09-2004, 04:34 PM
How changehttp://www.vbadvanced.com/forum/images/statusicon/forum_old.gif to http://www.vbadvanced.com/forum/images/statusicon/subforum_old.gif ?

mholtum
08-09-2004, 05:13 PM
Well I installed it created the template and Module and uploaded the .php file into my modules dir. The Block shows up on my portal, but it is empty.

tomshawk
08-09-2004, 06:43 PM
How changehttp://www.vbadvanced.com/forum/images/statusicon/forum_old.gif to http://www.vbadvanced.com/forum/images/statusicon/subforum_old.gif ?
I'll look in to that, good question ;)

tomshawk
08-09-2004, 06:47 PM
Well I installed it created the template and Module and uploaded the .php file into my modules dir. The Block shows up on my portal, but it is empty.Umm, Well, dont mind the crazy question, but...

Are you "Subscribed to any boards on your site"?

Go to a forum, like this one here http://www.vbadvanced.com/forum/forumdisplay.php?f=26 just choose one on your site :p

Jus above the bordr on the first post, you'll see "Forum Tools"
click it and hit subscribe to forum, doesn't matter if you do the email subscription or not. thats it, Hit the homepage, and there should be something in it now. ;)

mholtum
08-09-2004, 06:55 PM
Well the only option I get is Unsubscribe. So I guess I am...

mholtum
08-09-2004, 07:53 PM
Ok got it to work.. Weird... How can I make the Text "Subscribed Forums" the same size as the other modules??

Zen
08-15-2004, 11:22 AM
Nearly got this module working..

Trouble getting this module to work 100%.

Th module displays with the subscribed forum but the size of the module box is much wider than the other modules.

Also the forumdisplay.php link works but not the member.php or showthread.php [lastpost & newpost] links

The instructions say to change the hardcoded links for forumdisplay but which template needs editing to change the member.php and showthread.php links in the module?? So they refer to the forum and not to the home page.

I have rechecked the template code edits plus other trial and error changes a few times but no luck.

Any ideas?

Zen
08-15-2004, 11:29 AM
Ok got it to work.. Weird... How can I make the Text "Subscribed Forums" the same size as the other modules??

Goto the template adv_portal_subscribed

Find:
Subscribed Forums

Replace with:
<SPAN class=smallfont><STRONG>»Subscribed Forums</STRONG></SPAN>

:)

tomshawk
09-03-2004, 08:23 PM
Nearly got this module working..

Trouble getting this module to work 100%.

Th module displays with the subscribed forum but the size of the module box is much wider than the other modules.

Also the forumdisplay.php link works but not the member.php or showthread.php [lastpost & newpost] links

The instructions say to change the hardcoded links for forumdisplay but which template needs editing to change the member.php and showthread.php links in the module?? So they refer to the forum and not to the home page.

I have rechecked the template code edits plus other trial and error changes a few times but no luck.

Any ideas?
The problem is the placement of the

<if condition="!$show['hideextra']">
and the

</if>
in the
forumhome_forumbit_level1_post
and
forumhome_forumbit_level2_post

I set it up, so it does not see the extra info, only the icon and the board name

If you want the extra info in the box, the box is going to be wide, so it can support it. Sorry

tomshawk
09-03-2004, 08:26 PM
How changehttp://www.vbadvanced.com/forum/images/statusicon/forum_old.gif to http://www.vbadvanced.com/forum/images/statusicon/subforum_old.gif ?
Sorry it is so long bing1112

I looked at the code, and the forumhome_forumbit_level1_post is used by forumhome as well, so changing this to use the small icon would make the icon on the boards home small as well.

If there's anoter way I'd like to see it too ;)

WAR
09-04-2004, 06:31 PM
I am still having problems with this hack wiping out all of the extra info on the forum home... Could it have something to do with the fact I have my forum categories split into seperate boxes? Both relevant templates were altered in that hack as well....

As for the image changing... couldn't you use the same template conditional that restricts the display of all the extra info to switch the graphic as well?

Zen
09-06-2004, 11:02 AM
The problem is the placement of the


and the


in the
forumhome_forumbit_level1_post
and
forumhome_forumbit_level2_post

I set it up, so it does not see the extra info, only the icon and the board name

If you want the extra info in the box, the box is going to be wide, so it can support it. Sorry

I don't want the extra info. just exactly how your hack should work. Have rechecked the template edits and it is still the same as your instructions. Not sure how it is calling all the extra info though. :confused:

Template edit for forumhome_forumbit_level1_post is below.


<if condition="!$show['hideextra']">
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td></if>
</if>
</tr>
</tbody>

Is this code correct?

Thanks :)

akmartin
09-21-2004, 10:13 PM
Would it be possible to modify this to show all forums the user has access to instead of just subscribed? I'm new to vBulletin and vBadvanced, and I'm trying to understand the code, but haven't quite gotten a handle on it.

Thanks,
Andy

tomshawk
09-21-2004, 11:37 PM
Zen, WOW, I am so sorry for missing this

This is an entire copy of one of my "forumhome_forumbit_level1_post" for one of my styles. Both of my styles work with this module.

I bolded and enlarged the code that needs to be added

<tbody>
<tr align="center">
<td width="30" class="alt2">$stylevar%5Bimgdir_statusicon%5D/forum_$forum%5Bstatusicon%5D.gif
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="http://www.tech-unity.com/forums/forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]
<if condition="$show['browsers']">($vbphrase[x_viewing])
</div>
<if condition="!$show['hideextra']">$forum[description]

<if condition="$show['forumsubscription']">$vbphrase[unsubscribe_from_this_forum]

<if condition="$show['subforums']">$vbphrase[subforums]: $forum[subforums]

</td>
<td width="240" class="alt2" nowrap="nowrap">$forum[lastpostinfo]
<td width="55" class="alt1">$forum[threadcount]
<td width="55" class="alt2">$forum[replycount]
<if condition="$vboptions['showmoderatorcolumn']">
<td width="120" class="alt1">$forum[moderators]

</if><if>
</tr>
</tbody>
<if condition="$childforumbits">
<tbody>
$childforumbits
</tbody>
</if>

forumhome_forumbit_level2_post


<tr align="center">
<td width="30" class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="http://www.tech-unity.com/forums/forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
[b]<if condition="!$show['hideextra']"><if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td width="240" class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td width="55" class="alt1">$forum[threadcount]</td>
<td width="55" class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td width="125" class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if></if>
</tr>
$childforumbits


I am truly sorry about this Zen, I hope this helps.

akmartin,

Your way past my abilities. I took existing code and just moved it out onto the homepage. What you want is beyond my capabilities.

Sorry

theMusicMan
09-22-2004, 03:13 AM
Great hack tomshawk.

Here's a suggestion. I am not sure if my members know or care to subscribe to a forum, I'd think that they would rather subscribe as they indeed do, to individual threads. So, is there a way to mod this hack (or perhaps create a new one) that will shopw the last 'n' suibscribed threads of that user. So, in the AdminCP I could set this 'n' number or perhaps it could be a user choice somehow...? and then this number of 'subscribed threads' gets shown on the vBa page module in most recent order.

Any mileage in that suggestion??

tomshawk
09-22-2004, 09:27 AM
Great hack tomshawk.

Here's a suggestion. I am not sure if my members know or care to subscribe to a forum, I'd think that they would rather subscribe as they indeed do, to individual threads. So, is there a way to mod this hack (or perhaps create a new one) that will shopw the last 'n' suibscribed threads of that user. So, in the AdminCP I could set this 'n' number or perhaps it could be a user choice somehow...? and then this number of 'subscribed threads' gets shown on the vBa page module in most recent order.

Any mileage in that suggestion??
Hi theMusicMan,

I looked at the code because it was asked over at vbulletin.org and it is possible to pull the subscribed threads, but I wouldn't know how to limit it, sorry to say that would be above me. So with my code as I "could" do it, that block on the homepage would get long rather quickly if your users dont unsubscribe to threads as they die out.
Of course, that would make the point to this hack mute, right?

GOP MissingLink
10-15-2004, 09:04 AM
Would it be possible to modify this to show all forums the user has access to instead of just subscribed? I'm new to vBulletin and vBadvanced, and I'm trying to understand the code, but haven't quite gotten a handle on it.I too am interested in this modification. But even better, instead of only showing subscribed forums, how I set which forums to show to all users (so say, I want to show forums 2, 4, 10 and 11). Any help with this is greatly appreciated!

maister
01-22-2006, 11:08 PM
This hack isn't working for me.
Forumbits doesn't seem to render?
Anyone else run across this?

I'm running VBA 2 and VB 3.5
Thanks

tomshawk
02-25-2006, 11:59 AM
This hack isn't working for me.
Forumbits doesn't seem to render?
Anyone else run across this?

I'm running VBA 2 and VB 3.5
Thanks

The answer is in your post.

The was made for vBa 1.0 and vb 3.0

and my users hated it because it slowed down my homepage to much, not to mention the module would scroll down quite alot if people subscribe to alot of forums, so I never kept up the work on it.

And, now it would be a scratch and start over with all the vb changes.