Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 251
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 110
Total: 110

Author Topic: :( Careless tinkering  (Read 3510 times)

0 Members and 1 Guest are viewing this topic.

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
:( Careless tinkering
« on: February 21, 2015, 09:07:48 am »
eeek,
I've been tinkering again and at some point never realised I've broken how items are displayed and it's now missing the forum template around it?

example:
http://www.420connect.info/forum/index.php?action=classifieds;sa=view;id=3

Do you happen to know what I've done?  :'(

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: :( Careless tinkering
« Reply #1 on: February 21, 2015, 09:11:33 am »
First big thing I notice is you have an open script tag near the top of the page
Code: [Select]
<script> jQuery.noConflict();
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: :( Careless tinkering
« Reply #2 on: February 21, 2015, 09:17:10 am »
First big thing I notice is you have an open script tag near the top of the page
Code: [Select]
<script> jQuery.noConflict();


Ooh, thank you - I must have left them in when attempting (and failing) to add noConflict()

- after removing these lines, the page has returned as normal - Thank you.

- Would you be able to assist in properly using noConflict?

I believe I have several bugs that could be helped by this  :-*

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: :( Careless tinkering
« Reply #3 on: February 21, 2015, 09:21:37 am »
That looks ok just add </script> after that code to fix it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: :( Careless tinkering
« Reply #4 on: February 21, 2015, 09:25:38 am »
That looks ok just add </script> after that code to fix it.

I had it here:

Code: [Select]
// For the lightbox
$context['html_headers'] .= '<script type="text/javascript" src="' . $modSettings['class_url'] . 'js/prototype.js"></script>
<script type="text/javascript" src="' . $modSettings['class_url'] . 'js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="' . $modSettings['class_url'] . 'js/lightbox.js"></script><script> jQuery.noConflict();</script>
<link rel="stylesheet" href="' . $modSettings['class_url'] . 'css/lightbox.css" type="text/css" media="screen" />';

but adding the </script> where I have, I believe I'm ending it too quickly, but putting it elsewhere throws errors :(

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: :( Careless tinkering
« Reply #5 on: February 21, 2015, 07:08:10 pm »
I would put it before the </head> tag in the index.template.php file or right after the jquery code is loaded.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

+- Recent Topics

Please Help! by SMFHacks
Today at 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal