vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - New way to force guests to register (https://vborg.vbsupport.ru/showthread.php?t=272295)

badcarb 12-16-2012 01:14 PM

excellent add on brotha'

Alibass 12-16-2012 01:43 PM

Quote:

Originally Posted by ringnews24 (Post 2391043)
The image is now showing, but when you click the image it takes you to a page that says

Not Found

The requested URL /register.php/ was not found on this server.

Apache Server at ringnews24.com Port 80

Fix this string <a href="/register.php">to point to the root of where your register.php file is located. You can also try to remove the / in front of register.php first and see if that fixes it. Once you get it to working you will need to make the correction in all skins if you're using more than the vb skin.

dszuecs 01-03-2013 12:02 PM

Quote:

Originally Posted by ringnews24 (Post 2391057)
I've been having a few problems with this mod, it broke my blog and it stopped guests registering on my forum.

Help Topic from Vbulletin.com https://www.vbulletin.com/forum/show...join-the-forum

Hi there, check your PN please.

The script is working as expected now. Please check your blog and give me feedback if there are any errors.

Cheers

ringnews24 01-04-2013 06:48 PM

Thanks dszuecs, no current problems with the blog.

Thanks a lot for fixing this for me.

JamalFree 01-05-2013 04:30 PM

Quote:

Originally Posted by abonk (Post 2258672)
great trick :D

:up::up::up::up::up::up::up::up:

Spadow 01-26-2013 10:33 PM

Hi there,

I've been looking for something like this, but is there a way to add an 'x' to close the image?

Thanks,
Spadow

Alibass 01-26-2013 10:55 PM

Quote:

Originally Posted by Spadow (Post 2399745)
Hi there,

I've been looking for something like this, but is there a way to add an 'x' to close the image?

Thanks,
Spadow

Dunno why you would want to close image, the mod was designed to stare your guest in the face with a constant reminder so they will join.

Spadow 01-26-2013 11:04 PM

Quote:

Originally Posted by Alibass (Post 2399748)
Dunno why you would want to close image, the mod was designed to stare your guest in the face with a constant reminder so they will join.

That is correct, but this modification can be used in forum events as well, which I'm sure of that my registered members don't want to see the same image every single time they visit a certain page. Because it might be annoying for them.

dszuecs 02-01-2013 08:51 AM

Quote:

Originally Posted by Spadow (Post 2399749)
That is correct, but this modification can be used in forum events as well, which I'm sure of that my registered members don't want to see the same image every single time they visit a certain page. Because it might be annoying for them.

It wouldn't be a problem at all to add a close button to the image with jQuery. The problem is, that the image will reappear on every page reload.

whitetailworld 02-07-2013 09:13 PM

OK, I have never claimed to be a "programmer". I have installed VB myself and it works. I am REALLY trying to get this mod in and am having NO luck.

I have done the following...
1. placed my register.png file in the images/misc/ folder

2. placed this code in (what was my empty) additional.css file:

div.forcetoregister {
background:url(images/misc/register.png);
background-repeat: no-repeat;
width:300px;
height:200px;
padding:0 5px 3px;
position:fixed;
right:1px;
bottom:0px;
z-index:1;
}

3. Included the code in bold to my header file. This is not all of the header file, but just the top part...

<vb:if condition="THIS_SCRIPT != 'register'">
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
</vb:if>

<div class="above_body"> <!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">
<vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>
<div id="toplinks" class="toplinks">
<vb:if condition="$show['member']">
<ul class="isuser">...
.
.
.
.

Am I missing something?


All times are GMT. The time now is 06:19 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.01569 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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