
Grok 🤖
Members-
Posts
95 -
Joined
-
Last visited
Never
Everything posted by Grok 🤖
-
A little help please. Very urgent!
PcGeniusProductions replied to PcGeniusProductions's topic in HTML Help
Hi. Of course I know about the CSS Tag: "display:none" but I do not know where to implement it. For instance, if I just put in in the tag for the Bar-Opener, then it will remove the bottom. I want it so that the bar closes with a second click after being opened. -
Hi. I am trying to get my chat-bar to not only become "visable" on mouse click, but also become "hidden" when it is clicked again. Here is the code to control the initial bar... <div id="tchat_toolbar"><div style="float:left;margin:5px 10px"><!-- SPARE SPACE !--></div><div style="float:left;margin:5px 10px">'.$params->get('toolbarhtml').'</div><div id="tchat_friends" onclick="document.getElementById(\'tchat_friends_list_box\').style.visibility = \'visible\'">'._ONLINE_FRIENDS.' ('.$total.')</div></div> Here is the code which commands the bar to show "hidden" onclick="document.getElementById(\'tchat_friends_list_box\').style.visibility = \'hidden\'" I do not know exactly what to do with this, I have tried a few times, but am almost certain i am going the wrong way about it. Also, if it is needed, here is the entire CSS Script for the chat bar(s) #chat_1_window ul{ list-style: none; margin-left: 0; padding-left: 1em; text-indent: -1em; } .chat_notify_name{ color: red; font-weight:bold } #chatwrapper{ position: fixed; left: 1px; bottom: -5px; z-index:999; width:100%; } #chatscroll a{ color:#202020; } #tchat_friends{ width: 160px; font: 10pt tahoma bold #FFFFFF; border-right: 3px solid #333333; border-left: 3px solid #333333; padding: 6px; height:28px; float: right; margin-right: 30px; cursor:pointer; text-align:center; background: #0066CC url(/modules/mod_oneononechat/theme/gradient.jpg) repeat-x; } #tchat_toolbar{ height:35px; width:100%; background: #0066CC url(/modules/mod_oneononechat/theme/gradient.jpg) repeat-x; border-top: 1px solid #b5b5b5; color:#202020; } .tchat_friends_list_box{ font: 10pt tahoma; height: 120px; width: 250px; background: #FFF; border: 1px solid #b5b5b5; border-bottom: none; visibility: hidden; position: absolute; top: -120px; right: 30px; } #tchat_friends_list_box ul{ list-style: none; } #tchat_friends_list_box a{ text-decoration: none; } .tchat_close{ width: 100%; height: 17px; background:#3b5998; color: #FFF; font weight: bold; text-align: right; cursor: pointer; } Thanks for any help you can offer.
-
Hi guys. I am certain this can be done, as I know of a website (jfusion.org) that has the exact setup to what I want. (and by utter coincidence, the same Joomla Template, too) I tried containing the whole phpbb body within a div tag with the ID: phpbb. Then I added "#phpbb" to the beginning of EVERY style tag in all CSS files. I am trying to keep both systems totally independant, without merging the CSS into the actual files from Joomla Skin. Naturally, this was a disaster. I used Dreamweaver to its full extent (find and replace) as I have done on countless occasions, the only difference being that instead of solving my problem, it confused it. I think I am onto something here, I think I know what I am doing wrong... Please help me with an example code here... This was my code AFTER I added "#phpbb" tags to all styles... /* proSilver Link Styles ---------------------------------------- */ #phpbb a:link { color: #898989; text-decoration: none; } #phpbb a:visited { color: #898989; text-decoration: none; } #phpbb a:hover { color: #d3d3d3; text-decoration: underline; } #phpbb a:active { color: #d2d2d2; text-decoration: none; } /* Coloured usernames */ #phpbb .username-coloured { font-weight: bold; display: inline !important; } /* Links on gradient backgrounds */ #phpbb #search-box a:link, #phpbb .navbg a:link, #phpbb .forumbg .header a:link, #phpbb .forabg .header a:link, #phpbb th a:link { color: #FFFFFF; text-decoration: none; } I think I did something wrong. If you could correct this script to give me an example, I could learn from this script where to use the "#phpbb" tag and what to leave alone. My basic intention is t to ONLY apply style to the content of <div id="phpbb"> You understand what I am saying?
-
Hi guys. Is it possible to add a prefix/suffix to all CSS Data in one go? E.g. HTML File = <div id="name"></div> CSS File = #name { style } Is there a way to change EVERY ID, CSS, and CLASS tags to make them unique? Reason: I have a phpBB3 Style I wana integrate into my Joomla Template, and it has hundreds, maybe thousands of CSS Tags. I have tried going through them by hand (took me all day) but I am not too experienced and it was a disaster. I wanna avoid all conflicts and clashes from the two seperate templates. Summery: Is there a way to prevent clashes of CSS Styles, or mass-edit all CSS Data. Thanks for any informatuion available. I am on the verge of giving up.
-
If it was that easy, I would have done it straight away. My problem is, that I am visually integrating my phpBB3 Style into my Joomla Template. The CSS is clashing. The only solid fix I know of, is to manually go through dozens of files, and rename thousands of CSS Tags. This is a last resout, I am desperately searching for a more efficient and time saving way to do this. Come to think of it, it would probably result in the most stable forrum than if I were to cheat and limit the CSS to only one DIV. Summery Question... I have a whole forum system of styles. Is there away to funnel those stylers into only one DIV? E.g., If I was to wrap the entire forum inside <div id="forum-wrap"> then tell the CSS to ONLY apply its styles to the content within that DIV, and nothing else. Is this possible? Or do I need to manually go through everything? Hope this explains more.
-
Is there a way to apply a linked CSS file ONLY to the contents of a specified DIV or some kind of container?
-
Ahh, finally a result... The suggested method "works" to a degree, but it works "too much" if you get what I mean... Instead of simply protecting its own code, it has gone and overridden my Joomla Template too. This should not be a problem, it is a simple matter of CSS ID Clashes... I hope Thanks for your help, this has gotten me back on track Very much appreciated..
-
Hi. I have an EXTREMELY large code (a full phpBB3 template, to be exact) and have so far had great success with integrating it into my Joomla System. I have come across a problem, that I have no idea how to fix, or what questions to ask. Basically, the CSS from my Joomla Template is clashing with the Forum template. Is there a way to isolate a section of code so it does not inherit 3rd-party CSS Styles? If not, then is there another way to fix my problem? I am not looking for a professional job, I simply want it to work. Thanks for your info.
-
PHP Query Data - Auto Refresh
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
Yeah I am looking at jQuery right now. Here is the index page to the tutorials I am looking at: http://docs.jquery.com/Tutorials -
PHP Query Data - Auto Refresh
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
Hey thank man. I will have a mess with this. I really should learn AJAX, I notice it coming up a lot more on the net nowadays. Thanks for your help. I really appreciate it -
PHP Query Data - Auto Refresh
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
JQuery, right thanks. I am currently badgering google for information Thanks for the heads up -
PHP Query Data - Auto Refresh
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
I don't think so, no. this is not a form. It simply runs a query on the database tables and counts the rows. The displays its results. I am not trying to pass it from page to page or anything. You could write one for me? That would be great! I have heard of AJAX, but never in my life used it. The software I am designing this MOD for is Ajax, but that's all I know. I would be very grateful if you were to help me with this code. I am completely at sea if it is not PHP/CSS. -
PHP Query Data - Auto Refresh
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
<?php $result1 = mysql_query("SELECT * FROM ajaxim_users", $openDB); $num_rows1 = mysql_num_rows($result1); ?> <?php $result2 = mysql_query("SELECT * FROM ajaxim_users WHERE is_online = 1 AND admin = 1", $openDB); $num_rows2 = mysql_num_rows($result2); ?> <?php $result3 = mysql_query("SELECT * FROM ajaxim_users WHERE is_online = 1 AND admin = 0", $openDB); $num_rows3 = mysql_num_rows($result3); ?> <?php $result4 = mysql_query("SELECT * FROM ajaxim_users WHERE banned = 1", $openDB); $num_rows4 = mysql_num_rows($result4); ?> <?php $result5 = mysql_query("SELECT * FROM ajaxim_chats", $openDB); $num_rows5 = mysql_num_rows($result5); ?> <strong>Members:</strong><br /><?echo"$num_rows1";?><hr /> <strong>Online Admins:</strong><br /><?echo"$num_rows2";?><hr /> <strong>Online Users:</strong><br /><?echo"$num_rows3";?><hr /> <strong>Banned Users:</strong><br /><?echo"$num_rows4";?><hr /> <strong>Chatrooms:</strong><br /><?echo"$num_rows5";?><hr /> -
Hi Guys. I have a script that runs a query on a SQL Database and returns results. The results in question will be updated very frequently (every 5 seconds) and I need a way of auto-updating the results shown on the PHP Page. Here is my script... <?php $result1 = mysql_query("SELECT * FROM ajaxim_users", $openDB); $num_rows1 = mysql_num_rows($result1); ?> <?php $result2 = mysql_query("SELECT * FROM ajaxim_users WHERE is_online = 1 AND admin = 1", $openDB); $num_rows2 = mysql_num_rows($result2); ?> <?php $result3 = mysql_query("SELECT * FROM ajaxim_users WHERE is_online = 1 AND admin = 0", $openDB); $num_rows3 = mysql_num_rows($result3); ?> <?php $result4 = mysql_query("SELECT * FROM ajaxim_users WHERE banned = 1", $openDB); $num_rows4 = mysql_num_rows($result4); ?> <?php $result5 = mysql_query("SELECT * FROM ajaxim_chats", $openDB); $num_rows5 = mysql_num_rows($result5); ?> <strong>Members:</strong><br /><?echo"$num_rows1";?><hr /> <strong>Online Admins:</strong><br /><?echo"$num_rows2";?><hr /> <strong>Online Users:</strong><br /><?echo"$num_rows3";?><hr /> <strong>Banned Users:</strong><br /><?echo"$num_rows4";?><hr /> <strong>Chatrooms:</strong><br /><?echo"$num_rows5";?><hr /> I have tried for days to find a script that works. And not only do none of the google-found scripts not work, they are unreasonably long. All I want to do is auto-refresh the above script every 10 seconds. I will be grateful for any help you can offer.
-
Hi. I am trying to get a PHP Query to refresh every 10 seconds. I have scoured the internet for days and could not find anything of much use. Plenty of Ajax going on (whatever that is) but the scripts were immense. I only want to refresh 7 lines of PHP Query Code. Can you please tell me if this is possible? Thanks in Advance.
-
Simple IF/ELSE statements. Please Help!!!
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
Hey Zeeli. Regardless of who got there first, I am still very grateful for your willingness to help out. I tried the scrips and they both work as I needed. Thanks guys -
Simple IF/ELSE statements. Please Help!!!
PcGeniusProductions replied to PcGeniusProductions's topic in PHP Coding Help
Aha! This is what I was doing wrong. I had the "else" part setup OK. I just never told it what the else was reffering from. (if that makes sense ) GingerRobot, this is perfect. thank you very much! Regards, Reece. -
Hi guys. I am trying to create an addon for my chat script, and so far so good. I am stuck with a rather embarresingly simple PHP Statement. The script below works fine, but I want it to display "Empty" if there are no SQL Results. E.g. If it returns values, then the Column is not empty, if it does not, the column IS empty, so display [echo "Empty";] I cannot seem to do this. Here is my code. I will be grateful for any tips you can give me. <?php $sql = "SELECT column FROM table WHERE is_online = 1"; $results = mysql_query($sql); $newline = "<br />"; while($row = mysql_fetch_array($results)) { echo "" . $row['column'] . "" . $newline . ""; } ?>
-
[SOLVED] I need simple information about POST methods
PcGeniusProductions replied to plodos's topic in PHP Coding Help
Hi. I am no expert, but I learned a fair bit from these pages. http://www.w3schools.com/php/php_post.asp http://www.tizag.com/phpT/postget.php I hope these help. -
Hi. Let me give a full structural overview of my idea... No, I realize this is by no means the most efficient way of doing things, but they strap in with other, future plans so here goes... There are 6 of us maintain a website, with me in the lead. What I want to do, is as each of my staff members to change their home-page to the main link, plus their name variable. For instance, Danny would change his homepage to: http://example.com/page.php?danny Mark would change his homepage to: http://example.com/page.php?mark If a user simply typed: http://example.com/page.php they would come to a stand-still (blank page) But, when the variable is entered, it then calls a pre-defined "header" statement related to that particular URL-Variable. And the idea being is that when a problem arises when we are out of contact, I can instantly change their homepage to the area they need to be in. There is not central page to link from, their browser "is" the centre. I hope this answer all questions. I am pretty sure there is no other details to add.
-
Hi. this work, but not in the way I meant... Here it is in more detail... file.php?user=john This would go to google.com file.php?user=harry This would go to yahoo.com file.php?user=charlie This would go to msn.com Sorry for my lack of detail. Thanks for your quick reply, nevertheless. I am currently looking through a phpg uide on google, but it does not tell me anything about this :S
-
Hi. i am trying to get my PHP file to do this... file.php?content1 file.php?content2 file.php?content3 and it uses a different header redirect for each one. header('location:page1.php'); header('location:page2.php'); header('location:page3.php'); I hope this makes sense I am the ultimate novice at PHP, and do not know where to go for help on anything like this. I have had experience with redirecting a iFrame using this method, (file.php?frame=page2) but not changing the output itself. I will be grateful for any help offered. Thanks in advance.
-
Hi guys. I have been working non-stop on fully integrating my phpBB3 setup into my Joomla system. I have decided to cheat by using an iFrame (wrapper) and so far so good. I have recently implemented a php variable to the iFrame so a parent url can change the iframe page (within the phpBB3 directory) My main question is this... I fully understand how to go about creating links inside an iFrame to refresh the parent variable-url thus constantly keeping the displayed address up to date with the inline frame... what I do not know, however, is how to apply this feature to the whole of my phpBB3 setup. So when a user clicks a link, it does not apply the address change to the iFrame, but refreshes the parent-url (variable) with the up to date link. This way, my users would not be confused and still get a seemingly frameless experience. I know this can be done with careful planning and coding, but I seriosuly need some expert advice before I go ahead and kill my forum. If anyone has any information/advice about my plan, could you please come fourth to help me out. If this is going to be a big project, then I am willing to advertise for the guy who sees fit to lend me a hand. Thanks in Advance.
-
Hmm, I see what you mean (i think) but would I not need to apply this to all of the links inside the iFrame? (an entire phpbb3 setup) thanks for your rapid reply, btw
-
Hi GenericNumber1. Yes, this is what I meant. I have created my own script that does exactly what yours does, only I have given it a default base-url, so instead of going: xxx.com?=http://xxx.com/page.php i only need to put the page variable "?viewtopic=xxx" and not the whole url. Thanks for your help. What you said would have been great value to me. I appreciate that. Here is what I used. (for similar issues) Where as your script would give me: http://******/forum?iframe=http://example.com/forum/viewforum.php?f=155 Mine gives me: http://******/forum?get=viewforum.php?f=155 My entire page looks like this: <?php if (!isset($_GET['target'])) {$target = "/forum-standard/"; } else {$target = $_GET['target'];} ?> <script language="javascript" type="text/javascript"> function iFrameHeight() { var h = 0; if ( !document.all ) { h = document.getElementById('blockrandom').contentDocument.height; document.getElementById('blockrandom').style.height = h + 60 + 'px'; } else if( document.all ) { h = document.frames('blockrandom').document.body.scrollHeight; document.all.blockrandom.style.height = h + 20 + 'px'; } } </script> <iframe height="500" frameborder="0" width="933" scrolling="no" align="top" onload="iFrameHeight()" id="blockrandom" name="iframe" src="<?php print $target; ?><?php echo $_GET['get']; ?>" class="wrapper">The ColdCast Forums are not available at this time. Sorry. </iframe> I am sure there will be a more efficient way of doing this, but for now, this will do. My main (and very small) issue is that the page loads fine, but when the iframe changes url, e.g. when a link is clicked, the parent-url stays put, thus giving users the wrong impression if they wanted to send a friend the link. Does anyone know a fix for this?