vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Board Optimization - Welcome headers - Improve community registration rates (https://vborg.vbsupport.ru/showthread.php?t=119572)

smoknz28 09-29-2007 06:28 PM

Very nice mod....thank you for sharing. ;)

EricC 10-01-2007 04:51 PM

When posting the new code in the navbar, I get the following error:
Parse error: syntax error, unexpected ']', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/eazy0000/public_html/forums/includes/adminfunctions_template.php(3596) : eval()'d code on line 376

It there anyone that could walk me through this hack in setting it up, or better yet going in my in my CPs and doing it for me? Sorry, I'm new to hacks and vB in general. Please PM me if you can help.

Thanks,
Eric

Ted S 10-01-2007 08:03 PM

It sounds like you are either using the wrong version of the hack for your version of vbulletin or you have modified a template in a way which is producing invalid code. The only thing you should be adding to your navbar template for this hack is the variable $welcomeheaders. Try saving the template without making any changes and see if it produces an error.

newbuck 10-06-2007 02:07 PM

Works Great...thx

Kohhal 10-09-2007 07:43 AM

Installed again after a few months absence, great hack :)

BadgerDog 10-09-2007 03:09 PM

I'm running Welcome Headers v4.2.2....

I'm also running "Limited Guest Viewing" v1.0.6

Within "Welcome Headers" under the AdminCP options, I have set

Quote:

Limited Guest Viewing Surpression
Disable welcome headers if limited guest viewing system is on? YES

In spite of that, the custom "Welcome Headers" message I've set appears for un-registered users and once my threshold for reading threads/posts of 5 (my setting), it still continues to appear, but I also get the "Limited Guest Viewing" start to appear underneath it. :confused:

I thought that with the supression option turned ON, the "Welcome Headers" message would be superceded by the "Limited Guest Viewing" message when the post count was reached?

It looks odd to see BOTH messages displaying concurrently.

Any suggestions as to what I'm doing wrong?

Thanks ... :)

Regards,
Badger

Ted S 10-10-2007 04:30 AM

When suppression is enabled the welcome headers won't appear on any showthread pages. Either your hack versions are not upgraded to the latest versions or there is some other code conflicting with the plugins.

Code:

if($vbulletin->options['lgvon'] AND !$vbulletin->options['wlhlgv'] AND (THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'showpost' OR THIS_SCRIPT == 'printthread') ) {
    } else {
    eval('$welcomeheaders = "' . fetch_template('welcome_headers') . '";');
    }

What this code does is checks if LGV is on, and if so, if WH Supression is off and if so, if the script is showthread, printthread or showpost. If anything is changing any of these variables or the page names it won't work properly.

BadgerDog 10-10-2007 10:34 AM

Thanks Ted.... :)

I appreciate the response, even though this mod is listed as "unsupported" ... :up:

I'm just an old Fortran programmer, so please bear with me... ;)

I checked for conflicting variable names that might be conflicting using search. Only found this:

Quote:

vBulletin Settings Phrases Containing 'lgvon'

setting_lgvon_desc ........ Standard Phrase This option allows you to enable or disable the Guest Limited Viewing System.
setting_lgvon_title ........ Standard Phrase Enable Limited Guest Viewing

Even though both versions numbers (as mentioned previously) were showing current in the "Installed Products" display, I completely re-installed (overwrote) both mods, "Welcome Headers v4.2.2" and "Limited Guest Viewing" v1.0.6. I made sure that variables were patched into the templates as per the instructions. I do not use VBSEO.

I then enabled the "Limited Guest Viewing" v1.0.6 and logged out, reading 5 posts as an un-registered user. My custom "Welcome Headers v4.2.2" message showed fine during the first 5 (my limit set in "Limited Guest Viewing"), however, as soon as I read the 6th post, my custom "Limited Guest Viewing" v1.0.6 message showed up below my "Welcome Headers v4.2.2" message, which continued to be displayed concurrently.

In any event, there must be something conflicting someplace, but my v3.67pl vBulletin is not a complicated installtion, so I have no idea what's happening.

"Welcome Headers" is what's important for me and since it works fine on its own, I think I'll just un-install "Limited Guest Viewing" and go from here.

Thanks for your coding and support... again, much appreciated.

If you ever want to check out what could be the problem, let me know and I'll provide you with full Admin access to view the templates, plugins etc.

Thanks

Regards,
Badger

BadgerDog 10-12-2007 11:59 AM

Now I'm really confused. :confused:

I thought I'd take another look at this before I uninstalled the Limited Guest Viewing mod, so as a test, I wanted to see what happened if I turned the Limited Guest Viewing Surpression option OFF, even though I have that mod installed.

If I have the Limited Guest Viewing Surpression option ON, then my custom Welcome Headers message appears on ALL pages, including the Forum Home and also Show Thread pages. As I said in previous posts, once the guest's preset number of posts he's allowed to read is reached, the extra warning starts to appear below the Welcome Headers message on ALL pages.

If I have the Limited Guest Viewing Surpression option OFF, then my custom Welcome Headers message only appears on Forum Home page. However, when the "guest" advisory message appears, it only appears on the Show Thread pages.

Any suggestions as to what I'm doing wrong, or perhaps I don't understand what these switches are supposed to be dong?

Thanks ... :)

Regards,
Badger

Ted S 10-13-2007 12:15 AM

Limited guest viewing only impacts showthread and showpost pages. Welcome headers impacts every page unless limited guest viewing is installed, enabled and suppression is on.


All times are GMT. The time now is 10:04 PM.

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.02057 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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