Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Widget: last articles blogs in CMS - by omardealo Details »»
Widget: last articles blogs in CMS - by omardealo
Version: 1.0, by omardealo omardealo is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.2 Rating:
Released: 03-29-2010 Last Update: Never Installs: 8
 
No support by the author.

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
7-secret.org

Image:


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/showthread.php?t=326

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


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

Download Now

File Type: (59.6 KB, 0 views)
File Type: (91.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-01-2010, 01:21 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I've just deleted the widget completely and started fresh from scratch - and it still causes D/B errors.

PHP Code:
Invalid SQL:

SELECT from vb blog order by dateline DESC LIMIT 20;

MySQL Error   Table 'XXXXXX.vb' doesn't exist
Error Number  : 1146
Request Date  : Thursday, April 1st 2010 @ 03:15:57 AM 
I'm sorry, but I'm forced to give up on trying. I say so sadly too, because it's a fantastic idea - but it just doesn't seem to be compatible with all versions - or perhaps it's incompatible with another plugin/widget, perhaps?
Reply With Quote
  #13  
Old 04-01-2010, 09:43 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also can not explain the error, the error The table does not exist
Now I want to know what the names of the tables you have, start for example by vb_
PHP Code:
vb_blog 
or what ?
Reply With Quote
  #14  
Old 04-16-2010, 02:54 PM
Exardor Exardor is offline
 
Join Date: Apr 2010
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got the same error.
Solved it, with deleting of one space between blog and the ".

Sorry for my bad english

Here is the (for me working) code:
PHP Code:
ob_start();  
  
$blog_get vB::$db->query_read("
SELECT * from " 
TABLE_PREFIX "blog order by dateline DESC LIMIT 5");
  
$output_bits '';
  while(
$blog vB::$db->fetch_array($blog_get))
  {
        
$output_bits .= '<b>?</b><a href="blog.php?b='.$blog[blogid].'">'.$blog[title].'</a> by <a href="member.php?u='.$blog[userid].'"><b>'.$blog[username].'</b></a><br />';
  }
  
$output $output_bits;
  
ob_end_clean(); 
Reply With Quote
  #15  
Old 04-30-2010, 03:25 AM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exardor View Post
Got the same error.
Solved it, with deleting of one space between blog and the ".

Sorry for my bad english

Here is the (for me working) code:
ok . i hope it work good with u now
Reply With Quote
  #16  
Old 08-10-2012, 06:59 PM
Brew's Avatar
Brew Brew is offline
 
Join Date: Sep 2002
Posts: 359
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance to see this cool mod updated for vb4.2+ ?

Thank you for considering this
Reply With Quote
  #17  
Old 02-10-2013, 11:47 PM
alhidaya alhidaya is offline
 
Join Date: Feb 2012
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exardor View Post
Got the same error.
Solved it, with deleting of one space between blog and the ".

Sorry for my bad english

Here is the (for me working) code:
PHP Code:
ob_start();  
  
$blog_get vB::$db->query_read("
SELECT * from " 
TABLE_PREFIX "blog order by dateline DESC LIMIT 5");
  
$output_bits '';
  while(
$blog vB::$db->fetch_array($blog_get))
  {
        
$output_bits .= '<b>?</b><a href="blog.php?b='.$blog[blogid].'">'.$blog[title].'</a> by <a href="member.php?u='.$blog[userid].'"><b>'.$blog[username].'</b></a><br />';
  }
  
$output $output_bits;
  
ob_end_clean(); 
Hello,

Thank you Exador
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04312 seconds
  • Memory Usage 2,332KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete