vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget: Auto ScreenShot of Styles Forum in CMS - by omardealo (https://vborg.vbsupport.ru/showthread.php?t=236499)

omardealo 02-20-2010 10:00 PM

Widget: Auto ScreenShot of Styles Forum in CMS - by omardealo
 
1 Attachment(s)
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:

https://vborg.vbsupport.ru/external/2010/02/24.jpg

http://www.7-secret.org/attachment.p...1&d=1266765233

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

hilfe-forum 02-22-2010 03:14 PM

Works fine ;)

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

possible to change the size of thumbnails?

omardealo 02-22-2010 08:53 PM

1 Attachment(s)
Quote:

Originally Posted by hilfe-forum (Post 1988827)
Works fine ;)

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

possible to change the size of thumbnails?

very nice in ur forum ^_^ :up:

https://vborg.vbsupport.ru/attachmen...1&d=1266879122


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" 


nomoreturn 02-22-2010 08:53 PM

Very nice Widget installed thanks
http://mastdunya.com

hilfe-forum 02-22-2010 09:47 PM

@omardealo
THX for Help...

(Nominate ;) )

omardealo 02-23-2010 04:37 PM

1 Attachment(s)
Quote:

Originally Posted by nomoreturn@hotm (Post 1989120)
Very nice Widget installed thanks
http://mastdunya.com

u r welcome

https://vborg.vbsupport.ru/attachmen...1&d=1266950208

VonDoom 02-24-2010 11:29 AM

Very Cool Tagged

omardealo 02-24-2010 09:06 PM

Quote:

Originally Posted by hilfe-forum (Post 1989153)
@omardealo
THX for Help...

(Nominate ;) )

thnx man

as7apcool 02-24-2010 09:27 PM

nice work - thanks alot

Jabong82 02-24-2010 09:49 PM

Sorry but what exactly does this widget do?

Thanks in advance.


All times are GMT. The time now is 11:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01149 seconds
  • Memory Usage 1,755KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete