inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Feb 8, 2012 16:56:43 GMT -8
that subdevo code up there needs to be removed from this thread (no repost). are you done putting it on your site?
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Feb 8, 2012 19:52:31 GMT -8
to Wormo: Sub-Devo removed.
To UKKC: Go ahead and remove that Sub-Devo code (Replace/Remove Any Titles) it isn't working the way I thought it would. (I tried it on a test site and it screwed everything up.) I'm working on a code that will create the menu like you want it.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Feb 8, 2012 20:21:19 GMT -8
I just meant from this thread because of the repost.
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Feb 8, 2012 20:28:18 GMT -8
Yes, I understood that but then I went to look at his site and figured out that the code isn't going to do what I was thinking it would. I might need some direction on this one. He wants it set up so that instead of [Home] it looks like: <div id="menuitem"><font size="+2"><a href="pb_action:home">Home</font><br/>Home Page</div> The subdevo code doesn't align them side by side though it turned them vertically. Although let me test making the divs a specified width. testspiritworld.proboards.com/index.cgi Okay setting the divs to specific widths didn't help. Any ideas Wormo?
|
|
ukkc
New Member
Posts: 24
inherit
176494
0
Feb 19, 2012 13:24:51 GMT -8
ukkc
24
February 2012
ukkc
|
Post by ukkc on Feb 9, 2012 0:47:54 GMT -8
|
|
ukkc
New Member
Posts: 24
inherit
176494
0
Feb 19, 2012 13:24:51 GMT -8
ukkc
24
February 2012
ukkc
|
Post by ukkc on Feb 9, 2012 8:05:37 GMT -8
Hi, Until anyone helpz about menu, can we work on 'log in area', 'general page look', 'logo' etc. to make them according to the link of jpg i gave in pm.
Thank you.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Feb 9, 2012 16:29:57 GMT -8
Divs are block level elements so they will put a line feed after each one. use spans instead.
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Feb 9, 2012 20:49:27 GMT -8
|
|
ukkc
New Member
Posts: 24
inherit
176494
0
Feb 19, 2012 13:24:51 GMT -8
ukkc
24
February 2012
ukkc
|
Post by ukkc on Feb 10, 2012 9:51:18 GMT -8
following code may help
Global Header <style type="text/css"> a.menu { font-family:Tahoma, Geneva, sans-serif; font-size:24px; padding:15px 10px; margin-top:10px 4px; background-color:#e2e2e2;
} a.menu:hover { background-color:#87295b; color:white; text-decoration:none; }
</style> <script type="text/javascript">
var firstRow=document.getElementsByTagName("tr")[0]; var firstTable=firstRow.parentNode;
firstTable.childNodes[1].style.height="77px"; firstTable.childNodes[1].style.backgroundColor="#e2e2e2";
firstRow.style.display="none";
var logoRow=document.createElement("tr"); logoRow.innerHTML='<td><img src="http://dogrucozumler.com/deyna/logo.jpg" border="0" alt="Forum"></td>'; firstTable.appendChild(logoRow);
//deleting adwords document.getElementById("pb_report_ad").style.display="none";
//menu changing var menutext = [];
menutext["[Home]"] = "Home"; menutext["[New Topics]"] = "New Topics"; menutext["[Help]"] ="Help"; menutext["[Login]"]="Login"; menutext["[Register]"]="Sign Up"; menutext["[Admin]"]="Admin"; menutext["[Calendar]"]="Calendar"; menutext["[Profile]"]="Profile"; menutext["[Logout]"]="Logout"; menutext["[Search]"]="Search"; menutext["[Members]"]="Members";
var menu = document.getElementsByTagName('td'); var menuColumn; for(e=0; e<menu.length; e++) { if(menu[e].className="menubg") { menuColumn=menu[e].parentNode.parentNode; break; } }
menuColumn=menuColumn.getElementsByTagName("a");
for(e=0; e<menuColumn.length; e++) { if(menuColumn[e].innerHTML=='[Home]'){ menuColumn[e].parentNode.parentNode.align="left"; menuColumn[e].parentNode.parentNode.style.backgroundColor="#e2e2e2"; } menuColumn[e].innerHTML=menutext[menuColumn[e].innerHTML]; menuColumn[e].className="menu"; }
</script>
Global Footer <script type="text/javascript">
var tables =document.getElementsByTagName("table");
for(e=0;e<tables.length;e++) { if(tables[e].parentNode.tagName.toLowerCase()=="body"){ tables[e].width="1000px"; } } var fonts =document.getElementsByTagName("font"); for(e=0;e<fonts .length;e++) { if(fonts [e].className.toLowerCase()=="cattext"){ fonts[e].size="4"; fonts[e].face="Tahoma"; fonts[e].color="#2a2a2a";
} } var navs=document.getElementsByTagName("a"); for(e=0;e<navs.length;e++) { if(navs[e].className.toLowerCase()=="nav"){ navs[e].style.color="white";} if(navs[e].href.indexOf("beta")>0){ navs[e].parentNode.style.display="none"; } }
</script>
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Feb 10, 2012 12:42:43 GMT -8
Okay I have the login changed up. Replace the login code with the following: <script type="text/javascript"> //<!-- //From www.yourhtmlsource.com/forms/clearingdefaulttext.html //Leave Header In Tact
/* * Clear Default Text: functions for clearing and replacing default text in * <input> elements. * * by Ross Shannon,
www.yourhtmlsource.com/ */
addEvent(window, 'load', init, false);
function init() { var formInputs =
document.getElementsByTagName('input'); for (var i = 0; i < formInputs.length; i++) { var theInput = formInputs;
if (theInput.type == 'text' && theInput.className.match(/\bsidelogin\b/)) { /* Add event handlers */
addEvent(theInput, 'focus', clearDefaultText, false); addEvent(theInput, 'blur', replaceDefaultText, false);
/* Save the current value */ if (theInput.value != '') { theInput.defaultText =
theInput.value; } } } }
function clearDefaultText(e) { var target = window.event ? window.event.srcElement : e ?
e.target : null; if (!target) return; if (target.value == target.defaultText) { target.value = ''; } }
function
replaceDefaultText(e) { var target = window.event ? window.event.srcElement : e ? e.target : null; if (!target) return;
if (target.value == '' && target.defaultText) { target.value = target.defaultText; } }
/* * Cross-browser event handling, by Scott Andrew */ function addEvent(element, eventType, lamdaFunction, useCapture) { if
(element.addEventListener) { element.addEventListener(eventType, lamdaFunction, useCapture); return true; } else if
(element.attachEvent) { var r = element.attachEvent('on' + eventType, lamdaFunction); return r; } else {
return false; } }
/* * Kills an event's propagation and default action */ function knackerEvent(eventObject) { if (eventObject &&
eventObject.stopPropagation) { eventObject.stopPropagation(); } if (window.event && window.event.cancelBubble ) {
window.event.cancelBubble = true; } if (eventObject && eventObject.preventDefault) { eventObject.preventDefault();
} if (window.event) { window.event.returnValue = false; } }
/* * Safari doesn't support canceling events in the standard
way, so we must * hard-code a return of false for it to work. */ function cancelEventSafari() { return false; }
/* * Cross-
browser style extraction, from the JavaScript & DHTML Cookbook *
<http://www.oreillynet.com/pub/a/javascript/excerpt/JSDHTMLCkbk_chap5/index5.html> */ function getElementStyle(elementID,
CssStyleProperty) { var element = document.getElementById(elementID); if (element.currentStyle) { return
element.currentStyle[toCamelCase(CssStyleProperty)]; } else if (window.getComputedStyle) { var compStyle =
window.getComputedStyle(element, ''); return compStyle.getPropertyValue(CssStyleProperty); } else { return ''; } }
/* * CamelCases CSS property names. Useful in conjunction with 'getElementStyle()' * From
<http://dhtmlkitchen.com/learn/js/setstyle/index4.jsp> */ function toCamelCase(CssProperty) { var stringArray =
CssProperty.toLowerCase().split('-'); if (stringArray.length == 1) { return stringArray[0]; } var ret =
(CssProperty.indexOf("-") == 0) ? stringArray[0].charAt(0).toUpperCase() + stringArray[0].substring(1) :
stringArray[0]; for (var i = 1; i < stringArray.length; i++) { var s = stringArray; ret += s.charAt
(0).toUpperCase() + s.substring(1); } return ret; }
/* * Disables all 'test' links, that point to the href '#', by Ross Shannon */ function disableTestLinks() { var pageLinks = document.getElementsByTagName('a'); for (var i=0; i<pageLinks.length; i++) { if
(pageLinks.href.match(/[^#]#$/)) { addEvent(pageLinks, 'click', knackerEvent, false); } } }
/* * Cookie functions */ function createCookie(name, value, days) { var expires = ''; if (days) { var date = new Date(); date.setTime
(date.getTime() + (days*24*60*60*1000)); var expires = '; expires=' + date.toGMTString(); } document.cookie = name + '='
+ value + expires + '; path=/'; }
function readCookie(name) { var cookieCrumbs = document.cookie.split(';'); var nameToFind = name
+ '='; for (var i = 0; i < cookieCrumbs.length; i++) { var crumb = cookieCrumbs; while (crumb.charAt(0) == ' ') {
crumb = crumb.substring(1, crumb.length); /* delete spaces */ } if (crumb.indexOf(nameToFind) == 0) {
return crumb.substring(nameToFind.length, crumb.length); } } return null; }
function eraseCookie(name) { createCookie
(name, '', -1); }
-->// </script>
<!--====Login===--> <div id="socialLogins" style="cursor:pointer;text-align:center;"></div> <script> (function(){ var gY=window.gigya,gYd=gY.services.socialize; if(gY&&gYd&&!document.getElementById('componentDiv1')){ var ae = window.addEventListener?['addEventListener','load']:['attachEvent','onload'] window[ae[0]](ae[1],function(){ if(!gYd || !gYd.plugins){var ac=arguments.callee; ac.count=('count'in ac?ac.count++:0); if(ac.count<1000)setTimeout(ac,500);return} var d=document,g='getElementById',l,q,r,s,t,u='',v,z=gYd.plugins.login.modules; for(q in z){ if("object" == typeof(z[q]) && "pageDiv" in z[q])l=z[q].pageDiv; else l=null; if(l){ for(s=l.getElementsByTagName('img'),t=0;t<s.length;t++){ v=s[t].parentNode.parentNode; u += '<img src="'+s[t].src+ '" width="'+s[t].width+ '" height="'+s[t].height+ '" onclick="pb_openOverlay(); gigya_id = 0;
gigya.services.socialize.plugins.login.providerClick(\''+q+'\',\''+v.title.toLowerCase()+'\')">&nbs'+'p;'; } } } if(u)d[g]('socialLogins').innerHTML=u; },false) } })() </script>
<form action="/index.cgi" method="post" name="sideloginform" onsubmit="disable(this);if(location.href.indexOf('action=logout')==-1)
this.redirect.value=location.href;"> <input type="hidden" value="/index.cgi" name="redirect"> <input type="hidden" name="action" value="login2"> <img onload="document.getElementById('sidelogout').style.display=(pb_username=='Guest'?'none':'')"
src="http://s3.images.proboards.com/blank.gif"> <center><table cellspacing="3" cellpadding="3" border="0"> <tbody><tr> <td><input type="text" name="username" value="Username" size="18" tabindex="3001" maxlength="18" class="sidelogin user"></td> <td rowspan="3" valign="top"> <input type="image" src="http://i134./q90/xianxianxian2001/logintest.png" value=" login " tabindex="3004"
class="sidelogin submit"> <input type="image" src="http://i134./q90/xianxianxian2001/logouttest.png" style="display: none;"
id="sidelogout" onclick="location.href='/index.cgi?action=logout'" value="Logout" class="sidelogin logout"> <input type="image" src="http://i134./q90/xianxianxian2001/registertest.png" onclick="/index.cgi?
action=register" class="sidelogin register">
</tr><tr> <td><input type="password" name="password" size="18" tabindex="3002" class ="sidelogin password"></td> </tr> <tr> <td> <font size="1pt"><a href="/index.cgi?action=forgotpassword" class="sidelogin forgot">Forgot Password</a></font></center> </td></tr> </tbody></table></center> </form> <!--===End Login===-->Feel free to change the pictures in red.
|
|
ukkc
New Member
Posts: 24
inherit
176494
0
Feb 19, 2012 13:24:51 GMT -8
ukkc
24
February 2012
ukkc
|
Post by ukkc on Feb 10, 2012 13:44:39 GMT -8
Hi, You rock How to put the login area in right place. Thank you.
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Feb 10, 2012 18:27:11 GMT -8
Okay to start find this part of the code:
<script type="text/javascript"> <!-- document.getElementsByTagName('td').item(2).style.display="none"; document.getElementsByTagName('td').item(1).style.align="left" document.getElementsByTagName('font').item(1).style.display="none"; //--> </script>
And delete the part in blue.
Then find this part of the code:
<table width="92%"><tr> <td class="windowbg"> <!--====Login===--> <div id="socialLogins" style="cursor:pointer;text-align:center;"></div>
and change the red part like so:
<table width="92%"><tr> <td class="windowbg"> <!--====Login===--> <div id="socialLogins" style="cursor:pointer;text-align:left;"></div>
|
|
ukkc
New Member
Posts: 24
inherit
176494
0
Feb 19, 2012 13:24:51 GMT -8
ukkc
24
February 2012
ukkc
|
Post by ukkc on Feb 11, 2012 9:04:09 GMT -8
Hi, Thank you. I applied but it didnt change much.
Thank you.
|
|
ukkc
New Member
Posts: 24
inherit
176494
0
Feb 19, 2012 13:24:51 GMT -8
ukkc
24
February 2012
ukkc
|
Post by ukkc on Feb 14, 2012 2:49:52 GMT -8
Hi, Should i wait further for help about it? Or any experienced PB Dezigner PM me to convert it to a paid work. Thank you.
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Feb 14, 2012 4:58:28 GMT -8
You must have missed several things on your forum.
A) You have a new member
B) You have a new PM
|
|