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)

Mr_Running 01-10-2012 01:11 AM

Quote:

Originally Posted by Boofo (Post 2285400)
Here's a pic of my profile with the QR code added via the profile_sidebar_first template hook.

I can't seem to find this hook?

Hey Boofo would you mind sharing what you did?

Cheers,

Alan_SP 01-10-2012 01:16 AM

Quote:

Originally Posted by Mr_Running (Post 2285734)
What I mean is...
QR code only showing when logged in within the ad space.
and the ad only showing when unlogged (guest)

You add QR code to appear beside ad code, not inside ad code, making them work independently.

Mr_Running 01-10-2012 01:27 AM

Yes, I have the ad / QR all set up. Thanks

Now working on which set up?
Quote:

Originally Posted by Boofo (Post 2285400)
Here's a pic of my profile with the QR code added via the profile_sidebar_first template hook.

profile_sidebar_first (which I can not find...?)
vs
MEMBERINFO


Oops, I think I just figured out what I need to do...manually change product to use the
Code:

{vb:raw template_hook.profile_sidebar_first}
is this correct?

Boofo 01-10-2012 02:04 AM

Yes, sir. And make sure to make the template with the code needed there.

Alan_SP 01-11-2012 12:07 AM

Ok, just understood what Boofo suggests. :)

You need to edit plugin QR Profiles and add at the very end (but before }, it should be last):

PHP Code:

$template_hook['profile_sidebar_first'] = '<center>'.$userinfo['qr'].'</center>'

You could also go without centering QR code, in that case just use this code:

PHP Code:

$template_hook['profile_sidebar_first'] = $userinfo['qr']; 

I started using this, as this is one manual template edit less. :) Thanks Boofo for idea. :up:

Boofo 01-11-2012 12:08 AM

No, I made a template with the code and rendered it in that hook.

Alan_SP 01-11-2012 12:17 AM

Ok, but this way works too, you could check it also.

But yes, I understand why making complete template could be practical. Would you share here your template?

Boofo 01-11-2012 12:30 AM

Just the same code that was suggested in the readme file, with a div added:

Template Name: memberinfo_bop5qr_profiles

Template Code:

HTML Code:

<vb:if condition="$vboptions[bop5qr_en] AND $vboptions[bop5qr_enprofiles]"> 
        <div style="text-align: center;">{vb:raw userinfo.qr}</div>
</vb:if>


In the member_execute_start hook add this at the bottom (right before the closing } )

PHP Code:

   $templater vB_Template::create('memberinfo_bop5qr_profiles'); 
   
$templater->register('userinfo'$userinfo); 
   
$tab_html $templater->render(); 
   
$template_hook['profile_sidebar_first'] .= $tab_html


Alan_SP 01-11-2012 04:14 AM

Thanks for sharing how to make template. :up:

Mr_Running 01-11-2012 04:42 AM

Yes, I still feel like a beginner, what are the steps...
by the way I like OldSchoolDSL xml
now if Boofo's part was added...that would be awesome.


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