![]() |
|
#1
|
||||
|
||||
|
When you subscribe to a forum, you see the forum name and last post in the UserCP.
I'd like to be able have a block in the homepage, that shows your subscribed forums. (Just the name of the forum) That the user can click on to go straight to that forum. Obviously it would be dynamic and change as you subscribe and unsuscribe. Is that possible? |
|
#2
|
||||
|
||||
|
Anybody?
This is the code for the Subscribed Forums section of the UserCP Hopefully it will help someone get started with this Quote:
Last edited by tomshawk; 07-30-2004 at 07:35 PM. |
|
#3
|
||||
|
||||
|
Well, Just for giggles, I posted the above into a template and made a module and a page. For testing purposes, I made it a center block, but I want it to be a side block in the end.
http://www.tomshawk.com/index.php?page=subscribed As you can see, it doesnt work I know from the forums usercp.php file that this is needed somewhere PHP Code:
Actually only parts of it, the parts to create only the forum name |
|
#4
|
||||
|
||||
|
OK, As you can see, I have it working now, meaning I have it showing exactely the same thing that would show in UserCP Subscribed Forums
http://www.tomshawk.com/index.php?page=subscribed Nothing if your not logged in, and forums if you are logged in, but it shows everything, forums, threadbits, Everything. Could I please get some help narrowing it down to just what I need, Only the forum name Here is the code for the Template I have PHP Code:
I have it set up as a center block on it's own page for now, but when done, I want it as a Left or Right block. Please, Brian or someone, Please help me. I'm willing to pay for this |
|
#5
|
||||
|
||||
|
When you get it ironed out, I am interested..
|
|
#6
|
||||
|
||||
|
Will do
![]() I think I know what needs to be done now. the $forumbits code is being pulled from the includes\functions_forumlist.php Its just going to be a matter of figuring out which section it is using then copting that, modifying it and making the new call. boey, I dont see how you coders can do this all the time, this is frustrating stuff ![]() Thank you mholtum, Your interest is encouraging
|
|
#7
|
||||
|
||||
|
In the file you created, somewhere above the construct_forum_bit() function, try adding:
$show['hideextra'] = true; Then in the templates (I'm assuming that uses forumhome_forumbit_levelX_) you could use this if condition to hide the other stuff: <if condition="!$show['hideextra']"> |
|
#8
|
||||
|
||||
|
Thanks Brian
It's probably just the placement of this <if condition="!$show['hideextra']"> then again I'm not positive, because it did nothing I have to get off to work, so I'll continue playing with it tonight This is the code from the functions_forumlist.php PHP Code:
|
|
#9
|
||||
|
||||
|
So you put the "$show['hideextra'] = true;" in your subscribed.php file and that if condition doesn't work to hide the other stuff afterwards?
|
|
#10
|
||||
|
||||
|
Quote:
but, I pressume it is the placement within the file and template or both. I'll play with it some more tonight ![]() Thanks again |
|
#11
|
||||
|
||||
|
Well, I tryed moving these all over the template as well as the file, the only thing I got was nothing, meaning everything disappeared, or everything stayed where it was.
Any more ideas Brian? |
|
#12
|
||||
|
||||
|
So when you added that to the template then everything disappeared? If so, then that's pretty much what should have happened. You can use that variable in the template to remove the other table cells with the info you don't want in that module.
|
|
#13
|
||||
|
||||
|
The problem is,
one line was all, the next was nothing, Kind of hard to move around I ran out of ideas
|
|
#14
|
||||
|
||||
|
Quote:
I was affraid of that.So, does anybody know how to modify the code above in that post that talks about functions_forumlist.php. Bascially making another call |
|
#15
|
||||
|
||||
|
Quote:
forumhome_forumbit_level1_post Code:
<tbody> <tr align="center"> <td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <if condition="!$show['hideextra']"><td><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td> <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td></if> <td> <div> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> </div> <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&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> </tr> </table> </td> <if condition="!$show['hideextra']"><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] </div></td> </if></if> </tr> </tbody> <if condition="$childforumbits"> <tbody> $childforumbits </tbody> </if> forumhome_forumbit_level2_post Code:
<tr align="center"> <if condition="!$show['hideextra']"><td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td></if> <td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]"> <div> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a> <if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if> </div> <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&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> <if condition="!$show['hideextra']"> <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] </div></td></if> </if> </tr> $childforumbits |
|
#16
|
||||
|
||||
|
That was it, I miss read your original post, I was adding it to the template I made adv_portal_subscribed. My Fault Thank you very much.
I will write this up and release it sometime tonight. Thank you very Brian Excellent Product and excellent help as always
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Module Request: v3 Arcade News | Intex | Add-On Modules & Modifications | 3 | 07-20-2004 06:57 PM |
| A difficult hack request! News formatting! | Morrus | Add-On Modules & Modifications | 0 | 06-08-2004 01:14 PM |
| Module Request: affiliate block | Tristan | Add-On Modules & Modifications | 0 | 06-07-2004 12:16 PM |
| Module Request - Analog Clock | The Sandman | Add-On Modules & Modifications | 8 | 06-06-2004 01:04 PM |
| Verify Membership Status block - Hack Request | joeychgo | Add-On Modules & Modifications | 0 | 06-04-2004 01:06 PM |