Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Widget: Auto ScreenShot of Styles Forum in CMS - by omardealo Details »»
Widget: Auto ScreenShot of Styles Forum 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: 02-20-2010 Last Update: Never Installs: 10
 
No support by the author.

Peace and mercy of God be upon you

Widget: Styles Forum 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:
http://www.7-secret.org/content.php?language=en

Code:

PHP Code:
ob_start();
$excluded '0';
  
$style_get vB::$db->query_read("
    SELECT * FROM "
.TABLE_PREFIX."style
   WHERE styleid NOT IN (
$excluded) ORDER BY styleid");
  
$output_bits '';
  while(
$style vB::$db->fetch_array($style_get))
  {

        
$output_bits .= '<div dir="rtl" align="center">
<a href="http://www.7-secret.org/forum.php?styleid='
.$style[styleid].'">
<img src="http://www.thumbshot.de/cgi-bin/show.cgi?url=http://www.7-secret.org/forum.php?styleid='
.$style[styleid].'" alt="'.$style[title].'" width="159" height="157"></a>
</div>
<br>'
;

  }
  
$output $output_bits;
  
ob_end_clean(); 
- With the replacement http://www.7-secret.org
of your forum link

- Place the figures here excepted Styles
PHP Code:
$excluded '0'
Example:
PHP Code:
$excluded '1,4,6'
- here size of screenshot
PHP Code:
width="159" height="157" 

Note : The screensho will take a few hours to show up


Composition:

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


Source:
http://www.7-secret.org/showthread.p...&p=798#post798


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


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

Download Now

File Type: (8.4 KB, 0 views)
File Type: (9.9 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 02-22-2010, 03:14 PM
hilfe-forum hilfe-forum is offline
 
Join Date: Sep 2005
Location: http://www.alpha-board.eu
Posts: 198
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine

( see http://www.hilfe-forum.eu/ )

possible to change the size of thumbnails?
Reply With Quote
  #3  
Old 02-22-2010, 08:53 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hilfe-forum View Post
Works fine

( see http://www.hilfe-forum.eu/ )

possible to change the size of thumbnails?
very nice in ur forum ^_^ :up:




sure , change code

PHP Code:
ob_start();

  
$style_get vB::$db->query_read("
    SELECT * FROM "
.TABLE_PREFIX."style
   ORDER BY styleid DESC LIMIT 5"
);
  
$output_bits '';
  while(
$style vB::$db->fetch_array($style_get))
  {

        
$output_bits .= '<div dir="rtl" align="center">
<a href="http://www.7-secret.org/forum.php?styleid='
.$style[styleid].'">
<img src="http://www.thumbshot.de/cgi-bin/show.cgi?url=http://www.7-secret.org/forum.php?styleid='
.$style[styleid].'" alt="'.$style[title].'" width="159" height="157"></a>
</div>
<br>'
;

  }
  
$output $output_bits;
  
ob_end_clean(); 
change link
PHP Code:
http://www.7-secret.org 
and size
PHP Code:
width="159" height="157" 
Attached Files
File Type: (27.6 KB, 0 views)
Reply With Quote
  #4  
Old 02-22-2010, 08:53 PM
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice Widget installed thanks
http://mastdunya.com
Reply With Quote
  #5  
Old 02-22-2010, 09:47 PM
hilfe-forum hilfe-forum is offline
 
Join Date: Sep 2005
Location: http://www.alpha-board.eu
Posts: 198
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@omardealo
THX for Help...

(Nominate )
Reply With Quote
  #6  
Old 02-23-2010, 04:37 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nomoreturn@hotm View Post
Very nice Widget installed thanks
http://mastdunya.com
u r welcome

Attached Files
File Type: (32.4 KB, 0 views)
Reply With Quote
  #7  
Old 02-24-2010, 11:29 AM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Cool Tagged
Reply With Quote
  #8  
Old 02-24-2010, 09:06 PM
omardealo's Avatar
omardealo omardealo is offline
 
Join Date: Nov 2008
Location: egypt
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hilfe-forum View Post
@omardealo
THX for Help...

(Nominate )
thnx man
Reply With Quote
  #9  
Old 02-24-2010, 09:27 PM
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work - thanks alot
Reply With Quote
  #10  
Old 02-24-2010, 09:49 PM
Jabong82 Jabong82 is offline
 
Join Date: Feb 2010
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but what exactly does this widget do?

Thanks in advance.
Reply With Quote
Reply

Thread Tools

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 09:03 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.04496 seconds
  • Memory Usage 2,341KB
  • Queries Executed 24 (?)
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
  • (7)bbcode_php
  • (3)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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