Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Widget:Forums Category names/links in cms for version 4.0.1 - omardealo Details »
Widget:Forums Category names/links in cms for version 4.0.1 - omardealo
Mod Version: 1.0, by omardealo (Coder) omardealo is offline
Developer Last Online: Oct 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.1 Rating: (2 votes - 5.00 average) Installs: 15
Released: 14 Feb 2010 Last Update: Never Downloads: 0
Supported  

Peace and mercy of God be upon you

Code:
Widget:Forums Category names/links in cms for version 4.0.1

by:
omardealo
http://www.7-secret.org/style.php?language=en

photo:


Example: in footer
www.7-secret.org

Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Composition:
  • Goto Admincp->vBullietin CMS->Widgets->Create New Widget
  • Choose PHP Direct Execution as Widget's Type
  • Place a Title. eg Forums Category. Keep it short as this is what will appear as title on your pages.
  • Click Save
  • Click Configure on the right of the new created widget.
  • Remove the default code that appears. Be sure to not leave behind even a single letter.
  • Copy and Paste the code that you can find below.
  • Leave the template name as is (vbcms_widget_execphp_page)
  • Click Save
  • Goto Admincp->vBullietin CMS->Layout Manager
  • Click Go on the Default Layout
  • Add the Widget to your Layout
  • Click Save

Note:
Those who want to exclude specific Forums Category
use this code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

In this line


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace 1,2,3 Forums Category number that you want to exclude

hack in arabic - الهاك باللغة العربية:
http://www.7-secret.org/showthread.php?t=213

Source in english :
http://www.7-secret.org/showthread.php?t=228

May God help you do not forget to pray for me and my parents back of the unseen

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Styles Gallery Version 1.0 Programming omardealo for version 4.0.1 omardealo vBulletin 4.x Add-ons 16 21 Jun 2011 14:52
Forum Home Enhancements Category Names on center Forums friend01 vBulletin 3.8 Template Modifications 25 20 Jun 2011 23:05
Mini Mods stop groupusers from enter a specific Category by x posts v 1.0 - omardealo omardealo vBulletin 4.x Add-ons 2 04 Feb 2010 06:30
Mini Mods names and links sections of the forum in footer by omardealo version 2.0 omardealo vBulletin 4.x Add-ons 4 03 Feb 2010 00:03

Comments
  #2  
Old 14 Feb 2010, 14:50
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Real name: mastdunya.com
Installed and working perfect thanks
http://www.mastdunya.com
Reply With Quote
  #3  
Old 14 Feb 2010, 15:32
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Real name: Chris
Interesting omardealo, I'll be tagging this.

Last edited by Front Range 4x4; 14 Feb 2010 at 15:42.
Reply With Quote
  #4  
Old 14 Feb 2010, 18:05
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Real name: omar
Originally Posted by nomoreturn@hotm View Post
Installed and working perfect thanks
http://www.mastdunya.com
very good , But delete the html codes of Forums Category names
__________________
7-secret
Reply With Quote
  #5  
Old 14 Feb 2010, 21:28
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Real name: omar
Originally Posted by Front Range 4x4 View Post
Interesting omardealo, I'll be tagging this.
thnx man
__________________
7-secret
Reply With Quote
  #6  
Old 07 Aug 2011, 18:28
mikeinjersey mikeinjersey is offline
 
Join Date: Feb 2006
very nicely done, but i'd like a break <br> after each forum category...so their not all bunched together.

Maybe there's a newer version of this somewhere ?

also, i'd like my forum categories to be displayed in vbSEO format...clean URLs.. (like the rest of my forums are) not the default .php way.

any quick fix on this is much appreciated.
Reply With Quote
  #7  
Old 07 Aug 2011, 21:43
mikeinjersey mikeinjersey is offline
 
Join Date: Feb 2006
nevermind, fixed with the following -


ob_start();
$excluded = "1,2,3";
$forum_get = vB::$db->query_read("
SELECT * FROM ".TABLE_PREFIX."forum
WHERE forumid NOT IN ($excluded) ORDER by forumid");
$output_bits = '';
while($forum = vB::$db->fetch_array($forum_get))
{
$output_bits .= '<a href="http://www.mydomain.com/forum'.$forum[forumid].'" style="text-decoration: none">'.$forum[title].'</a>
<br /> ';
}
$output = $output_bits;
ob_end_clean();
replace mydomain.com with your domain name. This will make it so that you're URL's are seo'd as long as u have vbSEO installed.
Reply With Quote
  #8  
Old 03 Jul 2014, 17:19
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Thumbs up

This still seems to work great on 4.2.2pl1 too.

I have been looking for something like this to add to my Contributors page BUT I reckon I can use the whole listing in a Social page I'm building.

What I love about it is that I can disclude all but the news input forums that have my rss feeds and current news Blocks in the CMS.

A bit of css and this would be cool, love to have top categories stand out some how and maybe be able to choose usergroups that can use it or it appears for.

Great way to get your forums up front if a publisher.
Reply With Quote
  #9  
Old 03 Jul 2014, 18:30
tbworld tbworld is offline
 
Join Date: Oct 2008
Thanks for sharing.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:13.

Layout Options | Width: Wide Color: