vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Search
Search Results (7)

Topic:Code Conflict [support]
dog199200
Guest
Re: Code Conflict [support] (29th Oct 08 at 4:32am UTC)
its the window.onload function clashing, its why I end up having to combined my codes to use them together. I would try this:

Code:
 
  1. <center>
  2. <script language="JavaScript1.2">
  3.  
  4. /*Countup Script- © Infinity Codes (http://icodes.vforums.co.uk)
  5. For Virtual Forums Codes
  6. visit http://icodes.vforums.co.uk*/
  7.  
  8. function setcountup(theyear,themonth,theday){
  9. yr=theyear;mo=themonth;da=theday
  10. }
  11.  
  12. /*CONFIGURE THE countup SCRIPT HERE*/
  13.  
  14. /*STEP 1: Configure the date to count up from, in the format year, month, day:
  15. /*This date should be less than today
  16. setcountup(2007,11,29)
  17.  
  18. /*STEP 2: Configure text to be attached to count up
  19. var displaymessage="have passed since the debut of our site!"
  20.  
  21. /*STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
  22. var countupwidth='96%'
  23. var countupheight='20px' //applicable only in NS4
  24. var countupbgcolor=''
  25. var opentags='<font face="Verdana"><small>'
  26. var closetags='</small></font>'
  27.  
  28. /*DO NOT EDIT PASS THIS LINE*/
  29.  
  30. var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
  31. var crosscount=''
  32.  
  33. function start_countup(){
  34. if (document.layers)
  35. document.countupnsmain.visibility="show"
  36. else if (document.all||document.getElementById)
  37. crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
  38. countup()
  39. }
  40.  
  41. if (document.all||document.getElementById)
  42. document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')
  43.  
  44. window.onload=start_countup
  45.  
  46.  
  47. function countup(){
  48. var today=new Date()
  49. var todayy=today.getYear()
  50. if (todayy < 1000)
  51. todayy+=1900
  52. var todaym=today.getMonth()
  53. var todayd=today.getDate()
  54. var todayh=today.getHours()
  55. var todaymin=today.getMinutes()
  56. var todaysec=today.getSeconds()
  57. var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
  58. paststring=montharray[mo-1]+" "+da+", "+yr
  59. dd=Date.parse(todaystring)-Date.parse(paststring)
  60. dday=Math.floor(dd/(60*60*1000*24)*1)
  61. dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
  62. dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
  63. dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
  64.  
  65. if (document.layers){
  66. document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)
  67. document.countupnsmain.document.countupnssub.document.close()
  68. }
  69. else if (document.all||document.getElementById)
  70. crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags
  71.  
  72. setTimeout("countup()",1000)
  73. }
  74. if(get('footerstats', ID)) {
  75. get('footerstats', ID).innerHTML = 'Copyright © Mage Designs 2008-09<br/ > All Rights Reserved';
  76. get('footertime', ID).style.display = 'none';
  77. get('vforums_search', ID).innerHTML = '<form action="/action/search" method="post" enctype="multipart/form-data" name="search_form"><input name="search_words" size="25" maxlength="100" value="" type="text"><br />Subject:<input name="subject" value="1" type="checkbox"> Message:<input name="message" value="1" type="checkbox"><input name="max_results" value="25" type="hidden"><input type="submit" value="Search" /></form>';
  78. }
  79. }
  80. </script>
  81.  
  82. <ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgColor=&{countupbgcolor}; visibility=hide><layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer></ilayer>
  83. </center>
 


Topic:Code Conflict [support]
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


pmwww
Code Conflict [support] (28th Oct 08 at 6:19pm UTC)
http://vfad.vforums.co.uk

For some reason my countup script

and Dwight's copy right/replace google search with forum search is conflicting, I tried all possible ways to fix this but it its not working

Here is my code:
Code:
 
  1. <center>
  2. <script language="JavaScript1.2">
  3.  
  4. /*Countup Script- © Infinity Codes (http://icodes.vforums.co.uk)
  5. For Virtual Forums Codes
  6. visit http://icodes.vforums.co.uk*/
  7.  
  8. function setcountup(theyear,themonth,theday){
  9. yr=theyear;mo=themonth;da=theday
  10. }
  11.  
  12. /*CONFIGURE THE countup SCRIPT HERE*/
  13.  
  14. /*STEP 1: Configure the date to count up from, in the format year, month, day:
  15. /*This date should be less than today
  16. setcountup(2007,11,29)
  17.  
  18. /*STEP 2: Configure text to be attached to count up
  19. var displaymessage="have passed since the debut of our site!"
  20.  
  21. /*STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
  22. var countupwidth='96%'
  23. var countupheight='20px' //applicable only in NS4
  24. var countupbgcolor=''
  25. var opentags='<font face="Verdana"><small>'
  26. var closetags='</small></font>'
  27.  
  28. /*DO NOT EDIT PASS THIS LINE*/
  29.  
  30. var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
  31. var crosscount=''
  32.  
  33. function start_countup(){
  34. if (document.layers)
  35. document.countupnsmain.visibility="show"
  36. else if (document.all||document.getElementById)
  37. crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
  38. countup()
  39. }
  40.  
  41. if (document.all||document.getElementById)
  42. document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')
  43.  
  44. window.onload=start_countup
  45.  
  46.  
  47. function countup(){
  48. var today=new Date()
  49. var todayy=today.getYear()
  50. if (todayy < 1000)
  51. todayy+=1900
  52. var todaym=today.getMonth()
  53. var todayd=today.getDate()
  54. var todayh=today.getHours()
  55. var todaymin=today.getMinutes()
  56. var todaysec=today.getSeconds()
  57. var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
  58. paststring=montharray[mo-1]+" "+da+", "+yr
  59. dd=Date.parse(todaystring)-Date.parse(paststring)
  60. dday=Math.floor(dd/(60*60*1000*24)*1)
  61. dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
  62. dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
  63. dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
  64.  
  65. if (document.layers){
  66. document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)
  67. document.countupnsmain.document.countupnssub.document.close()
  68. }
  69. else if (document.all||document.getElementById)
  70. crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags
  71.  
  72. setTimeout("countup()",1000)
  73. }
  74. </script>
  75.  
  76. <ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgColor=&{countupbgcolor}; visibility=hide><layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer></ilayer>
  77. </center>
 


and this is Dwights code:

Code:
 
  1. <script type="text/javascript">
  2. /*Google Search Into Quick Search
  3. Google Search has to be Activated!
  4. Created by Dwight*/
  5.  
  6. window.onload = function() {
  7. if(get('footerstats', ID)) {
  8. get('footerstats', ID).innerHTML = 'Copyright © Mage Designs 2008-09<br/ > All Rights Reserved';
  9. get('footertime', ID).style.display = 'none';
  10. get('vforums_search', ID).innerHTML = '<form action="/action/search" method="post" enctype="multipart/form-data" name="search_form"><input name="search_words" size="25" maxlength="100" value="" type="text"><br />Subject:<input name="subject" value="1" type="checkbox"> Message:<input name="message" value="1" type="checkbox"><input name="max_results" value="25" type="hidden"><input type="submit" value="Search" /></form>';
  11. }
  12. }
  13. </script>
 


What would be the problem?

The weird thing is yes I am a coder, but no I don't know much yet.

Thanks

Topic:Copyright + Quick Search Forums Bottom
dog199200
Guest
Copyright + Quick Search Forums Bottom (22nd Oct 08 at 1:50am UTC)
THis code is a combination of my "Google Search Into Quick Search" code and my "Copyright Instead of Bottom Forum Stats" code.

If you are familiar with either of the codes what it does is replaces the forums query at the bottom of the forum and replaces it with your forums copyright, as well turns the forums Google Search into a Quick Search feature.

So here is the code:

Global Header

Code:
 
  1. <script type="text/javascript">
  2. /*Copyright + Quick Search Forums Bottom
  3. Google Search has to be Activated!
  4. Created by Dwight*/
  5.  
  6. window.onload = function() {
  7. if(get('footerstats', ID)) {
  8. get('footerstats', ID).innerHTML = 'Place Your Forums Copyright Text Here';
  9. get('footertime', ID).style.display = 'none';
  10. get('vforums_search', ID).innerHTML = '<form action="/action/search" method="post" enctype="multipart/form-data" name="search_form"><input name="search_words" size="25" maxlength="100" value="" type="text"><br />Subject:<input name="subject" value="1" type="checkbox"> Message:<input name="message" value="1" type="checkbox"><input name="max_results" value="25" type="hidden"><input type="submit" value="Search" /></form>';
  11. }
  12. }
  13. </script>
 


All you have to do is edit the part of the code that says "Place Your Forums Copyright Text Here" and add in your own forums copyright.

As well the Google search must be activated unless the Quick Search wont work.

Topic:Google Search Into Quick Search
dog199200
Guest
Google Search Into Quick Search (17th Oct 08 at 2:44am UTC)
What this code does changes the vForums Google search tool at the bottom of the forum into a quick search tool, calling up the search feature for the website. You can search by a term in the message or in the subject, or both. Enjoy {Smile}

Previews: Before, After

Global Header

Code:
Code:
 
  1. <script type="text/javascript">
  2. /*Google Search Into Quick Search
  3. Google Search has to be Activated!
  4. Created by Dwight*/
  5. window.onload = function() {
  6. if(get('vforums_search', ID)) {
  7. get('vforums_search', ID).innerHTML = '<form action="/action/search" method="post" enctype="multipart/form-data" name="search_form"><input name="search_words" size="25" maxlength="100" value="" type="text"><br />Subject:<input name="subject" value="1" type="checkbox"> Message:<input name="message" value="1" type="checkbox"><input name="max_results" value="25" type="hidden"><input type="submit" value="Search" /></form>';
  8. }
  9. }
  10. </script>
 


There shouldn't have to be any editing at all, but you do have to have the Google search activated for this code to work!

Topic:Buddies are borked.
Charles Stover
New Member
*

[Avatar]

Posts: 31
Status: Offline
Gender: Male
Location: Canada
Age: 34
Joined:  
Reputation: 0%  


pmwwwmsnyahooaimgtalkicqxfire
Buddies are borked. (2nd Feb 08 at 5:13pm UTC)
I clicked on viewing all the posts of a user on my buddy list (cr0w), and it links to here. Those are obviously not posts by cr0w. I removed the extra / in the URL and got here, which looks like it needs to be patched up...

So ya.

Image

Topic:My Suggestions Thread
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: My Suggestions Thread (30th Dec 07 at 1:40am UTC)
I'm relieved to say that a lot of those suggestions have already been implemented, on the test server. All the ones I've crossed through have also been implemented onto the test server and will be transferred to the live version along with the rest of the updates. Now, for a few questions and answers:


Quote:
Oh btw, what's with the current URL layout? Why deviate from the old one?


I take it you mean the use of forward slashes? That's simply a choice made because search engines prefer them and as such it should help forum owners get indexed.

Quote:
http://support.virtualforums.co.uk/action/search/search_words//max_results/20/ subject/1/message/1/search_days//

Taken from the IC... is there a need for the double forward slashes in there?


Yes they are necessary. Or at least the first pair are. I suppose I could change it to link to /action/recent and have the variables set server side for that particular search.

Quote:
http://wrighty.info/img/images/2.jpg

I guess it's the same when you modify other things? It shows that I'm editting ad-free settings, when really it's showing something else...


It shows that beacuse the URL still has the ad-free action in the URL, afterall that's what you've just been doing. That can be phased out over time, having the "Admin Home" title put in it's place. I must admit that the admin pages are very inconsistent in what they do after changing their respective settings.

Quote:
HOLY HELL!

I just went to modify forum colours and ...

I just died... look at it ... it's like a huge block of text.. set it out in a cool nice cute little table!

As it is at the moment, it's a serious let down!


I'm not really sure what you're referring to here. The colors page is already split up into each section which has it's own settings. What would you suggest moving/changing? {Unsure}

Quote:
Add a 'back to top' and 'report to admin' button next to the link to post button in the posts..
of course some cool report to admin feature is needed!


Do people really use "back to top" links still? I suppose it wouldn't hurt to add them. As for a report feature, it is one already planned for the new year.

Quote:
A favicon in a 16x16px image that appears in a users favorites menu or in their address bar.

should say: is

You sure on that one? "in" makes a lot more sense to me.

Quote:

When clicking the UBBC buttons it scrolls the box to the top Make it so it adds it where the cursor is without moving the box.


Only in firefox {Tongue Out} Can't you just use a browser which does it automatically? {Tongue Out}

Image

Topic:My Suggestions Thread
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: My Suggestions Thread (30th Dec 07 at 12:04am UTC)
HOLY HELL!

I just went to modify forum colours and ... {Shocked} {Shocked} {Shocked} {Shocked}

I just died... look at it ... it's like a huge block of text.. set it out in a cool nice cute little table! {Smile}

As it is at the moment, it's a serious let down!




Welcome message ... well here's another one of your simple spelling errors! {Tongue Out}

In the drop down you have put: eMail -> in the text above you have email ... sustained usage is needed throughout! {Smile}





to recieve a welcome message in the form of an email or PM when they register

Should say: receive (I'm sure!)

(Same page as before... the welcome message one)



Ad-Free

You can choose where abouts on your forum the ads appear. This is so that the ads can fit in with your forums design rather than the other way around. If you choose to use one of the "Floating" options it is recommended that your forum width is no wider than 750px.

should say: forum's






http://wrighty.info/img/images/2.jpg

I guess it's the same when you modify other things? It shows that I'm editting ad-free settings, when really it's showing something else... {Unsure}




http://support.virtualforums.co.uk/action/search/search_words// max_results/20/subject/1/message/1/search_days//

Taken from the IC... is there a need for the double forward slashes in there?

Search
Search For:
Posted By:
Boards to Search:Check All:
vForums
Announcements62 Topics826 Posts
Support602 Topics3,358 Posts
Report a Bug78 Topics258 Posts
     Resolved Bugs704 Topics3,390 Posts
System Improvements
Suggestions140 Topics757 Posts
     Implemented Suggestions120 Topics888 Posts
Testimonials26 Topics100 Posts
Artwork & Design
Graphics Discussion & Showoff194 Topics1,530 Posts
     Graphics Requests53 Topics482 Posts
Programming & Coding
Programming Discussion148 Topics1,064 Posts
Database of Codes/Hacks/Mods146 Topics627 Posts
     Code Submissions21 Topics28 Posts
Code Requests & Support419 Topics3,027 Posts
General
General821 Topics9,673 Posts
Introductions117 Topics1,198 Posts
Message Board Opinions91 Topics678 Posts
Test Board48 Topics298 Posts
     Sub-Board2 Topics15 Posts
          Sub-Sub Board2 Topics40 Posts
     Example Board3 Topics5 Posts
Maximum Results:
Search In: Subject Message
Posted: Days Ago
Advanced Options:Find topics with
Match Whole Words Only

All times are GMT+0 :: The current time is 7:58pm
Page generated in 3.1205 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums