WordPress.org

Ready to get started?Download WordPress

Forums

124

CG-FlashyTitles: sIFR 2.0 for WordPress... (107 posts)

  1. davidchait
    Member
    Posted 8 years ago #

    My first entry into the plugin competition (not sent in yet...) is a drop-in system for sIFR title replacements in WP. I'd love ANY feedback die-hard users might have by midday tomorrow, ranging from the readme, to the overall functionality...

    Get it here.

    I'm also working on a bunch of other entries, so this is only my first post. rush, rush, rush to the finish line! ;)

    -d

  2. davidchait
    Member
    Posted 8 years ago #

    Anyone gotten to take FlashyTitles for a test-drive? The contest deadline is only 8 hours away... I'm working feverishly on a bunch of other plugs, but this is the cool one. ;)

    Thanks!

    -d

  3. Joshua Sigar
    Member
    Posted 8 years ago #

    Well, the last time I tried, when I clicked on the tab, it's going to wp-admin/cg-flashytitles.php or something like that, so that I have to type it manually like with ?page=cg-flashytitles/cg-flashytitles.php, but then I got error of redeclaration of some function.
    I'll try it again when I'm not half conscious.

    Edit: apparently, I can't upload the whole thing in a folder. See that's what I don't like about your plugins (I use your cg amazon), that you have to have a file and a folder in wp's plugin root folder. Why can't you just put everything in a folder? I believe I manage to do that before.

    Anyhow, now I get
    Unable to open file (/home/username/public_html/wordpress/wp-content/plugins/../cg-flashytitles.dat).

  4. Joshua Sigar
    Member
    Posted 8 years ago #

    That error saying that I have to a file named cg-flashytitles.dat in wp-content, right ? Huh?

    Anyhow, whatever, just create the requested file. And the setting is saved properly, as I can see the the content. However, nothing gets flashy. In FlashyTitle page under sample, I get only regular, unflashified "Quick brown fox."

    Probaly another incorrect URI reference somewhere in the code?

  5. vkaryl
    Member
    Posted 8 years ago #

    David, here's the full error line I get after install and activation, and when I attempt to utilize CG-FlashyTitles to manipulate <h2>s:

    Unable to open file (/home/karyl/public_html/pov/wp-content/plugins/
    ../cg-flashytitles.dat)

    Doesn't appear that the cg-flashytitles.dat file exists, nor is it being created.

  6. Marc
    Member
    Posted 8 years ago #

    I have it installed on my home box. But receive this error after activation and attempting to go to the Flashy Titles confing page:

    Fatal error: Cannot redeclare get_sifr_font_list() (previously declared in D:apachefriendsxamppxampphtdocsblogwordpresswp-contentpluginscg-flashytitles.php:100) in D:apachefriendsxamppxampphtdocsblogwordpresswp-contentpluginscg-flashytitles.php on line 121

  7. davidchait
    Member
    Posted 8 years ago #

    alphaoide -

    Thanks for the feedback... I separate things to make it easier for me to maintain and upgrade. In this case, I'm separating my plugin code from the actual sIFR files.

    to all -

    I'll go look into the path issues. I've run it on WinXP and hosted Linux without issues -- but that doesn't mean there aren't problems to fix. ;)

    -d

  8. Joshua Sigar
    Member
    Posted 8 years ago #

    What I'm saying is I dont like the following

    plugins/
    - cg-flashytitles.php
    - sifr/
    - - files.php

    I prefer the following
    plugins/
    - cg-flashytitles/
    - - cg-flashytitles.php
    - - - sifr/
    - - - - files.php

    That way, in plugins folder, one plugin correspond to exactly one file or one folder. So, that someday in the future if I need to clean up I won't be wondering, "Which plugin does this folder belong to?"

    `

  9. davidchait
    Member
    Posted 8 years ago #

    Some follow-ups:

    - I just uploaded 0.8 to my site. Those of you with path problems, please try this again -- you only need the plugin .php file out of the zip if you've already got 0.7 installed. I changed to not use the .. path reference, in case that was an issue. I >am< assuming your wp-content is writeable, as it is supposed to be (for uploading images, etc.). If it isn't, that'd do the trick.
    - I just tried on my hosted box again with no dat, seems okay. Could be a permissions difference I guess.
    - The 'cannot redeclare' thing is weird. I'm using php4 I believe -- wonder if that's a php5 thing? I'm not being overly clean, but the plugin shouldn't be getting included twice -- I don't think.

    alphaoide - another idea just struck me. do you have flashblock, or javascript disabled, or any combination of such things? that'd prevent it from working... ;)
    - on the folder structure thing... I get what you're saying. You could go and place it in a folder -- or I can think about 'packaging' things another level deeper. or, if you use an unzip app like mine, I get a folder created when I unzip, and you'd just drag that to /plugins.

    -d

  10. vkaryl
    Member
    Posted 8 years ago #

    The updated .php file works fine. Now all I have to do is figure out how to make the titles show.... I'm not real clever at this particular sort of thing, obviously!

    Anyway, for me, it's fixed.

  11. Joshua Sigar
    Member
    Posted 8 years ago #

    Hah, it works wonderfully on my local server, but not on remote server.

    This is really good stuff; so freaking easy to use. Well done on this one.

  12. davidchait
    Member
    Posted 8 years ago #

    Glad it's working! ;)

    vkaryl - The readme is basic, but points the right direction: start with something like your h1 heading or h2 titles. That's what the included JPGs show me overriding.

    And as I said, sIFR is an ART FORM. I haven't yet figured out how to get the spacing to match up reasonably, I'm just figuring out how to use the font-size override to make the replacement better match the size of the original, and I'm stumped on how to get my 'h2 a' borders to show up with replacements active.

    I'm hopeful this starts a LOT of back and forth discussions and improvements with the sIFR guys, as this has such incredible PROMISE to change the 'face' of the internet. ;)

    Now, on to my other entries... ;)

    -d

  13. Marc
    Member
    Posted 8 years ago #

    Nope, changed the updated ver 8 plugin file and received the following error that is nearly the same as the previous one. Looks like only line number of the error is different.

    Fatal error: Cannot redeclare get_sifr_font_list() (previously declared in D:apachefriendsxamppxampphtdocsblogwordpresswp-contentpluginscg-flashytitles.php:98) in D:apachefriendsxamppxampphtdocsblogwordpresswp-contentpluginscg-flashytitles.php on line 119

    Just for info I'm useing XAMPP Version 1.4.11 with PHP: 5.0.3 on a XP pro box.

    I think I' try to install it in an online blog to see what happens.

  14. Marc
    Member
    Posted 8 years ago #

    Didn't work online either. Here is the error received:

    Fatal error: Cannot redeclare cgsifr_add_menu() (previously declared in /home/cranial/public_html/pickledpundit/wp-content/plugins/cg-flashytitles.php:22) in /home/cranial/public_html/pickledpundit/wp-content/plugins/cg-flashytitles.php on line 20

    The online server is a Linux box (i686), Apache version 1.3.33 (Unix), PHP version 4.3.10, MySQL version 4.0.23-standard

  15. davidchait
    Member
    Posted 8 years ago #

    Marc - I'm trying to figure out how the plugin file is being included twice on your systems, but not on mine (or, not bitching on mine). Can you email me your two error messages to cgcode at chait dot net, so I can see the locations the errors are coming up?

    I might also need a phpinfo dump at some point, maybe try to compare your boxes with mine and see what's up. Grrrr. ;)

    Thanks for doing the testing -- much appreciated!

    -d

  16. Marc
    Member
    Posted 8 years ago #

    David - give me awhile. I have a few more "irons in the fire" at the moment.

  17. dss
    Member
    Posted 8 years ago #

    Mr. Chiat, you are a maniac (in the best possible way)

    keep doin' what you doin' baby...

    : )

  18. davidchait
    Member
    Posted 8 years ago #

    dss- Heh, thanks! And paypal donations are ALWAYS accepted! ;) They take credit cards too... :) :)

    marc- no biggie. whenever you can email, that'd be great.

    -d

  19. davidchait
    Member
    Posted 8 years ago #

    FYI, I've posted an interim 0.9 build to my site. It has one really minor change in the code, but a MAJOR change to the overall zip: only the sIFR 2.0.1 included fonts are now included. I found out that some of the fonts weren't actually 'free'.

    I'm now going to set up my own page on CHAITGEAR (for the moment) with some definitely free/public domain fonts -- I just downloaded Flash MX 30-day trial, which should hopefully allow me to go run some batch-conversions so you all will have some fonts to play with! ;)

    Well, in the morning. :)

    -d

  20. davidchait
    Member
    Posted 8 years ago #

    Oh, and Marc - I updated locally to PHP5. Broke somebody else's plugin, but no problems with FlashyTitles. I'm wondering if there's something else to your site/code/plugins causing the plugins to get double-loaded or something. But whenever you can send along those error reports, I'll try to take another look. Again, no rush.

    -d

  21. Marc
    Member
    Posted 8 years ago #

    David I still have had no chance to send them along. But note my second attempt was for an online blog useing PHP4.3.10. The first attempt was on a home box with PHP 5.

    What exactly do you want me to send via Email, I didn't fully understand your request earlier. Do you desire something more than the two error codes listed in the above posts?

    I'll download your latest version even though it looks like the only change was in the fonts. One never knows does one, when it comes to this silly digital nonsense :-)

  22. yuh
    Member
    Posted 8 years ago #

    this great plugin doesn´t work for me, the currently version on your hp is 0.9

    i tried yesterday evening with no yuxxes and this morning again, perhaps this failure code can help you fix something

    Fatal error: Cannot redeclare get_sifr_font_list() (previously declared in ........wp-content/plugins/cg-flashytitles.php:112)
    in .......wp-content/plugins/cg-flashytitles.php on line 133

    hope i can work soon with this plugin, paypal is on its way m8!! :)

  23. davidchait
    Member
    Posted 8 years ago #

    Can you guys tell me what other plugins you are running? I'm just wondering if there's something in particular causing the issue.

    Anyone willing to let me guinea-pig your site (dev or production) for a bit late one night? Or even better, set up a subdir with a brand new wp15, install FlashyTitles, and have it fail, and give me ftp access and an admin account on the sub-blog. That'd give me an isolated environment, and when I'm done debugging you can just dump the extra tables from your DB.

    If I can just have access to your site for a little bit, within a few minutes should be able to debug how the frack the thing is being included twice on your boxes but not mine! ;)

    Thanks guys! Much appreciated.

    Marc - not a problem. I'm guessing the same issue is going on overall, just no clue why it'd exhibit differently on different boxes -- should show up everywhere or nowhere (unless there's some other plugin/something causing this...).

    Regards,
    -d

  24. davidchait
    Member
    Posted 8 years ago #

    okay, I've debugged the issues. folks shouldn't have quite as many problems now. however, read on, as there are some important notes. (more has been added to the README to keep this all in one place)

    First, I haven't been testing on anything but 1.5.1 or later. If you are running builds before 1.5.1, I can't guarantee compatability -- but this new version TRIES to do just a little bit to be more compatible with 1.5 release.

    Before 1.5.1, the admin menu hooks worked differently. So I quickly hacked in that if I get double-included from the admin interface, assume I need to call my own admin panel function. That got the panel showing. Then I needed to handle a WHOLE bunch of other cases that were getting screwed up by the double-inclusion.

    Obviously, the plugin also assumes all the following actions/hooks are in place in admin or site themes:
    admin_head, admin_footer
    wp_head, wp_footer
    Without those actions/hooks, I can't automagically insert myself. If your theme is missing the wp_head/wp_footer hooks, you'll need to make them yourself.

    I also need full write privs to the wp-content folder for the script to be able to write the data file out. In Marc's case, it needed world/public write privs added, then worked fine.

    There was also an issue that I was grabbing the 'home' url instead of the 'siteurl' wp path. Turned out Marc's home url included 'index.php' versus just the path. I now grab the siteurl, which I assume should never reference a code file directly.

    Marc's site was completely functional with my new code. I'll upload it as 1.0 to my site right now, since that seems to have caught the major issues, and will add notes to the readme as well.

    Too bad I couldn't have caught this all a few days earlier -- some of the contest judges might have all these issues. Well, they can always grab 1.0! ;) ;)

    -d

  25. jennapfister
    Member
    Posted 8 years ago #

    I installed the plugin (1.0) and activated it. When I click on the Flashy option in the admin bar, I get a "No input file specified error". This would be a fun plugin... if it worked for me. :)

  26. davidchait
    Member
    Posted 8 years ago #

    What version of WP are you running? I test it against 1.5.1.2 and against a 1.5 beta.

    I'm not sure what the error you are getting is coming from. Is the sifr directory inside plugins/ ? That's the only immediate thing I could think of. Though it's ALWAYS possible I introduced a bug while fixing other stuff! ;)

    -d

  27. davidchait
    Member
    Posted 8 years ago #

    Jenna, did you get any further with this? You might want to try the latest release, as it has more 1.5.zzz compatability work to try and allow people to use older WP if needed.

    Otherwise, drop me a line at cgcode at chait dot net and we'll figure it out. ;)

    -d

  28. Zoion
    Member
    Posted 8 years ago #

  29. davidchait
    Member
    Posted 8 years ago #

    Yes, that's listed in the readme. That's one of the sites I've been working with to help develop free sIFR font resources. And I've recently gotten the okay from a few other Font designers/foundries to make SWF versions of certain fonts. I just haven't had the time... ;)

    -d

  30. shadow
    Member
    Posted 8 years ago #

    Hi David,

    I have tried to implement this plugin several times but I still keep receving the same problem every time. I have the latest version [downloaded it again today just to make sure] but every time I save it in the admin panel, I lose my site.

    In other words, nothing on the site shows up except for the colour of the body background.

    Any ideas as to why this may happen?

124

Topic Closed

This topic has been closed to new replies.

About this Topic