vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Subscribed/Favorite Forums Module [vba CMPS module] (https://vborg.vbsupport.ru/showthread.php?t=128111)

Skedoozy 10-01-2006 09:00 PM

Subscribed/Favorite Forums Module [vba CMPS module]
 
I got tired of hoping someone would make this one and made it myself.

This was done on vBa CMPS v2.2.0 & Vb 3.6.1 but it should work with at least Vb 3.5.4 and above.

Subscribed/Favorite Forums Module 1.0 For vBa CMPS by Skedoozy (http://www.altign.com)

Installation Instructions

1. Upload favoriteblock.php to you /modules directory.

2. Create a new template. In your admin cp go to Styles & Templates > Style Manager > Add New Template. Name the template "adv_portal_fav" and paste the following in to it.

Code:

<tr align="center" valign="bottom">
        <td class="thead" width="2%">&nbsp;</td>
        <td class="thead" align="$stylevar[left]" width="80%">$vbphrase[forum]</td>
        <td class="thead">$vbphrase[last_post]</td>
        <td class="thead">$vbphrase[threads]</td>
        <td class="thead">$vbphrase[posts]</td>
        <if condition="$vboptions['showmoderatorcolumn']">
        <td class="thead" width="20%">$vbphrase[moderator]</td>
        </if>
    </tr>
    $forumbits
<br />

3. Goto your vBa CMPS > Add Module > phpfile

Module Title: Favorite Boards(or Subscribed Boards if you prefer)
Column: Center
Display Order: Where you want it to display
Active: Yes
Update All Pages: Yes
File to Include: favoriteblock.php
Module Parent: none
Identifier: fav
Templates Used: adv_portal_fav
Clean File Output: No
Use Module Shell Template: Yes. Leave rest of settings to default and set your usergroups how you want.

4. Save. You are done.

dragonhart 10-02-2006 07:48 PM

Sweet...........thank you......Dragonhart

memomemo 10-02-2006 08:08 PM

Sir favorite forum empty.

Please help

https://vborg.vbsupport.ru/

Lionel 10-03-2006 03:33 AM

does not work for me. I have forums under root e.g. site.com/forums/ and all links are pointing to site.com/showthread.php etc... plus javascripts errors too

Skedoozy 10-04-2006 08:23 AM

Quote:

Originally Posted by memomemo
Sir favorite forum empty.

Please help

http://www.yuklerim.com/uploads/04bd309531.jpg

Do you have any subscribed forums added?

Skedoozy 10-04-2006 08:29 AM

Quote:

Originally Posted by Lionel
does not work for me. I have forums under root e.g. site.com/forums/ and all links are pointing to site.com/showthread.php etc... plus javascripts errors too

My forums are under root.. ie .com/showthread.php

Change the following line in favoriteblock.php
Code:

require_once('./includes/functions_user.php');
to
Code:

require_once('./forums/includes/functions_user.php');
That is the only link that is coded at all. The rest of the links are pulled from your own settings.

Don't understand the javascript error as there is no java involved at all.

Floris 10-04-2006 08:56 AM

I was working on this yesterday for a vb customer :) And now I can just get it from here: even better! Thanks for the hard work and for sharing. Nice stuff

memomemo 10-04-2006 08:03 PM

Yes I am an many subscribed forums added


http://www.forumsitesi.info/forum/index.php

center last of all


Quote:

Originally Posted by Skedoozy
Do you have any subscribed forums added?


Skedoozy 10-04-2006 08:07 PM

I'm not sure what it could be then unless your functions_user.php file is eleswhere then indicated in the favoriteblock.php.

memomemo 10-04-2006 08:16 PM

Quote:

Originally Posted by Skedoozy
I'm not sure what it could be then unless your functions_user.php file is eleswhere then indicated in the favoriteblock.php.

require_once('./includes/functions_user.php'); = Ok but thread empty

require_once('./upload/includes/functions_user.php'); = page empty

require_once('../includes/functions_user.php'); = page empty

memomemo 10-04-2006 08:18 PM

HImm sory
This hack for subscripton.

Ok working.
Thank you.

memomemo 10-04-2006 08:23 PM

Sir this hack activite but javascript error line : 2045?

I am subscribed forums added. After page refresh javascript error.

Skedoozy 10-06-2006 10:25 PM

I don't understand the javascrit error as it contains no javascript in any of it.

DivisionByZero 10-21-2006 10:23 PM

pure junk... lousy coder... omits SEVERAL E_NOTICE's

Skedoozy 10-21-2006 10:52 PM

Thanks.. ;)

JohnBee 09-04-2007 01:36 PM

Very exciting hack!

I installed it and got it working, however I found an interesting side effect :)
Whenever I place it above or bellow my center column(above my forums) the moment I add(subscribe) a forum to the container, all of my remaining forums compact as though my "Depth of Forums - Forum Home" settings are set to 0

Any ideas what would cause this?
Better yet, could you have a look at it and let me know what might be causing this?

Running on a default vb, fresh out of the box.

suewh 12-23-2007 07:49 PM

Worked perfectly :)

trigatch4 04-13-2008 01:25 PM

Trying to accomplish this EXACT thing but don't have vBadvanced CMPS or whatever and I'm running vB 3.7... is it possible? If anyone can help I'd be unbelievably grateful.


All times are GMT. The time now is 03:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01633 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete