vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Location Of "Threads and Posts" - Template Changing (https://vborg.vbsupport.ru/showthread.php?t=317984)

Inked_Mono 03-27-2015 10:45 AM

Quote:

Originally Posted by Replicant (Post 2541652)
JQuery is new to me too. To the best of my knowledge, it cannot be done with css. If you find a way, please let us all know. Since you don't seem to be too interested in learning a new programming language, try this one. Create a new ad, global, above footer and copy this code into it. Let me know if it works for you. It works on my test site.
Code:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>$(".datacontainer").click(function (event) {
    var url = ($(this).find('a').attr('href'));   
    $(window.location = url);
});</script>


I must be doing something incorrectly. I added it, as instructed, and it doesn't appear to be doing anything. Sections must still be entered by clicking on the title.

http://i.imgur.com/mEZONrY.png

Image above is settings. You mentioned making the ad global, however I didn't see a step to specify that.

Thanks for the continued help! It really does mean a lot.

Replicant 03-27-2015 01:31 PM

You should be good to go, I changed the class. I was only grabbing part of the box.


All times are GMT. The time now is 07:31 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.01120 seconds
  • Memory Usage 1,715KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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