Back to vBulletin 4.x Add-ons

Widget:Forums Category names/links in cms for version 4.0.1 - omardealo
Mod Version: 1.0, by omardealo

vB Version: 4.0.1 Rating: (2 votes - 5.00 average) Installs: 14
Released: 14 Feb 2010 Last Update: Never Downloads: 0
Not 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
http://www.7-secret.org

Code:

PHP Code:
ob_start();
  
$forum_get vB::$db->query_read("
    SELECT * FROM "
.TABLE_PREFIX."forum
   ORDER by forumid"
);
  
$output_bits '';
  while(
$forum vB::$db->fetch_array($forum_get))
  {
        
$output_bits .= '<a href="forumdisplay.php?'.$forum[forumid].'-'.$forum[title].'" style="text-decoration: none">'.$forum[title].'</a> 
<font color="#FF6600"><b>@</b></font> '
;
  }
  
$output $output_bits;
  
ob_end_clean(); 
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

PHP Code:
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="forumdisplay.php?'.$forum[forumid].'-'.$forum[title].'" style="text-decoration: none">'.$forum[title].'</a> 
<font color="#FF6600"><b>@</b></font> '
;
  }
  
$output $output_bits;
  
ob_end_clean(); 
In this line

PHP Code:
$excluded "1,2,3"
Replace 1,2,3 Forums Category number that you want to exclude

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

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

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

Download

No files for download.

Similar Mods

Mini Mods Styles Gallery Version 1.0 Programming omardealo for version 4.0.1 vBulletin 4.x Add-ons
Forum Home Enhancements Category Names on center Forums vBulletin 3.8 Template Modifications
Mini Mods stop groupusers from enter a specific Category by x posts v 1.0 - omardealo vBulletin 4.x Add-ons
Mini Mods names and links sections of the forum in footer by omardealo version 2.0 vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024