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)

Boofo 01-08-2012 10:49 PM

Quote:

Originally Posted by Alan_SP (Post 2285361)
QR code in profiles works excellent. :up:

I used your suggestion for placement and also added it in MEMBERINFO template.

Find:

HTML Code:

<vb:if condition="$show['viewblog']">
                                                        <li><a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}" rel='nofollow'><img src="{vb:stylevar imgdir_siteicons}/blog.png" class="inlineimg" alt="" /> {vb:rawphrase view_blog_entries}</a></li>
                                                </vb:if>

Below that add:

HTML Code:

<vb:if condition="$vboptions[bop5qr_en] AND $vboptions[bop5qr_enprofiles]"> 
    <br />
                        <li>{vb:raw userinfo.qr}</li>
    </vb:if>

It makes QR code visible on every profile page. :)

Can you post a pic of what it looks like with your changes?

Also, you could just use the profile_sidebar_first template hook and save the manual editing. ;)

Tyhe li tags will give you a W3C Markup Validation error, by the way.

BirdOPrey5 01-08-2012 11:34 PM

Quote:

Originally Posted by puertoblack2003 (Post 2285313)
good job BirdOPrey5 on the attachment qrcode, :up: one last thing how can i make it so it'll be a mouse over effect?

thanks

It should be a mouse over effect. If you look at the screenshot there were 2 attachments, one was hidden and the one visible was only visible because the mouse was over it.

Boofo 01-08-2012 11:57 PM

1 Attachment(s)
Here's a pic of my profile with the QR code added via the profile_sidebar_first template hook.

Alan_SP 01-09-2012 03:37 AM

Quote:

Originally Posted by Boofo (Post 2285385)
Can you post a pic of what it looks like with your changes?

Also, you could just use the profile_sidebar_first template hook and save the manual editing. ;)

Tyhe li tags will give you a W3C Markup Validation error, by the way.

Here's image:

http://img205.imageshack.us/img205/9402/image001u.png

What I should add to use profile_sidebar_first template hook?

li tags are used by vBulletin in MEMBERINFO template, that's why I used them. But, I'm open for suggestions. :)

puertoblack2003 01-09-2012 04:23 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2285391)
It should be a mouse over effect. If you look at the screenshot there were 2 attachments, one was hidden and the one visible was only visible because the mouse was over it.

yea its was my fault i had moved the css to additional so i reverted back in template.I have to figure out where to put it at, when i get some free time.. thanks

OldSchoolDSL 01-09-2012 05:39 PM

1 Attachment(s)
Updated code for 1.5

This is a modified version of QR concept from nhawk
https://vborg.vbsupport.ru/showpost....0&postcount=14

To which I made more simple for those who dislike edit code and originally released here
https://vborg.vbsupport.ru/showpost....4&postcount=18

Rights complete reserved to BirdOPrey5 (author) and to nhawk (concept)
All I did was pre-add the tweak for version 1.5

Installed and working 4.1.10 Alpha 1, 2, 3, and Beta 1 .... Assume to work on final version.

Mr_Running 01-09-2012 06:31 PM

A quick thought..

Any way to have it work with first post ad location and still have the ad?
vB default google adsense shows the ad to guest but when a user is logged in
the ad is not displayed.

It would be great to have the QR share this viewable to logged in users
in the first post ad location.

Boofo 01-09-2012 06:40 PM

Quote:

Originally Posted by Mr_Running (Post 2285624)
A quick thought..

Any way to have it work with first post ad location and still have the ad?
vB default google adsense shows the ad to guest but when a user is logged in
the ad is not displayed.

It would be great to have the QR share this viewable to logged in users
in the first post ad location.

I suppose you could do a template find/replace to add it either above or below the ad.

Alan_SP 01-09-2012 10:26 PM

Quote:

Originally Posted by Mr_Running (Post 2285624)
Any way to have it work with first post ad location and still have the ad?
vB default google adsense shows the ad to guest but when a user is logged in
the ad is not displayed.

Not really sure what you mean?

I tried first ad location and when I used it (as nhawk suggested) QR code was visible with ad beside if you're unlogged (or guest). Also, when you're logged in, you see only QR code. Ad is not visible as this ad is visible only for unlogged users.

If you want this ad visible, you need to change code used for ad display. It could be done, of course, but by default ad isn't visible for logged in users.

Mr_Running 01-09-2012 11:05 PM

Quote:

Originally Posted by Alan_SP (Post 2285723)
Not really sure what you mean?
I tried first ad location and when I used it (as nhawk suggested) QR code was visible with ad beside if you're unlogged (or guest). Also, when you're logged in, you see only QR code. Ad is not visible as this ad is visible only for unlogged users.

What I mean is...
QR code only showing when logged in within the ad space.
and the ad only showing when unlogged (guest)


Thanks Alan_SP, It's better than I thought...I was wondering if would work with the ad.
Edit: Yes it work because...Display this ad if...User does not belong to usergroup

I'll give it go. :)


All times are GMT. The time now is 09:32 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.01179 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_html_printable
  • (7)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