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)

ICC FORUM 01-08-2012 02:18 PM

1. Upload your desired image to "/images/misc/register.png" (if you want my symples, feel free to use them, they are all attached below)

2. Open your "additional.css" and add the following lines:

Where do i find No 1, is it in AdminCp or via FTP..
Can someone post a link walkthrough on where to find No2, as i have checked in Templates etc, all i am finding is Main CSS, and that is saying "This CSS file is obsolete and is available here for reference purposes only."

We are running VB 4.0.3

Just learning how to do Add Ons so excuse my Ignorance, But would really like to add this as we have loads of Visitors who view and read how to Register and i think this Add On will help encourage our Forums Growth..
Really apprieciate ALL Help..

Thanks

keyness 01-08-2012 02:29 PM

1st step is about FTP, you'll put that png file to /images/misc/ folder.

And 2nd step, Admin Panel>Styles & Templates>Style Manager>choose Edit Templates from dropdown menu at the right> double click to CSS Templates(It has blue text color)>Additional.css, paste the code to the blank area.

ICC FORUM 01-08-2012 03:01 PM

Ok, I dropped a Image in /images/misc/ folder and the Image is named register.png.. Done step 2 in Additional CSS and the Header,

Logged out and No Image for Guests to see, Have i done the Image part wrong for selection..??

Thanks

keyness 01-08-2012 03:09 PM

What about step 3? Did you put one of the codes to the top of header template? Be careful, there are 3 codes in step 3, but you'll just put one which you want to use.

If you done everything correctly, it should work. If it doesn't, pass your link please, so we can look at.

ICC FORUM 01-08-2012 03:13 PM

Yes Mate, i put
<vb:if condition="$show['guest']"><a href="/register.php"><div class="forcetoregister"></div></a></vb:if>
In the Header, I clicked on Header on the CSS drop column and added as the First line as stated,,

Website is
http://internationalchristineclub.net/forum.php

keyness 01-08-2012 03:22 PM

It works actually, If you hover your mouse to the right below corner of the forum, you'll see it turn to link icon. So you have a problem related to picture.

http://internationalchristineclub.ne...c/register.png

When I visited this page, I got a 404 error, so there is no image in that directory. Make sure you put register.png to the right directory.

ICC FORUM 01-08-2012 03:29 PM

So have i Dropped the Image to the wrong place vis FTP, I Doubled clicked Images and then Double Clicked Misc, then got a list of Images and just Dragged and dropped the Image, There was No mention of Register.png, that is why i named the Image that.

What do you mean by
Make sure you put register.png to the right directory.

Sorry for the Ignorance but i am new to this and trying to learn,

Thanks for Helping..

keyness 01-08-2012 03:35 PM

Oh!

There are 5 sample images at the below of 1st post (anime charachters and super mario), right click and then save one of those to the your computer, then upload it via FTP to the images/misc directory.

You're welcome by the way.

ICC FORUM 01-08-2012 03:55 PM

Downloaded one of the PICs, Saved to computer, Dragged and dropped it in to Images/Misc on my FTP. Still not showing up though,

I Edited Permission to 0755 as other Images are also, But still nothing, As you say if i scroll with mouse the Link is there to take you direct to registration, so that all appears to be working, it just isnt picking up the Image,

I am sure i am missing something very simple, and am sure i am putting the Image in the correct area on the FTP.
Do i have to load the PIC in to the AdminCP anywhere as well ??

I can view the PIC in my FTP also..

keyness 01-08-2012 04:06 PM

Well, there's nothing to do with Admincp, because still I get 404 error when I tried to reach the register.png image.

For example there's no problem for accept.png (this is a standart vbulletin image) in images/misc folder

http://internationalchristineclub.ne...isc/accept.png

But a 404 page when I try register.png:

http://internationalchristineclub.ne...c/register.png

I really don't know what can be the problem if you do it all correct.


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