Page Index Toggle Pages: 1 [2] 3 
Topic Tools
 25 Javascript:quicklinks not working (Read 4,949 times)
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Javascript:quicklinks not working
Reply #18 - Dec 31st, 2010 at 9:07pm
Post Tools
Well I think that big difference is because he has quicklinks turned off in the admin center. I remember looking at his source and the problem was the id of the div has a ql in front of it, and he new javascript used to take "ql" plus a number as an argument, whereas now it takes just the number as an argument and adds the "ql" when it does the getElementById(). The problem was either his was passing the ql and the javascript didnt need it, or his was was not passing the ql and the javascript did need it. Just a descrepancy between the file versions.

If you enable the quicklinks in the admin center and I get a look at the code I should be able to tell you which it is and what changes to make.
  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Javascript:quicklinks not working
Reply #17 - Dec 31st, 2010 at 8:51pm
Post Tools
Unilat wrote on Dec 23rd, 2010 at 3:20pm:
Try reuploading Load.pl, BoardIndex.pl, and YaBB.js from your initial install package.

 Done this by editing, so No MODs lost.

But no change, hovering over member display name shows Last Online time and javascript command on lower browser info bar, but isn't clickable.

 Unilat .. any other file needed, besides above ?  Display.template seems to be correct ... but noticed looking at source not correct.

His forum:
Code (HTML)
Select All
<div class="displaycontainer">
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="bordercolor" align="center" style="table-layout: fixed;">
<tr>
	<td align="left" class="windowbg" valign="top" width="140">
		<a name="0"></a>
		<b>slowduty</b>

		<div class="small">
		Roost Bait<br />
		<img src="http://nwforddiesels.com/yabbfiles/Templates/Forum/default/starsilver.gif" border="0" alt="*" /><br />
		<span class="useroffline">Offline</span><br /><br />
		<img src="http://nwforddiesels.com/yabbfiles/avatars/blank.gif" name="avatar_img_resize_2" alt="" border="0" style="display:none" /><br />
		Member<br /><br />
		Posts: 19<br />

		Tacoma<br />



		</div>
	</td> 



Normal working source:
Code (HTML)
Select All
	<div class="small">
		<span class="small" style="float: left; line-height: 11pt; text-align: left; padding-right: 5px;">
		<a name="0"></a>
                <span STYLE="font-size: 14px;"><a href="javascript:void(AddText('[color=#0033cc]@[/color] [b]Captain John[/b]\r\n\r\n'))"><img src="http://cvs.com/Forum/yabbfiles/Templates/Forum/default/qquname.gif" border="0" alt="Paste User Name in Quick Reply Box" title="Paste User Name in Quick Reply Box" /></a> <div style="position:relative;display:inline-block">
			<ul id="ql7B7E7773741A01" class="QuickLinks" onmouseover="keepLinks('7B7E7773741A01')" onmouseout="TimeClose('7B7E7773741A01')">
				<li><span class="useronline">Online</span><a href="javascript:closeLinks('7B7E7773741A01')" style="position:absolute;right:3px"><b>X</b></a></li>

				<li><a href="http://cvs.com/Forum/YaBB.pl?action=viewprofile;username=7B7E7773741A0" rel="nofollow">View my Profile</a></li>
			</ul><a href="javascript:quickLinks('7B7E7773741A01')" title="Last online 14 days and 20:15:17 hours ago."><span style="color: red;"><b>Captain John</b></span></a></div></span>&nbsp;<span class="useronline">Online</span><br />
	    <b>Gender: <img src="http://cvs.com/Forum/yabbfiles/Templates/Forum/default/male.gif" border="0" alt="male" title="male" /><br /></b>
            I love YaBB 2.2.1 !<br />
            The Land of YaBB<br /><br />
Occupation: Stink Boater &nbsp;

               </span>
	</div>
 

« Last Edit: Dec 31st, 2010 at 8:59pm by »  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #16 - Dec 30th, 2010 at 8:04pm
Post Tools
I only have Custompages, EventCAL and the Imageshack mod.

Then the theme's and templates along with a rotation script for one of the banners on the top left of the page that uses the forum news function.  I don't know if that rotation part is part of Yabb or part of an additional script the former webmaster setup.

My concern is losing user accounts\posts\attached files\the 2 templates that have been edited.


Sent you a PM with a question.
  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Javascript:quicklinks not working
Reply #15 - Dec 30th, 2010 at 6:21pm
Post Tools
On a site that is MODded, any replacement of pl or even template files will disable MODs.
  To do this correctly .. a New install should be made, setup completed, configuration done, then downloaded, MODded (with compatible Y2.5 MODs) and then reuploaded, then the old boards, members, messages and certain Variables copied into this New forum.
  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #14 - Dec 30th, 2010 at 4:54am
Post Tools
I uploaded the Yabb.js, Boardindex.pl and it only dropped my mods,  the links were still all messed up amongst the other issues.  I put the old files back.

My concern is that I'll make a change trying to fix it and then the site comes down and I can't get it back up.  This site has been running for over 5 years and I'd have hell to pay for bring it down and not being able to bring it back up.  There just seems to be a lot of little things that are not right with the site.  I feel that it is just limping along and ready to fail at any time and having NO coding experience just scares me.  The closest I've ever came to webdesign was Frontpage.  Embarrassed
  
Back to top
 
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Javascript:quicklinks not working
Reply #13 - Dec 26th, 2010 at 5:54pm
Post Tools
On an upgrade you do not need to run setup.pl. So this is probably not the issue. Did the replaced files fix anything for you?
  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #12 - Dec 25th, 2010 at 7:39pm
Post Tools
He is something I'm wondering.

The former web guy ftp'd across the site from another hosting place last Jan 2010.  I do not believe he ran Setup.pl during this process.  Could this be causing this issue along with custompages not working?  I also noticed the the help link at the top doesn't work.  seems to be some scripting issue or registered files maybe?

If I run Setup.pl on a site that is up and running,  will it lose everything including current mods? or is their another way to re-run any scripts that register files or install needed pieces?

  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #11 - Dec 24th, 2010 at 4:47am
Post Tools
I'll give it a shot tomorrow (Pacific time)

After doing this,  I may need to put some time into fixing the 2 mods I do have working.

Just pulling my hair out still trying to figure out the screw thing with the "Installed Mods" part of the admin page and why I can't get the CustomPages resolved. So many Custom Pages built from previous build, none of them working.
  
Back to top
 
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Javascript:quicklinks not working
Reply #10 - Dec 23rd, 2010 at 3:20pm
Post Tools
But you never got the quicklinks working? Try reuploading Load.pl, BoardIndex.pl, and YaBB.js from your initial install package. If it doesn't work then, we could be dealing with a possible bad package which needs to be resolved.
  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #9 - Dec 23rd, 2010 at 1:57pm
Post Tools
Quote:
Show User Tools for username links?


Sorry, quoted the wrong item and can't edit the post.  This is the one I changed.

Thank you,
  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #8 - Dec 23rd, 2010 at 1:56pm
Post Tools
Quote:
Show "View Profile" button under each post?


I changed this setting as a work around. Now I can click the username and it takes me straight to the users profile. when previously, it wouldn't do anything.

Thank you
  
Back to top
 
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Javascript:quicklinks not working
Reply #7 - Dec 23rd, 2010 at 12:28am
Post Tools
He's got it enabled John because the otherwise the links would redirect to the profile directly whereas right now they have the javascript link necessary to open in the dropdown but it is not working properly.
  
Back to top
 
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Javascript:quicklinks not working
Reply #6 - Dec 22nd, 2010 at 9:44pm
Post Tools
Hmm okay it seems something reverted. Try reuploading the YaBB.js from the original package and the original boardindex.
  
Back to top
 
IP Logged
 
Tysonmm
YaBB Newcomer
*
Offline



Posts: 44
Re: Javascript:quicklinks not working
Reply #5 - Dec 22nd, 2010 at 9:28pm
Post Tools
hmm... Made the change and attached the js with txt extension for review if you need.  Still not working.
  

YaBB_js.txt ( 12 KB | 219 Downloads )
Back to top
 
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Javascript:quicklinks not working
Reply #4 - Dec 22nd, 2010 at 9:01pm
Post Tools
That's correct. Guests don't get to use quick links, something I built in Wink

Your YaBB.js and the javascript calls on the links are not the same version somehow. Your YaBB.js is 2.5 but the newest code has a new function for opening and closing the links so the calls aren't matching up. The links displayed are using a newer version somehow. Or this could be because the 2.5 code was not properly packaged and no one has brought this up yet.

the quickLinks function in YaBB.js should look like this:
Code (Javascript)
Select All
function quickLinks(num) {
	closeLinks(lastOpen);
	document.getElementById(num).style.display = "inline-block";
	document.getElementById(num).parentNode.style.zIndex = "1000";
	lastOpen = num;
} 


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Topic Tools
 
  « Board Index ‹ Board  ^Top