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)
-   -   Show Thread Enhancements - Basic QR Intergraton (2D Barcodes) for VB Threads (QR Pages by BOP5) VB4 (https://vborg.vbsupport.ru/showthread.php?t=272976)

puertoblack2003 10-31-2011 02:39 AM

Hello,

can you add a feature for attachment file download using this mod. ?

thanks

BirdOPrey5 10-31-2011 11:07 AM

Just to clarify- next to each attachment you want a QR code with the URL of the download? It's something I can look into.

puertoblack2003 10-31-2011 03:40 PM

1 Attachment(s)
Quote:

Originally Posted by BirdOPrey5 (Post 2263135)
Just to clarify- next to each attachment you want a QR code with the URL of the download? It's something I can look into.


yes, a better look here > qrcode attachment sample



Attachment 134171

Attachment 134172

nhawk 10-31-2011 09:10 PM

1 Attachment(s)
Nice Add-on! :)

If you aren't using the first post ad location, that's a great place to put this..

Edit the QR Code plugin and put this code at the end BEFORE the }..

Code:

$template_hook['share_this_thread'] = $threadinfo['qr'];
Also, change the hook from showthread_complete to showthread_postbit_create

Then in ACP->Advertising, click Add New Ad, select 'Thread' and click on First Post Content.

Title: Share This Thread

Ad HTML:
Code:

<div align="center">Share This Thread<br />
{vb:raw template_hook.share_this_thread}</div>

Active: Yes

Click Save and you're all set.

You may need to edit ad_margin, ad_padding and ad_maxWidth in stylevars for it to display properly.

Sunka 11-01-2011 01:05 AM

Good temwork BirdOPrey5 & nhawk

Installed!

Videx 11-04-2011 08:43 PM

Quote:

Users with Android, iPhone, and other advanced phones can easily scan these QR Codes and share links with friends via email, text, and other social networking platforms.
When I'm reading the forum on my Android smartphone, how do I scan a QR code? And is this easier than clicking a link?

BirdOPrey5 11-04-2011 11:02 PM

You don't use this if you are reading the forum on your smartphone... This is for when you are browsing the forum on a real computer or laptop, you can then scan the image with your smartphone and quickly get the link on your phone to share or use how you want.

OldSchoolDSL 11-19-2011 01:47 AM

1 Attachment(s)
Quote:

Originally Posted by nhawk (Post 2263270)
Nice Add-on! :)

If you aren't using the first post ad location, that's a great place to put this..

Edit the QR Code plugin and put this code at the end BEFORE the }..

Code:

$template_hook['share_this_thread'] = $threadinfo['qr'];
Also, change the hook from showthread_complete to showthread_postbit_create

Then in ACP->Advertising, click Add New Ad, select 'Thread' and click on First Post Content.

Title: Share This Thread

Ad HTML:
Code:

<div align="center">Share This Thread<br />
{vb:raw template_hook.share_this_thread}</div>

Active: Yes

Click Save and you're all set.

You may need to edit ad_margin, ad_padding and ad_maxWidth in stylevars for it to display properly.

For those of you who dislike editing templates or files, but want to use the above alternative

This file will do it for you and you will not need to edit anything. ;)

Alan_SP 12-10-2011 03:33 PM

Excellent mod, but I have problems with deleting images. For some reason it doesn't delete images.

Alan_SP 12-11-2011 09:45 AM

About positioning of QR code, I use this:

HTML Code:

<vb:if condition="$post['isfirstshown']">       
<div align="right"><b>Share thread with your friends:</b><br />
{vb:raw thread.qr}
</div>
</vb:if>

Condition is that QR code is shown only in first posts, you can place this code wherever you like it in your postbit (legacy) template. I placed it after signature (but outside of signature conditionals so it's shown even if user don't uses signature).

To use it you need to change plugin hook location as nhawk suggested, from showthread_complete to showthread_postbit_create. But, new template hook that nhawk suggested ({vb:raw template_hook.share_this_thread}) doesn't work, so you don't need to add it at the end of plugin code:

PHP Code:

$template_hook['share_this_thread'] = $threadinfo['qr']; 

It works without it, just use {vb:raw thread.qr} instead.

Important note: If you use it in ad templates, then you need to create this template hook and use it as nhawk suggested. This information is only if you want to manually place QR code somewhere in your postbit (legacy) templates.


All times are GMT. The time now is 09:45 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.01157 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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