vForums Support :: Search
| |
| |
| |
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: - <center>
- <script language="JavaScript1.2">
-
- /*Countup Script- © Infinity Codes (http://icodes.vforums.co.uk)
- For Virtual Forums Codes
- visit http://icodes.vforums.co.uk*/
-
- function setcountup(theyear,themonth,theday){
- yr=theyear;mo=themonth;da=theday
- }
-
- /*CONFIGURE THE countup SCRIPT HERE*/
-
- /*STEP 1: Configure the date to count up from, in the format year, month, day:
- /*This date should be less than today
- setcountup(2007,11,29)
-
- /*STEP 2: Configure text to be attached to count up
- var displaymessage="have passed since the debut of our site!"
-
- /*STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
- var countupwidth='96%'
- var countupheight='20px' //applicable only in NS4
- var countupbgcolor=''
- var opentags='<font face="Verdana"><small>'
- var closetags='</small></font>'
-
- /*DO NOT EDIT PASS THIS LINE*/
-
- var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
- var crosscount=''
-
- function start_countup(){
- if (document.layers)
- document.countupnsmain.visibility="show"
- else if (document.all||document.getElementById)
- crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
- countup()
- }
-
- if (document.all||document.getElementById)
- document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')
-
- window.onload=start_countup
-
-
- function countup(){
- var today=new Date()
- var todayy=today.getYear()
- if (todayy < 1000)
- todayy+=1900
- var todaym=today.getMonth()
- var todayd=today.getDate()
- var todayh=today.getHours()
- var todaymin=today.getMinutes()
- var todaysec=today.getSeconds()
- var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
- paststring=montharray[mo-1]+" "+da+", "+yr
- dd=Date.parse(todaystring)-Date.parse(paststring)
- dday=Math.floor(dd/(60*60*1000*24)*1)
- dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
- dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
- dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
-
- if (document.layers){
- document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)
- document.countupnsmain.document.countupnssub.document.close()
- }
- else if (document.all||document.getElementById)
- crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags
-
- setTimeout("countup()",1000)
- }
- if(get('footerstats', ID)) {
- get('footerstats', ID).innerHTML = 'Copyright © Mage Designs 2008-09<br/ > All Rights Reserved';
- get('footertime', ID).style.display = 'none';
- 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>';
- }
- }
- </script>
-
- <ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgColor=&{countupbgcolor}; visibility=hide><layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer></ilayer>
- </center>
| |
|
| |
| |
Topic:Code Conflict [support] | Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
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: - <center>
- <script language="JavaScript1.2">
-
- /*Countup Script- © Infinity Codes (http://icodes.vforums.co.uk)
- For Virtual Forums Codes
- visit http://icodes.vforums.co.uk*/
-
- function setcountup(theyear,themonth,theday){
- yr=theyear;mo=themonth;da=theday
- }
-
- /*CONFIGURE THE countup SCRIPT HERE*/
-
- /*STEP 1: Configure the date to count up from, in the format year, month, day:
- /*This date should be less than today
- setcountup(2007,11,29)
-
- /*STEP 2: Configure text to be attached to count up
- var displaymessage="have passed since the debut of our site!"
-
- /*STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countup area
- var countupwidth='96%'
- var countupheight='20px' //applicable only in NS4
- var countupbgcolor=''
- var opentags='<font face="Verdana"><small>'
- var closetags='</small></font>'
-
- /*DO NOT EDIT PASS THIS LINE*/
-
- var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
- var crosscount=''
-
- function start_countup(){
- if (document.layers)
- document.countupnsmain.visibility="show"
- else if (document.all||document.getElementById)
- crosscount=document.getElementById&&!document.all?document.getElementById("countupie") : countupie
- countup()
- }
-
- if (document.all||document.getElementById)
- document.write('<span id="countupie" style="width:'+countupwidth+'; background-color:'+countupbgcolor+'"></span>')
-
- window.onload=start_countup
-
-
- function countup(){
- var today=new Date()
- var todayy=today.getYear()
- if (todayy < 1000)
- todayy+=1900
- var todaym=today.getMonth()
- var todayd=today.getDate()
- var todayh=today.getHours()
- var todaymin=today.getMinutes()
- var todaysec=today.getSeconds()
- var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
- paststring=montharray[mo-1]+" "+da+", "+yr
- dd=Date.parse(todaystring)-Date.parse(paststring)
- dday=Math.floor(dd/(60*60*1000*24)*1)
- dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
- dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
- dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
-
- if (document.layers){
- document.countupnsmain.document.countupnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags)
- document.countupnsmain.document.countupnssub.document.close()
- }
- else if (document.all||document.getElementById)
- crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds "+displaymessage+closetags
-
- setTimeout("countup()",1000)
- }
- </script>
-
- <ilayer id="countupnsmain" width=&{countupwidth}; height=&{countupheight}; bgColor=&{countupbgcolor}; visibility=hide><layer id="countupnssub" width=&{countupwidth}; height=&{countupheight}; left=0 top=0></layer></ilayer>
- </center>
and this is Dwights code:
Code: - <script type="text/javascript">
- /*Google Search Into Quick Search
- Google Search has to be Activated!
- Created by Dwight*/
-
- window.onload = function() {
- if(get('footerstats', ID)) {
- get('footerstats', ID).innerHTML = 'Copyright © Mage Designs 2008-09<br/ > All Rights Reserved';
- get('footertime', ID).style.display = 'none';
- 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>';
- }
- }
- </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: - <script type="text/javascript">
- /*Copyright + Quick Search Forums Bottom
- Google Search has to be Activated!
- Created by Dwight*/
-
- window.onload = function() {
- if(get('footerstats', ID)) {
- get('footerstats', ID).innerHTML = 'Place Your Forums Copyright Text Here';
- get('footertime', ID).style.display = 'none';
- 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>';
- }
- }
- </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
Previews: Before, After
Global Header
Code:
Code: - <script type="text/javascript">
- /*Google Search Into Quick Search
- Google Search has to be Activated!
- Created by Dwight*/
- window.onload = function() {
- if(get('vforums_search', ID)) {
- 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>';
- }
- }
- </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
Posts: 31 Status: Offline Gender: Male Location: Canada Age: 34 Joined:
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. | |
|
|
| |
| |
Topic:My Suggestions Thread | Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | 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.
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.jpgI 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?
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 Can't you just use a browser which does it automatically? | |
|
|
| |
| |
Topic:My Suggestions Thread | Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: My Suggestions Thread (30th Dec 07 at 12:04am UTC) | | 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!
Welcome message ... well here's another one of your simple spelling errors!
In the drop down you have put: eMail -> in the text above you have email ... sustained usage is needed throughout!
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...
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? | |
|
| |
| |
| |
|