| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
<OMEITOR> easy to write <element> with a fairly easy-to-use UI as well? <OMEITOR> well <OMEITOR> it could be a custom field <twidget> Well, being as it's after 3AM and I have to start getting back on a work schedule in a couple of days, maybe I'd better get some sleep <element> I'm looking for something that you could use sitewide, not post specific <element> twidget, nighto =) <OMEITOR> then you need a script <OMEITOR> much like upload.php for 1.5 <OMEITOR> and you get the URI after adding the thing <AjayDSouza> http://trac.wordpress.org/ticket/1911 <Xuff> Anyone know of any plugins that show visitors what's new since their last visit without the use of JavaScript? <OMEITOR> hmm <OMEITOR> there's one i think <OMEITOR> but you'll get a big db if you use it and have a lot of visitors <OMEITOR> unless it uses cookies <OMEITOR> do a google search :) <element> OMEITOR, it shouldn't have anything to do with cookies <Xuff> The only one I know of uses JS and cookies and doesn't do what I want it to. <element> I know EXACTLY of one that is already there, jus tnot for Wordpress <Xuff> I mean, cookies would be acceptable, but I'd rather not have the JS. <OMEITOR> element, i was taking to Xuff :) <element> no need for either <element> oh...ok <element> hehe ok <element> Xuff, yeah, cookies. <element> Xuff, OR have them login and then base it on that. <OMEITOR> element: if you already know one why don't you use it? <element> OMEITOR, it's not integrated into WP like I want it to be =/ <OMEITOR> which still uses cookies or the db <element> I'm hoping someone can make a plugin out of it <OMEITOR> then integrate it <OMEITOR> :) <Xuff> All I can find is Alex King's Last Visit plugin. <OMEITOR> show it to me <Xuff> I've Googled up and down which is why I'm asking here. <element> one moment <OMEITOR> Xuff: i dunno, why don't you post in the forums? <Xuff> I was probably going to but I thought I'd ask here just in case anyone knew of anything. :) <element> OMEITOR, basically something like this http://www.phpjunkyard.com/php-click-counter.php -- but with a SQL backend <OMEITOR> element: that's a counter .... <element> errr <element> whoops <element> bah, I'm tired <element> I'll find it tomorrow =/ <element> bbl, night guys <OMEITOR> oh <OMEITOR> i get what you mean <OMEITOR> that's a silly script <OMEITOR> changes the name to be able to log it <twidget> you guuyus tell meeee when your thinkk the NyQuil isss kikkiiin in <OMEITOR> doesn't alex king's plugin already do that? <Xuff> Nope. <Xuff> His uses JavaScript to give you that bit of text, but without the links. The actual posts and comments have a little "new" symbol next to them. <Xuff> It's also only released for WP 1.5 in his bulk "1.5 with all my plugins" release, and I don't feel like installing an entire other instance of WP just to extract it/figure it out. <wpbot> davidhouse is a UK PHP hobbyist and lives at http://xmouse.ithium.net. and the owner of a wordpress.com account! david.wordpress.com <davidhouse> hmm <davidhouse> http://trac.wordpress.org/changeset/3161 strange changeset <bball2> hey are there any php experts here? I just have a small problem <bball2> I need some help configuring a reqpath variable <davidhouse> bball2: just describe your problem, chances are someone knows the answer <bball2> k <bball2> so I`m trying to configure this stylesheet changer <bball2> and it requires putting in the path to a file called Styleswitcher <bball2> except it`s like: if(!isset($reqPath)){ $reqPath = "."; } <bball2> followed by: require_once($reqPath ."Styleswitcher.php"); <bball2> so I put the Styleswitcher.php file in my top folder (public_html) <bball2> which is like home/bballqfs/public_html/ <bball2> but no matter what I put in here: { $reqPath = "."; } <bball2> I keep getting a whole load of errors <davidhouse> what dir is that script in? <davidhouse> the script that's doing the include <bball2> it`s in my header.php file <davidhouse> which is where <bball2> so that would be /home/bballqfs/public_html/wp-includes/themes/k2/header.php <davidhouse> (***ume you mean wp-content ;)) <bball2> and the file that I want to link to is in /home/bballqfs/public_html/ <bball2> woops <bball2> I meant wp-content :P <davidhouse> right <bball2> hehe thanks <davidhouse> well, if you're _sure_ it's going to stay in /home/bballfqs/public_html <davidhouse> then you could hardcode that absolute path <bball2> ic <davidhouse> but that's not very portable <bball2> how would i do that <bball2> yeah <davidhouse> you might decide to change to a server that sticks your public_html in /home/vhosts/bball/public_html or something <bball2> oic <bball2> well I don`t think I have to worry bout that too much, my host right now has been very reliable <davidhouse> well, that'd be include('/home/bballfqs/public_html/Stylesheet.php') <davidhouse> or set $req_path to '/home/bballfqs/public_html/' <davidhouse> the other way of doing it is: <davidhouse> use the constant __FILE__ which is the on-disk location of the currently executing file <davidhouse> so in header.php you could do: $req_path = dir_name(__FILE__) . '/../../../' <davidhouse> oops <bball2> kool, i`ll give that a try right now <OMEITOR> use ABSPATH <davidhouse> i meant dirname(__FILE__) <davidhouse> oh yeah, this is executes as part of a WP script doesn it? <davidhouse> in which case, $req_path = ABSPATH; <OMEITOR> in wp-config <bball2> hrm <bball2> i tried <bball2> if(!isset($reqPath)){ $reqPath = "/home/bballfqs/public_html/"; } <bball2> but i get <bball2> Warning: main(/home/bballfqs/public_html/Styleswitcher.php): failed to open stream: No such file or directory in /home/bballqfs/public_html/wp-content/themes/k2/header.php on line 56 <davidhouse> then it's not where you said it is <bball2> it`s separate from WP <bball2> but then if I load it up on my browser, i don`t get a 404 <davidhouse> hangon <bball2> and i double checked it`s in the public_html thorugh my ftp <davidhouse> that should be /home/bballqfs/public_html <davidhouse> or even, /home/bballqfs/public_html/ <davidhouse> i got the q and the f the wrong way round <OMEITOR> it might be the S <OMEITOR> Style..... <OMEITOR> try style----.php <OMEITOR> case-sensitive :) <bball2> k i flipped the q and f around <bball2> but then i got: Fatal error: Call to a member function on a non-object in /home/bballqfs/public_html/wp-content/themes/k2/header.php on line 58 <bball2> i tried making it a lower case but that didn`t fix the problem either <OMEITOR> omg <davidhouse> well, what's line 58? <OMEITOR> are you using a require or an include? <bball2> req <OMEITOR> include ABSPATH . '...'; <OMEITOR> try it <chuyskywalker> Evening. <davidhouse> is the flickr code still in the core? <OMEITOR> morning <OMEITOR> nope <OMEITOR> plugin <davidhouse> great :) <bball2> k <bball2> this is line 58 <bball2> if(!isset($reqPath)){ $reqPath = "/home/bballqfs/public_html/"; } <OMEITOR> ok... <OMEITOR> oh <OMEITOR> the slashes <OMEITOR> just use ABSPATH <OMEITOR> if (!isset($reqPath){$reqPath = ABSPATH; } <OMEITOR> but that ***umes wp-config is located on /public_html/ <OMEITOR> anyways... <OMEITOR> im off <DaHood> hello
Return to wordpress or Go to some related
logs:
trondheim
|
|