Back to vBulletin 4.x Add-ons

Widget: last articles blogs in CMS - by omardealo
Mod Version: 1.0, by omardealo

vB Version: 4.0.2 Rating: (2 votes - 5.00 average) Installs: 8
Released: 30 Mar 2010 Last Update: Never Downloads: 0
Not Supported  

Peace and mercy of God be upon you

Widget: last articles blogs in CMS - by omardealo tested on 4.0.2
God willing, also was working on 4.0.1

Programming:
omardealo
http://7-secret.org

Image:
http://7-secret.org

Example:
arabic : http://www.7-secret.org
english : http://www.7-secret.org/content.php?language=en

Code1: Source code for the latest blogs related to a specific username

PHP Code:
ob_start();  
  
$blog_get vB::$db->query_read("
SELECT * from " 
TABLE_PREFIX " blog where username='omardealo' order by dateline DESC LIMIT 20");
  
$output_bits '';
  while(
$blog vB::$db->fetch_array($blog_get))
  {
        
$output_bits .= '<font color="#ff0000"><b>»</b></font><a href="blog.php?b='.$blog[blogid].'">'.$blog[title].'</a></br />
                       <a href="member.php?u='
.$blog[userid].'"><b>'.$blog[username].'</b><br />';
  }
  
$output $output_bits;
  
ob_end_clean(); 
- with the replacement of the number of articles blogs that you want to appear
PHP Code:
LIMIT 20 
- With the replacement of the name of the selected username
PHP Code:
omardealo 

Code2: Source code for the latest articles blogs for all user

PHP Code:
ob_start();  
  
$blog_get vB::$db->query_read("
SELECT * from " 
TABLE_PREFIX " blog order by dateline DESC LIMIT 20");
  
$output_bits '';
  while(
$blog vB::$db->fetch_array($blog_get))
  {
        
$output_bits .= '<font color="#ff0000"><b>»</b></font><a href="blog.php?b='.$blog[blogid].'">'.$blog[title].'</a></br />
                       <a href="member.php?u='
.$blog[userid].'"><b>'.$blog[username].'</b><br />';
  }
  
$output $output_bits;
  
ob_end_clean(); 
- with the replacement of the number of articles blogs that you want to appear
PHP Code:
LIMIT 20 


Composition:

Goto Admincp->vBullietin CMS->Widgets->Create New Widget
Choose PHP Direct Execution as Widget's Type
Place a Title. last articles blogs
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

Source:
http://www.7-secret.org/index.php?t=326

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

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

Download

No files for download.

Screenshots

Click image for larger version
Name:	15-04-1431 01-12-08 م.jpg
Views:	212
Size:	59.6 KB
ID:	115002   Click image for larger version
Name:	15-04-1431 03-21-04 م.jpg
Views:	214
Size:	91.0 KB
ID:	115003  

Similar Mods

vBulletin CMS Widgets Widget:Forums Category names/links in cms for version 4.0.1 - omardealo vBulletin 4.x Add-ons
vBulletin CMS Widgets 3x CMS widget : Widget with 3 tabs, like on Blogs page. vBulletin 4.x Add-ons
vBulletin CMS Widgets Widget: Latest Articles In Category vBulletin 4.x Add-ons
vBulletin CMS Widgets Widget: Auto ScreenShot of Styles Forum in CMS - by omardealo vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024