DragonByte Tech | vBulletin Mods & Addons - Powered by vBulletin



DragonByte Tech Proudly Hosted By Hivelocity.net
Cloud Servers from HiVelocity Hosting / Sparknode

View Issue Info: JS/CSS In Head Tags

Category:
"How Do I?"
Status:
Answered
Priority:
N/A
Forum Version:
Enter the forum version you are running.
4.2.0
Support Agent:
Belazor

User Tag List

  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Depressed
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • Results 1 to 3 of 3

    Thread: JS/CSS In Head Tags


    Forum: vBShout Lite Support

    Questions & Answers for vBShout.
    Click here to buy!

    1. #1
      Junior Member
      Level 0 (200 Loyalty Points)
      This user has no status.
       
      I am:
      ----
       

      Gil
      175 (0 Banked)
      Total Contributions For

      Jarret Cade      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Sep 2010
      Posts
      11
      Points
      175
      Credits
      62
      Problems Posted
      0
      Problems Solved
      0
      Best Answers
      0
      Good Answers
      0
      Rep Power
      0

      Default JS/CSS In Head Tags

      So I guess this is more of a bug or feature request but also I'm just looking for some possible guidance.

      With your software you output 3 CSS files and 7 JS files on every single page on the forum. I was just wondering where in the code are these scripts placed to show up in the head tags so that I can go in and create a conditional since I have the chat on a single custom page.

    2. #2
      Founder
      Level 5 (3,164 Loyalty Points)
      is finally done working on vBShop
      for now xD
       
      I am:
      Sneaky
       
      Belazor's Avatar
      Gil
      55,636 (460,361 Banked)
      Total Contributions For

      Belazor Points (Total)      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Dec 2009
      Location
      Glasgow, Scotland
      Age
      26
      Posts
      12,190
      Blog Entries
      13
      Points
      55,636
      Credits
      139,810
      Problems Posted
      0
      Problems Solved
      3
      Best Answers
      0
      Good Answers
      2
      Rep Power
      10

      Default

      It's very much not a bug, so it's a good thing you didn't post it as one

      Before I get down to the instructions, I just want to take a moment and explain why we did this: Back in ye olden days, we required to you fill out a THIS_SCRIPT value field (basically, forum.php is "index", forumdisplay.php is "forumdisplay" etc) for all pages you wanted the shoutbox to appear in.

      That worked around this issue, it'd only display for the actual locations you wanted them in.

      However, the volume of support requests from people who had no idea how to get it to show up on forumdisplay or even a custom page was getting ridiculous rather quickly. That's not saying anything bad about the users - I don't know how my keyboard actually works (although I am convinced sorcery is at work), so if my keyboard broke I would need to get help from someone who works with hardware.

      In other words; it was very user un-friendly.

      Thus, we insert the code on every page and give people an easier-to-read description of how to get the SB on a custom page with no more technical knowledge needed. We now only get 2 kinds of support requests; people who want it only for a specific forum ID, and people who are concerned about the page load times / unnecessary code evaluation.


      With that out of the way, the plugin in question is "Global Initialisation #2 ".

      You can either edit the plugin in the ACP, and wrap your if()'s around the require() in there, or you can edit /dbtech/vbshout/hooks/process_templates_complete.php
      Fillip Hannisdal
      Founder & Programming Director
      DragonByte Technologies http://www.DragonByte-Tech.com


      Please do not Private Message me with support requests or product questions. PMs are only for exchanging sensitive information (like FTP / AdminCP logins).
      Please do not Private Message me with business related queries (refunds, complaints, feedback, etc). Decado is the person to PM for those issues.
      Please do not Private Message Decado with support requests or forum errors.

      When I say "Hotfix Released" it means you should re-download the product and re-upload the files.

    3. #3
      Junior Member
      Level 0 (200 Loyalty Points)
      This user has no status.
       
      I am:
      ----
       

      Gil
      175 (0 Banked)
      Total Contributions For

      Jarret Cade      $ 0.00
      User Info Thanks / Tagging Info Gifts / Achievements / Awards Activity Stats
      Join Date
      Sep 2010
      Posts
      11
      Points
      175
      Credits
      62
      Problems Posted
      0
      Problems Solved
      0
      Best Answers
      0
      Good Answers
      0
      Rep Power
      0

      Default

      Thanks for the quick reply!

      And I understand about the end user issues and all that being a web developer myself. Thanks for the tip

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

    Similar Threads

    1. [vB 4.1.x] Missing Friends Checkbox in Thread Tag Box
      By Madhatterr in forum Advanced @User Tagging Lite Support
      Replies: 5
      Last Post: 26th October 2011, 00:24
    2. [vB 3.8.x] Semicolon required in hash tag subscriptions
      By vijayninel in forum Advanced @User Tagging Lite Support
      Replies: 1
      Last Post: 27th September 2011, 19:26

    Tags for this Thread

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •